Your setup information
Fresh Debian 11.6
nodejs 14.21.03
Nightscout 14.2.6 (head)
The error
Nightscout does not start, giving the following error:
Error: ENOENT: no such file or directory, open './translations/undefined.json'
at Object.openSync (fs.js:498:3)
at Object.readFileSync (fs.js:394:35)
at Function.loadLocalization (/opt/nightscout/cgm-remote-monitor/lib/language.js:149:18)
at Object.<anonymous> (/opt/nightscout/cgm-remote-monitor/lib/server/server.js:33:10)
at Module._compile (internal/modules/cjs/loader.js:1114:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
at Module.load (internal/modules/cjs/loader.js:979:32)
at Function.Module._load (internal/modules/cjs/loader.js:819:12)
at Module.require (internal/modules/cjs/loader.js:1003:19)
at require (internal/modules/cjs/helpers.js:107:18) {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: './translations/undefined.json'
I symlinked translations/fr_FR.json to translations/undefined.json and now it works. With the same install procedure, I didn't get this issue on Ubuntu 22.04.
Additional context
I have no idea how the language is detected but if it helps, here are the locale for Debian (bug) and Ubuntu (works):
Debian:
Your setup information Fresh Debian 11.6 nodejs 14.21.03 Nightscout 14.2.6 (head)
The error Nightscout does not start, giving the following error:
I symlinked translations/fr_FR.json to translations/undefined.json and now it works. With the same install procedure, I didn't get this issue on Ubuntu 22.04.
Additional context I have no idea how the language is detected but if it helps, here are the locale for Debian (bug) and Ubuntu (works): Debian:
Ubuntu: