Again: friendica-daemon not starting

My YunoHost server

Hardware: VPS bought online
YunoHost version: 11.2.12
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

The problem that the friendica daemon does not start after reinstallation has already been described in two threads: Friendica Daemon und Friendica daemon not starting

Both threads are now automatically closed without any solution or hint as to the cause.

I tried to install Friendica myself today and run into the same error.

Under Services / friendica-daemon the message ‘auto-restart since less than 1 minute ago’ appears. The friendica-daemon does not start. Every start attempt is terminated with the error message ‘friendica-daemon.service: Control process exited, code=exited, status=255/EXCEPTION’.

journalctl:

...
Jun 04 11:05:09 systemd[1]: Started Friendica daemon.
Jun 04 11:05:09 systemd[1]: friendica-daemon.service: Control process exited, code=exited, status=255/EXCEPTION
Jun 04 11:05:09 systemd[1]: friendica-daemon.service: Failed with result 'exit-code'.
Jun 04 11:05:19 systemd[1]: friendica-daemon.service: Scheduled restart job, restart counter is at 143.
Jun 04 11:05:19 systemd[1]: Stopped Friendica daemon.
Jun 04 11:05:19 systemd[1]: Started Friendica daemon.
Jun 04 11:05:20 systemd[1]: friendica-daemon.service: Control process exited, code=exited, status=255/EXCEPTION
Jun 04 11:05:20 systemd[1]: friendica-daemon.service: Failed with result 'exit-code'.
Jun 04 11:05:30 systemd[1]: friendica-daemon.service: Scheduled restart job, restart counter is at 144.
Jun 04 11:05:30 systemd[1]: Stopped Friendica daemon.
Jun 04 11:05:30 systemd[1]: Started Friendica daemon.
Jun 04 11:05:30 systemd[1]: friendica-daemon.service: Control process exited, code=exited, status=255/EXCEPTION
Jun 04 11:05:30 systemd[1]: friendica-daemon.service: Failed with result 'exit-code'.

/var/log/friendica/daemon.log:

...
Starting worker daemon.
Child process started with pid 1373999.
Starting worker daemon.
Child process started with pid 1374005.
Starting worker daemon.
Child process started with pid 1374011.

Is there a solution, or is Friendica no longer installable or usable with YunoHost?

The installation script has apparently not initialised the database and has not created the files. This is why the daemon crashes (the return value 255 originates from the crashing script under bin/daemon.php).

My workaround:

Access the server via SSH

  • Switch to the Friendica environment with sudo yunohost app shell friendica

  • bin/console dbstructure update creates the database structure

Unfortunately, the user specified in the YunoHost installation is not available in the DB, which is why this user is also created on the console:

  • bin/console user add <username> <nickname> <mail-address> <language-code> where the mail address must be the one selected for the admin at YunoHost

  • Set password with bin/console user password <password>

You can then log in to the web as this user and have admin rights.

So there must be an error somewhere in the install script of the YunoHost app.

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