Repository navigation
Description
My files are getting deleted with owncloud, and I'm not really sure why.
I have entire folders full of files that were synced fine yesterday .. and now, for some reason .. ownCloud client on Mac OS X is deleting what appears to be random folders. This happened last week as well, but I managed to restore them using Time Machine.
One thing that I haven't done in a while, was log into my owncloud with my iPhone app and perused some random files. Now, three hours later, whole droves of the same files and folders are missing again. I can't even begin to narrow it all down.
Expected behaviour
Files should not be removed in sync process if they were successfully synced previously and not removed on the cloud or connected systems with clients or connected mobile apps.
Actual behaviour
My files are being deleted.
Steps to reproduce
Don't have steps .. it just starts happening.
Server configuration
Operating system: OS X Lion
Web server: Apache 2.2.2
Database: MySQL 5
PHP version: 5.4.14
ownCloud version: 5.0.8
Client configuration
Client version: 1.3
Operating system: OS X Mountain Lion
OS language: English
Installation path of client: Generic applications folder.
Logs
output of owncloud --logwindow or owncloud --logfile log.txt
n/a
Web server error log
[Fri May 10 09:18:13 2013] [warn] (2)No such file or directory: Cannot reinit SSLMutex
[Fri May 10 09:18:14 2013] [warn] (2)No such file or directory: Cannot reinit SSLMutex
[Fri May 10 09:18:14 2013] [warn] (2)No such file or directory: Cannot reinit SSLMutex
[Fri May 10 09:18:15 2013] [warn] (2)No such file or directory: Cannot reinit SSLMutex
[Fri May 10 09:18:15 2013] [warn] (2)No such file or directory: Cannot reinit SSLMutex
[Fri May 10 09:18:15 2013] [warn] (2)No such file or directory: Cannot reinit SSLMutex
[Fri May 10 09:18:15 2013] [warn] (2)No such file or directory: Cannot reinit SSLMutex
[Fri May 10 09:19:06 2013] [warn] (2)No such file or directory: Cannot reinit SSLMutex
[Fri May 10 09:19:07 2013] [warn] (2)No such file or directory: Cannot reinit SSLMutex
[Fri May 10 09:19:07 2013] [warn] (2)No such file or directory: Cannot reinit SSLMutex
[Fri May 10 09:19:08 2013] [warn] (2)No such file or directory: Cannot reinit SSLMutex
[Fri May 10 09:19:08 2013] [warn] (2)No such file or directory: Cannot reinit SSLMutex
[Fri May 10 09:19:08 2013] [warn] (2)No such file or directory: Cannot reinit SSLMutex
[Fri May 10 09:19:08 2013] [warn] (2)No such file or directory: Cannot reinit SSLMutex
[Fri May 10 09:20:21 2013] [warn] (2)No such file or directory: Cannot reinit SSLMutex
[Fri May 10 09:20:22 2013] [warn] (2)No such file or directory: Cannot reinit SSLMutex
[Fri May 10 09:20:22 2013] [warn] (2)No such file or directory: Cannot reinit SSLMutex
ownCloud log (data/owncloud.log)
[Sun May 05 18:51:30 2013] [error] [client 192.168.1.1] File does not exist: /Library/WebServer/Documents/_cloud/favicon.ico
[Sun May 05 18:51:30 2013] [error] [client 192.168.1.1] PHP Fatal error: include(): unable to obtain pthread lock (EDEADLK) in /Library/WebServer/Documents/_cloud/lib/config.php on line 138
[Mon May 06 15:31:09 2013] [error] [client 192.168.1.1] File does not exist: /Library/WebServer/Documents/_cloud/favicon.ico
[Wed May 08 14:27:55 2013] [error] [client 192.168.1.1] PHP Fatal error: require_once(): unable to obtain pthread lock (EDEADLK) in /Library/WebServer/Documents/_cloud/lib/base.php on line 122
[Wed May 08 18:14:02 2013] [error] [client 161.38.221.193] File does not exist: /Library/WebServer/Documents/_cloud/favicon.ico
[Wed May 08 21:30:21 2013] [error] [client 161.38.221.193] File does not exist: /Library/WebServer/Documents/_cloud/favicon.ico
[Wed May 08 23:22:44 2013] [error] [client 161.38.221.193] File does not exist: /Library/WebServer/Documents/_cloud/favicon.ico
[Thu May 09 01:19:33 2013] [error] [client 192.168.1.1] PHP Fatal error: require_once(): unable to obtain pthread lock (EDEADLK) in /Library/WebServer/Documents/_cloud/lib/base.php on line 122
[Thu May 09 13:12:02 2013] [error] [client 192.168.1.1] File does not exist: /Library/WebServer/Documents/_cloud/favicon.ico
[Thu May 09 14:48:34 2013] [error] [client 192.168.1.1] File does not exist: /Library/WebServer/Documents/_cloud/favicon.ico
[Fri May 10 09:19:06 2013] [error] [client 192.168.1.1] File does not exist: /Library/WebServer/Documents/_cloud/favicon.ico
[Fri May 10 09:19:19 2013] [error] [client 192.168.1.1] PHP Fatal error: require_once(): unable to obtain pthread lock (EDEADLK) in /Library/WebServer/Documents/_cloud/lib/base.php on line 122, referer: http://cloud.somethinginteractive.com/index.php
[Fri May 10 09:19:44 2013] [error] [client 192.168.1.1] File does not exist: /Library/WebServer/Documents/_cloud/data
Activity
MTGap commentedon May 10, 2013
Please use the issue template: https://github.com/owncloud/mirall/blob/master/issue_template.md
Complaining isn't going to encourage people to help you.
dragotin commentedon May 10, 2013
@mkormendy sorry for that. But we need your help to nail this down. Please make sure to copy away your server access and error log quickly so that we can check it to see where teh problems come from.
Do I get it right that especially these files get deleted that you used with the iphone app before?
mkormendy commentedon May 10, 2013
Its the only thing that I can think that I did differently in the recent while .. I don't use the iphone app much .. but I did this morning .. then all of a sudden, the ownCloud client started growling that it deleted files for me .. and I looked and folders were gone .. (and not ones I was viewing on my iphone either).
MTGap commentedon May 10, 2013
Are you using APC? Something might be wrong with the configuration.
See the bottom of this post: http://codedmemes.com/lib/php-performance-apc-os-x-server/
mkormendy commentedon May 10, 2013
@MTGap APC is installed ..
danimo commentedon May 10, 2013
@mkormendy Did the deleted directories or files therein contain non-ASCII Unicode characters?
mkormendy commentedon May 10, 2013
In the filenames or folder names? No. How do I determine this?
31SFX4 commentedon May 11, 2013
I also lost several files without trace. I don't have an iphone, and my setup is Ubuntu 13.04 with sync client 1.2.5., owncloud 5.0.5.
I don't really know more details. Only that several files in a sync folder that were still there two days ago had gone completely this morning. They were not edited or changed (they were pdfs of some documents) and should simply not have been touched at all by the syncing.
jamfx commentedon May 11, 2013
I can add some salt maybe:
I have the same Issue with Win7, OCClient 1.2.5. The Client deleted randomly PDF-Files and ODT-Files. But mine where freshly copied into the directory. The Sync starts -> Says finished -> some seconds later: "Successfully deleted file xy.pdf". ARGH....
mkormendy commentedon May 11, 2013
@danimo I tried this command to find which files have non-ASCII unicode characters:
It returned a huge list of files that DO have non-ASCII unicode characters, however the owncloud client deleted some of the files and not specifically all of them.
I am trying something today as I wonder if this is an issue with the date-stamping:
vkimball commentedon May 12, 2013
I've seen files seemingly randomly deleted too. Server 5.0.5 Clients Windows XP 1.2.5, Windows 7 1.2.5 and Ubuntu 1.2.5. I'm the only user on this server.
mkormendy commentedon May 13, 2013
Some further system responses when I ran the OwnCloud Client:
OwnCloud (run from terminal with log file output) crashed after almost two days worth of syncing all of my files to the OwnCloud server after I touched all of my files on my system sync folder, it appeared to be completing a check on all the files and syncing any last ones it was working on and then after crashing it said this:
But that also crashed the log file output so I couldn't capture that in time before the crash.
mkormendy commentedon May 13, 2013
I have to wonder if OwnCloud works around and supports timezones correctly? My server is running an hour later than my computer system clock.
mkormendy commentedon May 13, 2013
This is really REALLY frustrating!!!! It just deleted my files again after a successful full sync session.
When the client was invoked from the Terminal command line, the logs seemed fine, and the client appeared to be doing what it was supposed to do. This is after I performed a full UNIX touch on all of the files and directories in the sync folder.
Then I closed down the Terminal invoked client. And executed it from it's normal app location.
The subsequent client sync sessions have gone in and deleted my files now again. Some of them are there and some of them are not. AND what's worse is they have deleted files I was actively working on.
As it is .. I have to stop all use of OwnCloud.
dragotin commentedon May 14, 2013
@mkormendy it seems like you can reproduce that. Where (client or server) do you perform the touch? And why? I doubt that it has to do with file mtimes tough, they can cause conflicts, but not deletes.
Is it possible that you experience server request timeouts? Please check
/etc/php5/apache2/php.iniand find the value ofmax_execution_time. I set it to 1200. Can you raise it to see if that changes something? Also, please check if you can snip out the time when it happens in your apaches access_log. Grep forcsyncoCto get the clients access.I can see this is very frustrating, and I am sorry. But see how frustrating it is if you have programmed on that and have no chance to nail that down. You can help me to get that fixed, so please don't give up! Thanks!
27 remaining items
mkormendy commentedon Jul 21, 2013
@dragotin yes you are correct, my owncloud server is on Mac OSX Lion.
I'm extremely surprised to see that it's not actually supported (or supposed to work) on OSX because, well.. I wouldn't have bothered to install it if there wasn't an entry in the Installation Documentation here
At the time when I decided to try out owncloud, it didn't have a "this section needs to be revised" marker on the entry, now I see that has changed. What a shame.
Furthermore let's try and see if there is a solution to adapt to the OSX character encoding. Do you think that the following link might be of help with regard to character encoding with PHP on mac OSX?
Stack Overflow - In PHP, how do I deal with the difference in encoded filenames on HFS+ vs. elsewhere?
You asked if I have earlier entries of the access_log. Yes. I have the earlier set I posted and the most recent one you just responded to, and any future ones can and will be placed here:
http://somethinginteractive.com/owncloudlogs/
Beyond that, I'm finding it hard to track down when files get deleted because sometimes I'm not at my system and the sync job just runs and may make these changes over and over. I made a post yesterday about needing some sort of additional troubleshooting toggles on the client and/or the server to help with logging here. I mean considering that this is software that is going "through the long tunnel of error fixing", one would think that there is necessity for some scenario troubleshooting built in.
tortilaman commentedon Jul 27, 2013
I think I'm having the same issue as others in this thread. On the initial sync, it synced a few folders, and a few minutes in the bubble popped up letting me know it deleted 197 directories off of my local drive without uploading them anywhere. It doesn't look like I can upload txt files here, would you still like log files emailed to you?

mkormendy commentedon Jul 29, 2013
So where are we at with fixing this issue?
tortilaman commentedon Jul 29, 2013
If any logs are needed or anything, I can supply them. I haven't enabled Owncloud again since my issue, which makes it kinda useless.
mkormendy commentedon Aug 1, 2013
I loaded up my Client two days ago to see if it would sync a file that I had locally on my system, and for some reason, OwnCloud just spent the entire past two days downloading the entire set of files I have in the cloud from my server. Can't imagine why it would do this.
Look. I have faith in the product that it can do what is needed for cloud services. I am attempting to report as often as possible when things occur that seem out of the ordinary. I am also posting my logs in hopes that someone can work with me on this. If someone wants to do a real time chat with me online, or on the phone even. I am certainly up for trying to narrow this process down and troubleshoot the live environment that is having this problem.
Please contact me: mike at my website domain.
http://somethinginteractive.com
dragotin commentedon Aug 7, 2013
@mkormendy The problem you described in the last comment is something others have reported already, see #747. I am interested in the logs obviously. Please track in #747, thanks…
danimo commentedon Aug 7, 2013
@mkormendy In order to proceed with this bug (which has too many facetts to be trackable as a single issue), and because OS X is still not officially supported, let's proceed as follows:
Everyone who claims to have the same issue on non-OS X server installs: Please create a separate bug report. Most likely the underlying problem is a different one. We can still consolidate if we find the underlying problem to be the same.
mkormendy commentedon Aug 7, 2013
I am just reporting things as they occur, if they overlap with other issues, those issues need to be reported and linked as was done. Thank you Dragotin.
HOWEVER...
This does not fix the issue of files being deleted on systems. This issue should NOT be closed as it is NOT addressed and fixed.
I am not the only person. This issue is system-agnostic as other people have reported the deleted files issue.
Furthermore, people have provided you logs from which to analyse the situation, and if this wasn't enough I also provided the option to troubleshoot real-time via my email address.
Closing this issue is NOT any sort of acceptable solution.
mkormendy commentedon Aug 22, 2013
Still wondering why this thread is closed. It is not fixed.
mkormendy commentedon Aug 22, 2013
I proposed a fix for the unicode problem on the server side .. so it is still a valid open issue that CAN be fixed.
PLUS .. that link was updated RECENTLY, and did not have this issue when I first installed OwnCloud.
What's worse, is that this is a valid issue that I am willing to work with the developers to fix, however they would rather just shut down the entire problem altogether and be ungrateful for my assistance.
If they want to walk away and burn bridges, fine then, but it looks bad on them.
mkormendy commentedon Aug 24, 2013
I have now....
On Thu, Aug 22, 2013 at 2:57 PM, RealRancor [email protected]:
mkormendy commentedon Mar 6, 2014
Seems like the own cloud server works on OS X now, ...client reports possible invalid characters too. Very nice guys! Great job!