Liver64 / LoxBerry-Sonos

LoxBerry Plugin to control Sonos
11 stars 10 forks source link

Cannot scan after upgrade to loxberry 3.0 #42

Closed sennevb closed 1 year ago

sennevb commented 1 year ago

Hello,

Was using your plugin without problems, started a fresh install for loxberry 3.0. When iscan for player i get following errors: No valid data has been received after scanning for Players, we abort here. Invalid do parameter:

heubi76 commented 1 year ago

Same Problem here with an new install on a RPI4 with 3.0.0.1.

Liver64 commented 1 year ago

Did the installation failed? Did you checked Install log? Maybe install again...

heubi76 commented 1 year ago

All looks good, see log Sonos.log

Liver64 commented 1 year ago

I can not replicate because I just upgraded to v3.0.0.1.

heubi76 commented 1 year ago

was also not working with 3.0.0, tried already with new install...any other diagnostic for the scan problem?

Liver64 commented 1 year ago

what about detailed log post scan activity? Please select 1st debug level

heubi76 commented 1 year ago

sonos.log

Liver64 commented 1 year ago

please execute in browser http://YOUR LB IP/plugins/sonos4lox/system/network.php and let me know what exactly appears onScreen. Please check also error log after execution. This is the detailed function been executed for scanning.

heubi76 commented 1 year ago

looks like directly it's working? Last entry: 11:40:41.473 OK: system/network.php: JSON data has been successfully passed to application Unfortunatelly with Scan Button not working?

Liver64 commented 1 year ago

What exactly appears on the screen after execution? Was it totally empty or [ ] or...? What about log file after scanning?

heubi76 commented 1 year ago

php.log sonos sonos1

heubi76 commented 1 year ago

sonos.log

Liver64 commented 1 year ago

excute http://your/ LB IP/plugins/sonos4lox/system/network.php in Browser, check screen output (empty, [ ], or list of Players? Then check error log in Sonos Plugin! How does your *.cfg files looks like?

heubi76 commented 1 year ago

Output of php: See php.log Found every player...looks ok

[message] => Notice (8): Undefined variable: value in [/opt/loxberry/webfrontend/html/plugins/sonos4lox/system/network.php, line 231] )

Liver64 commented 1 year ago

please open file webfrontend/html/plugins/sonos4lox/system/network.php using Notepad++ (NOT the PC Editor) scroll down to row 231 and change as below:

IS: if(isSpeaker($model) == true and $value != $room) { NEW: if(isSpeaker($model) == true) {

try again scanning

heubi76 commented 1 year ago

unfortunatelly still same...multicast problem with my unifi network? sonos.log

sennevb commented 1 year ago

Same as heubi76: Edited the line 231 aswell , still no scanning, when i run plugins/sonos4lox/system/network.php it shows the players, so it seems an error when it tries to parse the array

updated to loxberry version 3.0.1 but still same problem

edit: the error on line 231 seems a notice not an actual error

Liver64 commented 1 year ago

Looks like a Loxberry issue. What type of hardware you are using?

sennevb commented 1 year ago

I'm using fresh dietPI install , then installed loxberry.. Running on synology Virtual machine.

Was running same setup for loxberry 2 and sonos4lox was running fine before

edit: Heubi76 running on RPI so might not be the hardware..

You cant replicate on your side?

sennevb commented 1 year ago

seems we are not the only one(s) who are getting this problem: https://www.loxforum.com/forum/projektforen/loxberry/plugins/74862-loxberry-sonos-plugin-verf%C3%BCgbar/page90

Liver64 commented 1 year ago

correct, the issue is only on fresh installed DietPi's with PHP-CLI. It is an Loxberry issue they are working on :-)

sennevb commented 1 year ago

So the fix is in a loxberry update and not with sonos plugin, correct?

Then we will wait patiently for a fix..

Thanks for looking into this

Liver64 commented 1 year ago

you can fix it by using following code as root user:

rm /etc/php/7.4/cli/conf.d/20-loxberry-cli.ini

ln -s /opt/loxberry/system/php/loxberry-cli.ini /etc/php/7.4/cli/conf.d/20-loxberry-cli.ini

then it should work again.

Liver64 commented 1 year ago

right, Not sure if they do an LB update immediately. You can fix it by those two lines of code.