Hello,
after updating my Cryptpad instance (Node.js, npm) from 2026.5.1 → 2026.10.0 going for the new two-fold config files by copying the values as per step 4 in the new upgrade procedure, starting Cryptad throws a spawn error:
supervisorctl start cryptpad
cryptpad: ERROR (spawn error)
The supervisord.log file shows:
2026-10-25 19:31:01,054 DEBG 'cryptpad' stderr output:
TypeError: Invalid URL
at new URL (node:internal/url:818:25)
at Object.init (/var/www/virtual/ion/cryptpad/node_modules/cryptpad-server/build/core.js:8396:22)
at Object.startServers [as start] (/var/www/virtual/ion/cryptpad/node_modules/cryptpad-server/build/core.js:9074:21)
at process.<anonymous> (/var/www/virtual/ion/cryptpad/node_modules/cryptpad-server/build/core.js:9200:17)
at process.emit (node:events:519:28)
at emit (node:internal/child_process:949:14)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
code: 'ERR_INVALID_URL',
input: 'undefined'
}
2026-10-25 19:31:01,054 DEBG 'cryptpad' stderr output:
TERMINATING
2026-10-25 19:31:01,059 DEBG 'cryptpad' stderr output:
Child process stopped due to error.
2026-10-25 19:31:01,059 DEBG 'cryptpad' stderr output:
1
2026-10-25 19:31:01,065 DEBG fd 7 closed, stopped monitoring <POutputDispatcher at 139684315507456 for <Subprocess at 139684315701544 with name cryptpad in state STARTING> (stdout)>
2026-10-25 19:31:01,065 DEBG fd 12 closed, stopped monitoring <POutputDispatcher at 139684315198960 for <Subprocess at 139684315701544 with name cryptpad in state STARTING> (stderr)>
2026-10-25 19:31:01,065 INFO exited: cryptpad (exit status 1; not expected)
2026-10-25 19:31:01,065 DEBG received SIGCLD indicating a child quit
2026-10-25 19:31:04,071 INFO spawned: 'cryptpad' with pid 29208
2026-10-25 19:31:04,375 DEBG 'cryptpad' stderr output:
TypeError: Invalid URL
at new URL (node:internal/url:818:25)
at Object.init (/var/www/virtual/ion/cryptpad/node_modules/cryptpad-server/build/core.js:8396:22)
at Object.startServers [as start] (/var/www/virtual/ion/cryptpad/node_modules/cryptpad-server/build/core.js:9074:21)
at process.<anonymous> (/var/www/virtual/ion/cryptpad/node_modules/cryptpad-server/build/core.js:9200:17)
at process.emit (node:events:519:28)
at emit (node:internal/child_process:949:14)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
code: 'ERR_INVALID_URL',
input: 'undefined'
}
2026-10-25 19:31:04,375 DEBG 'cryptpad' stderr output:
TERMINATING
2026-10-25 19:31:04,382 DEBG 'cryptpad' stderr output:
Child process stopped due to error.
2026-10-25 19:31:04,382 DEBG 'cryptpad' stderr output:
1
2026-10-25 19:31:04,388 DEBG fd 7 closed, stopped monitoring <POutputDispatcher at 139684315974112 for <Subprocess at 139684315701544 with name cryptpad in state STARTING> (stdout)>
2026-10-25 19:31:04,388 DEBG fd 12 closed, stopped monitoring <POutputDispatcher at 139684315198960 for <Subprocess at 139684315701544 with name cryptpad in state STARTING> (stderr)>
2026-10-25 19:31:04,390 INFO exited: cryptpad (exit status 1; not expected)
2026-10-25 19:31:04,390 DEBG received SIGCLD indicating a child quit
2026-10-25 19:31:05,392 INFO gave up: cryptpad entered FATAL state, too many start retries too quickly
My config.js settings are (vanilla settings not stated for brevity):
httpUnsafeOrigin: 'https://redacted.tld/',
httpAddress: '::',
httpPort: 10000,
httpSafePort: 80,
adminKeys: [
"[redacted]",
My ìnfra.js` looks like this:
module.exports = {
"public": {
// Public URL of the instance (used for Content-Security-Policy)
origin: "https://redacted.tld/",
// Sandbox URL of the instance
// sandboxOrigin: "http://localhost:3001",
// Address and port of the nodejs HTTP server
httpHost: '::',
httpPort: 10000,
httpSafePort: 80,
// (Optional) API server URL if hosted on a different domain (ws and http)
// externalWebsocketURL: undefined,
// fileHost: undefined,
// (Optional) httpServerId only useful for multi-server cases
httpServerId: "",
},
// Configure the topology here. Add or remove nodes on each level
// depending on your instance usage.
// "host" and "port" correspond to the nodejs HTTP server of each node
// "url" is optional and can be set if your nodes are on different machines.
// They must be able to reach each other from this URL
// "serverId" is optional and is only useful for multi-server cases
"front": [
{
host: "localhost",
port: 3010, // Public http and websocket port
},
{
host: "localhost",
port: 3011,
}
],
"core": [
{
host: "localhost",
port: 3020, // Internal websocket between all nodes
},
{
host: "localhost",
port: 3021,
}
],
"storage": [
{
host: "localhost",
port: 3030, // Public port to serve "blob", "block", etc.
wsPort: 3040, // Internal websocket between storage nodes
},
{
host: "localhost",
port: 3031,
wsPort: 3041,
}
]
};
Using the previous unchanged config.js does not solve the problem but does not create a spawn error but accessing the URL gets a 502 and the supervisord.log file shows:
2026-10-25 19:27:39,478 DEBG 'cryptpad' stderr output:
TERMINATING
2026-10-25 19:27:39,660 DEBG 'cryptpad' stderr output:
[2026-10-25T18:27:39.659Z] UNCAUGHT EXCEPTION IN HTTP WORKER
2026-10-25 19:27:39,661 DEBG 'cryptpad' stderr output:
Error: bind EACCES :::80
at listenOnPrimaryHandle (node:net:2022:18)
at rr (node:internal/cluster/child:163:12)
at Worker.<anonymous> (node:internal/cluster/child:113:7)
at process.onInternalMessage (node:internal/cluster/utils:49:5)
at process.emit (node:events:531:35)
at emit (node:internal/child_process:949:14)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
errno: -13,
code: 'EACCES',
syscall: 'bind',
address: '::',
port: 80
}
TERMINATING
While I understand that there is a misconfiguration somewhere along the ports, I can't pinpoint exactly which part of any of the two files is the problem. Could someone pls help?
Thankies!