I have this error message after trying to update from 6.3.2 to 6.3.3:
Started peertube.service - PeerTube daemon.
Oct 30 21:44:05 ubuntu systemd[1]: **peertube.service: Main process exited, code=exited, status=203/EXEC**
Oct 30 21:44:05 ubuntu systemd[1]: **peertube.service: Failed with result 'exit-code'.**
Oct 30 21:44:05 ubuntu systemd[1]: peertube.service: Scheduled restart job, restart counter is at 5.
Oct 30 21:44:05 ubuntu systemd[1]: **peertube.service: Start request repeated too quickly.**
Oct 30 21:44:05 ubuntu systemd[1]: **peertube.service: Failed with result 'exit-code'.**
Oct 30 21:44:05 ubuntu systemd[1]: **Failed to start peertube.service - PeerTube daemon.**
Oct 30 20:49:28 ubuntu systemd[1]: Started peertube.service - PeerTube daemon.
Oct 30 20:49:28 ubuntu peertube[67904]: node:internal/modules/esm/resolve:857
Oct 30 20:49:28 ubuntu peertube[67904]: throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null);
Oct 30 20:49:28 ubuntu peertube[67904]: ^
Oct 30 20:49:28 ubuntu peertube[67904]: Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'express' imported from /var/www/p>
Oct 30 20:49:28 ubuntu peertube[67904]: at packageResolve (node:internal/modules/esm/resolve:857:9)
Oct 30 20:49:28 ubuntu peertube[67904]: at moduleResolve (node:internal/modules/esm/resolve:926:18)
Oct 30 20:49:28 ubuntu peertube[67904]: at defaultResolve (node:internal/modules/esm/resolve:1056:11)
Oct 30 20:49:28 ubuntu peertube[67904]: at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:650:12)
Oct 30 20:49:28 ubuntu peertube[67904]: at #cachedDefaultResolve (node:internal/modules/esm/loader:599:25)
Oct 30 20:49:28 ubuntu peertube[67904]: at ModuleLoader.resolve (node:internal/modules/esm/loader:582:38)
Oct 30 20:49:28 ubuntu peertube[67904]: at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:241:38)
Oct 30 20:49:28 ubuntu peertube[67904]: at ModuleJob._link (node:internal/modules/esm/module_job:132:49) {
Oct 30 20:49:28 ubuntu peertube[67904]: code: 'ERR_MODULE_NOT_FOUND'
Oct 30 20:49:28 ubuntu peertube[67904]: }
Oct 30 20:49:28 ubuntu peertube[67904]: Node.js v23.1.0
...same text...
Oct 30 22:22:36 ubuntu systemd[1]: peertube.service: Failed with result 'exit-code'.
Oct 30 22:22:36 ubuntu systemd[1]: peertube.service: Scheduled restart job, restart counter is at 1.
Oct 30 22:22:36 ubuntu systemd[1]: Started peertube.service - PeerTube daemon.
Oct 30 22:22:36 ubuntu systemd[1]: peertube.service: Main process exited, code=exited, status=203/EXEC
Oct 30 22:22:36 ubuntu systemd[1]: peertube.service: Failed with result 'exit-code'.
Oct 30 22:22:36 ubuntu systemd[1]: peertube.service: Scheduled restart job, restart counter is at 2.
Oct 30 22:22:36 ubuntu systemd[1]: Started peertube.service - PeerTube daemon.
Oct 30 22:22:36 ubuntu systemd[1]: peertube.service: Main process exited, code=exited, status=203/EXEC
Oct 30 22:22:36 ubuntu systemd[1]: peertube.service: Failed with result 'exit-code'.
Oct 30 22:22:36 ubuntu systemd[1]: peertube.service: Scheduled restart job, restart counter is at 3.
Oct 30 22:22:36 ubuntu systemd[1]: Started peertube.service - PeerTube daemon.
Oct 30 22:22:37 ubuntu systemd[1]: peertube.service: Main process exited, code=exited, status=203/EXEC
Oct 30 22:22:37 ubuntu systemd[1]: peertube.service: Failed with result 'exit-code'.
Oct 30 22:22:37 ubuntu systemd[1]: peertube.service: Scheduled restart job, restart counter is at 4.
Oct 30 22:22:37 ubuntu systemd[1]: Started peertube.service - PeerTube daemon.
Oct 30 22:22:37 ubuntu systemd[1]: peertube.service: Main process exited, code=exited, status=203/EXEC
Oct 30 22:22:37 ubuntu systemd[1]: peertube.service: Failed with result 'exit-code'.
Oct 30 22:22:37 ubuntu systemd[1]: peertube.service: Scheduled restart job, restart counter is at 5.
Oct 30 22:22:37 ubuntu systemd[1]: peertube.service: Start request repeated too quickly.
Oct 30 22:22:37 ubuntu systemd[1]: peertube.service: Failed with result 'exit-code'.
Oct 30 22:22:37 ubuntu systemd[1]: Failed to start peertube.service - PeerTube daemon.
I used the update script for updating… what I remarked, is that yarn stopped fetching packages on the half-way (it’s marked 3/5, but I never saw 4/5 and 5/5 step, don’t know whether it’s normal…). Then I restarted peertube, but now I have 502 Bad Gateway and this output in the journal…
I tried to reinstall nodejs, now I can open my instance. However, now I have this error:
[video.sorokin.music:443] 2024-10-31 12:04:44.555 warn: Login error {
Oct 31 12:04:44 ubuntu peertube[80990]: "err": {
Oct 31 12:04:44 ubuntu peertube[80990]: "stack": "Error: Cannot find module '/var/www/peertube/versions/peertube-v6.3.3/>
Oct 31 12:04:44 ubuntu peertube[80990]: "message": "Cannot find module '/var/www/peertube/versions/peertube-v6.3.3/node_>
Oct 31 12:04:44 ubuntu peertube[80990]: "code": "MODULE_NOT_FOUND",
Oct 31 12:04:44 ubuntu peertube[80990]: "requireStack": [
Oct 31 12:04:44 ubuntu peertube[80990]: "/var/www/peertube/versions/peertube-v6.3.3/node_modules/bcrypt/bcrypt.js"
Oct 31 12:04:44 ubuntu peertube[80990]: ]
Oct 31 12:04:44 ubuntu peertube[80990]: }
Oct 31 12:04:44 ubuntu peertube[80990]: }
Oct 31 12:04:44 ubuntu peertube[80990]: [video.sorokin.music:443] 2024-10-31 12:04:44.558 error: Error in controller. {
Oct 31 12:04:44 ubuntu peertube[80990]: "err": "RangeError [ERR_HTTP_INVALID_STATUS_CODE]: Invalid status code: MODULE_NOT>
Oct 31 12:04:44 ubuntu peertube[80990]: }
Oct 31 12:04:44 ubuntu peertube[80990]: [video.sorokin.music:443] 2024-10-31 12:04:44.559 info: 2001:861:3040:4ce0:4498:d328>
Oct 31 12:04:44 ubuntu peertube[80990]: [video.sorokin.music:443] 2024-10-31 12:04:44.674 error: Client log: Backend returne>
Oct 31 12:04:44 ubuntu peertube[80990]: "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15>
Oct 31 12:04:44 ubuntu peertube[80990]: "meta": "{\"url\":\"https://video.sorokin.music/api/v1/users/token\"}",
Oct 31 12:04:44 ubuntu peertube[80990]: "url": "https://video.sorokin.music/login"
I tried to run the update script again, but yarn stops in the middle:
yarn install v1.22.22
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[#############################------------------------------------------------------------------------------------] 383/1510
==========================================================
/var/www/peertube/config/production.yaml.new generated
You can review it and replace your existing production.yaml configuration
==========================================================
Please read the IMPORTANT NOTES on https://github.com/Chocobozzz/PeerTube/releases/tag/v6.3.3
Then restart PeerTube!
Just for the record, you can rollback the upgrade by changing the /var/www/peertube/peertube-latest symbolic link, to point to the last working version.
There is a rollback procedure in the documentation, but as you did not finish the upgrade, you don’t need to restore the database (so only need the unlink and ln part).
Perhaps you can try rollback, rm the 6.3.3 folder from /var/www/peertube/versions, and then launch the upgrade script again?