YunoHost-Apps / ampache_ynh

Ampache package for YunoHost
http://ampache.org/
GNU General Public License v3.0
17 stars 16 forks source link

access ampache from dsub (subsonic client) #14

Open cabbes opened 9 years ago

cabbes commented 9 years ago

Hello,

I have installed ampache today, and I can't connect from dsub (android subsonic client). I test the uri https://domain.tld/ampache/rest/ping.view and I have "404 not found". Any idea ?

Thanks

stevenroose commented 9 years ago

Is the Subsonic api enabled in the admin settings? On Sep 22, 2015 12:01 PM, "cabbes" notifications@github.com wrote:

Hello,

I have installed ampache today, and I can't connect from dsub (android subsonic client). I test the uri https://domain.tld/ampache/rest/ping.view and I have "404 not found". Any idea ?

Thanks

— Reply to this email directly or view it on GitHub https://github.com/abeudin/ampache_ynh/issues/14.

cabbes commented 9 years ago

Yes, Subsonic Backend is enable, and ACL for API/RPC are OK

stevenroose commented 9 years ago

That commit makes a very small change that I found in the Ampache wiki, but I doubt it will make a difference. You can test it by manually editing the nginx config file for Ampache or by yunohost app upgrade ampache -u https://github.com/stevenroose/ampache_ynh

stevenroose commented 9 years ago

I did never test if the regular Ampache API worked, can you confirm that?

cabbes commented 9 years ago

I do this test and the problem is still here. I try to connect an android client for ampache (justplayer), and the connection failed too.

aymhce commented 7 years ago

I think this issue is correct since this commit: 1064700722bf2f9d55b61fb723c7aa90be4f7295 Can you confirm ?

rikberkelder commented 7 years ago

I have updated to the ampache plugin with the commit supposed to fix this included. my clients refuse to connect and http://mydomain.tld/ampache/rest/ping.view responds a 404. ACLs are properly set up and the subsonic backend is enabled.

aymhce commented 7 years ago

It's related to this issue : https://github.com/ampache/ampache/issues/541 I think it's necessary to implement this explanation : https://github.com/ampache/ampache/wiki/API#subsonic-api

e-lie commented 7 years ago

It seems to me that the current nginx config of ampache_ynh doesn't rewrite well the routes for the subsonic API (the rewrite doesn't catch ping.view route -> 404). Here is my modified config for DSUB to work https://gist.github.com/e-lie/b96fa856f24b3c6a7aa516bb94c0df3c. Don't forget to replace /ampache/ by the prefix you have choosen before installation. I haven't check it further, it's probably not perfect. Anyway I'll try to propose soon a pull request to fix that correctly.

ghost commented 7 years ago

After installing your fix, I'm able to connect to Ampache from dsub, but I can't play any songs. When I try to, dsub displays "Loading : 0B" indefinitely.

aymhce commented 7 years ago

@e-lie thanks for help. You can see commit https://github.com/YunoHost-Apps/ampache_ynh/commit/79a836e7d14f66119d47990e5fc0b28aae3d95b5 like your config. Can you retry please ?

JocelynDelalande commented 7 years ago

@aymhce still not working. But I noted that puting /rest rewriting rules directly in the domain.tld.conf file works. Maybe it can be a clue for something, who knows :-).

aymhce commented 7 years ago

@JocelynDelalande , ok thanks for report. Think there is a problem on the subsonic side ?

JocelynDelalande commented 7 years ago

@aymhce there is some nginx magic to figure out :-)

(I have to admit it is far from my immediate understanding).

miniesta01 commented 6 years ago

Hello. I'm a new user of ampache with yunohost (and i have few experience of web serveur configuration :/ ). I experience same problem with subsonic application. @JocelynDelalande can you detail the code you add in domain.tld.conf file ? I currently have 2 sections server in that file. Do you copy the /rest rewriting rules on the server section or do you copy the full section location of nginx.conf into the domain.tld.conf file ? Thanks for you help :)

JocelynDelalande commented 6 years ago

@miniesta01 I did not got it working.

anmol26s commented 6 years ago

Any update on how to play songs on an android device?

JocelynDelalande commented 6 years ago

Actually, I switched happily to funkwhale (it supports subsonic android clients), which have a ynh app as well. The ampache GUI was a real show-stopper for me

anmol26s commented 6 years ago

@JocelynDelalande But the LDAP support and music from shared folder of the users is missing. Funkwhale is in alpha stage still. And Funkwhale has different goals from Ampache. Moreover this is an official app.

miniesta01 commented 6 years ago

Hello, @anmol26s if you want to play music on android devices you still can use the app "Powed Ampache" which is working pretty well. And for android it's free. For IOS you have to pay.

anmol26s commented 6 years ago

I am using Power Ampache. The albums are loaded but I am unable to play the music on it. Is there a special setting which need to enable to play music on it?

miniesta01 commented 6 years ago

Did you see the songs titles ? Or only album name ? What I notice on IOS app, is that the synchronization of the song catalog is slow. And you must keep the app active during the sync. When I first install the app, only playlist name or album name was displayed without the songs in it. I let the app active during 1 hour to sync all my music (more than 10 000). About settings, I just add server address (http://domain.ltd/ampache) with login and password. I installed the app on my father android device. I'll look at his configuration when I'll see him (this weekend maybe) and keep you updated if I used specific settings.

27 juin 2018 08:21 "anmol26s" <notifications@github.com (mailto:%22anmol26s%22%20notifications@github.com)> a écrit: I am using Power Ampache. The albums are loaded but I am unable to play the music on it. Is there a special setting which need to enable to play music on it?

You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub (https://github.com/YunoHost-Apps/ampache_ynh/issues/14#issuecomment-400556250), or mute the thread (https://github.com/notifications/unsubscribe-auth/AkBa4ceObrwmYggOWaa8XEjbUXa5oqfVks5uAyRugaJpZM4GBfl2).

anmol26s commented 6 years ago

@miniesta01 I have only 10 songs for test and I kept the app opened for an hour. I can see songs but can't play them. I am on Android. Can you test it on Android and re-check your settings that you may have done to be able to play it on Power Ampache?

anmol26s commented 6 years ago

@miniesta01 Did you check the app? Its working?

miniesta01 commented 6 years ago

Hi, I did not access my father's android devices yet. I'll keep you updated.

miniesta01 commented 6 years ago

@anmol26s I checked my father's android devices. The "Power ampache" application works fine. No specific settings. It's a Galaxy s5 new smartphone. You can try to:

  1. Remove and install the application
  2. Try to download the music (Offline mode) and play it
  3. Check the music is well played in Ampache web player

I don't have other ideas for your problem.

ghost commented 6 years ago

Still not resolved right ? I can't get dsub or similar software (audinaut and ultrasonic) to work with ampache, but I tried funkwhale as well and it works right away without problem.

billietl commented 5 years ago

Hi !

I just hacked something that worked on my personnal instance.

As for this stack overflow post, nested locations don't inherit rewrite rules, so the /rest/.* URLs are not properly redirected.

Let me propose you a quick MR.

HugoPoi commented 4 years ago

I use a dsub client on my phone, not sure if I use a hack, or it works out of the box, I will check on this.

xeruf commented 2 years ago

I fixed it with https://www.reddit.com/r/ampache/comments/gxa1dw/comment/fx7r0cb/?utm_source=share&utm_medium=web2x&context=3 Have a look at https://wiki.archlinux.org/title/Ampache#Logging and check the error message when streaming fails.