macOS seems to be blocking LAN streaming

Aperta
#1,739 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
22/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
macos, perl
Ambito
desktop, release

Direzione di ricerca

Read the packaging notes first: both Info.plist files (outer and nested Lyrion Music Server.app) and the signing setup for the bundled perl, plus the stale org.lyrion.lyrionmusicserver.plist LaunchAgent. Reproduce by running the small IO::Socket::INET test under a user LaunchAgent versus Terminal with the bundled perl, since the Terminal path connects and the LaunchAgent path returns EHOSTUNREACH. Done means a valid unique bundle ID, an NSLocalNetworkUsageDescription entry, a distinct signing identifier for the helper perl, and a LAN stream playing when the server is started from the app rather than Terminal.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

compatibility

Describe the bug
I've been streaming from a local raspberry pi to through my mac runing Lyrion to Booms without problem for years.

I upgraded MacOS from an earlier 15 release to 15.8.3 (24H241) and Lyrion form 9.0.0 to 9.1.1.

MacOS now seems to be blocking outbound network requests to a streaming server.

  • I've toggled the permission settings in System Settings > Local Network (which seems to be filled with garbage duplicates).
  • I've restarted.
  • I've quit, trashed, emptied trash, reinstalled, restarted Lyrion (which did result in a fresh permission prompt).

The same URL pasted from the lyrion system log into MS Edge plays fine.

I tried quiting and using 9.0.0 again but it doesnt seem to start anymore. The menu item shows but the webpage doesn't load. I quit it, replaced it with 9.1.1, and the web page is back but still no streaming luck.

To Reproduce
Steps to reproduce the behavior:

  1. Play a LAN stream

Expected behavior
Lyrion plays the stream

Screenshots

System Information (please complete the following information):

  • OS on which you're running LMS: macOS 15.8.3
  • Hardware on which you're running LMS: ARM mac mini
  • Web skin used: Default
  • Browser: Edge
  • LMS Version: 9.1.1
  • Player(s) involved: Boom
  • Addition information from the Settings/Information header section
Lyrion Music Server Status
Lyrion Music Server Version: 9.1.1 - 1779815526 @ Wed Jun 17 12:31:41 UTC 2026
Hostname: Hank.localdomain
IP: 10.0.0.18
HTTP Port: 9002
OS: macOS 15.8.3 - EN - utf8
Platform: arm64
Database Version: SQLite
Total Players Recognized: 3
 
Perl and Module Versions
Perl Version: 5.34.0 - darwin-thread-multi-2level
Audio::Scan: 1.06
DBD::SQLite: 1.76 (sqlite 3.46.1)
IO::Socket::SSL: 2.072
Mozilla::CA: 20211001
Net::SSLeay: 1.92 - OpenSSL 1.1.1m 14 Dec 2021

Additional context

[26-11-21 21:05:15.3295] Slim::Utils::Scanner::Remote::__ANON__ (228) Error: Can't connect to remote server to retrieve playlist for, http://10.0.0.17:8001/noise/?color=brown&encoder=mp3&highcut=4000&rampsecs=.5&volume=.5&bufferlength=20000: Connect timed out: .

Claude's report, including some insightful notes about the bundling at the end

The same server, using the same bundled perl, connects normally when started from Terminal. This points to macOS Local Network privacy (LNP) denying the app's server process. Lyrion is shown as allowed in System Settings → Privacy & Security → Local Network.

Environment

  • Lyrion Music Server 9.1.1 (build 1779815526, Wed Jun 17 2026), macOS app, Developer ID signed and notarized (Team ID B7PH88ACP8)
  • Bundled perl 5.34.0, universal binary (x86_64 + arm64)
  • macOS 15.8.3 (24H241), Apple Silicon (arm64)
  • Stream source: an HTTP audio server on the same subnet (http://<lan-ip>:8001/..., audio/mpeg)

Tests

The same URL and host were tried from several launch contexts:

Launched from Result
Lyrion macOS app (login item or open -a) ❌ Times out, nothing reaches the host
Bundled perl socket test, run as a user LaunchAgent ❌ connect fails immediately with EHOSTUNREACH ("No route to host"), the classic LNP denial
Bundled perl socket test, run from Terminal ✅ Connects in about 3 ms
slimserver.pl started with the bundled perl from Terminal ✅ Stream plays normally
curl from Terminal, on either network interface ✅ HTTP 200, audio streams

The socket test used:

use IO::Socket::INET;
my $s = IO::Socket::INET->new(PeerAddr=>"<lan-ip>", PeerPort=>8001, Proto=>"tcp", Timeout=>8);
print $s ? "OK\n" : "FAILED: $!\n";

These didn't help:

  • Turning the Lyrion and both "perl" entries off and on in Local Network settings
  • Turning Wi-Fi off and on
  • Rebooting
  • Fully restarting the app and server (stopping the orphaned server process first; see below)

Packaging observations that may be relevant

  1. The bundle identifier contains a comma: org.LyrionCommunity,MichaelHerger.LyrionMusicServer. Commas aren't valid in CFBundleIdentifier, which should be letters, digits, hyphens and periods only. LNP and other privacy subsystems key decisions on code-signing identity, so an invalid identifier could plausibly confuse them.
  2. Two app bundles share that identifier. The outer Lyrion Music Server.app and the nested Contents/MacOS/Lyrion Music Server.app have the same ID. This may explain the duplicate entries in the Local Network list.
  3. No NSLocalNetworkUsageDescription is in either Info.plist. Without it, macOS may never show the Local Network prompt, so the user has no way to grant access properly.
  4. The server's bundled perl is signed with the generic identifier perl. Two linked "perl" entries appear in the Local Network list; turning one off also turns off the other. A unique identifier such as org.lyrion.perl would make the server's permission easier to tell apart and manage.
  5. Quitting the app doesn't stop the server. slimserver.pl keeps running (reparented to launchd), and reopening the app reuses that orphaned server. A user who restarts the app to pick up a permission change is still testing the old process.
  6. Stale LaunchAgents after upgrade. A user LaunchAgent, org.lyrion.lyrionmusicserver.plist, still pointed to the pre-nested layout (…/Lyrion Music Server.app/Contents/Resources/../MacOS/perl), which 9.1.1 no longer has. It failed at every login with exit code 78. Older Squeezebox LaunchAgent/LaunchDaemon plists pointing to the removed Squeezebox.prefPane were also still present. The upgrade could clean these up.

Background

Apple's DTS has acknowledged that Local Network privacy can deny an app that System Settings shows as allowed. There is currently no supported way to reset LNP state (FB14944392, documented in TN3179).

Workaround

Starting the server from Terminal works. Many users won't want to give up starting from the app, though, so a packaging fix would help: a valid, unique bundle ID, NSLocalNetworkUsageDescription, and a distinct signing identifier for the helper perl.

Lingua principale
Perl
Stelle
1.8k
Fork
389
Merge medio
1g 4h
PR unite (30g)
10

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Nessun Dockerfile né file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di LMS-Community/slimserver

Tutte le issue di LMS-Community/slimserver

Issue simili

Altre issue su Perl

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.