This message was deleted.
s
This message was deleted.
p
hey @User Welcome to SigNoz community 👋 @User Should be able to guide better. btw, did you try the gitpod method also?
a
getting error while building query-service @Vishal Sharma. can you please help me to resolve it.
v
@User druid is deprecated
Please build using clickhouse db commands
a
thanks vishal, Do we have documentation for that?
v
Also looks like the README file of query-service is outdated Created an issue for that: https://github.com/SigNoz/signoz/issues/740
a
I have done all these given steps, but we commenting code for frontend and backend in docker-composer,yml file, so containers of those two things are not running as of now. now how to run frontend and backend from code.
v
If you don't comment the code then you will be able to run front-end too Also if you want to run front-end you can read through contributing to frontend from same document
a
okay. and for backed ? after using build command i can't run the executable. getting database error. same error as the screen shot i have given above in this thread.
@User Can you plz help me build query-service!
v
Hey @User You have to update L33 in constants.go of query-service to
"./signoz.db"
a
signoz.db located at same path written in constant.go file, but still tried modifying it. now getting another error, FATAL query-service/main.go:47 Failed to create server{error 26 0 Storage type: is not supported in query service}
v
Did you use clickhouse?
Send the command which you used to run query-service
a
to build executable => build -o build/query-service main.go to run executable file => build/query-service
v
Use below commands to run query service
ClickHouseUrl=<tcp://localhost:9000> STORAGE=clickhouse go run main.go
Also clickhouse should be running on your machine
a
ERROR clickhouseReader/reader.go:92 error connecting to primary db: dial tcp 127.0.0.19000 connect: connection refused
@User now how to resolve above error ?
v
I don’t see any errors
a
ERROR clickhouseReader/reader.go:92 error connecting to primary db: dial tcp 127.0.0.19000 connect: connection refused this one
v
clickhouse should be running on your machine
a
docker container is running, wouldn't it work ?
v
Yeah that should also work
But you have to expose 9000 port of clickhouse container
a
how can i do that, can you please help. i am newbie.
a
sorry for diturbing you, but again getting errors
v
Use below commands to run query service
ClickHouseUrl=<tcp://localhost:9000|tcp://localhost:9000> STORAGE=clickhouse go run main.go
a
using the same command, still getting error.
v
The error shows that you are passing 9001 port, please use 9000 port or expose 9001 port to use it
a
added
expose:
- 9001
still getting error.
v
Copy code
expose:
      - 9000
    ports:
      - 9001:9000
Use ^
a
ClickHouseUrl=tcp://localhost:9000 STORAGE=clickhouse go run main.go gives clickhouseReader/reader.go:91 error connecting to primary db: dial tcp 127.0.0.19000 connect: connection refused and ClickHouseUrl=tcp://localhost:9001 STORAGE=clickhouse go run main.go gives ERROR dashboards/provision.go:31 Creating Dashboards: Error in unmarshalling json from file: .gitkeep unexpected end of JSON input
v
2nd one error is expected
a
could it be resolved ?
v
No let it be, it’s just a warning
a
okay, thanks for continuous support Vishal.
👍 1
2022-02-24T120005.258+0530 INFO app/server.go:239 Starting HTTP server{port 11 8080 <nil>} {addr 15 0 0.0.0.0:8080 <nil>} ts=2022-02-24T063008.959224126Z caller=log.go:168 component=notifier level=error alertmanager=http://127.0.0.1:9093/api/v1/alerts count=0 msg="Error sending alert" err="Post \"http://127.0.0.1:9093/api/v1/alerts\": dial tcp 127.0.0.19093 connect: connection refused" will this make an issue to me in future ?
v
That’s related to alert service
If you are not contributing to alert service then it’s fine