The signoz docker installation fails. panic: runti...
# support
p
The signoz docker installation fails. panic: runtime error: invalid memory address or nil pointer reference problem occurs.
Full log
Copy code
2022-02-21T01:05:23.608Z	INFO	app/server.go:108	Using ClickHouse as datastore ...
ts=2022-02-21T01:05:23.618716566Z caller=log.go:168 level=info msg="Loading configuration file" filename=/root/config/prometheus.yml
ts=2022-02-21T01:05:23.624616588Z caller=log.go:168 component="discovery manager notify" level=debug msg="Starting provider" provider=string/0 subs=[c60b65a321f2f989706fa3a7a58893fc]
ts=2022-02-21T01:05:23.624699456Z caller=log.go:168 level=info msg="Completed loading of configuration file" filename=/root/config/prometheus.yml
ts=2022-02-21T01:05:23.624783804Z caller=log.go:168 component="discovery manager notify" level=debug msg="discoverer channel closed" provider=string/0
2022-02-21T01:05:23.624Z	INFO	clickhouseReader/reader.go:559	SELECT id, updated_at, data FROM rules
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0xa2d328]

goroutine 1 [running]:
<http://go.signoz.io/query-service/telemetry.getOutboundIP(0x0|go.signoz.io/query-service/telemetry.getOutboundIP(0x0>, 0x0)
	/go/src/github.com/signoz/signoz/pkg/query-service/telemetry/telemetry.go:64 +0x68
<http://go.signoz.io/query-service/telemetry.createTelemetry()|go.signoz.io/query-service/telemetry.createTelemetry()>
	/go/src/github.com/signoz/signoz/pkg/query-service/telemetry/telemetry.go:39 +0x8c
<http://go.signoz.io/query-service/telemetry.GetInstance.func1()|go.signoz.io/query-service/telemetry.GetInstance.func1()>
	/go/src/github.com/signoz/signoz/pkg/query-service/telemetry/telemetry.go:151 +0x20
sync.(*Once).doSlow(0x3ac50c0, 0x24f3fa0)
	/usr/local/go/src/sync/once.go:66 +0xec
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:57
<http://go.signoz.io/query-service/telemetry.GetInstance(0x0)|go.signoz.io/query-service/telemetry.GetInstance(0x0)>
	/go/src/github.com/signoz/signoz/pkg/query-service/telemetry/telemetry.go:150 +0x59
<http://go.signoz.io/query-service/dao/sqlite.(*ModelDaoSqlite).initializeUserPreferences|go.signoz.io/query-service/dao/sqlite.(*ModelDaoSqlite).initializeUserPreferences>(0xc000012068, 0xc000012068, 0xc00019e010)
	/go/src/github.com/signoz/signoz/pkg/query-service/dao/sqlite/connection.go:50 +0x26
<http://go.signoz.io/query-service/dao/sqlite.InitDB(0x242a253|go.signoz.io/query-service/dao/sqlite.InitDB(0x242a253>, 0x19, 0x44066e, 0xc0007759c8, 0x463050)
	/go/src/github.com/signoz/signoz/pkg/query-service/dao/sqlite/connection.go:40 +0x12a
<http://go.signoz.io/query-service/dao.FactoryDao(0x240a576|go.signoz.io/query-service/dao.FactoryDao(0x240a576>, 0x6, 0xc0001a4120, 0x0, 0xc00067fae0)
	/go/src/github.com/signoz/signoz/pkg/query-service/dao/factory.go:17 +0x107
<http://go.signoz.io/query-service/app.(*Server).createHTTPServer(0xc0006ba780|go.signoz.io/query-service/app.(*Server).createHTTPServer(0xc0006ba780>, 0xc0006ba780, 0xc0000fa3c0, 0x20c7160)
	/go/src/github.com/signoz/signoz/pkg/query-service/app/server.go:116 +0x2a1
<http://go.signoz.io/query-service/app.NewServer(0xc0006a0d90|go.signoz.io/query-service/app.NewServer(0xc0006a0d90>, 0xc0006a0d90, 0x8, 0xc0006a0be0)
	/go/src/github.com/signoz/signoz/pkg/query-service/app/server.go:83 +0x96
main.main()
	/go/src/github.com/signoz/signoz/pkg/query-service/main.go:45 +0x111
2022-02-21T01:18:08.296Z	INFO	version/version.go:43

SigNoz version   : v0.6.1
Commit SHA-1     : 5510c67
Commit timestamp : 2022-02-11T10:54:53Z
Branch           : HEAD
Go version       : go1.14.15

For SigNoz Official Documentation,  visit <https://signoz.io/docs>
For SigNoz Community Slack,         visit <http://signoz.io/slack>
For discussions about SigNoz,       visit <https://community.signoz.io>

Licensed under the MIT License.
Copyright 2022 SigNoz


2022-02-21T01:18:08.299Z	INFO	app/server.go:108	Using ClickHouse as datastore ...
ts=2022-02-21T01:18:08.307484162Z caller=log.go:168 level=info msg="Loading configuration file" filename=/root/config/prometheus.yml
ts=2022-02-21T01:18:08.312844364Z caller=log.go:168 component="discovery manager notify" level=debug msg="Starting provider" provider=string/0 subs=[c60b65a321f2f989706fa3a7a58893fc]
ts=2022-02-21T01:18:08.312945963Z caller=log.go:168 level=info msg="Completed loading of configuration file" filename=/root/config/prometheus.yml
ts=2022-02-21T01:18:08.313087975Z caller=log.go:168 component="discovery manager notify" level=debug msg="discoverer channel closed" provider=string/0
2022-02-21T01:18:08.313Z	INFO	clickhouseReader/reader.go:559	SELECT id, updated_at, data FROM rules
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0xa2d328]

goroutine 1 [running]:
<http://go.signoz.io/query-service/telemetry.getOutboundIP(0x0|go.signoz.io/query-service/telemetry.getOutboundIP(0x0>, 0x0)
	/go/src/github.com/signoz/signoz/pkg/query-service/telemetry/telemetry.go:64 +0x68
<http://go.signoz.io/query-service/telemetry.createTelemetry()|go.signoz.io/query-service/telemetry.createTelemetry()>
	/go/src/github.com/signoz/signoz/pkg/query-service/telemetry/telemetry.go:39 +0x8c
<http://go.signoz.io/query-service/telemetry.GetInstance.func1()|go.signoz.io/query-service/telemetry.GetInstance.func1()>
	/go/src/github.com/signoz/signoz/pkg/query-service/telemetry/telemetry.go:151 +0x20
sync.(*Once).doSlow(0x3ac50c0, 0x24f3fa0)
	/usr/local/go/src/sync/once.go:66 +0xec
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:57
<http://go.signoz.io/query-service/telemetry.GetInstance(0x0)|go.signoz.io/query-service/telemetry.GetInstance(0x0)>
	/go/src/github.com/signoz/signoz/pkg/query-service/telemetry/telemetry.go:150 +0x59
<http://go.signoz.io/query-service/dao/sqlite.(*ModelDaoSqlite).initializeUserPreferences|go.signoz.io/query-service/dao/sqlite.(*ModelDaoSqlite).initializeUserPreferences>(0xc0001a2978, 0xc0001a2978, 0xc00019e010)
	/go/src/github.com/signoz/signoz/pkg/query-service/dao/sqlite/connection.go:50 +0x26
<http://go.signoz.io/query-service/dao/sqlite.InitDB(0x242a253|go.signoz.io/query-service/dao/sqlite.InitDB(0x242a253>, 0x19, 0x44066e, 0xc00091f9c8, 0x463050)
	/go/src/github.com/signoz/signoz/pkg/query-service/dao/sqlite/connection.go:40 +0x12a
<http://go.signoz.io/query-service/dao.FactoryDao(0x240a576|go.signoz.io/query-service/dao.FactoryDao(0x240a576>, 0x6, 0xc00050a000, 0x0, 0xc0006bfae0)
	/go/src/github.com/signoz/signoz/pkg/query-service/dao/factory.go:17 +0x107
<http://go.signoz.io/query-service/app.(*Server).createHTTPServer(0xc0005230c0|go.signoz.io/query-service/app.(*Server).createHTTPServer(0xc0005230c0>, 0xc0005230c0, 0xc0000e65a0, 0x20c7160)
	/go/src/github.com/signoz/signoz/pkg/query-service/app/server.go:116 +0x2a1
<http://go.signoz.io/query-service/app.NewServer(0xc0004e3ab0|go.signoz.io/query-service/app.NewServer(0xc0004e3ab0>, 0xc0004e3ab0, 0x8, 0xc0004e38c0)
	/go/src/github.com/signoz/signoz/pkg/query-service/app/server.go:83 +0x96
main.main()
	/go/src/github.com/signoz/signoz/pkg/query-service/main.go:45 +0x111
p
@User Do you have insights on why this could be happening?
@User what is the storage/RAM of the machine in which you are running this? Is this error message at the time of installation or after SigNoz has run successfully for some time?
p
@User This is an error that occurs when executing after installing the query service with a docker.
I installed it on ubuntu 18.04vm It’s 4 Core / 4 GiB memory.
Do i need external communication in the process of implementing it? Unauthorized external http and https communication is blocked due to internal policy.
p
let me get this checked and get back to you. I am guessing this may be a potential reason
p
allright, thank you
@User It was a problem with our proxy setting. query-service puts http_proxy and https_proxy settings as environmental variables, and it runs normally.
p
i see. so is it working for you now? @User
p
yes, working
p
πŸ‘
Can you also share in a bit more detail on how you made it working - might be useful for folks who visit the community later with similar issues @User πŸ™‚
p
In the docker-compose.yaml file, modify the query-service content as follows.
Copy code
query-service:
    image: signoz/query-service:0.6.1
    container_name: query-service
    command: ["-config=/root/config/prometheus.yml"]
    volumes:
      - ./prometheus.yml:/root/config/prometheus.yml
      - ../dashboards:/root/config/dashboards
      - ./data/signoz/:/var/lib/signoz/
    environment:
      - ClickHouseUrl=<tcp://clickhouse:9000>
      - STORAGE=clickhouse
      - GODEBUG=netdns=go
      - TELEMETRY_ENABLED=true
      - HTTP_PROXY=http://[domain]:[port]
      - HTTPS_PROXY=http://[domain]:[port]
    depends_on:
      clickhouse:
        condition: service_healthy
just add two line
Copy code
- HTTP_PROXY=http://[domain]:[port]
      - HTTPS_PROXY=http://[domain]:[port]
p
got it. πŸ‘