IceWhaleTech / CasaOS

CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.
https://casaos.io
Apache License 2.0
23.64k stars 1.28k forks source link

[BUG] Synology NAS - SMB share, no files in folders #1721

Open Nuffern opened 4 months ago

Nuffern commented 4 months ago

I mounted my Synology NAS in the Files app, and I can see the shared folders - but they are all empty.

Have a Synology DS920+ with DSM 7.2.1-69057 Update 3. CasaOS (0.4.6) is installed on a Proxmox LXC. Created a specific user in DSM with only access to SMB and the shared folders. Default settings for SMB (Max SMB3, Min SMB2). Connected locally. Chrome version 122.0.6261.95 (Official Build) (64-bit).

To confirm that there is no problem with the SMB share, or the user account on the NAS, I logged in directly using another computer and my phone - and both worked. Found folders full with files. It's only a problem with empty folders in the Files app in CasaOS.

Originally posted by @Nuffern in https://github.com/IceWhaleTech/CasaOS/issues/458#issuecomment-1963133033

chrome_a8GaP8XtKT

chrome_qrSEJk8H5P

x3llaz commented 3 months ago

I have mounted NFS and SMB shares from my Synology NAS'es too to CasaOS but I didn't use Files app on CasaOS as I find it kind of janky. What I did is I ssh'ed to my Pi5 where CasaOS is installed and manually edited the fstab file to mount my network shares. I placed them all on the /DATA folder of CasaOS for easy access.

On the other hand, I used the Files app of CasaOS to share the /DATA folder via SMB but I edited the smb config file to only share it with a specific user with a specific password since CasaOS way of sharing folders via the Files app doesn't give you the option to select or use specific accounts. It just shares that folder to everyone on your network which I don't like.

Anyway, I didn't encounter your specific problem though. When I tried to Location share, it did work for me and I can see all my NAS files. I can only vouche for this on v0.4.5 and didn't do this again afterwards. Both my Synology NAS'es are updated too to DSM 7.2.1-69057 Update 3----a DS218+ and a DS1621xs+

Agent772 commented 1 month ago

Got the same problem, any news on it?

oliversaal commented 2 weeks ago

Repro'ed on CasaOS v.0.4.9. Seems like others have had success manually editing the fstab file but it would seem this Files use case should be working.

oliversaal commented 2 weeks ago

This helped me understand the issue. It's an LXC privileged vs unprivileged issue.

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/