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

Unable to mount SMB share #593

Open
oberstel opened this issue Jan 16, 2025 · 0 comments
Open

Unable to mount SMB share #593

oberstel opened this issue Jan 16, 2025 · 0 comments

Comments

@oberstel
Copy link

oberstel commented Jan 16, 2025

Describe the bug
Unable to mount SMB share using GENERAL > MUSIC STORAGE > ADD OTHER SERVER

HiFiBerryOS version
20240523

HiFiBerry sound card
DAC+ DSP

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'GENERAL' > 'MUSIC STORAGE'
  2. Click on 'ADD OTHER SERVER'
  3. Enter 'IP Address' and 'Share'
  4. See error > 'UNAVAILABLE'

Expected behavior
The Samba Share should be mounted

Screenshots
none

Browser (if applicable)

  • any

Additional context
See '/opt/hifiberry/bin/mount-smb.py' Line 25:

#Resolve .local hostnames
host = share.split('/')[2]
ip = ""
resolvhost = host
if not host.endswith(".local"):
resolvhost = host+".local"

That dosn't work in my setup.
In HiFiBerryOS UI, you are forced to enter an IP Address like '192.168.1.123' instead of the hosname (like 'myServer.local') with this script, HiFiBerryOS is trying to mount '192.168.1.123.local' which dosn't work.

I have removed the if statement ans everything works like a charm.

#Resolve .local hostnames
host = share.split('/')[2]
ip = ""
resolvhost = host
#if not host.endswith(".local"):
#resolvhost = host+".local"

Please fix this in the next version of HiFiBerryOS.

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

1 participant