Services don't start

Having issues with your DietPi installation or found a bug? Post it here.
Siren
Posts: 20
Joined: Sun Jul 28, 2019 5:35 pm

Services don't start

Post by Siren »

Hey everyone, I'm having a very weird issue.

I have a PI 4 set up with Sonarr, Deluge and Jellyfin, but out of nowhere none of these services work.
I thought the IP had changed, but I was able to log in via ssh and restart dietpi-services with no problem (everything says "ok" there).
Do you have any ideas?
User avatar
Joulinar
Posts: 5116
Joined: Sat Nov 16, 2019 12:49 am

Re: Services don't start

Post by Joulinar »

To start looking into it, can you share dietpi-services status
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Siren
Posts: 20
Joined: Sun Jul 28, 2019 5:35 pm

Re: Services don't start

Post by Siren »

Joulinar wrote: Tue Mar 09, 2021 1:56 pm To start looking into it, can you share dietpi-services status
Here you go

Code: Select all

[  OK  ] DietPi-Services | nmbd                 active (running) since Tue 2021-03-09 12:40:51 GMT; 23min ago
[  OK  ] DietPi-Services | smbd                 active (running) since Tue 2021-03-09 12:40:51 GMT; 23min ago
[FAILED] DietPi-Services | ● deluged.service - Deluge Daemon (DietPi)
   Loaded: loaded (/etc/systemd/system/deluged.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2021-03-09 12:41:00 GMT; 23min ago
     Docs: man:deluged
  Process: 1541 ExecStart=/usr/bin/deluged -d -l /var/log/deluged/daemon.log -L warning (code=exited, status=1/FAILURE)
 Main PID: 1541 (code=exited, status=1/FAILURE)

Mar 09 12:41:00 DietPi systemd[1]: deluged.service: Service RestartSec=100ms expired, scheduling restart.
Mar 09 12:41:00 DietPi systemd[1]: deluged.service: Scheduled restart job, restart counter is at 5.
Mar 09 12:41:00 DietPi systemd[1]: Stopped Deluge Daemon (DietPi).
Mar 09 12:41:00 DietPi systemd[1]: deluged.service: Start request repeated too quickly.
Mar 09 12:41:00 DietPi systemd[1]: deluged.service: Failed with result 'exit-code'.
Mar 09 12:41:00 DietPi systemd[1]: Failed to start Deluge Daemon (DietPi).
[  OK  ] DietPi-Services | jellyfin             active (running) since Tue 2021-03-09 13:04:11 GMT; 2s ago
[  OK  ] DietPi-Services | jackett              activating (auto-restart) since Tue 2021-03-09 13:04:13 GMT; 1s ago
[  OK  ] DietPi-Services | sonarr               active (running) since Tue 2021-03-09 12:40:51 GMT; 23min ago
[  OK  ] DietPi-Services | radarr               active (running) since Tue 2021-03-09 12:40:51 GMT; 23min ago
[  OK  ] DietPi-Services | deluge-web           active (running) since Tue 2021-03-09 12:40:51 GMT; 23min ago
[  OK  ] DietPi-Services | cron                 active (running) since Tue 2021-03-09 12:40:52 GMT; 23min ago
[  OK  ] DietPi-Services | dropbear             active (running) since Tue 2021-03-09 12:39:21 GMT; 24min ago
[  OK  ] DietPi-Services | dietpi-ramlog        active (exited) since Tue 2021-03-09 12:39:01 GMT; 25min ago
[  OK  ] DietPi-Services | dietpi-preboot       active (exited) since Tue 2021-03-09 12:39:01 GMT; 25min ago
[  OK  ] DietPi-Services | dietpi-boot          active (exited) since Tue 2021-03-09 12:39:21 GMT; 24min ago
[  OK  ] DietPi-Services | dietpi-postboot      active (exited) since Tue 2021-03-09 12:39:21 GMT; 24min ago
[ INFO ] DietPi-Services | dietpi-wifi-monitor  inactive (dead)
User avatar
Joulinar
Posts: 5116
Joined: Sat Nov 16, 2019 12:49 am

Re: Services don't start

Post by Joulinar »

ok let's check deluged

Code: Select all

systemctl restart deluged
cat /var/log/deluged/daemon.log
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Siren
Posts: 20
Joined: Sun Jul 28, 2019 5:35 pm

Re: Services don't start

Post by Siren »

Ok, this starts making a bit of sense.

I have 2 HDs conneced to the pi and they do have space left. But I had a problem recently where one of the drives was completly wiped and I never knew why it happend. Could these problems be related?

Here's the log:

Code: Select all

[WARNING ] 14:48:46 preferencesmanager:528 GeoIP Unavailable
[ERROR   ] 14:48:46 main:248 [Errno 28] No space left on device
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/deluge/main.py", line 241, in start_daemon
    Daemon(options, args)
  File "/usr/lib/python2.7/dist-packages/deluge/core/daemon.py", line 176, in __init__
    _file.write("%s;%s\n" % (os.getpid(), port))
IOError: [Errno 28] No space left on device
User avatar
Joulinar
Posts: 5116
Joined: Sat Nov 16, 2019 12:49 am

Re: Services don't start

Post by Joulinar »

No space left on device is quite a good reason for your system not starting correctly. Can you share df -hT
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Siren
Posts: 20
Joined: Sun Jul 28, 2019 5:35 pm

Re: Services don't start

Post by Siren »

Here you go. It makes sense.

I believe this occured because of a secondary problem: when I go to the drive manager, the sdb shows as "no filesystem". It was working perfectly 5 hours ago. It's the same drive that was erased earlier. Probably deluge tried to download something to the internal memory since it couldn't find the external HD.

I can reformat it using the drive manager, but how can I clean /dev/root?

Code: Select all

Filesystem     Type      Size  Used Avail Use% Mounted on
/dev/root      ext4       34G   33G     0 100% /
devtmpfs       devtmpfs  3.7G     0  3.7G   0% /dev
tmpfs          tmpfs     3.7G   20K  3.7G   1% /dev/shm
tmpfs          tmpfs     3.7G  170M  3.6G   5% /run
tmpfs          tmpfs     5.0M     0  5.0M   0% /run/lock
tmpfs          tmpfs     3.7G     0  3.7G   0% /sys/fs/cgroup
tmpfs          tmpfs     3.9G     0  3.9G   0% /tmp
tmpfs          tmpfs      50M  2.2M   48M   5% /var/log
/dev/mmcblk0p1 vfat      253M   32M  221M  13% /boot
User avatar
Joulinar
Posts: 5116
Joined: Sat Nov 16, 2019 12:49 am

Re: Services don't start

Post by Joulinar »

yes your rootFS is completely full. That's why you have issues. what was located on that external HDD?

let's check for biggest files. Following will give the top 20

Code: Select all

du -a / | sort -n -r | head -n 20
As well, let's have a look to your devices

Code: Select all

lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Siren
Posts: 20
Joined: Sun Jul 28, 2019 5:35 pm

Re: Services don't start

Post by Siren »

Here it is. /disks is the mount location of my external hard drives.
edit: the other under /disks are just files inside this folder.

Code: Select all

du: cannot access '/proc/14104/task/14104/fd/3': No such file or directory
du: cannot access '/proc/14104/task/14104/fdinfo/3': No such file or directory
du: cannot access '/proc/14104/fd/4': No such file or directory
du: cannot access '/proc/14104/fdinfo/4': No such file or directory
987468250       /
984880012       /disks

Code: Select all

NAME        FSTYPE LABEL   SIZE RO TYPE MOUNTPOINT    PARTUUID                             UUID
sda                        3.7T  0 disk                                                    
├─sda1      ext4           200M  0 part               af39fadd-4f71-4fbe-ae82-551205a03e7e 284ce4db-751c-47bf-a01b-2a6c2348f3d4
├─sda2      ext4   TV      1.8T  0 part /disks/TV     28821df4-0dde-4d1a-89ee-1008df2b103c 1443803a-7890-4f73-9b66-87d206f4237b
└─sda3      ext4   Movies  1.8T  0 part /disks/Movies 274406d9-e205-4007-a76e-d6d75fe333d6 55d1999c-a676-4194-8d0f-955bdd83a36c
sdb                        3.7T  0 disk                                                    
mmcblk0                   59.5G  0 disk                                                    
├─mmcblk0p1 vfat   boot    256M  0 part /boot         ad09722e-01                          54E3-79CE
└─mmcblk0p2 ext4   rootfs 59.2G  0 part /             ad09722e-02                          c6dd3b94-a789-4d57-9080-1472f721804b
User avatar
Joulinar
Posts: 5116
Joined: Sat Nov 16, 2019 12:49 am

Re: Services don't start

Post by Joulinar »

some interesting points,

your /disks - sda2 and sda3 are not showing up on the command df -hT :?
While it seems to be mounted

Next point would be your SD card. Looks like you have a 60GB on rootFS

Code: Select all

mmcblk0p2 ext4   rootfs 59.2G  0 part /
while the mounted file system shows 34 GB only :?

Code: Select all

Filesystem     Type      Size  Used Avail Use% Mounted on
/dev/root      ext4       34G   33G     0 100% /
Maybe it was not extended fully.


Anyway, let's check what it blocking your rootFS and exclude sda2 and sda3

Code: Select all

du -a / --exclude /disks/TV --exclude /disks/Movies | sort -n -r | head -n 20
Another option is to disconnect your HDD (sda) - if possible - and try to search again for large files.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply