Hi,
I have encountered the following problems with rompr.
When I add audio files to the mpd folder and press 'Update Music Collection Now' in Rompr it says updating music collection... However, this message won't disappear, even after hours. I can only reload the page and music collection is visible.
Now the strange thing is, that the newly added files to mpd (in: /mnt/music/FLAC) can be found with 'Search for' but they don't appear in the music collection list with the other artists.
what can I do? br
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the good description.
It sounds like MPD is scanning the files but rompr is not noticing that MPD has scanned them.
I need more information if I'm going to look into it - especially a debug log
First, go to
rompr/?setup
Scroll to the bottom and set Debug Logging to Level 8. Do NOT set a Custom Log File. Click OK.
Now update the collection in rompr and leave it running. After a few minutes (10 should be enough) send me the contents of your web server's error log.
Also, I need to see what mpd thinks is happening:
telnet your.mpd.ip.address:your-mpd-port
When you get a prompt type
status
and send me the output.
Hopefully this will help get to the bottom of it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks. That's unusual. I think something has gone wrong in the browser. I need to see the contents of the browser's Javascript Console when you press the Collction Update button, with Debug Logging set to Level 8. Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ok, odd, I tried different browsers on linux and osx. Here's a javascript error (firefox) after about 10 minutes. When I press update music collection nothing gets logged to browser console..
The object cannot be linked to the inspector without a toolbox console-output.js:3245:0
uncaught exception: out of memory jquery-migrate-1.2.1.js:197:1
NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIClipboardHelper.copyStringToClipboard] urlbarBindings.xml:1072:0
The console's evaluation context changed, probably because the target window was closed or because you opened a main window from the browser console's window.
NS_NOINTERFACE: gDevTools.jsm:910:0
Error: Script terminated by timeout at:
jQuery.fn.init@http://myserver/mpd/jquery/jquery-migrate-1.2.1.js:197:1
n@http://myserver/mpd/jquery/jquery-2.1.4.min.js:2:405
n.prototype.pushStack@http://myserver/mpd/jquery/jquery-2.1.4.min.js:2:746
n.fn[a]@http://myserver/mpd/jquery/jquery-2.1.4.min.js:2:26614
._findSourceElement@http://myserver/mpd/ui/uifunctions.js:1677:18
e.widget/</h[t]</<@http://myserver/mpd/jquery/jquery-ui.min.js:6:4698
._mouseStart@http://myserver/mpd/ui/uifunctions.js:1687:41
e.widget/</h[t]</<@http://myserver/mpd/jquery/jquery-ui.min.js:6:4698
._mouseMove@http://myserver/mpd/jquery/jquery-ui.min.js:6:12411
e.widget/</h[t]</<@http://myserver/mpd/jquery/jquery-ui.min.js:6:4698
._mouseDown/this._mouseMoveDelegate@http://myserver/mpd/jquery/jquery-ui.min.js:6:11819
n.event.dispatch@http://myserver/mpd/jquery/jquery-2.1.4.min.js:3:6414
n.event.add/r.handle@http://myserver/mpd/jquery/jquery-2.1.4.min.js:3:3224
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I increased verbosity of mpd. The problem is probably with mpd because there are a lot of "update: ignoring unrecognized file...." messages. This is very weird, it seems that mpd is having problems with a lot of mp3 and flac files now: (no idea why)
Feb 13 10:38 : update: reading mp3/x.mp3
Feb 13 10:38 : ffmpeg/mp3: Before avformat_find_stream_info() pos: 0 bytes read:469803136 seeks:114695
Feb 13 10:38 : ffmpeg/mp3: decoding for stream 0 failed
Feb 13 10:38 : ffmpeg/mp3: 0: start_time: 0.000 duration: -9223372036854.775
Feb 13 10:38 : ffmpeg/mp3: stream: start_time: 0.000 duration: -9223372036854.775 bitrate=0 kb/s
Feb 13 10:38 : ffmpeg/mp3: Could not find codec parameters for stream 0 (Audio: mp3, 0 channels, s16p): unspecified frame size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Feb 13 10:38 : ffmpeg/mp3: After avformat_find_stream_info() pos: 3444171 bytes read:473247307 seeks:114695 frames:1
Feb 13 10:38 : update: ignoring unrecognized file mp3/x.mp3
Feb 13 10:38 : update: reading FLAC/xx.flac
Feb 13 10:38 : flac: Failed to read FLAC tags: FLAC__METADATA_CHAIN_STATUS_NOT_A_FLAC_FILE
Feb 13 10:38 : flac: Failed to read FLAC tags: FLAC__METADATA_CHAIN_STATUS_NOT_A_FLAC_FILE
Feb 13 10:38 : ffmpeg/flac: Before avformat_find_stream_info() pos: 0 bytes read:4096 seeks:0
Feb 13 10:38 : ffmpeg/flac: 0: start_time: -9223372036854.775 duration: -9223372036854.775
Feb 13 10:38 : ffmpeg/flac: stream: start_time: -9223372036854.775 duration: -9223372036854.775 bitrate=0 kb/s
Feb 13 10:38 : ffmpeg/flac: Could not find codec parameters for stream 0 (Audio: flac, 0 channels): unspecified sample format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Feb 13 10:38 : ffmpeg/flac: After avformat_find_stream_info() pos: 4096 bytes read:4096 seeks:0 frames:0
Feb 13 10:38 : update: ignoring unrecognized file xx.flac
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
after removing audio files causing troubles, mpd log shows the following:
Feb 13 14:27 : update: starting
Feb 13 14:27 : client: [29] process command "status"
Feb 13 14:27 : client: [29] command returned 0
Feb 13 14:27 : client: [29] process command "replay_gain_status"
Feb 13 14:27 : client: [29] command returned 0
Feb 13 14:27 : client: [29] closed
Feb 13 14:27 : errno: Failed to open 'lost+found': Permission denied
Feb 13 14:27 : update: finished
I also tried with a cleared mysql database but nothing helps. THere aren't any entries now at all in mysql and the message 'updating music collection' does not disappear even though log shows it should be finished
Last edit: Anonymous 2017-02-13
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for that investigation Do files show up in mpc? If so please try rompr with an sqlite database as I think there may be a bug in the mysql code. Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK please try rompr with the Lite database (SQLite) - you can configure this from rompr/?setup.
You may need to install some packages, depending on your distro, see the docs for more information. If it works with SQLite then I know what the problem is.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have pretty much the same problem, yet changing localhost to 127.0.0.1 doesn't fix it for me.
My setup: Raspberry Pi 3 running Raspbian and mpd + a Cubietruck running Gentoo with Apache & MySQL and serving the audio files.
I did pretty much the same as the OP (Log level 8 etc.). When I hit the "Update music collection" button Rompr's debug log says:
15:55:15 : POSTCOMMAND Command List: update
At the same time, "mpc status" shows
Updating DB (#3) ...
and finishes updating after a while, yet the Rompr web frontend still shows the "Updating music collection" message without going through the collection, though.
It seems like it's either waiting for some return message from mpd which never shows up or it sends the update command to mpd and then gets caught in a loop. Either way, it doesn't update its database at all.
It all worked with Rompr 0.73 but I had to update to 0.78 after PHP got updated to 7.0.15.
I'll look into the differences between 0.73 and 0.78. Maybe I find something, even though my PHP knowledge is limited :-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've bee unable to reproduce this so it's difficult to give any exact guidance, but what's supposed to happen is that once rompr sends mpd the 'update' command it then polls mpd by sending a 'status' command once every second until 'updating_db' disappears from mpd's status. It appears to the the polling that is not working.
This is all handled by the javascript in the frontend, so a better place to look for debug output would be in your browser's Javascript Console.
Having just looked at the code I can see an oddity that is almost certainly wrong but probably doesn't explain it. I'm looking at the code for version 1.01 by the way, which was released last week.
Most of this stuff happens in uifunctions.js. I'm looking at
Browser is Firefox 45.7.0 or Chrome 54.0, it's the same on both. Mpd is 0.19.1.
I've just updated Rompr to 1.01 and it seems that it's working again, at least it's now showing those "Scanning directory" messages after mpd's update was finished.
Thanks for your efforts. Rompr is still the best web frontend for mpd :-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You got lucky, I was sat in front of a text editor with rompr open :)
If you're seeing 'Scanning Directory...' then it's working - which is both pleasing and concerning at the same time! Perhaps it was something odd with 0.78, I did a lot of code changes between then and 1.01.
Let me know if it happens again, I'm always interested.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Will do! Thanks!
I see your concern since I've been comparing those functions between 0.73 and 0.78 and there they looked pretty much the same. So we actually don't know what caused this.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have encountered the following problems with rompr.
When I add audio files to the mpd folder and press 'Update Music Collection Now' in Rompr it says updating music collection... However, this message won't disappear, even after hours. I can only reload the page and music collection is visible.
Now the strange thing is, that the newly added files to mpd (in: /mnt/music/FLAC) can be found with 'Search for' but they don't appear in the music collection list with the other artists.
what can I do? br
Thanks for the good description.
It sounds like MPD is scanning the files but rompr is not noticing that MPD has scanned them.
I need more information if I'm going to look into it - especially a debug log
First, go to
Scroll to the bottom and set Debug Logging to Level 8. Do NOT set a Custom Log File. Click OK.
Now update the collection in rompr and leave it running. After a few minutes (10 should be enough) send me the contents of your web server's error log.
Also, I need to see what mpd thinks is happening:
When you get a prompt type
and send me the output.
Hopefully this will help get to the bottom of it.
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Hello
Thanks for your quick response! I hope this will help
Thanks. That's unusual. I think something has gone wrong in the browser. I need to see the contents of the browser's Javascript Console when you press the Collction Update button, with Debug Logging set to Level 8. Thanks.
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
ok, odd, I tried different browsers on linux and osx. Here's a javascript error (firefox) after about 10 minutes. When I press update music collection nothing gets logged to browser console..
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Hello,
I increased verbosity of mpd. The problem is probably with mpd because there are a lot of "update: ignoring unrecognized file...." messages. This is very weird, it seems that mpd is having problems with a lot of mp3 and flac files now: (no idea why)
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
after removing audio files causing troubles, mpd log shows the following:
I also tried with a cleared mysql database but nothing helps. THere aren't any entries now at all in mysql and the message 'updating music collection' does not disappear even though log shows it should be finished
Last edit: Anonymous 2017-02-13
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Thanks for that investigation Do files show up in mpc? If so please try rompr with an sqlite database as I think there may be a bug in the mysql code. Thanks
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Thank you!!
WHen I use mpc with ls the audio files (i.e. album folders) do show up:
OK please try rompr with the Lite database (SQLite) - you can configure this from rompr/?setup.
You may need to install some packages, depending on your distro, see the docs for more information. If it works with SQLite then I know what the problem is.
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Sadly, sqllite does not help in that regard: (library is not getting populated)
Last edit: Anonymous 2017-02-15
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
It works again. I changed back to mysql and switched from localhost to 127.0.0.1 as Mysql Server address ... probably this made the difference
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
I have pretty much the same problem, yet changing localhost to 127.0.0.1 doesn't fix it for me.
My setup: Raspberry Pi 3 running Raspbian and mpd + a Cubietruck running Gentoo with Apache & MySQL and serving the audio files.
I did pretty much the same as the OP (Log level 8 etc.). When I hit the "Update music collection" button Rompr's debug log says:
15:55:15 : POSTCOMMAND Command List: update
At the same time, "mpc status" shows
Updating DB (#3) ...
and finishes updating after a while, yet the Rompr web frontend still shows the "Updating music collection" message without going through the collection, though.
It seems like it's either waiting for some return message from mpd which never shows up or it sends the update command to mpd and then gets caught in a loop. Either way, it doesn't update its database at all.
It all worked with Rompr 0.73 but I had to update to 0.78 after PHP got updated to 7.0.15.
I'll look into the differences between 0.73 and 0.78. Maybe I find something, even though my PHP knowledge is limited :-)
I've bee unable to reproduce this so it's difficult to give any exact guidance, but what's supposed to happen is that once rompr sends mpd the 'update' command it then polls mpd by sending a 'status' command once every second until 'updating_db' disappears from mpd's status. It appears to the the polling that is not working.
This is all handled by the javascript in the frontend, so a better place to look for debug output would be in your browser's Javascript Console.
Having just looked at the code I can see an oddity that is almost certainly wrong but probably doesn't explain it. I'm looking at the code for version 1.01 by the way, which was released last week.
Most of this stuff happens in uifunctions.js. I'm looking at
After that "} else {" there ought to be
I very much doubt whether that is the problem though.
If you need to get a music collection built, you can force it from the command line with
curl -b "currenthost=Default;player_backend=mpd" http://localhost/rompr/albums.php?rebuild > /dev/null
Once that finished, refresing rompr will show an updated collction. In fact if that works it demonstrates that the polling is the problem.
Which browser are you using? And what version of mpd?
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
That's a quick reply!
Browser is Firefox 45.7.0 or Chrome 54.0, it's the same on both. Mpd is 0.19.1.
I've just updated Rompr to 1.01 and it seems that it's working again, at least it's now showing those "Scanning directory" messages after mpd's update was finished.
Thanks for your efforts. Rompr is still the best web frontend for mpd :-)
You got lucky, I was sat in front of a text editor with rompr open :)
If you're seeing 'Scanning Directory...' then it's working - which is both pleasing and concerning at the same time! Perhaps it was something odd with 0.78, I did a lot of code changes between then and 1.01.
Let me know if it happens again, I'm always interested.
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Will do! Thanks!
I see your concern since I've been comparing those functions between 0.73 and 0.78 and there they looked pretty much the same. So we actually don't know what caused this.