https://signoz.io logo
k

kartik

01/09/2022, 8:07 AM
hi folks, I am trying signoz for first time and have been the following error while running
Copy code
(cd pkg/query-service && STORAGE=clickhouse ClickHouseUrl=<tcp://localhost:9001> go run main.go)
error:
Copy code
/usr/local/go/src/runtime/proc.go:255
2022-01-09T13:21:32.032+0530	FATAL	query-service/main.go:43	Failed to create server{error 26 0  open ./config/dashboards: no such file or directory}
main.main
from this, i see that we need to setup a dashboard config. how should I proceed with this ?
p

Pranay

01/09/2022, 11:25 AM
hey @User welcome to SigNoz community šŸ‘‹ @User should be able to help you with this
v

Vishal Sharma

01/09/2022, 11:30 AM
@User please create a directory named dashboards inside /config
k

kartik

01/10/2022, 4:38 AM
got it working... thanks folks !
šŸ‘ 3
my feedback: ā€¢ the documentation is not covering things like creating sqlite3 db, config directory creation. i went through the code to find sqlite3 dependency and its location ā€¢ the locations to these should be configurable, like using a yml file. ex - https://github.com/open-telemetry/opentelemetry-collector/blob/main/examples/k8s/otel-config.yaml#L68. For other configs as well, I have seen os.GetEnv being used around codebase, i feel viper can be used here have made a PR[link] for point 1, and open to discuss point 2
p

Pranay

01/10/2022, 12:33 PM
thanks @User for the feedback and raising the PR. Have added @User as a reviewer for the PR
k

kartik

01/11/2022, 4:48 AM
ok
a

Ankit

01/20/2022, 12:39 PM
I have the same issue @User, your make file is working , how did you setup the sqlite as it is giving me ?
Copy code
FATAL	query-service/main.go:43	Failed to create server{error 26 0  Error in creating dashboard table: %!(EXTRA string=attempt to write a readonly database)}
a

Ankit Nayan

01/20/2022, 2:19 PM
@User you need to change https://github.com/SigNoz/signoz/blob/main/pkg/query-service/app/server.go#L97 to use path somewhere local like
./signoz.db
All these should move to config, my bad
a

Ankit

01/20/2022, 3:18 PM
Yes , because the db directory doesn't have write access i guess now its working
3 Views