philippe44 / LMS-uPnP

Integrate UPnP players with LogitechMediaServer
111 stars 17 forks source link

Wide character in print / Docker #46

Closed LMSSonos closed 3 years ago

LMSSonos commented 3 years ago

Hi

I was trying to use the uPNP bridge on the official LMS Docker image. While I was trying to configure it, suddenly the advanced settings in LMS did not load anymore. Then in the log i found following data:

[21-02-01 09:43:25.1998] Slim::Utils::Misc::msg (1283) Warning: [09:43:25.1995] Use of uninitialized value in concatenation (.) or string at /config/cache/InstalledPlugins/Plugins/UPnPBridge/HTML/EN/plugins/UPnPBridge/settings/basic.html line 294.
[21-02-01 09:43:25.2007] Slim::Utils::Misc::msg (1283) Warning: [09:43:25.2004] Use of uninitialized value in concatenation (.) or string at /config/cache/InstalledPlugins/Plugins/UPnPBridge/HTML/EN/plugins/UPnPBridge/settings/basic.html line 305.
[21-02-01 09:43:36.5525] Slim::Utils::Misc::msg (1283) Warning: [09:43:36.5521] Wide character in print at /config/cache/InstalledPlugins/Plugins/UPnPBridge/Settings.pm line 40.
[21-02-01 09:43:36.6110] Slim::Networking::IO::Select::__ANON__ (130) Error: Select task failed calling Slim::Web::HTTP::processHTTP: 
syntax error at line 1, column 0, byte 0 at /lms/CPAN/XML/Parser.pm line 187.
; fh=Slim::Web::HTTP::ClientConn=GLOB(0x5609ce3d5a70)

If I remove the upnpbridge.xml settings file, I can again access the page. But it won't generate anything. I also took a file from another installation (non docker) which was not working and I still get the same error. Can you tell me which file I need to restore from backup?

Thanks

philippe44 commented 3 years ago

A file is generated when players are found so no player no file. There is no benefit in importing another config file, it will not "create" any player. Now, you probably have an issue with docker and NAT/host mode, that's where you should look. Docker is nice, but is a nightmare for application like this which require multicast and listening ports. Don't try it unless you use host mode

LMSSonos commented 3 years ago

Thanks for the details. So docker is the reason behind the issue. I only used UPNP a few times for my sonos, but in this case I can sell them and replace with another raspberry & hifiberry.

Again, thanks for all time end efforts you put into the plugin!