Because 9000 isn’t working…
That is why I started to ask help. Portainer is not on my system anymore.
I think I reinstalled already the addon 20times, and rebooted 30times. I never changed any config (except the port somethimes) and never changed LMS
Btw I also started a github issue.
I dont want to use 9001, that is the only way I got it working.
I want to use 9000 (and no portainer) but that is not working.
@3zkc9fyf try using losf -i -n on the host after a reboot , I have the portainer addon running on my testdev setup configured for port 9099 all happy with lms addon so you have something else going on, its not an inherent problem with the addon as such.
Oke, the port you pick the first time is hardcoded in all config files.
Reinstalling / reconfiguration won’t help. Delete all files helped me. Lost my LMS settings though.
I do have LMS working inside HA. Thanks for all the help
Found out that the Squeezebox integration in my home assistant (to control the players from my current LMS setup) was using the 9090 port. Once I removed the integration by deleting all devices under it, the LMS add-on could start.
Now I can try setting it up and couple my players …
After further discussion on github lms embeds it port in its config so it need to be changed there, if you all ready have an install going on a different port. /config/lms/prefs/server.prefs
item httpport: 9001 , but as stated I only support it running on 9k you can run it on other ports its untested and unproven. Just In case anyone else trips over this one in a effort to get stuff going.
Has anyone encountered an inability to use airplay with this addon?
I tried installing the air play plugin, made sure to assign the executable (static and non-static), and all it does is sit at time 0:00 no matter what I try to play, either Airplay 1 (a stereo receiver) or Airplay 2 (ATV4k, Wiim) devices.
Airplay plugin with two different amps Marantz and Yamaha both Airplay 1 I think. Others are using I believe as there was help around debugging and testing issues around it and depanancies after the last LMS version bump.
Latest and latest I now test with both these as there seems to be a significant number of people using airplay and this addon, and is only supported for HAOS and linux self managed install not VM’s, airplay addon i suspect is very sanative to your exact networking setup, ie must have access to the hosts stack.
Thanks, I’m using HAOS, I’ll see if I can figure out anything with respect to networking, though I can cast media from HA to airplay devices outside of this addon.
How are you doing that, HA doest have Airplay support? Conceivably it’s all working but LMS can’t read you media, try check it out with a nonairplay player.
Hello, i kinda ran into some similar issue as [3zkc9fyf]. I have a fresh install of HA OS on a Pi4. After installing lms i got a bad gateway. I did not change anything, it did not work right form the start. i tried your suggestion from earlier. To move it in the server.prefs to a different port, but it did not work out. Then i changed it back to 9k and it worked. Ingress never, but the webinterface & android app worked fine. After the recent HA OS update, everything went back to bad gateway. Any idea why there is a conflict on port 9k?
Thanks for your support. If you have an questions or need input let me know.
greetings Tim
Hey, thank you for your reply.
I reinstalled lms yesterday and it is now available again, but not in ingress.
lsof does always give the same answer, regardless which additon i use. i, u , c…
Hi nickrout,
I made the screenshot, because i could not copy the text, which i assume to be wrong anyway. It did not show ports or ip adresses as requested with lsof. The picture is avery good example of how the other entries look like. Yes, show in sidebar is active. Black screen, bad gate 502 is shown.
First question : how do i copy the text from the web terminal?
Ims log:
Summary
lms init pid 1 args
s6init next
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting
Add-on: Logitech Media Server
Logitech Media Server, SqueezeBox Server & UPNP Media Server
Add-on version: 8.3.1.57
You are running the latest version of this add-on.
System: Home Assistant OS 11.0 (aarch64 / raspberrypi4-64)
Home Assistant Core: 2023.10.3
Home Assistant Supervisor: 2023.10.0
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-timezone: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
[12:49:03] INFO: Configuring timezone (Europe/Berlin)…
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service base-addon-timezone successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/02-timezone.sh
cont-init: info: /etc/cont-init.d/02-timezone.sh exited 0
cont-init: info: running /etc/cont-init.d/05-ha-options-json.sh
cont-init: info: /etc/cont-init.d/05-ha-options-json.sh exited 0
cont-init: info: running /etc/cont-init.d/07-ha-addon_name.sh
cont-init: info: /etc/cont-init.d/07-ha-addon_name.sh exited 0
cont-init: info: running /etc/cont-init.d/09-ha-config-to-env.sh
[12:49:06] INFO: Option MOUNT to MOUNT=null
[12:49:06] INFO: Option TMPFS to TMPFS=null
[12:49:07] INFO: Option OPTIONS to LMS_OPTIONS=null
[12:49:07] INFO: Option LOGFILE to LMS_LOGFILE=null
[12:49:07] INFO: Option LOGDIR to LMS_LOGDIR=null
[12:49:07] INFO: Option NX to LMS_NX=null
[12:49:07] INFO: Option set_permissions to LMS_set_permissions=null
[12:49:08] INFO: Option autoupdate_notify to LMS_autoupdate_notify=true
cont-init: info: /etc/cont-init.d/09-ha-config-to-env.sh exited 0
cont-init: info: running /etc/cont-init.d/11-ha-dirs.sh
cont-init: info: /etc/cont-init.d/11-ha-dirs.sh exited 0
cont-init: info: running /etc/cont-init.d/15-ha-mounts.sh
cont-init: info: /etc/cont-init.d/15-ha-mounts.sh exited 0
cont-init: info: running /etc/cont-init.d/17-ha-links.sh
cont-init: info: /etc/cont-init.d/17-ha-links.sh exited 0
cont-init: info: running /etc/cont-init.d/17-packages.sh
[12:49:08] INFO: Updating package lists
Get:1-6 removed due to link limitation
Fetched 9018 kB in 4s (2032 kB/s)
Reading package lists…
Reading package lists…
Building dependency tree…
Reading state information…
Calculating upgrade…
The following packages will be upgraded:
base-files curl debian-archive-keyring debianutils libc-bin libc-dev-bin
libc6 libc6-dev libcurl3-gnutls libcurl4 libgssapi-krb5-2 libk5crypto3
libkrb5-3 libkrb5support0 libpam-modules libpam-modules-bin libpam-runtime
libpam0g libssl-dev libssl3 libsystemd0 libudev1 libwbclient0 linux-libc-dev
openssh-client openssl
26 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 15.6 MB of archives.
After this operation, 37.9 kB disk space will be freed.
It’s not got to starting lms yet in that log…
You have some extra options toggled from the default that’s slowing down startup, see sample logs
from my test system. Yours is still upgrading its packages as you seem to have that option toggled.
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun ha-intergration (no readiness notification)
services-up: info: copying legacy longrun lms (no readiness notification)
services-up: info: copying legacy longrun nginx (no readiness notification)
Start Logitech Media Server...
[17:10:20] INFO: Waiting for lms before starting NGinx...
s6-rc: info: service legacy-services successfully started
[17:10:20] INFO: Waiting for Logitech Media Server
[23-10-19 17:10:22.3165] main::init (377) Starting Logitech Media Server (v8.3.1, 1676361197, Fri 17 Feb 2023 06:37:09 AM CET) perl 5.036000 - x86_64-linux-gnu-thread-multi
[17:10:24] INFO: Starting NGinx...
[17:10:24] INFO: Start sensor loop for pugin
[17:10:24] INFO: Event lms.service
{"message":"Event lms.service fired."}
[17:10:24] INFO: Starting the Home Assistant STDIN service for lms...
{"entity_id":"sensor.lms_players","state":"1","attributes":{"unit_of_measurement":"count"},"last_changed":"2023-10-19T16:10:26.398023+00:00","last_updated":"2023-10-19T16:10:26.398023+00:00","context":{"id":"01HD4B7MPYWX4998Y5PSNBETG5","parent_id":null,"user_id":"98c5f0673d8849c89840701a83f82da0"}}