Tag Archives: oneiric

minidlna filling up /var

As mentioned here, I noticed some odd behaviour from minidlna, where it was hogging the CPU. Now minidlna have filled up the filesystem /var two times for me, so what’s up?

A closer inspection of /var showed that it was the logfile /var/log/minidlna.log that was growing out of control, with a size of several hundreds of MB. The logfile was filled with errors like these:

[2012/01/29 22:12:37] sql.c:40: error: SQL ERROR 8 [attempt to write a readonly database]
INSERT into OBJECTS (OBJECT_ID, PARENT_ID, REF_ID, DETAIL_ID, CLASS, NAME) VALUES ('64$0$1D', '64$0', NULL, 0, 'container.storageFolder', 'stuff...')

 

Some googling suggested that there might be a problem with the ownership of the database file, specifically if it was owned by root… Everything in /var/lib/minidlna on my system was owned by root, so I changed ownership to the user/group minidlna:

Posted in Linux | Tagged , , , , , , , , , , , | 1 Comment

connect: No buffer space available

First time I’ve gotten this problem when trying to ping another host:

$ ping pong
connect: No buffer space available

The command ifconfig didn’t show anything unusual, but dmesg showed some interesting lines:

[332083.737268] ipv4: Neighbour table overflow.
[332205.552806] net_ratelimit: 15 callbacks suppressed

I noticed that minidlna sucked up 100% from one core, but I don’t know if this is related. I restarted minidlna and the network, and all was back to normal again:

$ sudo /etc/init.d/minidlna restart
$ sudo /etc/init.d/networking restart

When I was back online again, I was curious and googled the problem. I found some hints to check the routing table and arp table, which I’ll do in the future should the problem ever arise again.

Posted in Linux | Tagged , , , , , , , , , , , , , , , , | 2 Comments