core icon indicating copy to clipboard operation
core copied to clipboard

Network share & network playback error

Open Holzmusik opened this issue 9 months ago • 7 comments

Hello,

Could someone give me a tip on how to get my network drive (connected to a Fritzbox) working? I've already tried everything under network sharing.

Holzmusik avatar Feb 23 '26 18:02 Holzmusik

How did you named your Foldername? Here is an Example of my Homeassistant Backup.

fritz.nas/PHILIPS_UFD/Backup/Home_Assistant

Did you try to get the folder working on Windows explorer?

I Have read that sometimes its calldd fritz.nas and sometime frizbox.nas......

try to get it working in winexplorer first and then switch to Audioserver.

p4co86 avatar Feb 23 '26 19:02 p4co86

I've looked at it closely, the path to the folder is specified here, but I've tried everything possible, I can't get the network folder to be accepted.

http://fritz.nas/#/files/Seagate_Expansion_Drive/Musik

Holzmusik avatar Feb 23 '26 21:02 Holzmusik

take a deeper look in thr docker-compose.yaml

services: loxoneaudioserver: container_name: lox-audioserver image: ghcr.io/lox-audioserver/lox-audioserver:latest hostname: lox-audioserver build: context: . dockerfile: ./Dockerfile restart: unless-stopped network_mode: host # privileged caps (and security-opt) needed to mount smb folders within the container cap_add: - SYS_ADMIN - DAC_READ_SEARCH

I remember using docker-compose did it form me. Before i used git clone. Take a look at the last 4 lines and try it with that.

p4co86 avatar Feb 24 '26 05:02 p4co86

I've managed to get it working now, but not with the path from the browser. It only works with the IP address and the name of the SMB share. However, the music from the drive isn't playing. This seems to be a problem with the Fritz!NAS. The log file is attached.

[2026-02-24T10:31:18.337Z][DEBUG][Audio|Session] [message="[in#0 @ 0x656e840] Error opening input: Stale file handle\nError opening input file /app/data/music/nas/storage-1771928735127/3 Doors Down (2002) Away From The Sun/Away From The Sun.flac.\nError opening input files: Stale file handle" zoneId=5] ffmpeg stderr [2026-02-24T10:31:18.340Z][INFO][Audio|Session] [bufferedBytes=0 code=140 earlyExit=true profile=flac runMs=109 signal=null stderr="[in#0 @ 0x656e840] Error opening input: Stale file handle\nError opening input file /app/data/music/nas/storage-1771928735127/3 Doors Down (2002) Away From The Sun/Away From The Sun.flac.\nError opening input files: Stale file handle" stderrAt=1771929078337 subscribers=0 totalBytes=0 zoneId=5] ffmpeg exited [2026-02-24T10:31:18.341Z][WARN][Audio|Manager] [exitCode=140 exitSignal=null reason=undefined source=library:local:track:b64_bGlicmFyeTovL25hcy9zdG9yYWdlLTE3NzE5Mjg3MzUxMjcvMyUyMERvb3JzJTIwRG93biUyMCgyMDAyKSUyMEF3YXklMjBGcm9tJTIwVGhlJTIwU3VuL0F3YXklMjBGcm9tJTIwVGhlJTIwU3VuLmZsYWM= stderr="[in#0 @ 0x656e840] Error opening input: Stale file handle\nError opening input file /app/data/music/nas/storage-1771928735127/3 Doors Down (2002) Away From The Sun/Away From The Sun.flac.\nError opening input files: Stale file handle" zoneId=5] playback session terminated by engine [2026-02-24T10:31:18.343Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=120 mode=stop sourceName=504F94FF1BB4 time=0 title="Playback error: library:local:track:b64_bGlicmFyeTovL25hcy9zdG9yYWdlLTE3NzE5Mjg3MzUxMjcvMyUyMERvb3JzJTIwRG93biUyMCgyMDAyKSUyMEF3YXklMjBGcm9tJTIwVGhlJTIwU..." zoneId=5 zoneName=Esszimmer] audio_event payload

Holzmusik avatar Feb 24 '26 10:02 Holzmusik

I just can't get my music to play from the network; does anyone have any idea what the problem could be?

lox-audioserver-logs-2026-03-02T07-59-06-443Z.txt

Holzmusik avatar Mar 02 '26 08:03 Holzmusik

Seems like your network share is not stable. Can you try a network share from another device?

Additionally there is a bug in the code that does not reconnect, if the SMB connection gets stale. Will be fixed in a next beta, but does not solve your issue, that your network share is not stable.

mr-manuel avatar Apr 27 '26 22:04 mr-manuel

I have posted a solution for this error in this thread: https://github.com/lox-audioserver/lox-audioserver/issues/229

So you can close this thread.

Thanks

Holzmusik avatar Apr 28 '26 10:04 Holzmusik