Some services fail on reboot - have to manually start them

My YunoHost server

Hardware: old computer
YunoHost version: 4.1.8
I have access to my server : Through SSH | direct access via keyboard / screen
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If yes, please explain:

Description of my issue

When I reboot my Yunohost service some services fail to reload without being started manually. This causes some apps to stop working.

Services that fail to load:
php-7.3fpm
writefreely (I think because of PHP)

This causes these apps to stop working:
nextcloud
writefreely

This isn’t critical, but I worry if I every have to reboot my server, or there’s a power outage and I’m away from my house…I won’t be able to manually restart them.

How can I troubleshoot this?

Thank you!!!

hi @arkadi
have you see this? in first time

You should be able to restart them with the WebAdmin from the Services category.

However i don’t know why exactly your services doesn’t start, you should check logs of your php7.3-fpm services (and share its iif you want help)

1 Like

@yolateng0 thanks, yes I already took care of that problem before.

@ljf Yes, I could use webadmin but also looking to disable that in the future. I never use the webadmin.

This journal seems to be from when I restarted php7.3-fpm manually.

sudo journalctl | grep php7.3-fpm
Apr 13 19:08:52 arkadi.one systemd[1]: php7.3-fpm.service: Start operation timed out. Terminating.
Apr 13 19:09:18 arkadi.one systemd[1]: php7.3-fpm.service: Main process exited, code=killed, status=15/TERM
Apr 13 19:09:19 arkadi.one systemd[1]: php7.3-fpm.service: Failed with result 'timeout'.
Apr 13 20:30:41 arkadi.one sudo[9643]:    admin : TTY=pts/0 ; PWD=/home/admin ; USER=root ; COMMAND=/usr/bin/yunohost service restart php7.3-fpm
Apr 13 20:50:19 arkadi.one systemd[1]: php7.3-fpm.service: Succeeded.
Apr 15 10:25:20 arkadi.one sudo[3414]:    admin : TTY=pts/0 ; PWD=/home/admin ; USER=root ; COMMAND=/usr/bin/yunohost service status php7.3-fpm

This is the log from the same time period.

[13-Apr-2021 18:36:31] NOTICE: Terminating ...
[13-Apr-2021 18:36:31] NOTICE: exiting, bye-bye!
[13-Apr-2021 20:30:04] NOTICE: configuration file /etc/php/7.3/fpm/php-fpm.conf test is successful

[13-Apr-2021 20:30:41] NOTICE: fpm is running, pid 9647
[13-Apr-2021 20:30:41] NOTICE: ready to handle connections
[13-Apr-2021 20:30:41] NOTICE: systemd monitor interval set to 10000ms
[13-Apr-2021 20:40:49] NOTICE: configuration file /etc/php/7.3/fpm/php-fpm.conf test is successful

[13-Apr-2021 20:49:26] NOTICE: configuration file /etc/php/7.3/fpm/php-fpm.conf test is successful

[13-Apr-2021 20:50:19] NOTICE: Terminating ...
[13-Apr-2021 20:50:19] NOTICE: exiting, bye-bye!
[13-Apr-2021 20:50:19] NOTICE: fpm is running, pid 18624
[13-Apr-2021 20:50:20] NOTICE: ready to handle connections
[13-Apr-2021 20:50:20] NOTICE: systemd monitor interval set to 10000ms
[13-Apr-2021 20:50:41] NOTICE: Reloading in progress ...
[13-Apr-2021 20:50:41] NOTICE: reloading: execvp("/usr/sbin/php-fpm7.3", {"/usr/sbin/php-fpm7.3", "--nodaemonize", "--fpm-config", "/etc/php/7.3/fpm/php-fpm.conf"})
[13-Apr-2021 20:50:42] NOTICE: using inherited socket fd=7, "/var/run/php/php7.3-fpm-nextcloud.sock"
[13-Apr-2021 20:50:42] NOTICE: using inherited socket fd=7, "/var/run/php/php7.3-fpm-nextcloud.sock"
[13-Apr-2021 20:50:42] NOTICE: using inherited socket fd=8, "/run/php/php7.3-fpm.sock"
[13-Apr-2021 20:50:42] NOTICE: using inherited socket fd=8, "/run/php/php7.3-fpm.sock"
[13-Apr-2021 20:50:42] NOTICE: fpm is running, pid 18624
[13-Apr-2021 20:50:42] NOTICE: ready to handle connections
[13-Apr-2021 20:50:42] NOTICE: systemd monitor interval set to 10000ms
[13-Apr-2021 20:52:20] NOTICE: configuration file /etc/php/7.3/fpm/php-fpm.conf test is successful

When looking in /var/log I see that I have logs for php7.4-fpm? That log is empty though.

These logs make it look like it timed out.

1 Like

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