-
Notifications
You must be signed in to change notification settings - Fork 199
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
Opening the music app fills the log indefinitely #793
Comments
Thanks for the report. This definitely seems like a bug, although not one which I would have seen or heard of before. Albums with no artist set should not cause any problems, but maybe there is something unusual in your server setup 🤔. But whatever the cause, the log file should not be spammed that rapidly. |
Just for the record: This setup has been working before with almost the same docker-compose file as attached. My setup is:
Next to the compose file I have an
|
Okay, thanks for the info. I'm busy this week with other things, but I try to spare a thought for this issue next week (or later). |
I ran into this problem as well, and I was able to do a bit of triage. I can't tell whether this is the same issue, but it's causing the same result of massive writes to
Below is a screenshot of my logging page in my Settings, loaded before I killed the server. I also included the results of |
I have noticed that if you delete one or more music files, the nextcloud.log keeps growing. Even after deleting the nextcloud (it's just for testing for me) and the database, the log file still grows. |
Okay, thanks all for the extra input. If anyone with this problem has more time than I do, you could try to comment out that error-emitting line The call itself shouldn't be the root cause for the error, but it would be interesting to see, what happens when that line is removed. Maybe the logic breaks then somewhere else, and that could give us some new information. The very next line 174 may potentially be the next one with similar problem. If that happens, you could try to substitute that with |
Unfortunately I cannot help you. I am a user only and have the Nextcloud on a shared provider. I only noticed it because my provider told me that he had to deactivate my account (memory overflow). Also I can't test it because I don't have access to the server. |
According to reports, the modified lines could produce a huge amount of log output in case the albumId in question was not found from the array. On some systems, the whole array was then printed to the log, and the array may contain thousands of items. The situation described above shouldn't normally happen because it would require the database to contain an album which has no tracks at all. Such albums should not exist, and the background cleanup task should take care of removing them if they still somehow came to be. Also, I couldn't reproduce the extensive logging issue by creating a bogus album with not tracks directly to the DB; it may depend on the version and configuration of the cloud or PHP. refs #793
Looking at the code closer, it seems that those code lines Also, I don't quite understand, why would the code refer to the same undefined offset over and over again. Each album ID should be used as the array index only once, but at least @The1AndMany´s screenshot shows that the same invalid offset 14700 has triggered the error many times during the same second. Anyway, I now pushed an experimental fix to the master brach. If anyone with the problem would be able to download the file https://raw.githubusercontent.com/owncloud/music/master/businesslayer/albumbusinesslayer.php and substitute the corresponding file in the Music app release, I would be greatly interested to hear about the results. |
Looks like it's working now. I renamed the old file to Thanks for the patch! Glad I could be of help. |
Also fixes it for me. |
Nice to read. But of course I hope that this will be changed by an update or new version for us users. Peter |
I have done it too. Thanks for that. So far there is no error message. |
The Music app v0.17.2 is now out, including the fix posted above a week ago. |
Hey there. I just re set-up my nextcloud on Version 19.0.4.2.
I did a
occ files:scan --all
to re-index all the files, afterwards I installed the music app and did aocc music:scan --all
.In the log messages there I could see all the folders being added, while it was adding I noticed that the app is importing everything, starting at '/', so I changed the root path afterwards to '/Music'.
Using the subsonic API with Dsub works perfectly, however, every time I open the music app in the web browser, I can only see a spinning circle and when I take a look into the log I notice its size is increasing extremely rapidly (~90MB/s) and appears to be growing until I restart the docker containers.
The log gets crowded with either a lot or very long messages. The error I could make out from it is something like
I've tried to re scan the library so far but no luck there. Looking at the source code it seems the php script cannot find the artist. Since some of the music files are quite old or even self-recorded there quite often is no "artist" that can be found online but I don't think that should be a problem. Did I find a bug there, or could it be a problem with my music collection only?
The text was updated successfully, but these errors were encountered: