Jump to content

playlists are deleted


floppy0081

Recommended Posts

15 hours ago, braigo64 said:

I went to an artist, selected add to playlist from the context menu, no playlists were listed in the menu to add to so I clicked on create playlist. I created a new playlist called Work Mix 2. A little toast notification said x number of songs were added to the playlist. Going to the playlist library did not show the newly created playlist. Going to the path on the server showed that there was no m3u file in the directory either.

OK what if you instead click directly on a song and add that to a playlist?

Link to comment
Share on other sites

braigo64

Same thing happens. I choose to add it to a playlist, I have to create a playlist since it thinks none exist. After that it says 1 item added to playlist. Playlist does not show up in the library and there is no m3u file in the location on the server.

Edited by braigo64
Link to comment
Share on other sites

6 hours ago, braigo64 said:

Same thing happens. I choose to add it to a playlist, I have to create a playlist since it thinks none exist. After that it says 1 item added to playlist. Playlist does not show up in the library and there is no m3u file in the location on the server.

HI, can you please attach the emby server log from doing that? Thanks.

Link to comment
Share on other sites

OK I'm not sure why the playlist file isn't getting created, but that's the reason it later gets deleted from the database, because the library scan thinks that it's gone missing (e.g. that you deleted the playlist file).

The first thing we need to do is verify that the server even attempted to write the playlist file, and for this I will have to add more logging. It's in the beta channel now and will be in the upcoming 4.8.4 release as well.

So what I suspect is that the playlist file never got created in the first place, but what I don't know yet is whether it was attempted and failed, or not attempted at all. If it fails then the server log should have an error from that, so I'll have to double check that there's no possible way that we're swallowing the error and skipping over it silently.

Link to comment
Share on other sites

braigo64
8 hours ago, Luke said:

OK I'm not sure why the playlist file isn't getting created, but that's the reason it later gets deleted from the database, because the library scan thinks that it's gone missing (e.g. that you deleted the playlist file).

The first thing we need to do is verify that the server even attempted to write the playlist file, and for this I will have to add more logging. It's in the beta channel now and will be in the upcoming 4.8.4 release as well.

So what I suspect is that the playlist file never got created in the first place, but what I don't know yet is whether it was attempted and failed, or not attempted at all. If it fails then the server log should have an error from that, so I'll have to double check that there's no possible way that we're swallowing the error and skipping over it silently.

So it sounds like when I applied the latest update at the time, it attempted to convert my existing playlists to use m3u files instead, the creation of the files failed but no error was caught and it went ahead and deleted the old playlist files (though I can still access the playlists in the library, they just say no items found in them). And same thing when I try to create a new playlist, the file fails to create and the new playlist doesn't get created.

Link to comment
Share on other sites

1 hour ago, braigo64 said:

So it sounds like when I applied the latest update at the time, it attempted to convert my existing playlists to use m3u files instead, the creation of the files failed but no error was caught and it went ahead and deleted the old playlist files (though I can still access the playlists in the library, they just say no items found in them). And same thing when I try to create a new playlist, the file fails to create and the new playlist doesn't get created.

It could be either of the two that I mentioned. For the save to error silently without printing an error trace to the log would be very unusual though.

Link to comment
Share on other sites

  • 2 weeks later...
braigo64
On 4/13/2024 at 10:50 PM, Luke said:

It could be either of the two that I mentioned. For the save to error silently without printing an error trace to the log would be very unusual though.

After updating to 4.8.5.0 here is the latest server log. I created a playlist called Testlist7 when adding a song to a new playlist.  It added it successfully according to the pop up message. I could even see the playlist showing in a playlist section on the menu on the left side. I could click on it and it brought up the playlist with the single song in it. I went into the playlist library I have set up and it was not there. Rescanning that library didn't help. And then I noticed that the playlist section was gone from the left menu. Looking at the log file it shows it removed it from the database.

embyserver(3).txt

Link to comment
Share on other sites

After you create the playlist using the web app you get a toast popup that comes up and then goes away. What does it say?

Link to comment
Share on other sites

braigo64
3 hours ago, Luke said:

After you create the playlist using the web app you get a toast popup that comes up and then goes away. What does it say?

From the context menu for a song, I select "Add to Playlist". In the modal that pops up the only option is "New Playlist". I select that and in the new modal I enter the playlist name, then click the "Create" button. And this toast pops up:

 

Screenshot2024-04-23210508.png.d5e3dfec518aeb99b81512685ade0392.png

Eventually, the playlist appears in a new Playlist section of the left side menu. I can select it and it takes me to the playlist page with the one song. I can even play the playlist and it starts playing the song. I ssh into the server and go to the userplaylists directory but there are no files there for it at all. If I scan the playlist library and then click on the playlist in the left menu again it then says "The requested item could not be found. It may have been recently removed from the server." . When I go back to the home screen the playlist section of the left menu is gone. If I try to add a song to a playlist it again presents an empty modal with the only option as "New Playlist."

Link to comment
Share on other sites

OK so that confirms that the server is choosing not to write the playlist file for some reason, so now the next step is to find out why. Again more logging will be needed. Thanks.

Link to comment
Share on other sites

braigo64
18 hours ago, Luke said:

OK so that confirms that the server is choosing not to write the playlist file for some reason, so now the next step is to find out why. Again more logging will be needed. Thanks.

What's the ETA on the next release with that logging?

Link to comment
Share on other sites

  • 2 weeks later...
sonicdmonkey

I have a similar(ish) issue. The tldr is I can't add or remove tracks from playlists that were created outside of Emby.

My playlists are in two locations:

- /var/lib/emby/data/playlists (and now userplaylists)
- /mnt/playlists - a share on my NAS that I mount using cifs and added as a Library folder within Emby

In version 4.7 I could create skeleton .m3u8 files on the NAS share and add/remove tracks via Emby. This was great as I want my playlists to be available to other music players, not just Emby.

After upgrading to 4.8.5.0 I've noticed the following:
- Emby can see and play the .m3u8 playlists in /mnt/playlists
- I can't add tracks to those playlists -  I get the "Added to playlist" pop up, but the playlist in Emby is doesn't change and the m3u8 file is not updated
- I can't delete a track either - while it is initially removed from the playlist in Emby, again the m3u8 file not updated. The playlist in Emby eventually gets refreshed to match the m3u8 file if I try to add a track to it or manually edit it in some way.
- I can delete the .m3u8 files in /mnt/playlists via Emby

As far as I can tell a playlist created from within Emby works fine, no issues adding/delete tracks.

There isn't anything obvious in embyserver.txt - I see the usual POST to update the playlist and get a 200 back. The only difference is I don't see a "Info App: Saving playlist" message when editing my playlists in /mnt/playlists. The emby user has read/write access to the share.

My emby install is on a Debian 11.9 VM, 5.10.0-28-amd64.

  • Like 1
Link to comment
Share on other sites

On 4/25/2024 at 3:17 PM, Luke said:

Should be soon.

@braigo64?

Link to comment
Share on other sites

braigo64

Still no change. Here's the latest log file. playlist is called Testlist123. Created by trying to add a song to a new playlist.

embyserver(4).txt

Link to comment
Share on other sites

1 hour ago, braigo64 said:

Still no change. Here's the latest log file. playlist is called Testlist123. Created by trying to add a song to a new playlist.

embyserver(4).txt 238.11 kB · 0 downloads

Can you do one more thing, can you open the metadata editor for a playlist, just click save, and then attach the emby server log? thanks.

Link to comment
Share on other sites

braigo64
6 minutes ago, Luke said:

Can you do one more thing, can you open the metadata editor for a playlist, just click save, and then attach the emby server log? thanks.

My old "existing" playlists? Or a new playlist to create first? Here is a log after doing the former.

embyserver(5).txt

Link to comment
Share on other sites

braigo64
Posted (edited)

Here's the log with the latter as well. I added a song to a new playlist called Testlist456. I had to search for it to be able to access it. Then I saved the metdata.

embyserver(6).txt

Edited by braigo64
Link to comment
Share on other sites

OK one last thing. Just to rule these out as possible problems, can you please remove these plugins:

2024-05-07 21:35:27.872 Info App: Loading MediaBrowser.Plugins.TimeLordMovies, Version=19.8.3.1105, Culture=neutral, PublicKeyToken=null from /config/plugins/MediaBrowser.Plugins.TimeLordMovies.dll
2024-05-07 21:35:27.872 Info App: Loading GenreCleaner, Version=1.0.25.0, Culture=neutral, PublicKeyToken=null from /config/plugins/GenreCleaner.dll
2024-05-07 21:35:27.872 Info App: Loading MediaBrowser.Plugins.StudioCleaner, Version=3.2.8.0, Culture=neutral, PublicKeyToken=null from /config/plugins/StudioCleaner.

Then restart the server, try again, and see how things compare? Thanks.

Link to comment
Share on other sites

braigo64
3 hours ago, Luke said:

OK one last thing. Just to rule these out as possible problems, can you please remove these plugins:

2024-05-07 21:35:27.872 Info App: Loading MediaBrowser.Plugins.TimeLordMovies, Version=19.8.3.1105, Culture=neutral, PublicKeyToken=null from /config/plugins/MediaBrowser.Plugins.TimeLordMovies.dll
2024-05-07 21:35:27.872 Info App: Loading GenreCleaner, Version=1.0.25.0, Culture=neutral, PublicKeyToken=null from /config/plugins/GenreCleaner.dll
2024-05-07 21:35:27.872 Info App: Loading MediaBrowser.Plugins.StudioCleaner, Version=3.2.8.0, Culture=neutral, PublicKeyToken=null from /config/plugins/StudioCleaner.

Then restart the server, try again, and see how things compare? Thanks.

No change. Created playlist when adding a song to a new playlist, no file created in playlist directory. After library scan the playlist went poof. Attached log, for playlist Testlist789

embyserver(7).txt

Link to comment
Share on other sites

Happy2Play

Looks like it is created then deleted but do not see a reason why as all I see is a Refresh.

	Line 1615: 2024-05-08 20:30:38.868 Info Server: http/1.1 Response 200 to host7. Time: 234ms. POST http://host6:8096/emby/Playlists?Name=Testlist789&Ids=8942747&userId=dc81fd8516f84692a871089af16813cf&X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox Windows&X-Emby-Device-Id=77728c3c-fe75-4282-9e87-139b5cad4481&X-Emby-Client-Version=4.8.6.0&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us
	Line 1616: 2024-05-08 20:30:38.868 Debug SqliteItemRepository: GetitemById Playlist 9963373 /config/data/userplaylists/Testlist789 [playlist]/Testlist789.m3u
	Line 1617: 2024-05-08 20:30:38.922 Debug App: Running PlaylistItemsProvider for /config/data/userplaylists/Testlist789 [playlist]/Testlist789.m3u
	Line 1618: 2024-05-08 20:30:38.922 Debug App: PlaylistDynamicImageProvider reports change to 9963373 - /config/data/userplaylists/Testlist789 [playlist]/Testlist789.m3u
	Line 1619: 2024-05-08 20:30:38.922 Debug App: Running PlaylistDynamicImageProvider for /config/data/userplaylists/Testlist789 [playlist]/Testlist789.m3u
	Line 1736: 2024-05-08 20:30:55.381 Debug SqliteItemRepository: GetitemById Playlist 9963373 /config/data/userplaylists/Testlist789 [playlist]/Testlist789.m3u
	Line 1739: 2024-05-08 20:30:55.383 Debug App: ConvertImageToLocal item 9963373 - image url: emby://playlistcollage
	Line 1761: 2024-05-08 20:30:56.684 Debug SqliteItemRepository: GetitemById Playlist 9963373 /config/data/userplaylists/Testlist789 [playlist]/Testlist789.m3u
	Line 1764: 2024-05-08 20:30:56.883 Debug SqliteItemRepository: GetitemById Playlist 9963373 /config/data/userplaylists/Testlist789 [playlist]/Testlist789.m3u
	Line 1767: 2024-05-08 20:30:56.886 Debug SqliteItemRepository: GetitemById Playlist 9963373 /config/data/userplaylists/Testlist789 [playlist]/Testlist789.m3u
	Line 1770: 2024-05-08 20:30:56.918 Debug SqliteItemRepository: GetitemById Playlist 9963373 /config/data/userplaylists/Testlist789 [playlist]/Testlist789.m3u
	Line 1832: 2024-05-08 20:31:10.987 Debug Server: http/1.1 GET http://host6:8096/emby/Users/dc81fd8516f84692a871089af16813cf/Items?Fields=PrimaryImageAspectRatio&Recursive=true&IncludeItemTypes=Playlist&X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox Windows&X-Emby-Device-Id=77728c3c-fe75-4282-9e87-139b5cad4481&X-Emby-Client-Version=4.8.6.0&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0
	Line 1834: 2024-05-08 20:31:10.989 Debug Server: http/1.1 Response 200 to host7. Time: 2ms. GET http://host6:8096/emby/Users/dc81fd8516f84692a871089af16813cf/Items?Fields=PrimaryImageAspectRatio&Recursive=true&IncludeItemTypes=Playlist&X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox Windows&X-Emby-Device-Id=77728c3c-fe75-4282-9e87-139b5cad4481&X-Emby-Client-Version=4.8.6.0&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us
	Line 1860: 2024-05-08 20:31:11.230 Debug SqliteItemRepository: GetitemById Playlist 9963373 /config/data/userplaylists/Testlist789 [playlist]/Testlist789.m3u
	Line 1868: 2024-05-08 20:31:16.430 Debug BaseItem: Removed item 9963372 Folder /config/data/userplaylists/Testlist789 [playlist]
	Line 1869: 2024-05-08 20:31:16.432 Info App: Removing item from database, Type: Folder, Name: Testlist789 [playlist], Path: /config/data/userplaylists/Testlist789 [playlist], Id: 9963372
	Line 1897: 2024-05-08 20:31:29.781 Debug Server: http/1.1 GET http://host6:8096/emby/Users/dc81fd8516f84692a871089af16813cf/Items?Fields=PrimaryImageAspectRatio&Recursive=true&IncludeItemTypes=Playlist&X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox Windows&X-Emby-Device-Id=77728c3c-fe75-4282-9e87-139b5cad4481&X-Emby-Client-Version=4.8.6.0&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0
	Line 1898: 2024-05-08 20:31:29.782 Debug Server: http/1.1 Response 200 to host7. Time: 1ms. GET http://host6:8096/emby/Users/dc81fd8516f84692a871089af16813cf/Items?Fields=PrimaryImageAspectRatio&Recursive=true&IncludeItemTypes=Playlist&X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox Windows&X-Emby-Device-Id=77728c3c-fe75-4282-9e87-139b5cad4481&X-Emby-Client-Version=4.8.6.0&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us

 

Link to comment
Share on other sites

@braigo644.8.7 will be up within the next 24 hours and will more new logging. Can you please provide a log with that once you have the update? Thanks !

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...