Can't install Etherpad

What type of hardware are you using: Bare Metal
What YunoHost version are you running: 12.1.16
What app is this about: Etherpad 2.5.0~ynh1

Describe your issue

After installation, “Installation completed” is displayed incorrectly because the app does not work.

Browser displays “502 Bad Gateway”.

Share relevant logs or error messages

yunohost app install etherpad

Use AbiWord (~260 Mo) or LibreOffice (~400 Mo) (more stable) to expand export possibilities (PDF, doc)? [none | abiword | libreoffice]: libreoffice

Info: Installing etherpad…
Info: Provisioning sources...
Info: Provisioning system_user...
Info: Provisioning install_dir...
Info: Provisioning data_dir...
Info: Provisioning permissions...
Info: Provisioning ports...
Info: Provisioning apt...
Info: [++..................] > Setting up source files...
Info: [##+++...............] > Adding etherpad's configuration files...
Info: [#####+++............] > Installing dependencies...
Info: [########+++.........] > Adding system configurations related to etherpad...
Info: [###########+++......] > Installing etherpad...
Info: [##############+++...] > Starting etherpad's systemd service...
Warning: (this may take some time)
Warning: The service etherpad didn't fully executed the action restart before the timeout.
Warning: Please find here an extract of the end of the log of the service etherpad:
Warning: Aug 31 12:43:11 pnpm[49080]:     at #createModuleJob (node:internal/modules/esm/loader:610:36)
Warning: Aug 31 12:43:11 pnpm[49080]:     at #getJobFromResolveResult (node:internal/modules/esm/loader:341:34)
Warning: Aug 31 12:43:11 pnpm[49080]:     at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:309:41) {
Warning: Aug 31 12:43:11 pnpm[49080]:   errno: -13,
Warning: Aug 31 12:43:11 pnpm[49080]:   code: 'EACCES',
Warning: Aug 31 12:43:11 pnpm[49080]:   syscall: 'open',
Warning: Aug 31 12:43:11 pnpm[49080]:   path: '/var/www/etherpad/node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js'
Warning: Aug 31 12:43:11 pnpm[49080]: }
Warning: Aug 31 12:43:11 pnpm[49080]: Node.js v22.19.0
Warning: Aug 31 12:43:11 pnpm[49067]: /var/www/etherpad/src:
Warning: Aug 31 12:43:11 pnpm[49067]: ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL ep_etherpad-lite@2.5.0 prod: `cross-env NODE_ENV=production node --require tsx/cjs node/server.ts`
Warning: Aug 31 12:43:11 pnpm[49067]: Exit status 1
Warning: Aug 31 12:43:11 pnpm[49051]: ELIFECYCLE Command failed with exit code 1.
Warning: Aug 31 12:43:11 systemd[1]: etherpad.service: Main process exited, code=exited, status=1/FAILURE
Warning: Aug 31 12:43:11 systemd[1]: etherpad.service: Failed with result 'exit-code'.
Warning: Aug 31 12:43:12 systemd[1]: etherpad.service: Scheduled restart job, restart counter is at 5.
Warning: Aug 31 12:43:12 systemd[1]: Stopped etherpad.service - Etherpad-lite: collaborative editor.
Warning: Aug 31 12:43:12 systemd[1]: etherpad.service: Start request repeated too quickly.
Warning: Aug 31 12:43:12 systemd[1]: etherpad.service: Failed with result 'exit-code'.
Warning: Aug 31 12:43:12 systemd[1]: Failed to start etherpad.service - Etherpad-lite: collaborative editor.
Info: [####################] > Installation of etherpad completed
Success! Installation completed

Est-ce que tu peux partager le retour de :

sudo namei -l /var/www/etherpad/node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
sudo namei -l /var/www/etherpad/node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js

f: /var/www/etherpad/node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
drwxr-xr-x root     root     /
drwxr-xr-x root     root     var
drwxr-xr-x root     root     www
drwxr-x--- etherpad etherpad etherpad
drwxr-xr-x root     root     node_modules
drwxr-xr-x root     root     .pnpm
drwxr-xr-x root     root     cross-spawn@7.0.6
drwxr-xr-x root     root     node_modules
drwxr-xr-x root     root     cross-spawn
-rw-r----- immich   immich   index.js

Merf, dunno how immich ended up up there …

Anyway you can try fixing the situation with : sudo chown etherpad:etherpad -R /var/www/etherpad/node_modules

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.