Leftover diagnosis or systemctl files for friendica?

What app is this about, and its version: friendica
What YunoHost version are you running: 12.1.39 (stable)
What type of hardware are you using: VPS bought online

Describe your issue

Hello there,

some time ago (maybe 2 or 3 years) I installed friendica.
Sometime there were systemctl errors about friedica.service (I don’t recall more)
Last autumn I uninstalled some unused ynh apps, and I uninstalled friendica, too.

Anyway:
In my daily automatic diagnosis mails it says:

=================================
Services status check (services)
=================================

[WARNING] Service friendica-daemon is unknown :(
  - You can try to restart the service, and if it doesn't work, have a look at the service logs in the webadmin (from the command line, you can do this with 'yunohost service restart friendica-daemon' and 'yunohost service log friendica-daemon').

Of course there is no friendica.service any longer:

# yunohost service restart friendica-daemon
Failed to restart friendica-daemon.service: Unit friendica-daemon.service not found.
Warning: Could not execute the command 'systemctl restart friendica-daemon'
Error: Failed to get status information via dbus for service friendica-daemon, systemctl didn't recognize this service ('NoSuchUnit').
Error: -- No entries --
Error: Could not restart the service 'friendica-daemon'

But how do I get rid of these automatic diagnosis nonsense?
Somewhere there has to be a leftover of the installation.

Share relevant logs or error messages

none

Hello @chmeyer
It could mean that the removal was incomplete and did not remove friendica’s service declaration.
Could you try the following

yunohost service status friendica

And, if it returns something, then run :

yunohost service remove friendica

Thank you for your idea.
Sadly it returns:
$ sudo yunohost service status friendica
Error: Unknown service ‘friendica’
$ sudo yunohost service remove friendica
Error: Unknown service ‘friendica’

$sudo yunohost app list | grep -i friendica
returns nothing, but Services status checkstill says:
$ sudo yunohost diagnosis show | grep -i friendica
details: You can try to restart the service, and if it doesn’t work, have a look at the service logs in the webadmin (from the command line, you can do this with ‘yunohost service restart friendica-daemon’ and ‘yunohost service log friendica-daemon’).
summary: Service friendica-daemon is unknown :frowning:

Then I did
$ sudo grep -ir friendica /etc/yunohost/
/etc/yunohost/services.yml:friendica-daemon:
/etc/yunohost/services.yml: description: Friendica daemon
/etc/yunohost/services.yml: - /var/log/friendica/daemon.log
… <some historic domain settings>

and then
$ sudo ls -al /var/log/friendica/daemon.log
-rw-r----- 1 guacamole-tomcat guacamole-tomcat 65414124 Apr 27 2025 /var/log/friendica/daemon.log
so I see, that the last log entry is from April, 27. 2025(maybe the day I uninstalled friendica).

Does yunohost diagnosis read and process the file /etc/yunohost/services.ymland will it be safe to remove the lines manually?

@chmeyer

yunohost service status friendica-daemon
yunohost service remove friendica-daemon
1 Like

Thank you, that fixed it:

sudo yunohost service status friendica-daemon

Error: Failed to get status information via dbus for service friendica-daemon, systemctl didn’t recognize this service (‘NoSuchUnit’).
configuration: unknown
description: Error: failed to get information for this service, it doesn’t exists for systemd
last_state_change: unknown
start_on_boot: unknown
status: unknown
sudo yunohost service remove friendica-daemon

Success! Service ‘friendica-daemon’ removed

Now the warning is gone.
Thank you!

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