I'm getting some issues trying to run Query Servic...
# support
c
I'm getting some issues trying to run Query Service locally since updating to v0.72 OSS version, running locally with compiled version (not via Docker). Get the following error:
Copy code
{
  "level": "\u001b[31mFATAL\u001b[0m",
  "timestamp": "2025-02-18T15:53:09.362Z",
  "caller": "query-service/main.go:98",
  "msg": "Failed to create signoz struct",
  "error": "cannot access web directory: stat /etc/signoz/web: no such file or directory",
  "stacktrace": "main.go:98\nruntime.main\n\t/opt/homebrew/Cellar/go/1.23.1/libexec/src/runtime/proc.go:272"
}
If I create the folder manually I then get
Copy code
{"level":"\u001b[31mFATAL\u001b[0m","timestamp":"2025-02-19T09:30:14.581Z","caller":"query-service/main.go:98","msg":"Failed to create signoz struct","error":"cannot access \"index.html\" in web directory: stat /etc/signoz/web/index.html: no such file or directory
Also tried running with SIGNOZ_WEB_ENABLED=false which was suggested elsewhere - can't see where this flag would be picked up from in the codebase though? Only reference seems to be in tests.
I can see there's something in the
ee
version of the dockerfile to copy the web files into this folder, but is this relevant for OSS version?
n
can you set this env variable
"SIGNOZ_WEB_ENABLED": false,
c
Hi Nitya, I've tried setting that variable but still have the same issue. I can't see anywhere in the OSS v0.72 codebase other than in config_test, so not sure where this variable would be consumed?
n
can you just create this folder
/etc/signoz/web
and see if the issue still persist ?
c
Hi @nitya-signoz, I tried creating the folder manually and now get:
{"level":"\u001b[31mFATAL\u001b[0m","timestamp":"2025-02-19T09:30:09.622Z","caller":"query-service/main.go:98","msg":"Failed to create signoz struct","error":"cannot access \"index.html\" in web directory
c
Thanks for your help Nitya, seems to be working now