-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Scans some mp3 files ok, and no flac files get scanned [SOLVED] #532
Comments
Hello, |
yes, both flac and mp3 files have a note logo in the file explorer. In file explorer, my collection seems complete. In audio player, i can't see any flac files. Many albums with mp3 files only register 1 or 2 songs per album, when there are 8~10 songs available in file explorer. I can play the available mp3 files. So, 2 issues. Hoping they are two sides of the same problem... Screenshots of the same album in audio player and file explorer below. This is an mp3 album, as there is no point showing absent flac albums. I've again gone over all the prerequisite and optional php extensions and programs in the Nextcloud manual, and can't see anything I am missing. The music folder is read only, does your app try to write there? I'm happy to keep giving whatever info I can to help sort out this issue, as this is a rather useful app. |
I seem to have found the problem. Tried scanning with a single artist music collection. Just 200 songs, some albums in mp3 and some in flac, works perfectly! So, I have possibly hit a resource limit somewhere with my 30K songs? I would like to help. Just know my PHP knowledge is at the level where I could follow adjusting PHP configs for Nextcloud installation without trauma, that's it. Do you have some suggestions for what order I should adjust various settings? Or even which settings could be relevant? Or am I barking up the wrong tree? |
hello, |
Just did a reset and rescan in the GUI, and have the same total number of files, 798, as before. Those files include all the files in the one artist scan of before. So presumably lost other files in the scan. On then rescanning without a reset, 1 new file is found. Each subsequent rescan says the same, 1 new file. Not keen on doing this 30K times 8) FYI, here is my phpinfo. I'll have look at my settings versus the ones in the Nextcloud install manual again, in case I did some bad undersizing. It looks more and more like it is something at my end. |
thats really strange 🤯 |
I feared you might say something like that. Since this is obviously not happening to anyone else, some setting on my server is probably triggering the issue. Its an Intel NUC, 8GB RAM, currently about 5GB free, Debian Stable distribution, Apache for a trivial Wordpress site, and an ftp server. That all works. And now a NextCloud instance a few weeks ago that seems to work properly and passes all the tests, but not really explored yet. I know bugger all about web languages, C++ is my hobby, but there are common debugging approaches to all code. Perhaps if I have access to a debug version of your app, with logging statements somewhere after it looks at the next file, and before and after it accepts/rejects each file? Or something like that as a first step? I don't know your code, so that could be too simplistic, I'm the beginner here. Perhaps as a branch in your git tree? And I can install it and give you feedback for the next iteration? The manual install instructions look pretty straightforward, although I've never installed anything but the master branch before. So if this seems like a good idea, tell me the modified git command to load the debug branch. |
hello, |
Hello, as part of the new version I did a lot of testing and all works on my side in different directions. |
Hi Rello, Till 2 months ago, the app was still doing the same thing, accepting only several hundred tracks scattered across many albums. But I also had similar issues with another music cataloger on nextcloud. Nobody else seems to have my issue with either program, so I suspect it is my personal nextcloud setup. Two days ago, I upgraded the OS, and also moved from php7.3 -> php7.4, nextcloud is now unresponsive. This is a good time to install nextcloud afresh, paying more attention to every single step, and try your lovely app again. Right now, my attentions are focused on the Australian ski season, but that will soon end. |
Hi Rello, I can now import a folder of 11K songs (68GBytes) successfully! But I didn't try that number of songs before, so don't know if my previous setup would do this. But my total collection of 30K songs (512GBytes) fails, although now after ~2000 songs instead of ~800 from before. Rescans apparently add 1 music file. I'm happy to supply info or fiddle if you have any suggestions. |
just got an idea from your old logs you attached.
and this would have been caught there. |
activated cyrilic, sadly still appears to add only 1 new audio file. |
still the same entry in the log-file? |
I see 2 different repeated messages in the log file when I try and rescan.
I have enclosed a snippet of those, can send a larger log file if needed. Bloody ugly format in that log file, if you know a way of making it more human readable, I'm happy to do it from my end. |
Hi, are you able to modify coding in your app/audioplayer folder?
moved up before the try statement I would make this change permanent, but to push a new version just for this would be much effort. let me know |
Tried doing it, got a syntax error. It is breakfast time, not at my best in the morning and also unfamiliar with php. |
Tried again, different errors. |
Hello,
|
using sudo -u www-data php occ audioplayer:scan admin -vv this just shows ~2K mp3 files in my collection of 30K music files |
ok, so now we have the issue, that only the MP3 files are scanned - but they seem to be ok/complete, correct? then we need to see why its not scanning the others. |
ok, MP3 are the first ones to be scanned. so thats ok.
This will process as much as possible. |
I reset the library.
I have sent the tail of the log. It may include errors from the 1st scan. |
ok, getting there. |
MUCH closer now. up to 24K out of 30K tracks now seen. flac types play well. I then tried to remove other problematic music files, but a scan after removing them fails at the same place because the music file is thought to be still there. Resets, redo the occ scan didn't help acknowledge that the files have been moved. Obviously a separate issue, but in the way. Rebooted hoping to clear some caches. Running occ scan again, but will finish well after my bedtime. Hope to have some usable info for you tomorrow. |
Whoo hoo! 30K tracks now cataloged. There are issues with re scanning after a local disk is altered, but that is a different thread, and perhaps a Nextcloud issue. As is being resilient against unacceptable files. Not sure how to call this issue resolved, as not github savvy, so just changed the main title of this thread. Rello, you followed up on an issue I thought was unresolved as too hard and thus dead and buried. It wasn't my nagging, but your prompting, that led to the resolution. Thank you. |
Hello,
...let me know... |
Hello. thank you for the files. |
It doesn't scan the flac files from the app at all. Scattered tracks of mp3 albums are noticed.
Tried from the command line: sudo -u www-data ./occ audioplayer:scan admin -vv
Same result.
Added the flac decoder to my server, reboot, reset audio library, still no luck. And missing ~~3/4 of the mp3 files.
The music folder is local storage on the server, enabled in External Storage as Local.
Versions:
The apps music, folder player and audios are not enabled.
running the commands:
sudo -u www-data php occ files:scan admin
Starting scan for user 1 out of 1 (admin)
Entry "/admin/files/music/Paavo Järvi_ Deutsche Kammerphilharmonie Bremen" will not be accessible due to incompatible encoding
Entry "/admin/files/music/Pablo Casals/The 6 Cello Suites (disk 2)/11 - Suite No 4 in E flat major BWV 1010 - Bourée.flac" will not be accessible due to incompatible encoding
Entry "/admin/files/music/Pablo Casals/The 6 Cello Suites (disk 2)/05 - Suite No 3 in C major BWV 1009 - Bourée.flac" will not be accessible due to incompatible encoding
+---------+-------+--------------+
| Folders | Files | Elapsed time |
+---------+-------+--------------+
| 5393 | 35564 | 00:11:27 |
+---------+-------+--------------+
sudo -u www-data ./occ audioplayer:scan admin -vv
[about 700 files noticed, last lines below]
.
.
.
26903 - /admin/files/music/Jack Johnson/Unknown Album/07 Fortunate Fools.mp3 => already indexed
35023 - /admin/files/music/Compilations/Triple j's Hottest 100 Volume 5/2-04 Perfect Drug.mp3 => already indexed
Final audio files to be processed: 29099
Total stream files: 32
Checking stream files to be skipped
Final stream files to be processed: 0
Start processing of audio files
Audios found: 1
Duplicates found: 0
Written to library: 1
Albums found: 0
Errors: 0
It says there are 29K music files in total, that sounds right. But only ~700 mp3 files show up in the result of that command line, or in the app.
Since no one else seems to have this issue, it could well be something I have done with this new instance of Nextcloud. Everything else seems to work, but I'm just starting to fiddle with Nextcloud. I fully understand this could be a problem outside your scope as an app maker, but just wondering if you have seen this before.
The latter part of nextcloud.log below:
nextcloud-log-sample.txt
some command line things i tried from above:
command-line-scan.txt
The text was updated successfully, but these errors were encountered: