Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote music library - don't show another LMS #1102

Open
lexmark3200 opened this issue May 30, 2024 · 12 comments
Open

Remote music library - don't show another LMS #1102

lexmark3200 opened this issue May 30, 2024 · 12 comments

Comments

@lexmark3200
Copy link

lexmark3200 commented May 30, 2024

Hi

I used the "latest" version 8.5.2, now I change to the "stable" 8.5.3. And the problem is still present.
I have two LMS in my network - one is Daphile, the second is LMS container on ubuntu server.
Daphile is findind properly the LMS on ubuntu, but the LMS on Ubuntu doesn't.
In option "Advanced" -> Remote Music Libraries-> I have enabled Enabled, look for other Ligitech Media Severs.
but, nothing is showing up in Home/Remote Music
No other media server was found in your network. Please make sure it's up and running and reachable. Then try again in a minute or two.

@michaelherger
Copy link
Member

Are both systems in the same network? Is there some kind of firewall in front of one of the systems? You could enable logging for plugin.remotelibrary on the Ubuntu machine to see what it's saying about your environment.

Did you try to add the Daphile system in the Remote Library settings?

@lexmark3200
Copy link
Author

lexmark3200 commented May 30, 2024

Yes, the both LMS are in the same network. From Daphile I can see the second LMS ( LMS on Ubuntu).
If I put manually the IP of my Daphile, the Remote Server is showing up, but not automatic.

@lexmark3200
Copy link
Author

You could enable logging for plugin.remotelibrary on the Ubuntu machine to see what it's saying about your environment.

How do to do correct??
I tryed but not with possitive result.

@michaelherger
Copy link
Member

Settings/Advanced/Logging. Set the flag to "debug" to get most output. Then let it run for a while. Do so on the Ubuntu machine. On that same page there are links to watch the log, or to download it as server.log.zip file.

@lexmark3200
Copy link
Author

lexmark3200 commented Jun 1, 2024

Ok.
That is from Scanner Log:
scanner_log.txt
That is from server log:
server_log.txt

@michaelherger
Copy link
Member

Are these log files from the Daphile system? I see an error about a missing string in Slim::Utils::OS::Custom - that's a file which can override some of a system's behavior. Would you be able to extract that file and attach it here?

@lexmark3200
Copy link
Author

lexmark3200 commented Jun 1, 2024

Are these log files from the Daphile system?

No, these log files are from docker container LMS on Ubuntu.

Would you be able to extract that file and attach it here?

I will try to do that. ;-)

On Ubuntu server I've installed alsa and squeezelite player. In etc/default/squeezelite

Squeezebox server (Logitech Media Server):
Uncomment the next line if you want to point squeezelite at the IP address of
your squeezebox server. This is usually unnecessary as the server is
automatically discovered.
SB_SERVER_IP="192.168.x.y"

SB_SERVER_IP, I put the IP of my Ubuntu, so the squeezelite don't looking for another LMS as player. Without this IP squeezelite player is alwayes connecting to Daphile as primary LMS server.

@lexmark3200
Copy link
Author

lexmark3200 commented Jun 1, 2024

Slim::Utils::OS::Custom
cat /lms/Slim/Utils/Prefs.pm
Here is the file:

Prefs.pm.tar.gz

@lexmark3200
Copy link
Author

lexmark3200 commented Jun 1, 2024

I've made some tests.
I've installed DietPI on Virtualbox. From Dietpi-Software I have installed LMS and squeezelite player. After settings LMS on DietPi, I can see my Daphile, and LMS on Ubuntu in Docker as Remote Music.

So, I have made another test:
I have purged the LMS from Dietpi, and installed it in Docker. The Remote Music is empty, no another LMS on the Network.
So the problem is with docker...

@michaelherger
Copy link
Member

Oh, you didn't mention Docker before. That's crucial: Docker would by default use "bridge" mode, in which the container would run in its own network. In that case broadcasts wouldn't work. And LMS uses broadcasts to discover other servers or players. You'd have to run Docker in "host" mode instead to make the container fully integrated into your network.

@lexmark3200
Copy link
Author

lexmark3200 commented Jun 3, 2024

Oh, you didn't mention Docker before.

I'm sorry for that.

And LMS uses broadcasts to discover other servers or players.

I trayed to put macvlan to docker, but without possitive result. Docker "get" the correct IP from my LAN, and the gateway is correct, but I can't login to LMS or even ping.

@michaelherger
Copy link
Member

I'm not familiar with macvlan. "Host" should do https://docs.docker.com/network/drivers/host/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants