Page 1 of 1

TwonkyServer 6.0.39 playlist generation

Posted: Sat Jul 21, 2012 11:58 am
by fluXXXion
I have updated my NAS (QNAP TS-419P+) to the latest Firmware revision which also includes a new TwonkyServer Version (6.0.39).
Unfortunately the server starts scanning the music files (~ 52.000 MP3 files) and generating wpl playlist files from scratch.
Normally this takes about one day, during this process the twonkymediaserver process takes 95 to 100 % of the CPU load.

Currently this process runs for 3 days and 2 hours, I have no idea when this will be finished.

Is there any way to stop this?
What are these wpl files for?
Is it possible to backup them prior to the next FW update and restore them afterwards?
Why are all playlists recreated when I restart the TwonkyServer or rescan the media directories?
I would not take care about that if this process takes a few hours, but a few days (weeks?) are inacceptable.

Re: TwonkyServer 6.0.39 playlist generation

Posted: Tue Jul 24, 2012 12:09 am
by Twonky_Rick
It seems like you might have a problem with corrupted media files which is causing problems with the file scanner. Can you identify which file it's stopping on and send that file to me for testing?

I don't have an answer to your WPL question, but I'll try to get one.

- Rick

Re: TwonkyServer 6.0.39 playlist generation

Posted: Wed Jul 25, 2012 12:48 am
by Twonky_Rick
Here is the answer I received:
I think the easiest way to solve this is to start from scratch.

1. You should stop TwonkyServer and then manually delete the database and cache directories of TwonkyServer.
2. You should also check the server-managed directories where Twonky keeps uploaded items and playlists. If there are WPL files there, you should move them to a location outside the shared locations (or just delete them).

In general having many playlist files slows down the scan process a lot. TwonkyServer has to verify for each playlist if the items inside the playlist are in the shared locations or not. This can take quite some time because it happens in two steps: First it's converted to WPL and then it's imported.

Q: Why do we create a bunch of WPL files during the file scanning process?
A: Any supported playlist format is converted to a WPL playlist. The WPL playlist is imported by TwonkyServer.
Thanks Burkhard for providing this answer.

-Rick

Re: TwonkyServer 6.0.39 playlist generation

Posted: Wed Jul 25, 2012 8:14 pm
by fluXXXion
Thanks.
After the scan was still running for over 7 days I have deactivated UPnP-Mediaserver (which is TwonkyServer 6.0.39), deleted all concerned directories and installed TS 6.0.38 from QPKG Center of my QNAP.
Will report back when the scan is finished...

Re: TwonkyServer 6.0.39 playlist generation

Posted: Wed Jul 25, 2012 11:28 pm
by Twonky_Rick
Thanks.

A server log might help if you're still seeing problems. Let me know if you don't know how to generate one. Thanks.

- Rick

Re: TwonkyServer 6.0.39 playlist generation

Posted: Thu Jul 26, 2012 4:47 pm
by fluXXXion
You mean "Maintenance" - "Logging" on the TS config page?

How long should it normally take for 52.000 MP3 files to scan? It is running for 10 hours now...

Re: TwonkyServer 6.0.39 playlist generation

Posted: Fri Jul 27, 2012 7:54 am
by fluXXXion
Finished after approx. 16 hours. I think this is acceptable.

BUT: Now I have duplicate entries for "Artist/album" etc., and many artists are missing. Restarting the server again :|
I think I will start from scratch again if this does not succeed - please tell me which directories should be deleted manually.

Re: TwonkyServer 6.0.39 playlist generation

Posted: Mon Jul 30, 2012 7:34 pm
by Twonky_Rick
Checking... Standby...

- Rick

Re: TwonkyServer 6.0.39 playlist generation

Posted: Wed Aug 08, 2012 12:33 am
by Twonky_Rick
Sorry for the delay. Here is the response which I received:
I don't know the settings QNAP uses on their NAS. This returns the full config settings from TS:

http://<IP>:<PORT>/rpc/get_all

The response contains the properties dbdir and cachedir

In addition he could also check the directories configured for servermanagedmusicdir, servermanagedpicturedir and servermanagedvideodir. If one of these contains huge amounts of WPL files, he should delete those as well.
- Rick

[Thanks for Burkhard for this info.]