Este mensaje contiene elementos interactivos.
# support
j
Este mensaje contiene elementos interactivos.
s
Can you share the query-service logs when you see this error?
j
how can i see the query-service log?
s
docker logs -f query-service
j
i'm seeng in the browser console this error as well
image.png
the log is big. Can i send it to a file and share this file?
s
Just share the last hundred or so lines when you access the services page
j
Like this?? net/http.HandlerFunc.ServeHTTP(0x0?, {0x1a5e8a0?, 0xc0005d3c80?}, 0xc0002c9ac0?) /usr/local/go/src/net/http/server.go:2084 +0x2f github.com/gorilla/handlers.CompressHandlerLevel.func1({0x1a5d820?, 0xc000319c00}, 0xc0006dcd00) /go/pkg/mod/github.com/gorilla/handlers@v1.5.1/compress.go:141 +0x663 net/http.HandlerFunc.ServeHTTP(0xc00077fe49?, {0x1a5d820?, 0xc000319c00?}, 0xc00023c400?) /usr/local/go/src/net/http/server.go:2084 +0x2f net/http.serverHandler.ServeHTTP({0xc000552360?}, {0x1a5d820, 0xc000319c00}, 0xc0006dcd00) /usr/local/go/src/net/http/server.go:2916 +0x43b net/http.(*conn).serve(0xc0002dfb80, {0x1a5ec90, 0xc000533980}) /usr/local/go/src/net/http/server.go:1966 +0x5d7 created by net/http.(*Server).Serve /usr/local/go/src/net/http/server.go:3071 +0x4db 2023/07/04 094436 http: panic serving 172.18.0.942342 runtime error: invalid memory address or nil pointer dereference goroutine 767 [running]: net/http.(*conn).serve.func1() /usr/local/go/src/net/http/server.go:1825 +0xbf panic({0x147eb60, 0x2356900}) /usr/local/go/src/runtime/panic.go:844 +0x258 go.signoz.io/signoz/pkg/query-service/app/clickhouseReader.(*ClickHouseReader).GetTTL(0xc0002c7200, {0x1a5ec58, 0xc0005d3f20}, 0x0?) /go/src/github.com/signoz/signoz/pkg/query-service/app/clickhouseReader/reader.go:2669 +0x341 go.signoz.io/signoz/pkg/query-service/app.(*APIHandler).getTTL(0xc0006e2100, {0x1a5d310, 0xc0005a93c8}, 0xc0006dd400) /go/src/github.com/signoz/signoz/pkg/query-service/app/http_handler.go:1587 +0xb6 go.signoz.io/signoz/pkg/query-service/app.(*AuthMiddleware).ViewAccess.func1({0x1a5d310, 0xc0005a93c8}, 0x48ff17?) /go/src/github.com/signoz/signoz/pkg/query-service/app/auth.go:46 +0x104 net/http.HandlerFunc.ServeHTTP(0x30?, {0x1a5d310?, 0xc0005a93c8?}, 0x10?) /usr/local/go/src/net/http/server.go:2084 +0x2f go.signoz.io/signoz/ee/query-service/app.loggingMiddleware.func1({0x1a5d310, 0xc0005a93c8}, 0x1a46e01?) /go/src/github.com/signoz/signoz/ee/query-service/app/server.go:279 +0xc7 net/http.HandlerFunc.ServeHTTP(0x162e589?, {0x1a5d310?, 0xc0005a93c8?}, 0x8?) /usr/local/go/src/net/http/server.go:2084 +0x2f go.signoz.io/signoz/ee/query-service/app.(*Server).analyticsMiddleware.func1({0x1a5e8a0?, 0xc0005d3ec0}, 0xdf8475801?) /go/src/github.com/signoz/signoz/ee/query-service/app/server.go:385 +0x134 net/http.HandlerFunc.ServeHTTP(0x1a5ec90?, {0x1a5e8a0?, 0xc0005d3ec0?}, 0x14?) /usr/local/go/src/net/http/server.go:2084 +0x2f go.signoz.io/signoz/ee/query-service/app.setTimeoutMiddleware.func1({0x1a5e8a0, 0xc0005d3ec0}, 0xc0006dd300) /go/src/github.com/signoz/signoz/ee/query-service/app/server.go:413 +0x2f4 net/http.HandlerFunc.ServeHTTP(0xc0006dd200?, {0x1a5e8a0?, 0xc0005d3ec0?}, 0xcc0000c0006b2dc0?) /usr/local/go/src/net/http/server.go:2084 +0x2f github.com/gorilla/mux.(*Router).ServeHTTP(0xc0006e2180, {0x1a5e8a0, 0xc0005d3ec0}, 0xc0006dd100) /go/pkg/mod/github.com/gorilla/mux@v1.8.0/mux.go:210 +0x1cf github.com/rs/cors.(*Cors).Handler.func1({0x1a5e8a0, 0xc0005d3ec0}, 0xc0006dd100) /go/pkg/mod/github.com/rs/cors@v1.8.2/cors.go:231 +0x1c4 net/http.HandlerFunc.ServeHTTP(0x0?, {0x1a5e8a0?, 0xc0005d3ec0?}, 0xc000610250?) /usr/local/go/src/net/http/server.go:2084 +0x2f github.com/gorilla/handlers.CompressHandlerLevel.func1({0x1a5d820?, 0xc000319ce0}, 0xc0006dd100) /go/pkg/mod/github.com/gorilla/handlers@v1.5.1/compress.go:141 +0x663 net/http.HandlerFunc.ServeHTTP(0xc000046139?, {0x1a5d820?, 0xc000319ce0?}, 0xc00023c400?) /usr/local/go/src/net/http/server.go:2084 +0x2f net/http.serverHandler.ServeHTTP({0xc000552750?}, {0x1a5d820, 0xc000319ce0}, 0xc0006dd100) /usr/local/go/src/net/http/server.go:2916 +0x43b net/http.(*conn).serve(0xc0002dfe00, {0x1a5ec90, 0xc000533980}) /usr/local/go/src/net/http/server.go:1966 +0x5d7 created by net/http.(*Server).Serve /usr/local/go/src/net/http/server.go:3071 +0x4db
s
Yes, There should be another collector
clickhouse-setup_otel-collector-1
running? Are you sure ClickHouse is running properly.
j
Este mensaje contiene elementos interactivos.
s
Yes, I looked at and mentioned the missing collector
clickhouse-setup_otel-collector-1
. And please make sure ClickHouse is ready to accept connections. You can check logs of clickhouse container to see if there are any errors.
j
I think, i forget something to install 2023.07.04 145041.688410 [ 268 ] {6b051028-332d-4df4-86fb-7da435258e19} <Error> TCPHandler: Code: 81. DB:Exception Database signoz_metrics doesn't exist. (UNKNOWN_DATABASE), Stack trace (when copying this message, always include the lines below): 0. DB:Exception:Exception(std: 1:basic_string<char, std: 1:char_traits<char>, std: 1:allocator<char> > const&, int, bool) @ 0xa3ef75a in /usr/bin/clickhouse 1. DB:DatabaseCatalog:assertDatabaseExistsUnlocked(std: 1:basic_string<char, std: 1:char_traits<char>, std: 1:allocator<char> > const&) const @ 0x1493e80d in /usr/bin/clickhouse 2. DB:DatabaseCatalog:getDatabase(std: 1:basic_string<char, std: 1:char_traits<char>, std: 1:allocator<char> > const&) const @ 0x149412c2 in /usr/bin/clickhouse 3. DB:Context:resolveStorageID(DB::StorageID, DB:Context:StorageNamespace) const @ 0x148cc8f6 in /usr/bin/clickhouse 4. ? @ 0x15162b47 in /usr/bin/clickhouse 5. DB::executeQuery(std: 1:basic_string<char, std: 1:char_traits<char>, std: 1:allocator<char> > const&, std: 1shared ptr&lt;DB:Context>, bool, DB:QueryProcessingStage:Enum) @ 0x151615f7 in /usr/bin/clickhouse 6. DB:TCPHandler:runImpl() @ 0x15c5946c in /usr/bin/clickhouse 7. DB:TCPHandler:run() @ 0x15c6da79 in /usr/bin/clickhouse 8. Poco:NetTCPServerConnection:start() @ 0x189db793 in /usr/bin/clickhouse 9. Poco:NetTCPServerDispatcher:run() @ 0x189dcaed in /usr/bin/clickhouse 10. Poco:PooledThread:run() @ 0x18b9f449 in /usr/bin/clickhouse 11. Poco:ThreadImpl:runnableEntry(void*) @ 0x18b9cd02 in /usr/bin/clickhouse 12. ? @ 0x7fa299004609 in ? 13. __clone @ 0x7fa298f29133 in ?
Exception: Database signoz_metrics doesn't exist. (UNKNOWN_DATABASE)
s
Restart and make sure
clickhouse-setup_otel-collector-1
container is running and this error will get fixed.
j
perfect
thnks
Este mensaje contiene elementos interactivos.
Thanks very much
a
I found the problem, signoz-clickhouse was using port 9000, the same as portainer, so I have stopped Portainer, and restart signoz-clickhouse and signoz-frontend, now is OK.