I am running Nextcloud 13.0.1 on a Raspberry Pi with the latest Raspian version. I am synchronizing my files with three Windows computers (2x Win7 1x WIn10) Using the latest Nextcloud client, plus two android devices using Foldersync, also latest version.
My problem now is, that whenever I delete a file, it automatically re-apperas on the device. Sometimes after seconds, sometimes after hours - but it re-appears.
I have tried to delete it on the physical hard drive (not just the device mirror), on multiple instances (unfortunately I never have all computers at one physical location so I can’t delete it on all devices the same time) I have tried to delete the trash folder, nothing helps. latest after some days, the dleted file(s) are back again.
Does someone have any idea on what can be wrong with my setup?
thanks four your feedback. The “return of the files” happens everywhere. It happens on the shared drice on the PC as well as on the web interfache as well as after deleting it straight from the hard drive. It is all the same user, nothing shared, only myself. I actually havent tested with another user, maybe its a try to test it.
THe permissions should be OK, as I can delete the files and as they are gone at first. I havent seen any log files to the erase. Were can I find them? When I check the activity of my account, I see “file” deleted and shortly afterwards “file” created…
I am using ad harddrive raspberry pi and as hard drive a NAS which is implementes as external storage SMB/CIFS. Write access works without issues. I have nowhere set any access permissions.
I have run the scan as you described. No anomalies were found:
$ sudo -u www-data php occ files:scan --all
Scanning files for 4 users
Starting scan for user 1 out of 4 (user1)
Starting scan for user 2 out of 4 (user2)
Starting scan for user 3 out of 4 (user3)
Starting scan for user 4 out of 4 (user4)
+---------+-------+--------------+
| Folders | Files | Elapsed time |
+---------+-------+--------------+
| 63 | 2227 | 00:01:54 |
+---------+-------+--------------+
$ sudo -u www-data php occ files:cleanup
0 orphaned file cache entries deleted
then I was looking for the php-fpm config file. Unfortunately I wasn’t able to find it. Can you give me a hint were I can find it? I am using
ok you are using the apache mod for php and not the php-fpm. That is ok, but I may found a problem, in your Tutorial there is nothing mentioned that output buffering should be deactivated in the php config
output_buffering = 0
If it is not deactivated it could occur some serious memory issues.
thanks for the hint. The default value was output_buffering=4096. I changed it to “0”. But thats a different issue and has nothing to do with my original proplem of re-appearing files. Just in case it may say something to you, I wanted to attach my php.ini file. Unfortunately I did not find any upload button in this forum. So I post here all the uncommented lines from my php.ini file. To me everything looks ok, but my knowledge on Nextcloud is not the best.
did you restart apache process after editing your php.ini file?
systemctl restart apache2
if you delete the file, is it deleted on your filesystem or does it still exists in your nextcloud data directory? Are there any issues in your logfile (in your admin settings on nextcloud)
did you have a look in your Computer setups that there are maybe some issues with for example clock time or Security Appliances that may interfer with the sync of Nextcloud? Maybe some of your devices is reuploading the file? you could see this in activity stream or log file if set to info in nextcloud.
shame on me. After your statement if some devices are re-uploading the files, I doublechecked (again) al my clients. And this time really, I discovered an option in the Android Foldersync app. This ption is called “sync deleted files” and it was unchecked. So really, the files were copied back from the android device. I checked this option and now the files are gone. Stupid, I sohould have found this on my own. But somehow you need helt to find the clear things.