CasaOS icon indicating copy to clipboard operation
CasaOS copied to clipboard

[Bug] SMB issues, NAS drive / network share not connecting

Open OlliWare opened this issue 2 years ago • 2 comments

linux rookie here, been trying to get my buffalo ls220 nas to attach to CasaOS but its not working. tried asking on the support discord but I haven't gotten any responses yet.

How to reproduce:

  1. Go into Files App
  2. Click "attach network storage"
  3. Enter 192-adress to nas, enter credentials.
  4. Drive shows up under "Location" and the first folders in the directory tree, but all sub folders and files are missing in them.

Key points:

  • if I connect to the 192-address it shows the first directory folders, but all folders are empty and the sub directories are not shown
  • trying to connect to the smb://ls220/popcorn share (how im connecting to it on my windows machine) gives me "dial tcp: lookup ls220 on 127.0.0.53:53: server misbehaving"
  • connecting to the 192-adress throws me the error: cifs_mount failed w/return code = -22 in debian
  • if i use Alist on CasaOS i can find the nas and browse the files using the exact same info as im entering into CasaOS
  • running on debian 12
  • nas supports smb1 and smb2 (not smb3), trying to log in with credentials (not as guest)

any help in this is greatly appreciated, been running my head around this for a while now and im super frustrated

image image

OlliWare avatar Apr 08 '24 11:04 OlliWare

I just tested this on CasaOS v0.4.8 using a specified user account and not guest and it works for me (guest account should work too) but I'm using a Synology NAS and not Buffalo. All files are accessible and I can even play supported videos directly within the File Explorer.

This is not my preferred way of mounting my shares on CasaOS though as the accounts on my NAS has many shared folders. Mounting it this way instantly shares all those folders and I'm too lazy to create more accounts with limited access. I want to be able to specify which folders are shared so I manually mounted the NAS folders I want to share using fstab in CasaOS 'DATA' folder then pinned them to the left. This might work for you. Check my attached image below:

casa_shares

You might see that my 'DATA' folder is shared but I manually edited the smb config on the server CasaOS is running on to make it that only a specific user can access it so others on the network can't.

Your issue might be with permissions or your Buffalo NAS or both.

x3llaz avatar Apr 15 '24 07:04 x3llaz

If you're running CasaOS on an Proxmox LXC container, this reddit thread might help: https://www.reddit.com/r/CasaOS/comments/16bltbw/casaos_blank_network_share_mount_through_gui/

oliversaal avatar Jun 21 '24 04:06 oliversaal