dan_ce
Posts: 13
Joined: Fri Mar 30, 2018 1:59 pm

Getting a disk space error on the daily despite...

Mon May 20, 2019 9:46 am

Code: Select all

/etc/cron.weekly/man-db:
/usr/bin/mandb: can't write to /var/cache/man/23501: No space left on device
/usr/bin/mandb: can't create index cache /var/cache/man/23501: No space left on device
run-parts: /etc/cron.weekly/man-db exited with return code 2
Hallo!

I'm getting this error daily now despite there being seemingly lots of space on the drive. Bit confused! Have followed a few of the suggestions found on online articles for what to do in this situation but nothing has helped.


Output of mount command

Code: Select all

[email protected]:/dev $ mount
/dev/mmcblk0p2 on / type ext4 (rw,noatime,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=217600k,nr_inodes=54400,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
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/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
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=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
tmpfs on /home/pi/log type tmpfs (rw,noatime,size=204800k,uid=1000,gid=1000)
/dev/mmcblk0p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
//192.168.0.100/documents on /home/pi/macmini type cifs (rw,nosuid,nodev,noexec,relatime,vers=1.0,cache=strict,username=danebdon,domain=WORKGROUP,uid=1000,forceuid,gid=1000,forcegid,addr=192.168.0.100,soft,unix,posixpaths,serverino,mapposix,acl,rsize=61440,wsize=65536,echo_interval=60,actimeo=1,_netdev)
tmpfs on /run/user/998 type tmpfs (rw,nosuid,nodev,relatime,size=44380k,mode=700,uid=998,gid=995)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=44380k,mode=700,uid=1000,gid=1000)

Code: Select all

[email protected]:/ $ ls | xargs du -hs
0       proc
0       sys
100K    media
109M    etc
12K     mnt
16K     lost+found
22M     boot
238M    lib
23M     boot.bak
23M     run
3.7M    dev
36K     tmp
4.0K    debootstrap
4.0K    root
4.0K    srv
4.3G    home
412M    var
42M     opt
6.8M    bin
7.4M    sbin
853M    usr
Any help most welcome!

Thanks
Attachments
dasdasdass.PNG
dasdasdass.PNG (13.9 KiB) Viewed 329 times

B.Goode
Posts: 7693
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Getting a disk space error on the daily despite...

Mon May 20, 2019 10:01 am

What does

Code: Select all

df -h
reveal about the free space (not inodes) on your filesystems?

dan_ce
Posts: 13
Joined: Fri Mar 30, 2018 1:59 pm

Re: Getting a disk space error on the daily despite...

Mon May 20, 2019 10:35 am

Sorry I thought I'd included this image but it looks like when you select a few images in the directory it will still only upload one!
sadasdsa.PNG
sadasdsa.PNG (13.64 KiB) Viewed 313 times

Ernst
Posts: 1084
Joined: Sat Feb 04, 2017 9:39 am
Location: Germany

Re: Getting a disk space error on the daily despite...

Mon May 20, 2019 10:46 am

dan_ce wrote:
Mon May 20, 2019 10:35 am
Sorry I thought I'd included this image but it looks like when you select a few images in the directory it will still only upload one!

sadasdsa.PNG
You should have noticed the problem when you posted the screen shot: your memory card is too small (or not properly adjusted).
The road to insanity is paved with static ip addresses

B.Goode
Posts: 7693
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Getting a disk space error on the daily despite...

Mon May 20, 2019 10:56 am

I'm getting this error daily now despite there being seemingly lots of space on the drive. Bit confused!


The first line of that most recent report clearly confirms the message from Cron - there is no space left on your root filesystem ( ' / ' ), which is where files being written to /var will go...

dan_ce
Posts: 13
Joined: Fri Mar 30, 2018 1:59 pm

Re: Getting a disk space error on the daily despite...

Mon May 20, 2019 11:10 am

Really? So me disk is just full, even though the subfolders show space available? Confused.

B.Goode
Posts: 7693
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Getting a disk space error on the daily despite...

Mon May 20, 2019 11:21 am

dan_ce wrote:
Mon May 20, 2019 11:10 am
Really? So me disk is just full, even though the subfolders show space available? Confused.
Avail = 0; Use% = 100 : Yes, your root filesystem (not necessarily 'the disk', whatever that means) is full so Cron can't write to it.

Ernst
Posts: 1084
Joined: Sat Feb 04, 2017 9:39 am
Location: Germany

Re: Getting a disk space error on the daily despite...

Mon May 20, 2019 11:31 am

dan_ce wrote:
Mon May 20, 2019 11:10 am
Really? So me disk is just full, even though the subfolders show space available? Confused.
Where did you read that the disk is full ? I said memory card is too small (or not properly adjusted) because of the 1.8GB size of the root file system (= root partition). Based on this information I suspect that you have installed a raspbian lite version on a 2GB memory card which is the absolute minimum. My experience is that raspbian lite should have a memory card with preferably 4GB and raspbian with desktop preferably 8GB or more
The road to insanity is paved with static ip addresses

User avatar
Paeryn
Posts: 2513
Joined: Wed Nov 23, 2011 1:10 am
Location: Sheffield, England

Re: Getting a disk space error on the daily despite...

Mon May 20, 2019 1:38 pm

dan_ce wrote:
Mon May 20, 2019 11:10 am
Really? So me disk is just full, even though the subfolders show space available? Confused.
Most of those listed have their file system as tmpfs, those exist in memory only and their contents are not part of the physical disk.
She who travels light — forgot something.

dl324
Posts: 107
Joined: Mon May 06, 2019 7:33 pm
Location: Pacific Northwest, USA

Re: Getting a disk space error on the daily despite...

Mon May 20, 2019 7:05 pm

dan_ce wrote:
Mon May 20, 2019 11:10 am
Really? So me disk is just full, even though the subfolders show space available? Confused.
What matters is the partition that you try to write to.
diskFull.jpg
diskFull.jpg (6.46 KiB) Viewed 229 times
Check /var/cache:

Code: Select all

df -h /var/cache

Return to “Raspbian”