Page MenuHomeDevCentral

Upgrade to Debian Bookworm and Node 18
ClosedPublic

Authored by dereckson on Jan 6 2024, 20:31.
Tags
None
Referenced Files
F3765068: D3260.diff
Fri, Nov 22, 10:07
F3763169: D3260.id8376.diff
Thu, Nov 21, 21:19
F3763023: D3260.id8378.diff
Thu, Nov 21, 18:31
F3763022: D3260.id8376.diff
Thu, Nov 21, 18:31
F3763002: D3260.id8378.diff
Thu, Nov 21, 18:28
F3763001: D3260.id8376.diff
Thu, Nov 21, 18:28
F3762803: D3260.id.diff
Thu, Nov 21, 15:52
F3762794: D3260.id.diff
Thu, Nov 21, 15:51
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.