Open cabbes opened 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.
Yes, Subsonic Backend is enable, and ACL for API/RPC are OK
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
I did never test if the regular Ampache API worked, can you confirm that?
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.
I think this issue is correct since this commit: 1064700722bf2f9d55b61fb723c7aa90be4f7295 Can you confirm ?
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.
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
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.
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.
@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 ?
@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 :-).
@JocelynDelalande , ok thanks for report. Think there is a problem on the subsonic side ?
@aymhce there is some nginx magic to figure out :-)
(I have to admit it is far from my immediate understanding).
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 :)
@miniesta01 I did not got it working.
Any update on how to play songs on an android device?
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
@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.
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.
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?
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).
@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?
@miniesta01 Did you check the app? Its working?
Hi, I did not access my father's android devices yet. I'll keep you updated.
@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:
I don't have other ideas for your problem.
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.
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.
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.
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.
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