Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can.
The Basics
- Nextcloud Server version (e.g., 29.0.5):
28.0.12
- Operating system and version (e.g., Ubuntu 24.04):
debian bookworm
- Web server and version (e.g, Apache 2.4.25):
nginx/1.22.1
- Reverse proxy and version _(e.g. nginx 1.27.2)
replace me
- PHP version (e.g, 8.3):
PHP 8.1.30
- Is this the first time you’ve seen this error? (Yes / No):
Yes
- When did this problem seem to first start?
2 days ago
- Installation method (e.g. AIO, NCP, Bare Metal/Archive, etc.)
replace me
- Are you using Cloudflare, mod_security, or similar? (Yes / No)
replace me
Summary of the issue you are facing:
TLDR : Nextcloud desktop client ( 3.13.0 stable) deleted folders from a Mac laptop when syncronizing. the following log entries are the only trace I found( nothing in Activity or Admin → Logging) :
# timestamp | duration | file | instruction | dir | modtime | etag | size | fileId | status | errorString | http result code | other size | other modtime | X-Request-ID
-truncated-
12:33:47||JOB|8|1|1720374107|668ad35bb915d|0|00205368oc8bus5wo3je|13|Unknown error|201|0|1720374107|59a5020a-ec39-40ed-89c9-3c5b08b4185a|
-truncated-
||JOB/Training|2|2|1717606347|666097cb9ed2a|0|00114369ocvagb9e52pi|13||0|0|1717606347||
||JOB/Research|2|2|1717606343|666097c7d1b93|0|00114368ocvagb9e52pi|13||0|0|1717606343||
||JOB/Presentations|2|2|1717606333|666097bd5392a|0|00114293ocvagb9e52pi|13||0|0|1717606333||
||JOB/Policies|2|2|1717606332|666097bc2dae1|0|00114231ocvagb9e52pi|13||0|0|1717606332||
||JOB/Opportunities|2|2|1717606333|666097be08771|0|00114234ocvagb9e52pi|13||0|0|1717606333||
||JOB/HR|2|2|1717606307|666097a31cba6|0|00113674ocvagb9e52pi|13||0|0|1717606307||
-truncated-
there are other folders under ‘JOB’ that were successfully synchronized though. so I don’t know what could cause this.
Steps to replicate it (hint: details matter!):
- create a nextcloud instance identical to a previous one (A) (IP, URL, certificates…)
- import DB from a current working instance (B)
- synchronize to (A)
Full details :
hello, Sorry for the long Post. there is a bit of context that i think matters, please bare with me . in total i had 3 nextcloud instances:
1 - The first one, accessed through “https://nextcloud-A.com” was running on an lxd container, things happened and I shut it down.
2 - I created a new one from scratch ( container + nginx+ mariadb) , accessed through “https://nextcloud-B.com” , this one is still running, and recreated the user accounts with the same usernames and passwords.
- i then switched all users to the new instance B -all except one- like this (*): remove folder connection → log out → remove account that was on nextcloud-A → add account and connection to nextcloud-B → select the same folder and keep all local data.
3 - after a while i got a new setup, this time I followed the migration steps in the documentation:
- created a container and set up nginx and mariadb
- i wanted nextcloud-B available in case anything happened, i used the name/IP/certificates for nextcloud-A as i wanted something familiar.
- imported the database from nextcloud-B
- imported the files with rsync and kept the timestamps
i tested with a few users accounts following the same procedure (*), only this time from B to A.
All worked fine and as expected. then i went to the account that remained on nextcloud-A (never switched to nextcloud-B).
since i used the same certificates and IP address for nextcloud-A, i thought it was fine to not remove the account and re-add it. I say this because it’s the only difference I can think of between this user and the others.
i started synchronizing, there were some ‘normal’ errors, like trailing spaces, for some reason 2 or three folders that didn’t appear in the folder list, but after renaming them → synchronizing → restoring the old name → synchronizing, they appeared on the list.
I also had a 409 conflict error that dissapeared after a second sync.
The following day, i notice that some old files and folders are missing both on the laptop and teh server.
i rescanned with occ but nothing. i checked both trashbins and also nothing.
i checked the logs, but all there was was some php errors of content-length exceeding the limit, ( i increased it afterwards)
last option left was to check the client logs on the mac, the only mention of the missing folders was:
# timestamp | duration | file | instruction | dir | modtime | etag | size | fileId | status | errorString | http result code | other size | other modtime | X-Request-ID
-truncated-
12:33:47||JOB|8|1|1720374107|668ad35bb915d|0|00205368oc8bus5wo3je|13|Unknown error|201|0|1720374107|59a5020a-ec39-40ed-89c9-3c5b08b4185a|
-truncated-
||JOB/Training|2|2|1717606347|666097cb9ed2a|0|00114369ocvagb9e52pi|13||0|0|1717606347||
||JOB/Research|2|2|1717606343|666097c7d1b93|0|00114368ocvagb9e52pi|13||0|0|1717606343||
||JOB/Presentations|2|2|1717606333|666097bd5392a|0|00114293ocvagb9e52pi|13||0|0|1717606333||
||JOB/Policies|2|2|1717606332|666097bc2dae1|0|00114231ocvagb9e52pi|13||0|0|1717606332||
||JOB/Opportunities|2|2|1717606333|666097be08771|0|00114234ocvagb9e52pi|13||0|0|1717606333||
||JOB/HR|2|2|1717606307|666097a31cba6|0|00113674ocvagb9e52pi|13||0|0|1717606307||
-truncated-
Log entries
Nextcloud
Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log
located in your data directory). Feel free to use a pastebin/gist service if necessary.
EMPTY