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.

Synology DS209+ uPNP Re-indexing media files (fixed)

After contacting Synology support they confirmed that this is a known bug and they logged into the system and now after going into the management interface and clicking “Re-index” it has worked.  I can once again see the media files via the uPNP & the PS3.

Waiting to hear back from the support team what the problem was and how it can be fixed in the future without having to contact them.

It appears to be with the postgresql database server, which, for some reason was killed shortly after poweron:

Apr  2 17:29:27 kernel: Out of memory: kill process 2320 (postgres) score 17669 or a child
Apr  2 17:29:27 kernel: Killed process 2323 (postgres)

Then the index daemon had similar issues:

Apr  2 17:30:45 kernel: Out of memory: kill process 2490 (synoindexd) score 6426 or a child
Apr  2 17:30:45 kernel: Killed process 2490 (synoindexd)
Apr  2 18:16:34 dms: pgsql.c (133) Failed to re-connect to (null), user: admin, db:mediaserver. (could not connect to server: No such file or directory ^IIs the server running locally and accepting ^Iconnections on Unix domain socket “/tmp/.s.PGSQL.5432”? )

I hope Synology support can suggest a fix for the future, or, firmware update.

In the below forum posts there are two suggestions on how to possibly fix the problem.  The suggestion of moving the files, disabling upnp, re-enabling and moving the files back sounds like the better solution, but, I haven’t tested either yet as Synology appears to have fixed the issue on my machine.

Update:  It turns out that a media file was causing the indexing process of the ds209+ to use a lot of memory and crash… causing the ds209+ not to display any media via uPNP.  The media was renamed and machine rebooted and then it re-indexed fine.

URLs: