Skip to content

Synced files deleted if proxy returns an unexpected response (e.g. 404) when Nextcloud service is offline #12522

@NeXX451

Description

@NeXX451

⚠️ Before posting ⚠️

  • This is a bug, not a question or an enhancement.
  • I've searched for similar issues and didn't find a duplicate.
  • I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

  1. set up VPN connection to nextcloud server
  2. sync some files
  3. kill vpn connection such that nextcloud client looses connection
  4. wait a few hours until programs such as davx start complaining about lost connection
  5. synced files are now deleted

Expected behaviour

The synced files should not be deleted under any circumstances unless the user explicitly deletes them. The client loosing connection to the server should not result in synced files being deleted.

Actual behaviour

I have asked this question on the help.nextcloud.com forum, so I will just copy and paste.

For whatever reason when my phone (Samsung S23, Nextcloud Android app, version 3.27.0) looses connection to my nextcloud server, it decides that all the synced files are to be deleted. This happened three times already and I have to re-download (resync) everything, so you can imagine this is supremely frustrating.

I access my nextcloud server via a vpn connection, so if the vpn server dies → nextcloud connection dies. I woke up today with a bunch of DavX notification that all read along the lines “cannot sync”, “no connection”, etc. I promptly restarted the server. If there are any app logs I can share with you, just tell me where they are and I shall share them.

It does not start syncing the files on it’s own, which is strange in its own way, the files are completely gone from the phone and I have to go into the folder and click on the three dots → sync.

Also I have noticed it also happens on my tablet as well.

Android version

14

Device brand and model

Samsung S23, Samsung Galaxy Tab S4

Stock or custom OS?

Stock

Nextcloud android app version

3.27.0

Nextcloud server version

28.0.1

Using a reverse proxy?

Yes

Android logs

No response

Server error logs

No response

Additional information

I have not found any logs on my phone unfortunately. The folder /data/ does not exist on my phone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    3rdpartyAn upstream, OS, dependency, or other third-party matterbugconnectivityDNS, TLS, proxies, network connection, etc. related matterdocumentationThings to be documented or turned into documentationfeature: syncfeature: transfers[WIP] Any uploading / downloading matters that aren't auto upload or sync specificstable-3.27

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions