New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Music stops halfway through tracks throwing error #1120
Comments
I also see this. I play folders a lot and some of the files play just a second or so and are skipped with an error With the M4a it skipped 20 files and then started playing the 21st file without issues. I do not expect that this file was encoded in some special way. Technical tab shows the same details across the whole M4a album. The logs in Nextcloud do not show anything related to this. I am playing only remotely through https. I never seen this error on the previous versions. Nextcloud 28.0.1 (linuxserver docker container) Do we need to rescan the library with the new version? I have not tried that. |
@Spurge420 @vitis586 Thanks for the report. Could you maybe share one sample file with me which triggers this problem for you? You can find my email address from my github profile. |
No, that will not be necessary, and there's no reason to believe that it would help here. Scanning is made just to extract the metadata to show the artists and albums and so on, but the playing of the file happens directly from the original file. |
Just an update, doesn't seem to happen to every flac file. Some play and seek fine. Might be related to the bitrate / encoding of the file. Thanks for the work you do. |
@paulijar I did some more investigation and long story short - it works, no issues. I tried Edge and that worked, I also tried private Firefox session (new profile) and that also worked. So I flushed my profile and now it also works as it should. Something got cached I guess. So maybe @Spurge420 can share a file for you? Thanks for the app. It is great! |
@Spurge420 I got your sample files, and for me, both of them play fine and also the seeking works without any issues both on Firefox and on Chrome. Based on this, there shouldn't be anything wrong with those files specifically. My best guess is that this is some kind of configuration issue on your HTTP server or reverse proxy (or similar). Especially, you should make sure that they will not mutilate the partial content requests or responses (status code 206). You wrote that the problem happens with flac files but not with mp3 but the important difference might be that the flac files are typically much larger than the mp3 files. |
After I sent that everything is working, it started again. The thing is that the files do not play but as soon as I play something else for a while, I can then play most of the wrong files (not sure it there is a correlation). But I was at work and did not want to investigate.
All of those are very basic (mostly) FLACs, not something exotic like DSD. Let me know if you can get something from this. The console gets flooded quite quickly, because when it starts spitting those errors, it is like a machine gun until I find something that plays. 😄 |
@vitis586 The first two console logs are completely normal: I received and tested your sample file and noticed that the file cannot be played on Firefox but it plays fine on Chrome. You can even drop Music and Nextcloud out of the loop and just open the local file to Firefox and see that it cannot be played: I then remembered that some user earlier reported about a similar problem and that was caused by somehow incorrect file metadata. I tested clearing all the metadata from your file, and indeed, it started to play normally also on Firefox! I don't know which is the offending metadata tag but this one seems pretty suspicious: |
I knew that it is something stupid.. That is there because I was using Mucicbrainz to label my collection to properly show up in Jellyfin. That never worked out for these "various artist collections". I have to find something to strip just the problematic metadata. I tried VLC na jRiver but no luck. That is a problem for another day. So my previous statement stays - everything is OK on Music's side. 👍 Thank you again for you input and time. |
Thank you Paul for your time and looking into this. Also for the Music App! |
Hi,
Music seems to stop when playing tracks at the halfway mark throwing the error
Error playing URL: /index.php/apps/music/api/file/79381/download
The reload grey visual you see doesn't go beyond halfway either. Cannot seek tracks but skip forward and back is fine.
Different browsers give me the same problem.
This only happens with flac files. mp3 seems to work without any issues.
Any ideas on what might cause this? Seem the preloading or cache stops halfway .
NextCloudPi 28.0.2 RC5
Music v1.10.0
Update: This only happens when playing locally. Quite bizarre.
Not related to Music, but I can't browse Nextvcloud via https locally. Perhaps it's related?
The text was updated successfully, but these errors were encountered: