Page MenuHomePhabricator

Production error/logspam: [error] Queryservice-ui can't open "/usr/share/nginx/html/custom-config.json"
Open, Needs TriagePublic

Description

The queryservice-ui spams these kind of logs every time it tries to read the non-existing custom-config.json file

This is just a hassle to have logged with since it's probably not a "real" problem and probably something we could fix in the code to make it not log this as an error.

[error] 32#32: *57975 open() "/usr/share/nginx/html/custom-config.json" failed (2: No such file or directory)

AC

  • Make these log lines not appear
  • (Optional) Fix this in the queryservice-ui code

Event Timeline

The error is triggered from here https://github.com/wbstack/queryservice-ui/blob/d31258f5c62d6ff8cecc36ddaedc4347df9c70ec/wikibase/config.js#L143

As wbstack has modified the query UI code right now it doesn't use this custom config so it should be commented out in the wbstack version I expect.

Or just comment out the error.

In the longer term it would be nice to have some more flexibility in terms of configuring the UI, IE be able to have a JS file define the config, rather than having a fixed JSON, which is what the wbstack case needs