My zoneplayer’s IP changed, and I was getting ‘lua startup failed’. I reserved the zp IP to 192.168.0.181 and made sure it plays properly (it does). I updated the sonos device to reflect the new IP, and I still get the ‘lua startup failed’ error. I’ve restarted vera several times.
[quote=“Intrepid, post:601, topic:169644”]My zoneplayer’s IP changed, and I was getting ‘lua startup failed’. I reserved the zp IP to 192.168.0.181 and made sure it plays properly (it does). I updated the sonos device to reflect the new IP, and I still get the ‘lua startup failed’ error. I’ve restarted vera several times.
Any ideas?[/quote]
Did you change plguin version during this time ?
What error(s) do you get in the logs ?
Upload the plugin files again and restart. Use the Zip archive.
[quote=“lolodomo, post:603, topic:169644”][quote=“Intrepid, post:601, topic:169644”]My zoneplayer’s IP changed, and I was getting ‘lua startup failed’. I reserved the zp IP to 192.168.0.181 and made sure it plays properly (it does). I updated the sonos device to reflect the new IP, and I still get the ‘lua startup failed’ error. I’ve restarted vera several times.
Any ideas?[/quote]
Did you change plguin version during this time ?
What error(s) do you get in the logs ?
Upload the plugin files again and restart. Use the Zip archive.[/quote]
did not change the plugin files. i’m on an old version.
seems like i ran into this before. i’d like to understand why this is happening before i change anything else.
what’s the best way to view the error logs?
edit:
01 11/24/12 7:57:17.990 luup_log:87: Sonos: debug UPnP_request: status=no status statusMsg=No route to host result=[] <0x2c345680>
01 11/24/12 7:57:17.990 LuaInterface::CallFunction_Startup-1 device 87 function sonosStartup failed [string “…”]:32: bad argument #1 to ‘match’ (string expected, got table) <0x2c345680>
01 11/24/12 7:57:17.991 LuImplementation::StartLua running startup code for 87 I_Sonos1.xml failed <0x2c345680>
[quote=“Intrepid, post:604, topic:169644”][quote=“lolodomo, post:603, topic:169644”][quote=“Intrepid, post:601, topic:169644”]My zoneplayer’s IP changed, and I was getting ‘lua startup failed’. I reserved the zp IP to 192.168.0.181 and made sure it plays properly (it does). I updated the sonos device to reflect the new IP, and I still get the ‘lua startup failed’ error. I’ve restarted vera several times.
Any ideas?[/quote]
Did you change plguin version during this time ?
What error(s) do you get in the logs ?
Upload the plugin files again and restart. Use the Zip archive.[/quote]
did not change the plugin files. i’m on an old version.
seems like i ran into this before. i’d like to understand why this is happening before i change anything else.
what’s the best way to view the error logs?
edit:
01 11/24/12 7:57:17.990 luup_log:87: Sonos: debug UPnP_request: status=no status statusMsg=No route to host result=[] <0x2c345680>
01 11/24/12 7:57:17.990 LuaInterface::CallFunction_Startup-1 device 87 function sonosStartup failed [string “…”]:32: bad argument #1 to ‘match’ (string expected, got table) <0x2c345680>
01 11/24/12 7:57:17.991 LuImplementation::StartLua running startup code for 87 I_Sonos1.xml failed <0x2c345680>[/quote]
That could be a consequence of the IP change.
What SVN revision do you use ?
With the recent versions (guessed generation), I think I already tried to set a wrong IP address and the startup process was ok.
In the current version, I see no call to function match in function sonosStartup.
I don’t think the problem is on the Vera side. If it was, how do you explain that I have the same behaviour when I invoke the UPnP calls through Device Spy ?
But your analysys relative to mismatch between UTF-8 and ISO-8859-1 seems to be the point.
What I checked (read my previous message) is that Google is compatible with UTF-8 and ISO-8859-1 encoded URL.
I just committed few changes relative to the display of media information. One of the change is that we have now the radio name and the track title for exemple for AUPEO! service, or the radio name and the stream for TuneIn. And now only fields with provided value are now displayed in the UI.
@guessed: regarding the call to MusicServices.ListAvailableServices, that is very strange, activating the logs, I can see that the UPnP request is done with a correct return value. But finally the function does not return.
The only thing that I noticed is that the result is a very big string and I see that it is truncated when I log it. Could be a trunc by the log/debug function because the matching is working ?
Is it a problem with my parameters ? Here is how I call the function:
Looking at the code, it is not clear for me how the output parameters are set with the result of the UPnP request. Is it done indirectly by the call to setmetatable ?
I see in lua library that the UPnP request is done with a forced UTF-8 encoding. Are we sure that the Sonos is not expecting a ISO-8859-1 encoding ? That may explain the problem we have with the Say callback and accents. I will experiment other encoding…
Hek, I thing you are on the right direction. Now I see that the plugin uses a UTF-8 encoding for the UPnP request. Maybe Device Spy uses UTF-8 too.
I will try to force a ISO-8859-1 encoding in the plugin to see if it helps.