nextcloud / nextcloud/desktop

[Bug]: VFS on macos doesn't work with tailscale

Open
#8,133 4 comments 0 reactions 1 assignee Claimed by @nilsding View on GitHub
bug os: :apple: macOS
Dominant language
C++
Stars
3.9k
Forks
1k
Avg merge
1d 17h
Merged PRs (30d)
123

Description

### ⚠️ 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](https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule) and [Desktop Releases](https://nextcloud.com/install/#install-clients) for supported versions.
- [x] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/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.

![Image](https://github.com/user-attachments/assets/f243e373-9ab3-43e8-9b48-5e6d2540c941)

Can anybody try it if this can be replicated?

### Steps to reproduce

1. install nextcloud on truenas (maybe not required?)
2. use VFS version of macOS client to display files
3. 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

```shell

```

### Additional info

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.