Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update from v4 never worked, including 5.2.1~ynh8 #193

Open
klorydryk opened this issue Apr 17, 2023 · 1 comment
Open

Update from v4 never worked, including 5.2.1~ynh8 #193

klorydryk opened this issue Apr 17, 2023 · 1 comment

Comments

@klorydryk
Copy link

Hi!

Yunohost 11.1.18
Update from Cryptpad 4.12.0~ynh2 to 5.2.1~ynh6 had an CORS issue with the sandbox domain, as the target url was in 404 error
Update from 5.2.1~ynh6 to 5.2.1~ynh8 has another issue: Cryptad logo stay still, as "the ressource has been blocked because of an incorrect MIME type" and obviously, the Cryptad service is down, see the log below.

-- Journal begins at Wed 2022-10-26 10:26:11 CEST, ends at Mon 2023-04-17 20:41:18 CEST. --
avril 17 20:41:11 systemd[1]: Stopped CryptPad: Zero Knowledge realtime collaborative editor..
avril 17 20:41:11 systemd[1]: Started CryptPad: Zero Knowledge realtime collaborative editor..
avril 17 20:41:12 npm[2836583]: npm does not support Node.js v8.17.0
avril 17 20:41:12 npm[2836583]: You should probably upgrade to a newer version of node as we
avril 17 20:41:12 npm[2836583]: can't make any promises that npm will work with this version.
avril 17 20:41:12 npm[2836583]: You can find the latest version at https://nodejs.org/
avril 17 20:41:12 npm[2836583]: /opt/node_n/n/versions/node/16.14.2/lib/node_modules/npm/lib/npm.js:32
avril 17 20:41:12 npm[2836583]:   #unloaded = false
avril 17 20:41:12 npm[2836583]:   ^
avril 17 20:41:12 npm[2836583]: SyntaxError: Invalid or unexpected token
avril 17 20:41:12 npm[2836583]:     at createScript (vm.js:80:10)
avril 17 20:41:12 npm[2836583]:     at Object.runInThisContext (vm.js:139:10)
avril 17 20:41:12 npm[2836583]:     at Module._compile (module.js:617:28)
avril 17 20:41:12 npm[2836583]:     at Object.Module._extensions..js (module.js:664:10)
avril 17 20:41:12 npm[2836583]:     at Module.load (module.js:566:32)
avril 17 20:41:12 npm[2836583]:     at tryModuleLoad (module.js:506:12)
avril 17 20:41:12 npm[2836583]:     at Function.Module._load (module.js:498:3)
avril 17 20:41:12 npm[2836583]:     at Module.require (module.js:597:17)
avril 17 20:41:12 npm[2836583]:     at require (internal/module.js:11:18)
avril 17 20:41:12 npm[2836583]:     at module.exports (/opt/node_n/n/versions/node/16.14.2/lib/node_modules/npm/lib/cli.js:22:15)
avril 17 20:41:12 systemd[1]: cryptpad.service: Main process exited, code=exited, status=1/FAILURE
avril 17 20:41:12 systemd[1]: cryptpad.service: Failed with result 'exit-code'.
avril 17 20:41:12 systemd[1]: cryptpad.service: Scheduled restart job, restart counter is at 4.
avril 17 20:41:12 systemd[1]: Stopped CryptPad: Zero Knowledge realtime collaborative editor..
avril 17 20:41:12 systemd[1]: Started CryptPad: Zero Knowledge realtime collaborative editor..
avril 17 20:41:12 npm[2836591]: npm does not support Node.js v8.17.0
avril 17 20:41:12 npm[2836591]: You should probably upgrade to a newer version of node as we
avril 17 20:41:12 npm[2836591]: can't make any promises that npm will work with this version.
avril 17 20:41:12 npm[2836591]: You can find the latest version at https://nodejs.org/
avril 17 20:41:12 npm[2836591]: /opt/node_n/n/versions/node/16.14.2/lib/node_modules/npm/lib/npm.js:32
avril 17 20:41:12 npm[2836591]:   #unloaded = false
avril 17 20:41:12 npm[2836591]:   ^
avril 17 20:41:12 npm[2836591]: SyntaxError: Invalid or unexpected token
avril 17 20:41:12 npm[2836591]:     at createScript (vm.js:80:10)
avril 17 20:41:12 npm[2836591]:     at Object.runInThisContext (vm.js:139:10)
avril 17 20:41:12 npm[2836591]:     at Module._compile (module.js:617:28)
avril 17 20:41:12 npm[2836591]:     at Object.Module._extensions..js (module.js:664:10)
avril 17 20:41:12 npm[2836591]:     at Module.load (module.js:566:32)
avril 17 20:41:12 npm[2836591]:     at tryModuleLoad (module.js:506:12)
avril 17 20:41:12 npm[2836591]:     at Function.Module._load (module.js:498:3)
avril 17 20:41:12 npm[2836591]:     at Module.require (module.js:597:17)
avril 17 20:41:12 npm[2836591]:     at require (internal/module.js:11:18)
avril 17 20:41:12 npm[2836591]:     at module.exports (/opt/node_n/n/versions/node/16.14.2/lib/node_modules/npm/lib/cli.js:22:15)
avril 17 20:41:12 systemd[1]: cryptpad.service: Main process exited, code=exited, status=1/FAILURE
avril 17 20:41:12 systemd[1]: cryptpad.service: Failed with result 'exit-code'.
avril 17 20:41:12 systemd[1]: cryptpad.service: Scheduled restart job, restart counter is at 5.
avril 17 20:41:12 systemd[1]: Stopped CryptPad: Zero Knowledge realtime collaborative editor..
avril 17 20:41:12 systemd[1]: cryptpad.service: Start request repeated too quickly.
avril 17 20:41:12 systemd[1]: cryptpad.service: Failed with result 'exit-code'.
avril 17 20:41:12 systemd[1]: Failed to start CryptPad: Zero Knowledge realtime collaborative editor..

seems to be a Node.js error? Thanks !

@ghost
Copy link

ghost commented Jun 28, 2023

Your NodeJs version is way outdated:

avril 17 20:41:12 npm[2836583]: npm does not support Node.js v8.17.0

We recommend NodeJs Active LTS and don't support anything below v16.x at the moment.

I'm not sure how NodeJs installation was handled at the time you installed CryptPad on your YunoHost instance. Maybe look for some APT repositories?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant