Page 1 of 1

Problem with Playlists in 1.5.1

PostPosted: Wed Mar 25, 2015 2:44 pm
by cisop
The automatic updater in Servioo 1.5.1 will no longer add playlists (.m3u files). It gives the following error.

"The process cannot access the file because it is being used by another process"

At first I thought it had attempted to add the file while I was copying it. But it gives the same error for the m3u file on all subsequent runs. As a test I added a couple of video files to the directory. The updater ran automatically and added them to the library but still gave the same error for the m3u file.

If you force a library refresh the m3u files are added with no error.

In a nutshell the auto updater will not add m3u files. The manual updater will.

-
cisop

Re: Problem with Playlists in 1.5.1

PostPosted: Sun Aug 28, 2016 1:32 pm
by dazzknowles
In version 1.6.1 I get exactly the same issue.

Re: Problem with Playlists in 1.5.1

PostPosted: Fri Jan 20, 2017 10:54 pm
by dazzknowles
... And still in 1.8.0 - is no one else getting this problem?

java.io.FileNotFoundException: D:\Playlists\Primal Scream - Give Out But Don't Give Up.m3u (The process cannot access the file because it is being used by another process)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileInputStream.<init>(FileInputStream.java:93)
at org.serviio.library.playlist.PlaylistParser.getPlaylistBytes(PlaylistParser.java:84)
at org.serviio.library.playlist.PlaylistParser.parse(PlaylistParser.java:59)
at org.serviio.library.local.indexing.PlaylistFileIndexer.addNewPlaylistFile(PlaylistFileIndexer.java:66)
at org.serviio.library.local.indexing.DefaultLibraryMonitor.fileAdded(DefaultLibraryMonitor.java:53)
at org.serviio.library.local.indexing.pipe.PipeManager$PipeProcessingConsumer.lambda$run$27(PipeManager.java:174)
at java.util.Optional.ifPresent(Optional.java:159)
at org.serviio.library.local.indexing.pipe.PipeManager$PipeProcessingConsumer.run(PipeManager.java:169)
at java.lang.Thread.run(Thread.java:745)

Re: Problem with Playlists in 1.5.1

PostPosted: Sat Jan 21, 2017 1:58 am
by atc98092
My playlists are in pls format, so are not the same as yours. Mine seem to work fine.

Re: Problem with Playlists in 1.5.1

PostPosted: Mon Jan 23, 2017 11:03 pm
by zip
This would be cause by something having the read lock on the file. Not sure what it could be on your system.

Re: Problem with Playlists in 1.5.1

PostPosted: Sun Feb 12, 2017 3:11 pm
by dazzknowles
zip wrote:This would be cause by something having the read lock on the file. Not sure what it could be on your system.


Yes, I understand the error, but the reason why I was getting this with just Playlists was odd. However, I've worked out the cause. I use Playlist Creator to make my playlists and for convenience was having it save them straight into the folder that Serviio has mapped as a library. By saving the playlists into a different directory and moving them I don't have the issue.

It's strange though as I rip the CDs the playlists relate to straight into a library folder with no issue but I guess there is something about how Playlist Creator creates its file locks that causes Serviio to fail.

Re: Problem with Playlists in 1.5.1

PostPosted: Mon Feb 13, 2017 1:58 am
by atc98092
Strange, I use Playlist Creator and save the files into a Serviio media folder. haven't had any issues with locked files. Aren't computers fun? :lol:

Re: Problem with Playlists in 1.5.1

PostPosted: Sun Mar 05, 2017 11:43 am
by dazzknowles
For anyone else stumbling into this issue I've found that setting the library folder I have for my playlist files to use Serviio's poller mechanism works fine so I have enabled this which then removes the need for me to manually force a refresh each time.