pssc / ha-addon-lms

Logitech Media Server Addon for Home Assistant
GNU General Public License v3.0
56 stars 13 forks source link

No Web UI access indicating 502 Bad Gateway. #8

Closed XinoGitHub closed 2 years ago

XinoGitHub commented 2 years ago

Hi,

I'm running HA on a a VM Synology NAS host. LMS server seems to start but I have no Web UI access indicating 502 Bad Gateway. Logs as below....

Thanks for the addon and support.

LOGS:

 Add-on: Logitech Media Server
 Logitech Media Server, SqueezeBox Server & UPNP Media Server

 Add-on version: 0.0.49
 You are running the latest version of this add-on.
 System: Home Assistant OS 6.6  (amd64 / qemux86-64)
 Home Assistant Core: 2021.11.5
 Home Assistant Supervisor: 2021.12.1

 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.

[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] 02-timezone.sh: executing... 
Setting the timezone to : Europe/Lisbon
Current default time zone: 'Europe/Lisbon'
Local time is now:      Fri Dec 10 13:32:25 WET 2021.
Universal Time is now:  Fri Dec 10 13:32:25 UTC 2021.
Date: Fri Dec 10 13:32:25 WET 2021
[cont-init.d] 02-timezone.sh: exited 0.
[cont-init.d] 05-ha-options-json.sh: executing... 
[cont-init.d] 05-ha-options-json.sh: exited 0.
[cont-init.d] 07-ha-addon_name.sh: executing... 
[cont-init.d] 07-ha-addon_name.sh: exited 0.
[cont-init.d] 09-ha-config-to-env.sh: executing... 
[13:32:25] INFO: Option MOUNT to MOUNT=null
[13:32:25] INFO: Option TMPFS to TMPFS=null
[13:32:25] INFO: Option OPTIONS to LMS_OPTIONS=null
[13:32:25] INFO: Option LOGFILE to LMS_LOGFILE=null
[13:32:26] INFO: Option LOGDIR to LMS_LOGDIR=null
[13:32:26] INFO: Option NX to LMS_NX=null
[cont-init.d] 09-ha-config-to-env.sh: exited 0.
[cont-init.d] 11-ha-dirs.sh: executing... 
[cont-init.d] 11-ha-dirs.sh: exited 0.
[cont-init.d] 15-ha-mounts.sh: executing... 
[cont-init.d] 15-ha-mounts.sh: exited 0.
[cont-init.d] 17-ha-links.sh: executing... 
[cont-init.d] 17-ha-links.sh: exited 0.
[cont-init.d] 17-packages.sh: executing... 
[cont-init.d] 17-packages.sh: exited 0.
[cont-init.d] 21-pulse.sh: executing... 
[13:32:26] INFO:  Fix pulse perms
[cont-init.d] 21-pulse.sh: exited 0.
[cont-init.d] 90-lms_paths.sh: executing... 
[cont-init.d] 90-lms_paths.sh: exited 0.
[cont-init.d] 95-nxgix.sh: executing... 
[cont-init.d] 95-nxgix.sh: exited 0.
[cont-init.d] 95-scripts.sh: executing... 
[cont-init.d] 95-scripts.sh: exited 0.
[cont-init.d] 99-print-env.sh: executing... 
[cont-init.d] 99-print-env.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
Start Logitech Media Server...
[services.d] done.
[13:32:29] INFO: Waiting for lms before starting NGinx...
[21-12-10 13:32:31.5285] main::init (390) Starting Logitech Media Server (v8.2.0, 1627922070, Tue Aug  3 11:37:35 CEST 2021) perl 5.028001 - x86_64-linux-gnu-thread-multi
[21-12-10 13:32:31.8130] YAML::XS::DumpFile (34) Warning: Can't open '/config/lms/cache/plugin-data.yaml' for output:
Permission denied at /usr/share/squeezeboxserver/CPAN/arch/5.28/x86_64-linux-gnu-thread-multi/YAML/XS.pm line 34.
Start Logitech Media Server...
[21-12-10 13:32:34.1378] main::init (390) Starting Logitech Media Server (v8.2.0, 1627922070, Tue Aug  3 11:37:35 CEST 2021) perl 5.028001 - x86_64-linux-gnu-thread-multi
[21-12-10 13:32:34.3114] YAML::XS::DumpFile (34) Warning: Can't open '/config/lms/cache/plugin-data.yaml' for output:
Permission denied at /usr/share/squeezeboxserver/CPAN/arch/5.28/x86_64-linux-gnu-thread-multi/YAML/XS.pm line 34.
Start Logitech Media Server...
[21-12-10 13:32:36.3948] main::init (390) Starting Logitech Media Server (v8.2.0, 1627922070, Tue Aug  3 11:37:35 CEST 2021) perl 5.028001 - x86_64-linux-gnu-thread-multi
[21-12-10 13:32:36.5487] YAML::XS::DumpFile (34) Warning: Can't open '/config/lms/cache/plugin-data.yaml' for output:
Permission denied at /usr/share/squeezeboxserver/CPAN/arch/5.28/x86_64-linux-gnu-thread-multi/YAML/XS.pm line 34
pssc commented 2 years ago

It looks like the permissions are wrong in on the cache dir chown 1000 /config/lms/cache should fix this from the shell addon