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

Re: Services don't start

Post by Siren »

Excluding /disks, this is all it shows. And yes, you're right, I have a 64GB card as internal storage.

Code: Select all

du: cannot access '/proc/1203/task/1203/fd/3': No such file or directory
du: cannot access '/proc/1203/task/1203/fdinfo/3': No such file or directory
du: cannot access '/proc/1203/fd/4': No such file or directory
du: cannot access '/proc/1203/fdinfo/4': No such file or directory
2389578 /
1133120 /usr
875492  /usr/lib
541584  /mnt
541544  /mnt/dietpi_userdata
498948  /mnt/dietpi_userdata/jellyfin
454104  /mnt/dietpi_userdata/jellyfin/metadata
376820  /opt
367408  /usr/lib/mono
351356  /mnt/dietpi_userdata/jellyfin/metadata/People
232604  /opt/radarr
220016  /lib
197288  /usr/share
163568  /usr/lib/aarch64-linux-gnu
137400  /usr/lib/jellyfin
137392  /usr/lib/jellyfin/bin
123544  /opt/jackett
106496  /usr/lib/mono/aot-cache
106492  /usr/lib/mono/aot-cache/arm64
100112  /usr/lib/python2.7
User avatar
Joulinar
Posts: 4249
Joined: Sat Nov 16, 2019 12:49 am

Re: Services don't start

Post by Joulinar »

did you exclude the entire /disks folder or just the 2 directories /disks/TV + /disks/Movies? Because it is only showing 2.3GB now. This doesn't fit to the 33GB used on rootFS. Interesting system you have :?
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 »

The entire /disks. When I was excluding both subfolders, it only showed the "cannot access" lines, for some reason.
User avatar
Joulinar
Posts: 4249
Joined: Sat Nov 16, 2019 12:49 am

Re: Services don't start

Post by Joulinar »

it's just a guess but probably most of your data are located somewhere inside /disks/ but not in /disks/TV + /disks/Movies as this is another HDD.

For testing are you able to unmount /disks/TV + /disks/Movies ?? And run du -a / | sort -n -r | head -n 20 again

Btw: are you running this as user root ?
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 »

This is so weird. I tried unmounting the drives on drive manager but they are not mounted.
Just to make sure, I physically unplugged both HDs, rebooted the Pi and ran du -a / | sort -n -r | head -n 20 again.
Here's what I got:

Code: Select all

du: cannot access '/proc/797/task/797/fd/3': No such file or directory
du: cannot access '/proc/797/task/797/fdinfo/3': No such file or directory
du: cannot access '/proc/797/fd/4': No such file or directory
du: cannot access '/proc/797/fdinfo/4': No such file or directory
du: cannot access '/proc/973': No such file or directory
33634578        /
31245248        /disks
28521252        /disks/Software
And then subfolders of /disks/Software and /disks/Docs, that are partitions of the other HD and that it's unplugged.
Also, yes I'm on root.
Siren
Posts: 20
Joined: Sun Jul 28, 2019 5:35 pm

Re: Services don't start

Post by Siren »

Quick update: I went to check /etc/fstab and the auto-mounts I had set up for the drives were completely wiped out.
User avatar
Joulinar
Posts: 4249
Joined: Sat Nov 16, 2019 12:49 am

Re: Services don't start

Post by Joulinar »

we are getting closer ;)

maybe /etc/fstab has been updated by drive manager while the disks are not mounted. This could lead to a clean up. But can be fixed once you connect the HDD

ok as your 2nd HDD vanished some time ago, all data are written to rootFS now, which hold 28GB on /disks/Software atm. You would need to move this data to the 2nd HDD or perform housekeeping to free up space
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 »

We are VERY close, but I'm still a bit lost. Here's my fstab setup:

Code: Select all

UUID=1443803a-7890-4f73-9b66-87d206f4237b /disks/TV ext4 noatime,lazytime,rw,nofail,noauto,x-systemd.automount
UUID=55d1999c-a676-4194-8d0f-955bdd83a36c /disks/Movies ext4 noatime,lazytime,rw,nofail,noauto,x-systemd.automount
UUID=199f3024-72ad-4fd8-9d23-933e9e3165e6 /disks/Docs ext4 noatime,lazytime,rw,nofail,noauto,x-systemd.automount
UUID=39ac04ac-3fd7-472e-a87e-f4269aeea48a /disks/Software ext4 noatime,lazytime,rw,nofail,noauto,x-systemd.automount
UUID=8693c0da-fac5-4289-ab38-846234b2d266 /disks/DietPi ext4 noatime,lazytime,rw,nofail,noauto,x-systemd.automount
The /disks/DietPi is where my data was supposed to be. When the fstab was erased, the data had nowhere to go, as you said.

I updated /etc/fstab again, connected the HDDs and restarted the Pi. All partitions showed up (confirmed by samba, I can see all files in all partitions in all HDDs like nothing ever happened), except for /disks/DietPi. Still, It was detected, so I went to Drive Manager and tried to move rootFS to the partition. It was a success, but when I restarted the Pi the services still won't work and disks/DietPi was commented out of /etc/fstab. I'm not sure what to do next.
User avatar
Joulinar
Posts: 4249
Joined: Sat Nov 16, 2019 12:49 am

Re: Services don't start

Post by Joulinar »

can you share 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 »

It says -bash: lsblk: command not found. Should I install something?
Post Reply