No space left?

Server Version#:
Player Version#:

Not sure if I can be helped here of if I need to go to Ubuntu but I have had a lot of help on this forum. I have a Ubuntu server dedicated to plex but I keep getting errors about there not being enough space (there is plenty) and I cannot update or play videos. When I go to update it says “unable to create ‘/var/lib/dpkg/updates/tmp. I’ : no space left in device”

Dante,

Please do the following:

sudo sh
systemctl stop plexmediaserver
systemctl disable plexmediaserver
df -h

Let me see the output of that please

We can recover from this and move your Plex metadata to /home where there is more room
UNLESS the whole disk is full.

The whole disk should not be full… I currently have two drives - one a 64 gb SSD and then a 3 or 4 tb drive attached which won’t let me put any files on either

# systemctl stop plexmediaserver
# systemctl disable plexmediaserver
Removed /etc/systemd/system/multi-user.target.wants/plexmediaserver.service.
# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            3.8G     0  3.8G   0% /dev
tmpfs           766M  3.1M  763M   1% /run
/dev/sda1        52G   25G   24G  52% /
tmpfs           3.8G  8.0K  3.8G   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           3.8G     0  3.8G   0% /sys/fs/cgroup
/dev/loop0       92M   92M     0 100% /snap/core/6531
/dev/loop1       15M   15M     0 100% /snap/gnome-characters/206
/dev/loop3      2.3M  2.3M     0 100% /snap/gnome-calculator/260
/dev/loop2      3.8M  3.8M     0 100% /snap/gnome-system-monitor/77
/dev/loop4       54M   54M     0 100% /snap/core18/782
/dev/loop5       15M   15M     0 100% /snap/gnome-characters/254
/dev/loop7      1.0M  1.0M     0 100% /snap/gnome-logs/61
/dev/loop6       54M   54M     0 100% /snap/core18/941
/dev/loop9       91M   91M     0 100% /snap/core/6405
/dev/loop11     3.8M  3.8M     0 100% /snap/gnome-system-monitor/57
/dev/loop10     4.2M  4.2M     0 100% /snap/gnome-calculator/352
/dev/loop8       90M   90M     0 100% /snap/core/6673
/dev/loop12      35M   35M     0 100% /snap/gtk-common-themes/818
/dev/loop14     141M  141M     0 100% /snap/gnome-3-26-1604/82
/dev/loop13     141M  141M     0 100% /snap/gnome-3-26-1604/78
/dev/loop15     152M  152M     0 100% /snap/gnome-3-28-1804/36
/dev/loop16      36M   36M     0 100% /snap/gtk-common-themes/1198
/dev/loop17     1.0M  1.0M     0 100% /snap/gnome-logs/57
/dev/loop19      13M   13M     0 100% /snap/gnome-characters/139
/dev/loop18      15M   15M     0 100% /snap/gnome-logs/45
/dev/loop20     141M  141M     0 100% /snap/gnome-3-26-1604/74
/dev/loop21      35M   35M     0 100% /snap/gtk-common-themes/1122
/dev/sdb1       2.7T  1.3T  1.4T  48% /disks/nas
/dev/loop23     3.8M  3.8M     0 100% /snap/gnome-system-monitor/70
/dev/loop24     144M  144M     0 100% /snap/gnome-3-28-1804/23
/dev/loop22     4.2M  4.2M     0 100% /snap/gnome-calculator/406
tmpfs           766M  108K  766M   1% /run/user/1000

Moderator Edit: Legibility

I think I know what it’s doing. Snaps have made a mess.

Please check one more thing for me?

df -h /

I suspect that’s the culprit

# df -h /
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        52G   25G   24G  52% /

Are you using Plex in a SNAP? or standalone? It looks standalone?

I believe stand alone… not really sure what a snap is

Do you feel comfortable with this?

We “Backup” from /var/lib/plexmediaserver
We “Restore” to /home/plexdata
We next “Customize” your config to point to the new location.

If not 100% comfortable, I’ll help. it’s easy

Will that also fix the other issues I have been having with ubuntu (i.e. my storage drive saying its full, not being able to install updates because drives are full, etc)

I got this far

cd /var/lib/plexmediaserver
# tar cfz /nas/tmp/PlexBackup.tar.gz ./Library
tar (child): /nas/tmp/PlexBackup.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: /nas/tmp/PlexBackup.tar.gz: Cannot write: Broken pipe
tar: Child returned status 2
tar: Error is not recoverable: exiting now

How about this;

sudo sh
mkdir /home/plexdata
cd /var/lib/plexmediaserver
tar cfz /home/plexdata/Library.tar ./Library

That will put the copy on your local HD, in the new location, for when we unpack it there.

No space issue

 mkdir /home/plexdata
# cd /var/lib/plexmediaserver
# tar cfz /home/plexdata/Library.tar ./Library
tar (child): /home/plexdata/Library.tar: Cannot open: No space left on device
tar (child): Error is not recoverable: exiting now
tar: /home/plexdata/Library.tar: Cannot write: Broken pipe
tar: Child returned status 2
tar: Error is not recoverable: exiting now

if this

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        52G   25G   24G  52% /

Then how big?

du -ms /var/lib/plexmediaserver

Also

ls -la /home/plexdata
du -ms /var/lib/plexmediaserver
3196	/var/lib/plexmediaserver
santo@Media-Server:~$ ls -la /home/plexdata
total 8
drwxr-xr-x 2 root root 4096 Apr 23 21:04 .
drwxr-xr-x 4 root root 4096 Apr 23 21:04 ..

that makes NO sense. you have 50 GB free and only 3 GB in use

That’s what I thought but figured I was missing something

ok… let’s try this:

sudo mount

let’s see what it has mounted and where.

/$ sudo mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=3889164k,nr_inodes=972291,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=783888k,mode=755)
/dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=32,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=3181)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
/var/lib/snapd/snaps/core_6531.snap on /snap/core/6531 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-characters_206.snap on /snap/gnome-characters/206 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-calculator_260.snap on /snap/gnome-calculator/260 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-system-monitor_77.snap on /snap/gnome-system-monitor/77 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/core18_782.snap on /snap/core18/782 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-characters_254.snap on /snap/gnome-characters/254 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-logs_61.snap on /snap/gnome-logs/61 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/core18_941.snap on /snap/core18/941 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/core_6405.snap on /snap/core/6405 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-system-monitor_57.snap on /snap/gnome-system-monitor/57 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-calculator_352.snap on /snap/gnome-calculator/352 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/core_6673.snap on /snap/core/6673 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gtk-common-themes_818.snap on /snap/gtk-common-themes/818 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-3-26-1604_82.snap on /snap/gnome-3-26-1604/82 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-3-26-1604_78.snap on /snap/gnome-3-26-1604/78 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-3-28-1804_36.snap on /snap/gnome-3-28-1804/36 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gtk-common-themes_1198.snap on /snap/gtk-common-themes/1198 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-logs_57.snap on /snap/gnome-logs/57 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-characters_139.snap on /snap/gnome-characters/139 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-logs_45.snap on /snap/gnome-logs/45 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-3-26-1604_74.snap on /snap/gnome-3-26-1604/74 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gtk-common-themes_1122.snap on /snap/gtk-common-themes/1122 type squashfs (ro,nodev,relatime,x-gdu.hide)
/dev/sdb1 on /disks/nas type ext4 (rw,relatime,data=ordered)
/var/lib/snapd/snaps/gnome-system-monitor_70.snap on /snap/gnome-system-monitor/70 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-3-28-1804_23.snap on /snap/gnome-3-28-1804/23 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-calculator_406.snap on /snap/gnome-calculator/406 type squashfs (ro,nodev,relatime,x-gdu.hide)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=783884k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)

Do you have a quota enabled?

Your /var is in the root

/dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)

You don’t have a /home partition.

The only “No Space” has to be a quota

OR

damaged filesystem

I don’t believe I have a quota… I think everything has always been in root the only folder I have had in /home is /santo