Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 29
  1. #11
    Banned egd's Avatar
    Join Date
    Jan 2006
    Location
    Johannesburg, South Africa
    Posts
    1,692
    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.

  2. #12
    Senior Member
    Join Date
    Jun 2008
    Posts
    101
    Quote Originally Posted by flemming View Post
    Hmmm, I'll need to dig up a Windows machine and do some poking around. I'll get back to you.
    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.

  3. #13
    Banned egd's Avatar
    Join Date
    Jan 2006
    Location
    Johannesburg, South Africa
    Posts
    1,692
    Quote Originally Posted by flemming View Post
    First off I'd highly suggest upgrading Ampache to 3.5.1 as it fixes a number of bugs in the API that the plugin relies on, but the SVN version you have may have those fixes already too. If you've got things configured and you've restarted Squeezecenter you should see Ampache under Music Services. If you don't then I'm going to jump out a window
    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 IPort - 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.

  4. #14
    Senior 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.

  5. #15
    Banned egd's Avatar
    Join Date
    Jan 2006
    Location
    Johannesburg, South Africa
    Posts
    1,692
    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:
    Code:
    Waiting for 192.168.168.100...
    Eventually it times out or just returns a blank screen.

    Herewith the log entries from slimserver.log
    Code:
    [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.

  6. #16
    Senior 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.

  7. #17
    Banned egd's Avatar
    Join Date
    Jan 2006
    Location
    Johannesburg, South Africa
    Posts
    1,692
    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&timestamp=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.

  8. #18
    Senior Member
    Join Date
    Jun 2008
    Posts
    101
    Quote Originally Posted by egd View Post
    [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....ake&user=admin
    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

  9. #19
    Banned egd's Avatar
    Join Date
    Jan 2006
    Location
    Johannesburg, South Africa
    Posts
    1,692
    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:
    Code:
    <root>
    <error code="403">ACL Error</error>
    </root>
    A screendump of the ACL setup is also attached.
    Attached Images Attached Images  
    Last edited by egd; 2009-06-30 at 11:13.

  10. #20
    Senior 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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •