Etherpad #1

Closed
opened 2020-09-27 00:41:53 +00:00 by sbrl · 2 comments
Owner

We've got the Docker image building, but it doesn't seem to like running. We get this error:

$ docker run -it --rm registry.service.mooncarrot.space:5000/etherpad
Ensure that all dependencies are up to date...  If this is the first time you have run Etherpad please be patient.
added 953 packages in 173.154s

┌──────────────────────────────────────────────┐
│           npm update check failed            │
│     Try running with sudo or get access      │
│     to the local update config store via     │
│ sudo chown -R $USER:$(id -gn $USER) /.config │
└──────────────────────────────────────────────┘
Clearing minified cache...
Starting Etherpad...
All relative paths will be interpreted relative to the identified Etherpad base dir: /srv/etherpad
Random string used for versioning assets: 3d5c0fc4
[2020-09-27 00:00:59.172] [DEBUG] AbsolutePaths - Relative path "settings.json" can be rewritten to "/srv/etherpad/settings.json"
[2020-09-27 00:00:59.175] [DEBUG] AbsolutePaths - Relative path "credentials.json" can be rewritten to "/srv/etherpad/credentials.json"
settings loaded from: /srv/etherpad/settings.json
No credentials file found in /srv/etherpad/credentials.json. Ignoring.
[2020-09-27 00:00:59.207] [INFO] console - Using skin "colibris" in dir: /srv/etherpad/src/static/skins/colibris
[2020-09-27 00:00:59.208] [INFO] console - Session key file "/srv/etherpad/SESSIONKEY.txt" not found. Creating with random contents.
internal/fs/utils.js:298
    throw err;
    ^

Error: EACCES: permission denied, open '/srv/etherpad/SESSIONKEY.txt'
    at Object.openSync (fs.js:465:3)
    at Object.writeFileSync (fs.js:1416:35)
    at Object.reloadSettings (/srv/etherpad/src/node/utils/Settings.js:813:10)
    at Object.<anonymous> (/srv/etherpad/src/node/utils/Settings.js:836:9)
    at Module._compile (internal/modules/cjs/loader.js:1251:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1272:10)
    at Module.load (internal/modules/cjs/loader.js:1100:32)
    at Function.Module._load (internal/modules/cjs/loader.js:962:14)
    at Module.require (internal/modules/cjs/loader.js:1140:19)
    at require (internal/modules/cjs/helpers.js:75:18) {
  errno: -13,
  syscall: 'open',
  code: 'EACCES',
  path: '/srv/etherpad/SESSIONKEY.txt'
}
We've got the Docker image building, but it doesn't seem to like running. We get this error: ``` $ docker run -it --rm registry.service.mooncarrot.space:5000/etherpad Ensure that all dependencies are up to date... If this is the first time you have run Etherpad please be patient. added 953 packages in 173.154s ┌──────────────────────────────────────────────┐ │ npm update check failed │ │ Try running with sudo or get access │ │ to the local update config store via │ │ sudo chown -R $USER:$(id -gn $USER) /.config │ └──────────────────────────────────────────────┘ Clearing minified cache... Starting Etherpad... All relative paths will be interpreted relative to the identified Etherpad base dir: /srv/etherpad Random string used for versioning assets: 3d5c0fc4 [2020-09-27 00:00:59.172] [DEBUG] AbsolutePaths - Relative path "settings.json" can be rewritten to "/srv/etherpad/settings.json" [2020-09-27 00:00:59.175] [DEBUG] AbsolutePaths - Relative path "credentials.json" can be rewritten to "/srv/etherpad/credentials.json" settings loaded from: /srv/etherpad/settings.json No credentials file found in /srv/etherpad/credentials.json. Ignoring. [2020-09-27 00:00:59.207] [INFO] console - Using skin "colibris" in dir: /srv/etherpad/src/static/skins/colibris [2020-09-27 00:00:59.208] [INFO] console - Session key file "/srv/etherpad/SESSIONKEY.txt" not found. Creating with random contents. internal/fs/utils.js:298 throw err; ^ Error: EACCES: permission denied, open '/srv/etherpad/SESSIONKEY.txt' at Object.openSync (fs.js:465:3) at Object.writeFileSync (fs.js:1416:35) at Object.reloadSettings (/srv/etherpad/src/node/utils/Settings.js:813:10) at Object.<anonymous> (/srv/etherpad/src/node/utils/Settings.js:836:9) at Module._compile (internal/modules/cjs/loader.js:1251:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1272:10) at Module.load (internal/modules/cjs/loader.js:1100:32) at Function.Module._load (internal/modules/cjs/loader.js:962:14) at Module.require (internal/modules/cjs/loader.js:1140:19) at require (internal/modules/cjs/helpers.js:75:18) { errno: -13, syscall: 'open', code: 'EACCES', path: '/srv/etherpad/SESSIONKEY.txt' } ```
Author
Owner

Moving the chown call should fix the problem - we just need to wait for the container to rebuild.

Moving the `chown` call should fix the problem - we just need to wait for the container to rebuild.
Author
Owner

Fixed, and it works :D

Fixed, and it works :D
sbrl closed this issue 2020-09-28 01:13:51 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: sbrl/docker-images#1
No description provided.