I have 1.2.5 version of GenieACS. It was working fine for few months, then suddenly UI stopped working. Other services work fine, just UI won’t start. If I use “genieacs-ui --ui-jwt-secret secret” then it’s fine, problem is when I try to start UI service:
genieacs-ui.service - GenieACS UI
Loaded: loaded (/etc/systemd/system/genieacs-ui.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2023-04-19 19:52:45 CEST; 21h ago
Main PID: 443 (code=exited, status=1/FAILURE)
kwi 19 19:52:42 acs-iu systemd[1]: Started GenieACS UI.
kwi 19 19:52:45 acs-iu genieacs-ui[443]: Error: No valid exports main found for '/usr/local/lib/node_modules/genieacs/node_modules/koa'
kwi 19 19:52:45 acs-iu genieacs-ui[443]: at resolveExportsTarget (internal/modules/cjs/loader.js:622:9)
kwi 19 19:52:45 acs-iu genieacs-ui[443]: at applyExports (internal/modules/cjs/loader.js:499:14)
kwi 19 19:52:45 acs-iu genieacs-ui[443]: at resolveExports (internal/modules/cjs/loader.js:548:12)
kwi 19 19:52:45 acs-iu genieacs-ui[443]: at Function.Module._findPath (internal/modules/cjs/loader.js:654:22)
kwi 19 19:52:45 acs-iu genieacs-ui[443]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:953:27)
kwi 19 19:52:45 acs-iu genieacs-ui[443]: at Function.Module._load (internal/modules/cjs/loader.js:859:27)
kwi 19 19:52:45 acs-iu genieacs-ui[443]: at Module.require (internal/modules/cjs/loader.js:1028:19)
kwi 19 19:52:45 acs-iu genieacs-ui[443]: at require (internal/modules/cjs/helpers.js:72:18)
kwi 19 19:52:45 acs-iu genieacs-ui[443]: at Object.<anonymous> (/usr/local/lib/node_modules/genieacs/bin/genieacs-ui:2:171)
kwi 19 19:52:45 acs-iu genieacs-ui[443]: at Module._compile (internal/modules/cjs/loader.js:1139:30) {
kwi 19 19:52:45 acs-iu genieacs-ui[443]: code: 'MODULE_NOT_FOUND'
kwi 19 19:52:45 acs-iu genieacs-ui[443]: }
kwi 19 19:52:45 acs-iu systemd[1]: genieacs-ui.service: Main process exited, code=exited, status=1/FAILURE
kwi 19 19:52:45 acs-iu systemd[1]: genieacs-ui.service: Failed with result 'exit-code'.
I already updated node to latest. Tried many tricks I found on Google, no luck.