YunoHost-Apps / firefish_ynh

Forked from Misskey and made by a passionate team of developers, Firefish is all about listening to its community and making people happy with great software.
GNU Affero General Public License v3.0
1 stars 6 forks source link

Unable to restart Firefish after halting the service or rebooting Yunohost #3

Open Zeitverschreib opened 1 year ago

Zeitverschreib commented 1 year ago

In order to perform a backup, I halted the Firefish service via the web interface. After finishing the backup, restarting the Firefish service fails with a "> pnpm --filter backend run start". Same when rebooting the complete Yunohost.

LOGFILE: journalctl
-- Journal begins at Sun 2023-08-13 01:02:12 CEST, ends at Fri 2023-08-18 20:09:17 CEST. --
Aug 18 20:05:05 npm[1871]: > firefish@1.0.3 start
Aug 18 20:05:05 npm[1871]: > pnpm --filter backend run start
Aug 18 20:05:05 npm[2137]: sh: 1: pnpm: not found
Aug 18 20:05:05 systemd[1]: firefish.service: Main process exited, code=exited, status=127/n/a
Aug 18 20:05:05 systemd[1]: firefish.service: Failed with result 'exit-code'.
Aug 18 20:05:05 systemd[1]: firefish.service: Scheduled restart job, restart counter is at 4.
Aug 18 20:05:05 systemd[1]: Stopped Firefish: fork of Misskey.
Aug 18 20:05:05 systemd[1]: Started Firefish: fork of Misskey.
Aug 18 20:05:06 npm[2169]: > firefish@1.0.3 start
Aug 18 20:05:06 npm[2169]: > pnpm --filter backend run start
Aug 18 20:05:06 npm[2186]: sh: 1: pnpm: not found
Aug 18 20:05:06 systemd[1]: firefish.service: Main process exited, code=exited, status=127/n/a
Aug 18 20:05:06 systemd[1]: firefish.service: Failed with result 'exit-code'.
Aug 18 20:05:06 systemd[1]: firefish.service: Scheduled restart job, restart counter is at 5.
Aug 18 20:05:06 systemd[1]: Stopped Firefish: fork of Misskey.
Aug 18 20:05:06 systemd[1]: Started Firefish: fork of Misskey.
Aug 18 20:05:07 npm[2196]: > firefish@1.0.3 start
Aug 18 20:05:07 npm[2196]: > pnpm --filter backend run start
Aug 18 20:05:07 npm[2212]: sh: 1: pnpm: not found
Aug 18 20:05:07 systemd[1]: firefish.service: Main process exited, code=exited, status=127/n/a
Aug 18 20:05:07 systemd[1]: firefish.service: Failed with result 'exit-code'.
Aug 18 20:05:07 systemd[1]: firefish.service: Scheduled restart job, restart counter is at 6.
Aug 18 20:05:07 systemd[1]: Stopped Firefish: fork of Misskey.
Aug 18 20:05:07 systemd[1]: Started Firefish: fork of Misskey.
Aug 18 20:05:08 npm[2215]: > firefish@1.0.3 start
Aug 18 20:05:08 npm[2215]: > pnpm --filter backend run start
Aug 18 20:05:08 npm[2244]: sh: 1: pnpm: not found
Aug 18 20:05:08 systemd[1]: firefish.service: Main process exited, code=exited, status=127/n/a
Aug 18 20:05:08 systemd[1]: firefish.service: Failed with result 'exit-code'.
Aug 18 20:05:08 systemd[1]: firefish.service: Scheduled restart job, restart counter is at 7.
Aug 18 20:05:08 systemd[1]: Stopped Firefish: fork of Misskey.
Aug 18 20:05:08 systemd[1]: Started Firefish: fork of Misskey.
Aug 18 20:05:08 npm[2259]: > firefish@1.0.3 start
Aug 18 20:05:08 npm[2259]: > pnpm --filter backend run start
Aug 18 20:05:08 npm[2277]: sh: 1: pnpm: not found
Aug 18 20:05:08 systemd[1]: firefish.service: Main process exited, code=exited, status=127/n/a
Aug 18 20:05:08 systemd[1]: firefish.service: Failed with result 'exit-code'.
Aug 18 20:05:09 systemd[1]: firefish.service: Scheduled restart job, restart counter is at 8.
Aug 18 20:05:09 systemd[1]: Stopped Firefish: fork of Misskey.
Aug 18 20:05:09 systemd[1]: Started Firefish: fork of Misskey.
Aug 18 20:05:09 npm[2283]: > firefish@1.0.3 start
Aug 18 20:05:09 npm[2283]: > pnpm --filter backend run start
Aug 18 20:05:09 npm[2306]: sh: 1: pnpm: not found
Aug 18 20:05:09 systemd[1]: firefish.service: Main process exited, code=exited, status=127/n/a
Aug 18 20:05:09 systemd[1]: firefish.service: Failed with result 'exit-code'.
Aug 18 20:05:09 systemd[1]: firefish.service: Scheduled restart job, restart counter is at 9.
Aug 18 20:05:09 systemd[1]: Stopped Firefish: fork of Misskey.
Aug 18 20:05:09 systemd[1]: firefish.service: Start request repeated too quickly.
Aug 18 20:05:09 systemd[1]: firefish.service: Failed with result 'exit-code'.
Aug 18 20:05:09 systemd[1]: Failed to start Firefish: fork of Misskey.

I already experienced the same behaviour earlier this week, but then I was trying to change the default.yml and thought that something broke because of this. A de-install and restore of a backup fixed the pnpm issue. This time, the Firefish install is out of the box, just halted for backup.

lapineige commented 1 year ago

Can you share the command you used to restart your Firefish server ?

Zeitverschreib commented 1 year ago

I tried using the web interface and CLI "yunohost service restart firefish". Both give the same error msg and a non-working Firefish. 

  1. Aug. 2023, 15:21 von @.***:

Can you share the command you used to restart your Firefish server ?

— Reply to this email directly, > view it on GitHub https://github.com/YunoHost-Apps/firefish_ynh/issues/3#issuecomment-1684942649> , or > unsubscribe https://github.com/notifications/unsubscribe-auth/AZOCYZDCIQJ5ORBF5NJYW7LXWC4WJANCNFSM6AAAAAA3V3IQOI> . You are receiving this because you authored the thread.> Message ID: > <YunoHost-Apps/firefish_ynh/issues/3/1684942649> @> github> .> com>

fosshost commented 10 months ago

We're seeing this too. Had any luck fixing it?

fosshost commented 10 months ago

I managed to resolve this on our instance by running these within /var/www/firefish as root:

corepack enable corepack prepare pnpm@latest --activate pnpm i

I'll try and get around to submitting a PR

Zeitverschreib commented 10 months ago

@fosshost Thanks, that procedure also seems to work for me. I was able to restart my instance without problems.