Small issue with dietpi-services Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Gass
Posts: 17
Joined: Mon Feb 08, 2021 4:34 pm

Small issue with dietpi-services

Post by Gass »

Hi, I've been migrating some services to give docker a go, so one of the services I migrated was radarr.
What I did was go into dietpi-services and deactivate the running radarr service, then deploy the docker instance and after checking everything was alright with the docker instance I proceeded to uninstall radarr through the dietpi-software.
It removed it just fine.

The service is removed alright:

Code: Select all

dietpi@Pi:~$ sudo systemctl disable radarr
Failed to disable unit: Unit file radarr.service does not exist.
But the service is still listed on in dietpi-services, and of course shows as inactive.

Not a big deal, but just wanted to report it and ask if there is a way to fix that.
User avatar
trendy
Posts: 342
Joined: Tue Feb 25, 2020 2:54 pm

Re: Small issue with dietpi-services

Post by trendy »

Maybe you could try to purge radarr before installing it in docker?
Gass
Posts: 17
Joined: Mon Feb 08, 2021 4:34 pm

Re: Small issue with dietpi-services

Post by Gass »

AFAIK the dietpi-software uninstall takes care of that, I mean it removes and purges radarr (or any other software that is being uninstalled). Or do you mean that I should try to manually purge it again?

Anyway it's just a cosmetic issue, that it still shows in dietpi-services as available. radarr is in fact uninstalled and the newly installed docker instance is working fine.
User avatar
trendy
Posts: 342
Joined: Tue Feb 25, 2020 2:54 pm

Re: Small issue with dietpi-services

Post by trendy »

It should purge it. What I am suggesting is to purge it without first disabling it or installing the docker version. After it is uninstalled and without any leftovers install the docker version.
User avatar
MichaIng
Site Admin
Posts: 3097
Joined: Sat Nov 18, 2017 6:21 pm

Re: Small issue with dietpi-services

Post by MichaIng »

Makes sense to uninstall the non-docker version first. But it's strange that it's listed by dietpi-services while systemctl says it does not exist. Can you show the result of the following commands:

Code: Select all

systemctl cat radarr
ls -l /{{etc,usr/local/lib,lib,usr/lib}/systemd/system,run/systemd/generator.late}/radarr.service
Gass
Posts: 17
Joined: Mon Feb 08, 2021 4:34 pm

Re: Small issue with dietpi-services

Post by Gass »

Sure thing:

Code: Select all

sudo systemctl cat radarr
No files found for radarr.service.

sudo ls -l /{{etc,usr/local/lib,lib,usr/lib}/systemd/system,run/systemd/generator.late}/radarr.service
ls: no se puede acceder a '/etc/systemd/system/radarr.service': No existe el fichero o el directorio
ls: no se puede acceder a '/usr/local/lib/systemd/system/radarr.service': No existe el fichero o el directorio
ls: no se puede acceder a '/lib/systemd/system/radarr.service': No existe el fichero o el directorio
ls: no se puede acceder a '/usr/lib/systemd/system/radarr.service': No existe el fichero o el directorio
ls: no se puede acceder a '/run/systemd/generator.late/radarr.service': No existe el fichero o el directorio
It is localized in spanish, but basically says can't access ... the file or directory doesn't exist.
User avatar
MichaIng
Site Admin
Posts: 3097
Joined: Sat Nov 18, 2017 6:21 pm

Re: Small issue with dietpi-services

Post by MichaIng »

Strange, then there is no way that dietpi-services would list it. Can you check again:

Code: Select all

dietpi-services status
Ah the only other idea, probably it's present in the include/exclude filter file?

Code: Select all

cat /boot/dietpi/.dietpi-services_include_exclude
Gass
Posts: 17
Joined: Mon Feb 08, 2021 4:34 pm

Re: Small issue with dietpi-services

Post by Gass »

Of course:

Code: Select all

sudo dietpi-services status

 DietPi-Services
─────────────────────────────────────────────────────
 Mode: status

[  OK  ] DietPi-Services | nfs-kernel-server    active (exited) since Fri 2021-04-02 14:12:22 CEST; 24h ago
[  OK  ] DietPi-Services | syncthing            active (running) since Fri 2021-04-02 23:52:57 CEST; 14h ago
[  OK  ] DietPi-Services | noip2                active (running) since Fri 2021-04-02 14:12:33 CEST; 24h ago
[  OK  ] DietPi-Services | docker               active (running) since Fri 2021-04-02 14:12:33 CEST; 24h ago
[  OK  ] DietPi-Services | cron                 active (running) since Fri 2021-04-02 14:12:33 CEST; 24h ago
[  OK  ] DietPi-Services | ssh                  active (running) since Fri 2021-04-02 14:12:20 CEST; 24h ago
[  OK  ] DietPi-Services | dietpi-ramlog        active (exited) since Fri 2021-04-02 14:11:45 CEST; 24h ago
[  OK  ] DietPi-Services | dietpi-preboot       active (exited) since Fri 2021-04-02 14:11:45 CEST; 24h ago
[  OK  ] DietPi-Services | dietpi-boot          active (exited) since Fri 2021-04-02 14:12:20 CEST; 24h ago
[  OK  ] DietPi-Services | dietpi-postboot      active (exited) since Fri 2021-04-02 14:12:20 CEST; 24h ago
[ INFO ] DietPi-Services | dietpi-wifi-monitor  inactive (dead)
[  OK  ] DietPi-Services | dietpi-arr_to_RAM    active (exited) since Fri 2021-04-02 14:11:44 CEST; 24h ago
It's not listed here, as you probably expected, but then this...

Image
User avatar
MichaIng
Site Admin
Posts: 3097
Joined: Sat Nov 18, 2017 6:21 pm

Re: Small issue with dietpi-services

Post by MichaIng »

But that is Sonarr, not Radarr. I guess it's present but excluded. Check the same way:

Code: Select all

ls -l /{{etc,usr/local/lib,lib,usr/lib}/systemd/system,run/systemd/generator.late}/sonarr.service
grep sonarr /boot/dietpi/.dietpi-services_include_exclude
Gass
Posts: 17
Joined: Mon Feb 08, 2021 4:34 pm

Re: Small issue with dietpi-services

Post by Gass »

MichaIng wrote: Sat Apr 03, 2021 3:46 pm But that is Sonarr, not Radarr.
Excuse me... I'm idiot. :roll:

Code: Select all

sudo ls -l /{{etc,usr/local/lib,lib,usr/lib}/systemd/system,run/systemd/generator.late}/sonarr.service
ls: no se puede acceder a '/etc/systemd/system/sonarr.service': No existe el fichero o el directorio
ls: no se puede acceder a '/usr/local/lib/systemd/system/sonarr.service': No existe el fichero o el directorio
ls: no se puede acceder a '/usr/lib/systemd/system/sonarr.service': No existe el fichero o el directorio
ls: no se puede acceder a '/run/systemd/generator.late/sonarr.service': No existe el fichero o el directorio
-rw-r--r-- 1 root root 527 mar 28 01:27 /lib/systemd/system/sonarr.service

Code: Select all

sudo grep sonarr /boot/dietpi/.dietpi-services_include_exclude- sonarr
No result

So I guess that for some reason it wasn't properly uninstalled/purged from /lib/systemd/system/sonarr.service. Removing the file solves the issue.

Thanks a lot!
Post Reply