Skip to content
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

Media Files not accessible through <url>/ampache #23

Closed
MorrisJobke opened this issue May 23, 2013 · 23 comments
Closed

Media Files not accessible through <url>/ampache #23

MorrisJobke opened this issue May 23, 2013 · 23 comments
Labels

Comments

@MorrisJobke
Copy link
Contributor

Expected behaviour

To see some media files when accessing ampache through webserver.com/remote.php/ampache

Actual behaviour

Nothing happens, please see screenshot

Steps to reproduce

  1. fill media library with some mp3 files
  2. point your browser to webserver.com/remote.php/ampache

Server configuration

Operating system: Centos 5.9

Web server: Apache 2.2.3

Database: MySQL 5

PHP version: 5.4

ownCloud version: 5.0

Client configuration

Browser: Chrome

Operating system: Win7

Logs

Web server error log

none

ownCloud log (data/owncloud.log)

none

Browser log

none

owncloud5_ampache


Originally reported by @cyberdaemon at owncloud-archive/apps#778

@MorrisJobke
Copy link
Contributor Author

Same for me.
Trying to connect to Ampache with Tomahawk (0.6.0) music player does the same : nothing happens.


Original comment by @edappere at owncloud-archive/apps#778 (comment)

@MorrisJobke
Copy link
Contributor Author

Confirmed. It works only with

define (DEBUG, 'true');

in config.php and is broken in production mode.

@bartv2 can you advice here?


Original comment by @VicDeo at owncloud-archive/apps#778 (comment)

@MorrisJobke
Copy link
Contributor Author

Same for me

Server configuration

Operating system: Debian Wheezy ARM

Web server: Nginx 1.2.1

Database: MySQL 5.5.28

PHP version: 5.4.4-14

ownCloud version: OwnCloud 6 Alpha Preview (Master Branch)

Client configuration

Browser: Android Browser on CM10

Operating system: CyanogenMod 10 (based on Android 4.2.2)

Apps used : Juste Music Player + Ampache provider plugin

Same bug here closed but doesn't appear to solve the issue for me : owncloud-archive/apps#720

Maybe the function ?

function xmlentities($string) {
$not_in_list = "A-Z0-9a-z\s_-";
return preg_replace_callback("/[^{$not_in_list}]/", '\OCA\Media\get_xml_entity_at_index_0', $string);
}


Original comment by @HLFH at owncloud-archive/apps#778 (comment)

@MorrisJobke
Copy link
Contributor Author

I can confirm this bug, and also that ampache clients are not working in my case, even in debug mode.


Original comment by @NoZdageek at owncloud-archive/apps#778 (comment)

@MorrisJobke
Copy link
Contributor Author

I think it is fixed with 21e10b6302e7


Original comment by @bartv2 at owncloud-archive/apps#778 (comment)

@MorrisJobke
Copy link
Contributor Author

Nice. @bartv2 Can you backport it?


Original comment by @karlitschek at owncloud-archive/apps#778 (comment)

@MorrisJobke
Copy link
Contributor Author

backport in a09c87c


Original comment by @bartv2 at owncloud-archive/apps#778 (comment)

@MorrisJobke
Copy link
Contributor Author

Streaming doesn't work on Android (CM10) with all Ampache Android Apps (like Just Player + Ampache Provider)

(I used the backport)

And Just Player developer has just said (1st April) : " However, the implementation of the playback is not over yet."

With adb logcat, I have things like this :

SkImageDecoder::Factory returned null
I/NuCachedSource2( 142): ERROR_END_OF_STREAM
E/MediaPlayer(16643): error (1, -2147483648)
E/MediaPlayer(16643): Error (1,-2147483648)
D/dalvikvm(16643): WAIT_FOR_CONCURRENT_GC blocked 58ms
D/dalvikvm(16643): WAIT_FOR_CONCURRENT_GC blocked 44ms
D/dalvikvm(16643): WAIT_FOR_CONCURRENT_GC blocked 20ms
E/MediaPlayer(16643): Error (1,-2147483648)
I/AwesomePlayer( 142): setDataSource_l(URL suppressed)
W/System.err(16643): java.lang.RuntimeException: setDataSource failed: status = 0xFFFFFFEA

Maybe, I should use Supersonic, the fork of Subsonic :
https://github.com/Mach5/supersonic


Original comment by @HLFH at owncloud-archive/apps#778 (comment)

@MorrisJobke
Copy link
Contributor Author

i also tested it with Just Player + Ampache Provider, you need to refresh the just player cache/database before it works.


Original comment by @bartv2 at owncloud-archive/apps#778 (comment)

@MorrisJobke
Copy link
Contributor Author

Still having the issue too, tested with just player (I updated the DB before testing) and with rhythmbox.
If i remove the 'debug' option from config.php, The /remote.php/ampache is still not correctly accessible through a browser.
I just modified manually the 3 files as in owncloud-archive/apps@a09c87c


Original comment by @NoZdageek at owncloud-archive/apps#778 (comment)

@MorrisJobke
Copy link
Contributor Author

I reset everything. And it doesn't work again. (I'm using Nginx and MySQL)

EDIT : So, I'm now trying Groovebasin (big bug at the moment), Mopidy (not finished yet for streaming), Supersonic (too heavy for a Single-Board Computer)


Original comment by @HLFH at owncloud-archive/apps#778 (comment)

@MorrisJobke
Copy link
Contributor Author

I tried this last night using 5.0.5 and the URL http://server/owncloud/remote.php/ampache (which is different to what is provided in the user documentation on http://doc.owncloud.org/server/5.0/user_manual/mediaplayer.html).

Whilst amaroK would list the files, it refused the play them. I'll see if I can grab logs later on.


Original comment by @TwistedLucidity at owncloud-archive/apps#778 (comment)

@MorrisJobke
Copy link
Contributor Author

I have the same problem with 5.0.5 where it lists the files, but refuses to play them. I have tried the following clients, all with the same results:

  • amaroK 2.7.0
  • rhythmbox 2.98
  • viridian 1.2

I would like to help with debugging this, so please let me know which logs I can supply.

Edit: Just to confirm to myself whether it was a networking, server, PHP version or any such related issue, I installed the latest available tarball version of Ampache (3.6-alpha5), and all three the above clients worked. That rules out quite a bit of to-and-fro, so I would gladly supply any debug that is deemed useful in order to help getting this bug fixed.


Original comment by @jhenkins at owncloud-archive/apps#778 (comment)

@MorrisJobke
Copy link
Contributor Author

Hi. AmpacheX developer here. From what I see, the actual data request to get the songs data fails no matter what I have tried. I have not inspected the OwnCloud source for the issue however.


Original comment by @RyanCopley at owncloud-archive/apps#778 (comment)

@Gnurou
Copy link

Gnurou commented Jun 7, 2013

Same issue here. Ampache clients are able to list the tracks, but won't play then over a 404 error:

"GET /remote.php/ampache/server/xml.server.php/?action=play&song=1&auth=xxxxxxxxxxxx HTTP/1.1" 404 5 "-" "KDE Phonon"

@allen00se
Copy link

I see the same issue listed above, amarok sees the files but wont play.

@jhenkins
Copy link

It's a pity that the Ampache support in OwnCloud doesn't work. As a workaround I installed Amapache on my home server in it's own virtual host, and pointed it to the media folders in OwnCloud. That way I managed to get things going, but it would definitely be a better thing to have everything integrated properly in OwnCloud.

@saamo
Copy link

saamo commented Jul 25, 2013

Has anybody found a workaround for this issue? (And I don't mean installing standalone ampache server...)

@HLFH
Copy link

HLFH commented Aug 13, 2013

#FF #58

@stanelie
Copy link

@kabum , Why is this bug report closed?

I still have the issue and no fix...

@HLFH
Copy link

HLFH commented Oct 29, 2013

@stanelie
Copy link

Hum...
I just browsed the list of open and closed issues for the upcoming Owncloud 6 and Ampache is not mentioned anywhere...

@MorrisJobke
Copy link
Contributor Author

@stanelie This repo is for the new music app. I'm working on it. For the first release the ampache support isn't planed, but it should be included with the next release. I also have my current progress on ampache in a separate pull request #91. If you're looking for the issue in the old music app (called media and was shipped with OC5) go to the issue in the apps repo owncloud-archive/apps#778 - I reopened it, but there isn't any maintainer anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants