Page MenuHomeDevCentral

Upgrade to Debian Bookworm and Node 18
ClosedPublic

Authored by dereckson on Jan 6 2024, 20:31.
Tags
None
Referenced Files
F3597941: D3260.diff
Fri, Sep 27, 19:20
Unknown Object (File)
Thu, Sep 12, 00:50
Unknown Object (File)
Thu, Sep 12, 00:50
Unknown Object (File)
Thu, Sep 12, 00:45
Unknown Object (File)
Thu, Sep 12, 00:42
Unknown Object (File)
Fri, Sep 6, 01:44
Unknown Object (File)
Sat, Aug 31, 16:13
Unknown Object (File)
Aug 22 2024, 08:57
Subscribers
None

Details

Test Plan

Build and deploy pad.nasqueron.org image

Diff Detail

Repository
rDETHER Docker image for Etherpad
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson created this revision.

Other changes seem needed:

  • Etherpad needs to be launched from src/ instead of the module according the run.sh script shipped with Etherpad: CMD ["node", "src/node/server.js"]
  • An error with log4js is then immediately thrown
/opt/etherpad-lite/node_modules/log4js/lib/log4js.js:316
      throw new Error(
      ^

Error: Problem reading log4js config {
  appenders: { console: { type: 'console' } },
  categories: { default: { appenders: [Array], level: 'INFO' } }
}. Error was "appenderList.forEach is not a function" (TypeError: appenderList.forEach is not a function
    at configureAppenders (/opt/etherpad-lite/node_modules/log4js/lib/log4js.js:248:18)
    at configureOnceOff (/opt/etherpad-lite/node_modules/log4js/lib/log4js.js:308:7)
    at Object.configure (/opt/etherpad-lite/node_modules/log4js/lib/log4js.js:371:3)
    at initLogging (/opt/etherpad-lite/src/node/utils/Settings.js:61:10)
    at Object.<anonymous> (/opt/etherpad-lite/src/node/utils/Settings.js:73:1)
    at Module._compile (node:internal/modules/cjs/loader:1356:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
    at Module.load (node:internal/modules/cjs/loader:1197:32)
    at Module._load (node:internal/modules/cjs/loader:1013:12)
    at Module.require (node:internal/modules/cjs/loader:1225:19))
    at configureOnceOff (/opt/etherpad-lite/node_modules/log4js/lib/log4js.js:316:13)
    at Object.configure (/opt/etherpad-lite/node_modules/log4js/lib/log4js.js:371:3)
    at initLogging (/opt/etherpad-lite/src/node/utils/Settings.js:61:10)
    at Object.<anonymous> (/opt/etherpad-lite/src/node/utils/Settings.js:73:1)
    at Module._compile (node:internal/modules/cjs/loader:1356:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
    at Module.load (node:internal/modules/cjs/loader:1197:32)
    at Module._load (node:internal/modules/cjs/loader:1013:12)
    at Module.require (node:internal/modules/cjs/loader:1225:19)
    at require (node:internal/modules/helpers:177:18)

Node.js v18.19.0

The Etherpad projects offers a procedure to install Etherpad with npm link. That works well if we combine D3260 and D3261.

dereckson requested review of this revision.
This revision is now accepted and ready to land.Jan 7 2024, 00:15
This revision was automatically updated to reflect the committed changes.