Page MenuHomeDevCentral

Upgrade to Debian Bookworm and Node 18
ClosedPublic

Authored by dereckson on Jan 6 2024, 20:31.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 2, 04:41
Unknown Object (File)
Thu, Oct 31, 12:05
Unknown Object (File)
Sat, Oct 26, 13:45
Unknown Object (File)
Thu, Oct 24, 20:51
Unknown Object (File)
Sun, Oct 20, 14:29
Unknown Object (File)
Fri, Oct 18, 17:33
Unknown Object (File)
Oct 9 2024, 17:02
Unknown Object (File)
Oct 8 2024, 07:47
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.