Rhythmbox error
I get this error when connecting to ownCloud Music 0.3.8 from Rhythmbox 3.1:
Songs response: g-io-error-quark: HTTP Error: Internal Server Error (0)
Not sure if it's a bug with one or the other.
The Apache log shows this:
192.168.42.113 - - [09/Feb/2016:19:31:04 -0800] "GET /owncloud/index.php/apps/music/ampache/server/xml.server.php?action=handshake&auth=***removed***×tamp=1455075058&user=terminus&version=350001 HTTP/1.1" 200 460 "-" "gvfs/1.22.2"
192.168.42.113 - - [09/Feb/2016:19:31:04 -0800] "GET /owncloud/index.php/apps/music/ampache/server/xml.server.php?action=playlists&auth=***removed*** HTTP/1.1" 200 102 "-" "gvfs/1.22.2"
192.168.42.113 - - [09/Feb/2016:19:31:05 -0800] "GET /owncloud/index.php/apps/music/ampache/server/xml.server.php?action=songs&auth=***removed***&offset=0&limit=5000 HTTP/1.1" 500 9705 "-" "gvfs/1.22.2"
Have you found any solution? I'm getting a similar error when attempting to play music on oc9 through Tomahawk on OSX
The Apache log line
192.168.42.113 - - [09/Feb/2016:19:31:05 -0800] "GET /owncloud/index.php/apps/music/ampache/server/xml.server.php?action=songs&auth=***removed***&offset=0&limit=5000 HTTP/1.1" 500 9705 "-" "gvfs/1.22.2"
tells us that something has failed when the Music app was handling the Ampache endpoint songs. That's all we can know with the provided data. The owncloud.log file could have had more details.
@qirtaiba @bts-1979 Is this issue still present with the latest Music app version (currently 0.5.4)?
No, but instead Rhythmbox seems to get stuck on "Updating songs" (or at least, it is taking a long time) and I see this on the console:
Traceback (most recent call last):
File "/usr/lib/rhythmbox/plugins/ampache/AmpacheBrowser.py", line 542, in handshake_cb
handshake['update'][0:18],
KeyError: 'update'
sys:1: Warning: value "-0.500000" of type 'gdouble' is invalid or out of range for property 'task-progress' of type 'gdouble'
(rhythmbox:12172): libdmapsharing-WARNING **: Content code ated is invalid.
(rhythmbox:12172): libdmapsharing-WARNING **: Content code mdbk is invalid.
sys:1: Warning: value "-1.000000" of type 'gdouble' is invalid or out of range for property 'task-progress' of type 'gdouble'
sys:1: Warning: Object class RBDAAPRecord doesn't implement property 'hash' from interface 'DAAPRecord'
sys:1: Warning: value "18446744072945521368" of type 'guint64' is invalid or out of range for property 'filesize' of type 'guint64'
This corresponds to errors in owncloud.log like this:
{"reqId":"azCix\/cuiOU2ypsnAwLD","remoteAddr":"192.168.42.129","app":"PHP","message":"Undefined index: filesize at \/var\/www\/owncloud\/apps\/music\/3rdparty\/getID3\/getid3\/module.tag.apetag.php#25","level":3,"time":"2017-11-29T06:10:27+00:00","method":"GET","url":"\/owncloud\/index.phpc\/api\/album\/5919\/cover","user":"terminus"}
Since this seems to be a different error, I should open a different bug report.
For your information, I have Rhythmbox 3.4 on my computer. I installed the ampache_plugin from https://github.com/lotan/rhythmbox-ampache and latest music app. Seems to work fine.
Since the original error reported on this issue seems to be fixed, I'm closing the issue. On the new problem mentioned on comment from Nov-29-2017, there has been at least some problem in extracting metadata from APE tag when trying to get a cover image for a file. This might be completely unrelated to the Ampache API. Anyway, a new issue should be opened for this if the problem is still present on the newest Music app version.