Help debugging

Hi there,

I understand this is a question related to a specific plugin which has its own sub-forum, however, I’m not certain that the board is looked at much these days. I’ve asked the question here[url=http://forum.micasaverde.com/index.php/topic,9451.msg185714.html#msg185714]http://forum.micasaverde.com/index.php/topic,9451.msg185714.html#msg185714[/url]

Further, I’m hopeful someone can help me debug the plugin generally.

I’ve downloaded and copied across the latest files for the plugin, and added an instance as follows:

  • Installed the plugin
  • Go to: Apps → Develop Apps → Create Device
    – Device Type: Media Server
    – Description: LMS
    – Upnp Device Filename: D_SqueezeboxControl1.xml
    – Upnp Implementation Filename: I_SqueezeboxControl1.xml
  • Press “Create”
  • goto: Devices, find LMS, setup-> Advanced and set the ip address, port automatically set to 9090.

The plugin then starts up, finds the server and adds each player as expected.

The problem occurs when I try and use the plugin UI controls - I get “Device not ready”

on start up, I get the following log entries:

02 10/29/14 8:59:34.931 e[33;1mDevice_Service::MatchupUpnpServices no upnp service for urn:micasaverde-com:serviceId:SqueezeBox1e[0m <0x2b0de000> 02 10/29/14 8:59:35.075 e[33;1mJobHandler_LuaUPnP::m_sMissingFile_set /etc/cmh-lu// I_SqueezeboxControl1.xmle[0m <0x2b0de000> 01 10/29/14 8:59:35.075 e[31;1mLuImplementation::Parse can't load /etc/cmh-lu// I_SqueezeboxControl1.xmle[0m <0x2b0de000> 01 10/29/14 8:59:35.076 e[31;1mJobHandler_LuaUPnP::ParseAllImplementations failed to parse I_SqueezeboxControl1.xmle[0m <0x2b0de000> 09 10/29/14 8:59:40.905 JobHandler_LuaUPnP::Run device 29 ? room 7 type urn:schemas-micasaverde-com:device:SqueezeBoxPlayer:1 id 80:1f:02:f1:e6:7c parent 28/0xa3e7e0 upnp: 0 <0x2b0de000> 09 10/29/14 8:59:40.906 JobHandler_LuaUPnP::Run device 30 Bedroom room 6 type urn:schemas-micasaverde-com:device:SqueezeBoxPlayer:1 id 00:04:20:06:8c:55 parent 28/0xa3e938 upnp: 0 <0x2b0de000> 09 10/29/14 8:59:40.907 JobHandler_LuaUPnP::Run device 32 Hifi room 2 type urn:schemas-micasaverde-com:device:SqueezeBoxPlayer:1 id 00:04:20:05:b4:31 parent 28/0xa40418 upnp: 0 <0x2b0de000> 09 10/29/14 8:59:40.907 JobHandler_LuaUPnP::Run device 31 Kitchen room 4 type urn:schemas-micasaverde-com:device:SqueezeBoxPlayer:1 id 00:04:20:05:c5:c2 parent 28/0xa41428 upnp: 0 <0x2b0de000> 09 10/29/14 8:59:40.910 JobHandler_LuaUPnP::Run device 28 LMS room 3 type urn:schemas-micasaverde-com:device:SqueezeBox:1 id parent 0/0xa3c190 upnp: 0 <0x2b0de000> 03 10/29/14 8:59:40.920 JobHandler_LuaUPnP::Run ready 36 devices installation 35109401 missing /etc/cmh-lu// I_SqueezeboxControl1.xml version *1.5.622* allow_evt: 1 allow_ud: 1 upnp 0 netpnp: 1 reprovision: 0 tz:0 tnow:1414573180 dst: 0 gmt:0 tz:GMT / BST changed: 0 pMem 0xe5d000 start 9842688 diff: 5218304 <0x2b0de000> 50 10/29/14 9:00:43.708 luup_log:28: Squeezebox: starting Sqeezebox Control <0x2ba11680>

When using the plugin through the UI, I get the following in the logs:

08 10/29/14 8:56:05.569 JobHandler_LuaUPnP::HandleActionRequest device: 30 service: urn:micasaverde-com:serviceId:MediaNavigation1 action: Play <0x2edce680> 08 10/29/14 8:56:05.570 JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=30 <0x2edce680> 08 10/29/14 8:56:05.570 JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:micasaverde-com:serviceId:MediaNavigation1 <0x2edce680> 08 10/29/14 8:56:05.570 JobHandler_LuaUPnP::HandleActionRequest argument action=Play <0x2edce680> 08 10/29/14 8:56:05.571 JobHandler_LuaUPnP::HandleActionRequest argument rand=0.5338705038620782 <0x2edce680> 02 10/29/14 8:56:05.571 Device_LuaUPnP::HandleActionRequest 30 not ready 0xe67ef8 <0x2edce680> 02 10/29/14 8:56:05.571 JobHandler_LuaUPnP::RunAction device 30 action urn:micasaverde-com:serviceId:MediaNavigation1/Play failed with -911/Device not ready <0x2edce680>

Any help debugging this would be appreciated.

Thanks
James

First I moved your topic to the Squeezebox Plugin subforum, even though you do not think it would be visible it is to keep the forum organized. Now to answer your post.

Are you absolutely sure that you uploaded all of the files to Vera? The latest version of the files can be found here:

http://code.mios.com/trac/mios_squeezebox/browser

When creating the device in Apps → Develop Apps → Create Device enter the following:

Device Type: urn:schemas-micasaverde-com:device:SqueezeBox:1
Description: LMS
Upnp Device Filename: D_SqueezeboxControl1.xml
Upnp Implementation Filename: I_SqueezeboxControl1.xml

Press “Create Device”

Vera should reload the LuaUPnP engine several times depending on how many squeezebox devices you have. From there it should work.

  • Garrett

Hi Garrett,

Thanks, it seems there were two files which were out of date from the last zip I downloaded, I’ve installed all of the files on code.mios and all is working as expected.

Thanks again!

James

Glad to hear it!

  • Garrett

I’ve been using Squeezebox Control and everything is working great. Except for my thing.
From time time when a Squeezebox player gets disconnected from the network and reconnects again, the plugin starts to discovers and creates “Fake Players” that are named with a “?” (Question mark) or with the name of a track that is being played on a squeezebox group and does not stop causing Vera to restarts the engine constantly.

I’ve been looking around trying to find a way to prevent this fake players from creating but no luck.

Any suggestions?

[quote=“garrettwp, post:2, topic:183805”]First I moved your topic to the Squeezebox Plugin subforum, even though you do not think it would be visible it is to keep the forum organized. Now to answer your post.

Are you absolutely sure that you uploaded all of the files to Vera? The latest version of the files can be found here:

http://code.mios.com/trac/mios_squeezebox/browser

When creating the device in Apps → Develop Apps → Create Device enter the following:

Device Type: urn:schemas-micasaverde-com:device:SqueezeBox:1
Description: LMS
Upnp Device Filename: D_SqueezeboxControl1.xml
Upnp Implementation Filename: I_SqueezeboxControl1.xml

Press “Create Device”

Vera should reload the LuaUPnP engine several times depending on how many squeezebox devices you have. From there it should work.

  • Garrett[/quote]

Hi Garrett,

Thanks for your ongoing efforts with this plugin.

I’m having issues with my Vera 3 running UI7. I’ve downloaded all files from code.mios.com and uploaded to Vera. I can add the device, however, the plugin does not detect my Squeeze boxes and I cannot access the device settings to enter the IP address of my LMS. I can telnet from my Vera to TCP port 23 on my LMS (running on QNAP NAS) so telnet should be working.

I see the following debug in my LuaPnP.log file which might shed some light on this issue.

01 01/10/15 1:05:16.747 Device_LuaUPnP::LoadDeviceDoc ixmlParseBufferEx /etc/cmh-ludl//D_SqueezeboxControl1.xml size 16148 ret 106 <0x2b951000>
01 01/10/15 1:05:16.748 JobHandler_LuaUPnP::CreateDevice_LuaUPnP failed to load 17/D_SqueezeboxControl1.xml so device 17 is offline <0x2b951000>
01 01/10/15 1:05:16.946 Device_LuaUPnP::CreateServices Aborting device 17 because the topmost device has no interface <0x2b951000>
01 01/10/15 1:05:16.946 JobHandler_LuaUPnP::CreateAllServices failed to create 17 <0x2b951000>
02 01/10/15 1:05:16.970 Device_Service::MatchupUpnpServices no upnp service for urn:micasaverde-com:serviceId:SecuritySensor1 <0x2b951000>
01 01/10/15 1:05:16.975 Device_LuaUPnP::CreateImplementations Aborting 17 because it failed to load <0x2b951000>
01 01/10/15 1:05:16.976 JobHandler_LuaUPnP::CreateAllImplementations failed to create 17 <0x2b951000>

Any help would be greatly appreciated as I’ve deleted the device and reloaded the Vera from the Network/Wifi settings page multiple times.

Regards
Bluman

This plugin has not been tested with UI7. I have unfortunately stopped supporting the plugin and will not be providing any changes to it since I am not running UI7 and will not be switching over any time soon.

  • Garrett

It is probably related to this issue:

http://forum.micasaverde.com/index.php?topic=26785.msg212499#msg212499

  • Garrett

[quote=“garrettwp, post:7, topic:183805”]This plugin has not been tested with UI7. I have unfortunately stopped supporting the plugin and will not be providing any changes to it since I am not running UI7 and will not be switching over any time soon.

  • Garrett[/quote]

Thanks for the reply Garrett, I understand where you are coming from. Your contribution to this community has been outstanding! Looks like I’ll have to roll back to UI5.

Bluman

Just rolled back from UI7 to UI5 in hope that the Squeezebox plugin will work, however I still get the same LUA error on startup.

Here is what I have in the Lua log.

01 01/14/15 23:41:34.411 LuaInterface::CallFunction_Startup-2 device 17 function sqz_startup failed (null) with return false <0x2b75d680>
06 01/14/15 23:41:34.411 Device_Variable::m_szValue_set device: 17 service: urn:micasaverde-com:serviceId:HaDevice1 variable: CommFailure was: 1 now: 1 #hooks: 0 upnp: 0 v:0xcfade0/NONE duplicate:1 <0x2b75d680>
01 01/14/15 23:41:34.412 LuImplementation::StartLua running startup code for 17 I_SqueezeboxControl1.xml failed <0x2b75d680>

I was hoping that UI5 would fix Squeezebox, however no luck. I was planning on using Squeezebox for whole home audio so I am very keen to get this working. The Squeezebox device is number 17.

If anyone has any tips I’d appreciate it.