Apache – No space left on device

Apache had crashed and when trying to restart it with service restart apache or /etc/init.d/apache restart the following error would result in the error_log file:

 (28)No space left on device: mod_rewrite: could not create rewrite_log_lock Configuration Failed

There weren’t any apache processes lingering around and the disk had plenty of space and inodes left. The following URL helped fix the problem, or, a reboot would have worked too:

URL:

This URL suggested the following commands to debug and fix:

ipcs -s | grep apache
ipcs -s | grep apache | perl -e ‘while (<STDIN>) { @a=split(/\s+/); print `ipcrm sem $a[1]`}’

Which worked for me.  Also suggested the following for Ubuntu 8.04:

ipcs -s | grep www-data | sudo perl -alne ‘qx(ipcrm -s $F[1])’

Synology 209+ bluray m2ts (mpg) file indexing issues

Previously when I tried to rip one of my Blu Ray disks to a .m2ts file on the DS209+ and tried to view it via the PS3 (uPNP on Synology 209+) I had to contact Synology support as it broke indexing completely on the DS209+.

I thought I had done something wrong ripping the blu ray, but, it appears not.  My friend ripped the bluray for me and had the same issues.

First of all, the DS209+ does not pickup the .m2ts files for indexing, but, changing it to .mpg will kick off the indexing.  At this point on the command line the index daemon goes crazy and uses up all the system resources:

DiskStation> ps uaxw | grep index
2488 root  3536 S N /usr/syno/sbin/synoindexd
DiskStation> ps uaxw | grep index
2488 root  3536 S N /usr/syno/sbin/synoindexd
DiskStation> ps uaxw | grep index
2488 root  3536 S N /usr/syno/sbin/synoindexd
DiskStation> ps uaxw | grep index
2488 root  10844 R N /usr/syno/sbin/synoindexd
DiskStation> ps uaxw | grep index
2488 root  19172 R N /usr/syno/sbin/synoindexd
DiskStation> ps uaxw | grep index
2488 root  26704 R N /usr/syno/sbin/synoindexd
DiskStation> ps uaxw | grep index
2488 root  34536 R N /usr/syno/sbin/synoindexd
DiskStation> ps uaxw | grep index
2488 root  43348 R N /usr/syno/sbin/synoindexd
DiskStation> ps uaxw | grep index
2488 root  43348 R N /usr/syno/sbin/synoindexd
DiskStation> ps uaxw | grep index
2488 root  62624 R N /usr/syno/sbin/synoindexd
DiskStation> ps uaxw | grep index
2488 root  79528 R N /usr/syno/sbin/synoindexd
DiskStation> ps uaxw | grep index
2488 root  79528 R N /usr/syno/sbin/synoindexd
DiskStation> ps uaxw | grep index
2488 root  79528 R N /usr/syno/sbin/synoindexd
DiskStation> ps uaxw | grep index
2488 root  79528 R N /usr/syno/sbin/synoindexd
DiskStation> ps uaxw | grep index
2488 root  88392 R N /usr/syno/sbin/synoindexd
DiskStation> ps uaxw | grep index
2488 root  114024 R N /usr/syno/sbin/synoindexd
DiskStation> ps uaxw | grep index
2488 root  138696 R N /usr/syno/sbin/synoindexd
DiskStation> ps uaxw | grep index
2488 root  268404 R N /usr/syno/sbin/synoindexd
DiskStation> ps uaxw | grep index
2488 root  301752 R N /usr/syno/sbin/synoindexd

I’m running the latest firmware on the Synology DS209+, so, I’m not sure what the problem is or if there is a fix for getting these files displayed via uPNP.  Very frustrating.

Will update this if I find a fix.  Anyone else seeing this issue?

Searching for the same issue the are some support posts on the Synology site which maybe relevant:

The first one suggested installing python and running a script which appears to search the directory structure for mpg and avi files then updates the database.  This is a pretty good idea, but, perhaps perl would be a better choice as the DS 209+ appears to have perl on it already.  Might look into doing something with that.