Thx, I'll install the latest version and then try it again - I think the issue was that I didn't have a player connected and from memory Music Services requires a connected player.
Results 11 to 20 of 29
Thread: Announce: Ampache plugin 1.0
-
2009-06-28, 18:06 #11
-
2009-06-28, 22:01 #12Senior Member
- Join Date
- Jun 2008
- Posts
- 101
Alright I think I got it. Again the problem was a missing PERL module. I switched from using CGI::escape() to URI::Escape::uri_escape() since the former doesn't seem to be included with SqueezeCenter. With that I was able to get the plugin to load on a freshly installed Windows machine. I'll release a new version shortly with this simple fix. Hopefully this takes care of the problem.
-
2009-06-28, 22:58 #13
Ok, I've installed 3.5.1 and it's up and running, however, I don't see Ampache under music services.
To clarify my Setup:
SqueezeCenter 7.3.2 running on my NAS IP
ort - 192.168.168.100:9009
Ubuntu 9.04 running on PC IP - 192.168.168.2
Ampache 3.5.1 running on abovementioned PC, accessed via http://localhost/ampache/
Ampache referencing music store on NAS, mounted ro as /media/AudioLIB
Under SC Extras/ Music Source I only have the following entries:
SqueezeNetwork
N5200PRO
One other thing - if I've understood the intent of your plugin correctly the Ampache database becomes another music source, so control is still vested with SC? How much effort would it be to make the integration the other way around such that Ampache controls what it played and tells SC what to do via the SC CLI?
Please don a parachute should you head for the window :-)Last edited by egd; 2009-06-28 at 23:16.
-
2009-06-28, 23:17 #14Senior Member
- Join Date
- Jun 2008
- Posts
- 101
I need some slightly better error handling in the plugin for when the server returns something like a 404. First off make sure that Ampache has the XML API enabled. I should document this on the site... On the server in config/ampache.cfg.php you'll need:
access_control = "true"
xml_rpc = "true"
You can enable debugging and check your web server's log for juicy tidbits should things still not work properly.
Now on the SqueezeCenter side enable debugging for plugin.ampache (see up a couple posts), Make sure you check the box to make that setting persistent after restarts. Restart squeezecenter and check your squeezecenter log /var/log/squeezecenter/server.log for anything useful. An invalid URL or misconfigured Ampache could be the problem.
-
2009-06-29, 11:33 #15
Choosing Music Source causes SC's left pane to hang around and do nothing with no response from the server. At the bottom left of the screen the following message is displayed:
Eventually it times out or just returns a blank screen.Code:Waiting for 192.168.168.100...
Herewith the log entries from slimserver.logCode:[09-06-29 20:16:52.3256] Slim::Networking::IO::Select::select (271) Error: Select task failed: Can't call method "deviceid" on an undefined value at /raid0/data/module/SQUEEZECENTER/squeezecenter/Slim/Web/Pages/Home.pm line 243. [09-06-29 20:18:07.0064] Slim::Networking::IO::Select::select (271) Error: Select task failed: Can't call method "deviceid" on an undefined value at /raid0/data/module/SQUEEZECENTER/squeezecenter/Slim/Web/Pages/Home.pm line 243. [09-06-29 20:19:22.0072] Slim::Networking::IO::Select::select (271) Error: Select task failed: Can't call method "deviceid" on an undefined value at /raid0/data/module/SQUEEZECENTER/squeezecenter/Slim/Web/Pages/Home.pm line 243. [09-06-29 20:20:37.0078] Slim::Networking::IO::Select::select (271) Error: Select task failed: Can't call method "deviceid" on an undefined value at /raid0/data/module/SQUEEZECENTER/squeezecenter/Slim/Web/Pages/Home.pm line 243. [09-06-29 20:21:52.0084] Slim::Networking::IO::Select::select (271) Error: Select task failed: Can't call method "deviceid" on an undefined value at /raid0/data/module/SQUEEZECENTER/squeezecenter/Slim/Web/Pages/Home.pm line 243. [09-06-29 20:23:07.0091] Slim::Networking::IO::Select::select (271) Error: Select task failed: Can't call method "deviceid" on an undefined value at /raid0/data/module/SQUEEZECENTER/squeezecenter/Slim/Web/Pages/Home.pm line 243. [09-06-29 20:24:22.0098] Slim::Networking::IO::Select::select (271) Error: Select task failed: Can't call method "deviceid" on an undefined value at /raid0/data/module/SQUEEZECENTER/squeezecenter/Slim/Web/Pages/Home.pm line 243. [09-06-29 20:25:37.1693] Slim::Networking::IO::Select::select (271) Error: Select task failed: Can't call method "deviceid" on an undefined value at /raid0/data/module/SQUEEZECENTER/squeezecenter/Slim/Web/Pages/Home.pm line 243.
Last edited by egd; 2009-06-29 at 11:37.
-
2009-06-29, 11:41 #16Senior Member
- Join Date
- Jun 2008
- Posts
- 101
Err, I have no idea what's going on there and I don't see how those log messages could be related to the Ampache plugin. Look under Settings/Advanced/Logging there are additional logging bits you can enable. If there is one for plugin.ampache enable that (be sure and check the box to make the change persistent), then restart and check the log again for something hopefully more interesting.
-
2009-06-29, 12:19 #17
Ok, after checking logging settings (all logs other than ampache are turned off) I killed SC, deleted the log files, fired SC up again and here's the outcome:
Code:[09-06-29 20:57:14.5117] Slim::Networking::Async::DNS::init (102) Warning: No DNS servers responded, falling back to OpenDNS. [09-06-29 20:57:24.4324] Plugins::Ampache::Plugin::authenticate (53) Authenticating... [09-06-29 20:57:24.4740] Slim::Utils::PluginManager::enablePlugins (538) Warning: Couldn't call Plugins::Ampache::Plugin->initPlugin: Couldn't get http://localhost/ampache/server/xml.server.php?auth=9b7abfef11b273beb2986f9b9ab9eb4701946a64ffb36ad404f16553170c67f6×tamp=1246301844&version=350001&action=handshake&user=admin [09-06-29 21:08:08.7812] Slim::Networking::IO::Select::select (271) Error: Select task failed: Can't call method "deviceid" on an undefined value at /raid0/data/module/SQUEEZECENTER/squeezecenter/Slim/Web/Pages/Home.pm line 243. [09-06-29 21:09:23.0077] Slim::Networking::IO::Select::select (271) Error: Select task failed: Can't call method "deviceid" on an undefined value at /raid0/data/module/SQUEEZECENTER/squeezecenter/Slim/Web/Pages/Home.pm line 243. [09-06-29 21:10:38.0083] Slim::Networking::IO::Select::select (271) Error: Select task failed: Can't call method "deviceid" on an undefined value at /raid0/data/module/SQUEEZECENTER/squeezecenter/Slim/Web/Pages/Home.pm line 243. [09-06-29 21:11:53.0090] Slim::Networking::IO::Select::select (271) Error: Select task failed: Can't call method "deviceid" on an undefined value at /raid0/data/module/SQUEEZECENTER/squeezecenter/Slim/Web/Pages/Home.pm line 243. [09-06-29 21:13:08.0094] Slim::Networking::IO::Select::select (271) Error: Select task failed: Can't call method "deviceid" on an undefined value at /raid0/data/module/SQUEEZECENTER/squeezecenter/Slim/Web/Pages/Home.pm line 243. [09-06-29 21:14:23.0066] Slim::Networking::IO::Select::select (271) Error: Select task failed: Can't call method "deviceid" on an undefined value at /raid0/data/module/SQUEEZECENTER/squeezecenter/Slim/Web/Pages/Home.pm line 243. [09-06-29 21:15:38.0069] Slim::Networking::IO::Select::select (271) Error: Select task failed: Can't call method "deviceid" on an undefined value at /raid0/data/module/SQUEEZECENTER/squeezecenter/Slim/Web/Pages/Home.pm line 243.
-
2009-06-29, 13:10 #18Senior Member
- Join Date
- Jun 2008
- Posts
- 101
Woohoo, so it looks like the plugin is doing everything like it should. You can try grabbing that URL with your browser and see what happens. If that fails completely you've got other issues, but I suspect the problem may be that you didn't setup the ACLs for API properly on the Ampache side of things. An invalid username or password would report as much in the error. I'm going to document this shortly, but in the meantime check out the first part of this from the Ampache documentation:
http://ampache.org/wiki/config:amarok
Robert
-
2009-06-29, 23:38 #19
Ok, I've set up the ACLs for my local network, rechecked the l
for Ampache is correctly set in the plugin settings and restarted both machines to no avail.
Trying to open the URL in a browser yields information.xml which indicated some sort of ACL error:A screendump of the ACL setup is also attached.Code:<root> <error code="403">ACL Error</error> </root>
Last edited by egd; 2009-06-30 at 11:13.
-
2009-06-30, 10:08 #20Senior Member
- Join Date
- Jun 2008
- Posts
- 101
If I recall correctly you have everything running on the same machine. Try adding or changing your RPC ACL to include 127.0.0.1 The problem lies solely with your Ampache config at this point. Enabling debug logging in Ampache may help, but I'm guessing the above is the problem.
Robert

Reply With Quote


