hi folks, I am trying signoz for first time and ha...
# contributing
k
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
hey @User welcome to SigNoz community šŸ‘‹ @User should be able to help you with this
v
@User please create a directory named dashboards inside /config
k
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
thanks @User for the feedback and raising the PR. Have added @User as a reviewer for the PR
k
ok
a
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
@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
Yes , because the db directory doesn't have write access i guess now its working