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)
Fri, Dec 6, 16:21
Unknown Object (File)
Nov 22 2024, 22:51
Unknown Object (File)
Nov 22 2024, 16:14
Unknown Object (File)
Nov 22 2024, 16:10
Unknown Object (File)
Nov 22 2024, 10:07
Unknown Object (File)
Nov 21 2024, 21:19
Unknown Object (File)
Nov 21 2024, 18:31
Unknown Object (File)
Nov 21 2024, 18:31
Subscribers
None

Details

Test Plan

Build and deploy pad.nasqueron.org image

Diff Detail

Repository
rDETHER Docker image for Etherpad
Lint
Lint Passed
Unit
No Test Coverage
Branch
main
Build Status
Buildable 5147
Build 5428: arc lint + arc unit

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.