OH 3.3.0 Frontail not Starting after fresh installation

After latest update, it is now a “cookie” module issue…


openhabian@openhabian:~ $ systemctl status frontail.service
● frontail.service - Frontail openHAB instance, reachable at http://openhabian:9001
     Loaded: loaded (/etc/systemd/system/frontail.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2023-09-19 08:19:07 CEST; 24h ago
       Docs: https://github.com/mthenw/frontail
    Process: 5382 ExecStart=/usr/lib/node_modules/frontail/bin/frontail --disable-usage-stats --ui-highlight --ui-highl>   Main PID: 5382 (code=exited, status=1/FAILURE)
        CPU: 539ms

Sep 19 08:19:07 openhabian systemd[1]: frontail.service: Failed with result 'exit-code'.
Sep 19 08:19:07 openhabian systemd[1]: frontail.service: Scheduled restart job, restart counter is at 4.
Sep 19 08:19:07 openhabian systemd[1]: Stopped Frontail openHAB instance, reachable at http://openhabian:9001.
Sep 19 08:19:07 openhabian systemd[1]: frontail.service: Start request repeated too quickly.
Sep 19 08:19:07 openhabian systemd[1]: frontail.service: Failed with result 'exit-code'.
Sep 19 08:19:07 openhabian systemd[1]: Failed to start Frontail openHAB instance, reachable at http://openhabian:9001.

openhabian@openhabian:~ $ sudo journalctl -u frontail
[sudo] password for openhabian:
-- Journal begins at Thu 2023-09-14 12:38:40 CEST, ends at Wed 2023-09-20 08:45:54 CEST. --
Sep 19 07:21:19 openhabian systemd[1]: Started Frontail openHAB instance, reachable at http://openhabian:9001.
Sep 19 07:21:21 openhabian frontail[8201]: node:internal/modules/cjs/loader:1031
Sep 19 07:21:21 openhabian frontail[8201]:   throw err;
Sep 19 07:21:21 openhabian frontail[8201]:   ^
Sep 19 07:21:21 openhabian frontail[8201]: Error: Cannot find module 'cookie'
Sep 19 07:21:21 openhabian frontail[8201]: Require stack:
Sep 19 07:21:21 openhabian frontail[8201]: - /opt/frontail/index.js
Sep 19 07:21:21 openhabian frontail[8201]: - /opt/frontail/bin/frontail
Sep 19 07:21:21 openhabian frontail[8201]:     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:10>Sep 19 07:21:21 openhabian frontail[8201]:     at Function.Module._load (node:internal/modules/cjs/loader:873:27)
Sep 19 07:21:21 openhabian frontail[8201]:     at Module.require (node:internal/modules/cjs/loader:1100:19)
Sep 19 07:21:21 openhabian frontail[8201]:     at require (node:internal/modules/cjs/helpers:119:18)
Sep 19 07:21:21 openhabian frontail[8201]:     at Object.<anonymous> (/opt/frontail/index.js:3:16)
Sep 19 07:21:21 openhabian frontail[8201]:     at Module._compile (node:internal/modules/cjs/loader:1198:14)
Sep 19 07:21:21 openhabian frontail[8201]:     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:>Sep 19 07:21:21 openhabian frontail[8201]:     at Module.load (node:internal/modules/cjs/loader:1076:32)
Sep 19 07:21:21 openhabian frontail[8201]:     at Function.Module._load (node:internal/modules/cjs/loader:911:12)
Sep 19 07:21:21 openhabian frontail[8201]:     at Module.require (node:internal/modules/cjs/loader:1100:19) {
Sep 19 07:21:21 openhabian frontail[8201]:   code: 'MODULE_NOT_FOUND',
Sep 19 07:21:21 openhabian frontail[8201]:   requireStack: [ '/opt/frontail/index.js', '/opt/frontail/bin/frontail' ]
Sep 19 07:21:21 openhabian frontail[8201]: }
Sep 19 07:21:21 openhabian systemd[1]: frontail.service: Main process exited, code=exited, status=1/FAILURE
Sep 19 07:21:21 openhabian systemd[1]: frontail.service: Failed with result 'exit-code'.
Sep 19 07:21:21 openhabian systemd[1]: frontail.service: Scheduled restart job, restart counter is at 1.
Sep 19 07:21:21 openhabian systemd[1]: Stopped Frontail openHAB instance, reachable at http://openhabian:9001.
Sep 19 07:21:21 openhabian systemd[1]: Started Frontail openHAB instance, reachable at http://openhabian:9001.
Sep 19 07:21:22 openhabian frontail[8220]: node:internal/modules/cjs/loader:1031
Sep 19 07:21:22 openhabian frontail[8220]:   throw err;
Sep 19 07:21:22 openhabian frontail[8220]:   ^
Sep 19 07:21:22 openhabian frontail[8220]: Error: Cannot find module 'cookie'
Sep 19 07:21:22 openhabian frontail[8220]: Require stack:
Sep 19 07:21:22 openhabian frontail[8220]: - /opt/frontail/index.js
Sep 19 07:21:22 openhabian frontail[8220]: - /opt/frontail/bin/frontail
Sep 19 07:21:22 openhabian frontail[8220]:     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:10>Sep 19 07:21:22 openhabian frontail[8220]:     at Function.Module._load (node:internal/modules/cjs/loader:873:27)
Sep 19 07:21:22 openhabian frontail[8220]:     at Module.require (node:internal/modules/cjs/loader:1100:19)
Sep 19 07:21:22 openhabian frontail[8220]:     at require (node:internal/modules/cjs/helpers:119:18)
Sep 19 07:21:22 openhabian frontail[8220]:     at Object.<anonymous> (/opt/frontail/index.js:3:16)
Sep 19 07:21:22 openhabian frontail[8220]:     at Module._compile (node:internal/modules/cjs/loader:1198:14)
Sep 19 07:21:22 openhabian frontail[8220]:     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:>Sep 19 07:21:22 openhabian frontail[8220]:     at Module.load (node:internal/modules/cjs/loader:1076:32)
Sep 19 07:21:22 openhabian frontail[8220]:     at Function.Module._load (node:internal/modules/cjs/loader:911:12)
Sep 19 07:21:22 openhabian frontail[8220]:     at Module.require (node:internal/modules/cjs/loader:1100:19) {
Sep 19 07:21:22 openhabian frontail[8220]:   code: 'MODULE_NOT_FOUND',
Sep 19 07:21:22 openhabian frontail[8220]:   requireStack: [ '/opt/frontail/index.js', '/opt/frontail/bin/frontail' ]
Sep 19 07:21:22 openhabian frontail[8220]: }
Sep 19 07:21:22 openhabian systemd[1]: frontail.service: Main process exited, code=exited, status=1/FAILURE
Sep 19 07:21:22 openhabian systemd[1]: frontail.service: Failed with result 'exit-code'.
Sep 19 07:21:22 openhabian systemd[1]: frontail.service: Scheduled restart job, restart counter is at 2.
Sep 19 07:21:22 openhabian systemd[1]: Stopped Frontail openHAB instance, reachable at http://openhabian:9001.
Sep 19 07:21:22 openhabian systemd[1]: Started Frontail openHAB instance, reachable at http://openhabian:9001.
Sep 19 07:21:22 openhabian frontail[8227]: node:internal/modules/cjs/loader:1031
Sep 19 07:21:22 openhabian frontail[8227]:   throw err;
Sep 19 07:21:22 openhabian frontail[8227]:   ^
Sep 19 07:21:22 openhabian frontail[8227]: Error: Cannot find module 'cookie'
Sep 19 07:21:22 openhabian frontail[8227]: Require stack:
Sep 19 07:21:22 openhabian frontail[8227]: - /opt/frontail/index.js
Sep 19 07:21:22 openhabian frontail[8227]: - /opt/frontail/bin/frontail

openhabian@openhabian:~ $ npm -v
10.1.0
openhabian@openhabian:~ $ nvm  ls
       v16.20.2
->      v20.6.1
         system
default -> 20 (-> v20.6.1)
iojs -> N/A (default)
unstable -> N/A (default)
node -> stable (-> v20.6.1) (default)
stable -> 20.6 (-> v20.6.1) (default)
lts/* -> lts/hydrogen (-> N/A)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.17.0 (-> N/A)
lts/dubnium -> v10.24.1 (-> N/A)
lts/erbium -> v12.22.12 (-> N/A)
lts/fermium -> v14.21.3 (-> N/A)
lts/gallium -> v16.20.2
lts/hydrogen -> v18.17.1 (-> N/A)
openhabian@openhabian:~ $