[Bug]: VFS on macos doesn't work with tailscale
⚠️ Before submitting, please verify the following: ⚠️
- [x] This is a bug, not a question or a configuration issue.
- [x] This issue is not already reported on Github (I've searched it).
- [x] Nextcloud Server and Desktop Client are up to date. See Server Maintenance and Release Schedule and Desktop Releases for supported versions.
- [x] I agree to follow Nextcloud's Code of Conduct
Bug description
I'm trying to setup nextcloud on my home truenas scale instance. Everything works file, just VFS doesn't and only when i'm trying to connect via tailscale. I will elaborate on that later.
I tried following configurations: full and parital sync via local ip (192.168.0.) - it works full and parital sync via tailscale ip (100...) - it works vfs using local ip(192.168.0.) - it works surprisingly nicely vfs using tailscale ip (100...) - it doesn't work
What i see: I sucessfully connected to my nextcloud instance, and desktop sync app was happy. It showed that everything was synced and showed me some recently uploaded files. Folder in ~/Library/CloudStorage was created with correct username and ip adress of my NAS. In Setting window of nextcloud app was looking everything as expected. When i tried to open nextcloud folder in finder (the grey one where vfs files lives) it showed me that nextcloud is logged out and loader in middle of window, that was loading something. I gave it half an hour and nothing.
When i tried to connect VFS account via local ip my files showed instantly. So it looks like some weird routing problem within some macos api? Nextcloud app itself worked as expected.
Can anybody try it if this can be replicated?
Steps to reproduce
- install nextcloud on truenas (maybe not required?)
- use VFS version of macOS client to display files
- connect via tailscale ip
Expected behavior
I'm expecting that my file will show reasonably instantly after sync
Which files are affected by this bug
no files will show up
Operating system
macOS
Which version of the operating system you are running.
sequoia 15.2
Package
Official macOS 12+ universal pkg
Nextcloud Server version
31.0.2
Nextcloud Desktop Client version
3.16.2
Is this bug present after an update or on a fresh install?
Fresh desktop client install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
Are you using an external user-backend?
- [ ] Default internal user-backend
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
Nextcloud Server logs
Additional info
No response
This sounds strange indeed, I would expect Tailscale connections to work just like local ones...
Please create a debug archive (Settings -> General), perhaps the logs in there can give us some more insight.
Here is debug archive. I was using non-vfs version for a while, and decided to give it a try again with same result. No virtual files are present in my nextcloud folder now, only selectively synced folders.
I found a way to maintain 2 virutal files syncs (with and without tailscale) alongside standart sync, so we can debug this and i can also use my files for work :)
Can I help with this bug in any way? :)
Hi @lubomirfiala,
I’ve just come across this old issue and wanted to ask if you’ve managed to sort it out.
Apologies if this is off-topic.
I have a setup very similar to yours (TrueNAS + Tailscale) and after many attempts, the solution I found was to install Nextcloud AIO and Tailscale on a virtual machine running Ubuntu Server. Following this tutorial: #6817 using two different Zvols for nc-data and system.
As far as I could tell, VFS requires Client_Push to be working, and I couldn’t get it to work with the TrueNAS app – it was a real pain. I think it also needs the server to run over HTTPS with valid certificates, and Nextcloud AIO does that automatically. With the VM, you get a separate IP and Tailscale address for Nextcloud AIO, and it doesn’t interfere with the server. It’s as if you had a separate server.