No space left on device - bug?

Asif Iqbal vadud3 at gmail.com
Mon Aug 8 23:25:03 UTC 2011


On Mon, Aug 8, 2011 at 11:58 AM, Colin Law <clanlaw at googlemail.com> wrote:
> On 8 August 2011 16:39, Asif Iqbal <vadud3 at gmail.com> wrote:
>> Hi
>>
>> I am been noticing this odd error in my ubunut 11.04 64bit.
>>
>> iqbala at ghar-iqbala:~$ cat file
>> this is a file
>> iqbala at ghar-iqbala:~$ tail file
>> this is a file
>> iqbala at ghar-iqbala:~$ tail -f file
>> this is a file
>> tail: cannot watch `file': No space left on device
>
> Could this be relevant?
> https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/700958  tail
> -f gives misleading error message when inotify limit is reached

yep exact same issue

# strace tail -f file
...
inotify_init()                          = 4
inotify_add_watch(4, "file",
IN_MODIFY|IN_ATTRIB|IN_DELETE_SELF|IN_MOVE_SELF) = -1 ENOSPC (No space
left on device)
open("/usr/share/locale/locale.alias", O_RDONLY) = 5
....

looks like I am using coreutils 8.5
iqbala at ghar-iqbala:~$ apt-cache policy coreutils
coreutils:
  Installed: 8.5-1ubuntu6
  Candidate: 8.5-1ubuntu6
  Version table:
 *** 8.5-1ubuntu6 0
        500 http://archive.ubuntu.com/ubuntu/ natty/main amd64 Packages
        100 /var/lib/dpkg/status

So I upgraded to latest coreutils using ppa
iqbala at ghar-iqbala:~$ sudo add-apt-repository ppa:hggdh2/ppa
iqbala at ghar-iqbala:~$ sudo apt-get update
iqbala at ghar-iqbala:~$ sudo apt-get install coreutils
iqbala at ghar-iqbala:~$ sudo apt-cache policy coreutils
coreutils:
  Installed: 8.12.65-5c5576~20110530~ppa1
  Candidate: 8.12.65-5c5576~20110530~ppa1
  Version table:
 *** 8.12.65-5c5576~20110530~ppa1 0
        500 http://ppa.launchpad.net/hggdh2/ppa/ubuntu/ natty/main
amd64 Packages
        100 /var/lib/dpkg/status
     8.5-1ubuntu6 0
        500 http://archive.ubuntu.com/ubuntu/ natty/main amd64 Packages

Now I truly get the inotify message
iqbala at ghar-iqbala:~$ tail -f file
this is a file
tail: inotify resources exhausted
tail: inotify cannot be used, reverting to polling

So why am I still getting this
iqbala at ghar-iqbala:~$ cat /proc/sys/fs/inotify/max_user_watches
8192

what is using inotify? how do I fix it?







>
> Otherwise googling for
> tail no space left on device
> throws up a number of links that might help
>
> Colin
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>



-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?




More information about the ubuntu-users mailing list