We have moved at community.getvera.com

Author Topic: Help debugging  (Read 3432 times)

Offline jdr0berts

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
Help debugging
« on: October 29, 2014, 05:18:48 am »
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 herehttp://forum.micasaverde.com/index.php/topic,9451.msg185714.html#msg185714

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:
Code: [Select]
02 10/29/14 8:59:34.931 Device_Service::MatchupUpnpServices no upnp service for urn:micasaverde-com:serviceId:SqueezeBox1 <0x2b0de000>
02 10/29/14 8:59:35.075 JobHandler_LuaUPnP::m_sMissingFile_set /etc/cmh-lu// I_SqueezeboxControl1.xml <0x2b0de000>
01 10/29/14 8:59:35.075 LuImplementation::Parse can't load /etc/cmh-lu// I_SqueezeboxControl1.xml <0x2b0de000>
01 10/29/14 8:59:35.076 JobHandler_LuaUPnP::ParseAllImplementations failed to parse  I_SqueezeboxControl1.xml <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:

Code: [Select]
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


Offline garrettwp

  • Master Member
  • *******
  • Posts: 6371
  • Karma: +227/-128
  • Vera 3, Lite, ISY994
Re: Help debugging
« Reply #1 on: October 29, 2014, 06:09:06 am »
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

Offline jdr0berts

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
Re: Help debugging
« Reply #2 on: October 29, 2014, 06:51:33 am »
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

Offline garrettwp

  • Master Member
  • *******
  • Posts: 6371
  • Karma: +227/-128
  • Vera 3, Lite, ISY994
Re: Help debugging
« Reply #3 on: October 29, 2014, 09:11:03 am »
Glad to hear it!

- Garrett


Offline ronluna

  • Jr. Member
  • **
  • Posts: 96
  • Karma: +1/-3
Re: Help debugging
« Reply #4 on: December 26, 2014, 09:22:42 am »
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?

Offline bluman

  • Sr. Newbie
  • *
  • Posts: 29
  • Karma: +1/-0
Re: Help debugging
« Reply #5 on: January 09, 2015, 09:11:19 am »
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 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

Offline garrettwp

  • Master Member
  • *******
  • Posts: 6371
  • Karma: +227/-128
  • Vera 3, Lite, ISY994
Re: Help debugging
« Reply #6 on: January 09, 2015, 09:35:52 am »
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

Offline garrettwp

  • Master Member
  • *******
  • Posts: 6371
  • Karma: +227/-128
  • Vera 3, Lite, ISY994
Re: Help debugging
« Reply #7 on: January 09, 2015, 09:38:52 am »

Offline bluman

  • Sr. Newbie
  • *
  • Posts: 29
  • Karma: +1/-0
Re: Help debugging
« Reply #8 on: January 09, 2015, 11:26:11 pm »
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

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

Offline bluman

  • Sr. Newbie
  • *
  • Posts: 29
  • Karma: +1/-0
Re: Help debugging
« Reply #9 on: January 14, 2015, 07:47:15 am »
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.