macOS seems to be blocking LAN streaming

オープン
#1,739 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
22/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
macos, perl
領域
desktop, release

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Perl
スター
1.8k
フォーク
389
平均マージ
1日 4時間
マージ済み PR(30日)
10

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

LMS-Community/slimserver のほかの issue

LMS-Community/slimserver の issue をすべて見る

似ている issue

Perl の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。