Skip to content

Files Unexpectedly Deleted when hosting on OS X #616

Closed

Description

@mkormendy

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

  1. MTGap commented on May 10, 2013

    @MTGap

    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.

  2. dragotin commented on May 10, 2013

    @dragotin
    Contributor

    @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?

  3. mkormendy commented on May 10, 2013

    @mkormendy
    Author

    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).

  4. MTGap commented on May 10, 2013

    @MTGap
  5. mkormendy commented on May 10, 2013

    @mkormendy
    Author

    @MTGap APC is installed ..

    apc
    
    APC Support enabled
    Version 3.1.13
    APC Debugging   Disabled
    MMAP Support    Enabled
    MMAP File Mask  no value
    Locking type    pthread read/write Locks
    Serialization Support   php
    Revision    $Revision: 327136 $
    Build Date  Apr 18 2013 00:41:07
    
    Directive   Local Value Master Value
    apc.cache_by_default    On  On
    apc.canonicalize    On  On
    apc.coredump_unmap  Off Off
    apc.enable_cli  Off Off
    apc.enabled On  On
    apc.file_md5    Off Off
    apc.file_update_protection  2   2
    apc.filters no value    no value
    apc.gc_ttl  3600    3600
    apc.include_once_override   Off Off
    apc.lazy_classes    Off Off
    apc.lazy_functions  Off Off
    apc.max_file_size   1M  1M
    apc.mmap_file_mask  no value    no value
    apc.num_files_hint  1000    1000
    apc.preload_path    no value    no value
    apc.report_autofilter   Off Off
    apc.rfc1867 On  On
    apc.rfc1867_freq    0   0
    apc.rfc1867_name    APC_UPLOAD_PROGRESS APC_UPLOAD_PROGRESS
    apc.rfc1867_prefix  upload_ upload_
    apc.rfc1867_ttl 3600    3600
    apc.serializer  default default
    apc.shm_segments    1   1
    apc.shm_size    32M 32M
    apc.shm_strings_buffer  4M  4M
    apc.slam_defense    On  On
    apc.stat    On  On
    apc.stat_ctime  Off Off
    apc.ttl 0   0
    apc.use_request_time    On  On
    apc.user_entries_hint   4096    4096
    apc.user_ttl    0   0
    apc.write_lock  On  On
    
  6. danimo commented on May 10, 2013

    @danimo
    Contributor

    @mkormendy Did the deleted directories or files therein contain non-ASCII Unicode characters?

  7. mkormendy commented on May 10, 2013

    @mkormendy
    Author

    In the filenames or folder names? No. How do I determine this?

  8. 31SFX4 commented on May 11, 2013

    @31SFX4

    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.

  9. jamfx commented on May 11, 2013

    @jamfx

    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....

  10. mkormendy commented on May 11, 2013

    @mkormendy
    Author

    @danimo I tried this command to find which files have non-ASCII unicode characters:

    LANG=C find . -regex '.*[^a-zA-Z./].*'
    

    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:

    1. I am going to recursively unix-touch all of my files in the owncloud sync folder first.
    2. Then see if the ownCloud client walks over the entire file-structure.
    3. After that's done, I want to see if ownCloud deletes my files again.
  11. vkimball commented on May 12, 2013

    @vkimball

    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.

  12. mkormendy commented on May 13, 2013

    @mkormendy
    Author

    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:

    executable path is /./Applications/owncloud.app/Contents/MacOS/owncloud
    Bus error: 10
    

    But that also crashed the log file output so I couldn't capture that in time before the crash.

  13. mkormendy commented on May 13, 2013

    @mkormendy
    Author

    I have to wonder if OwnCloud works around and supports timezones correctly? My server is running an hour later than my computer system clock.

  14. mkormendy commented on May 13, 2013

    @mkormendy
    Author

    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.

  15. dragotin commented on May 14, 2013

    @dragotin
    Contributor

    @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.ini and find the value of max_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 for csyncoC to 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!

  16. 27 remaining items

  17. mkormendy commented on Jul 21, 2013

    @mkormendy
    Author

    @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.

  18. tortilaman commented on Jul 27, 2013

    @tortilaman

    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?
    owncloud sync

  19. mkormendy commented on Jul 29, 2013

    @mkormendy
    Author

    So where are we at with fixing this issue?

  20. tortilaman commented on Jul 29, 2013

    @tortilaman

    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.

  21. mkormendy commented on Aug 1, 2013

    @mkormendy
    Author

    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

  22. dragotin commented on Aug 7, 2013

    @dragotin
    Contributor

    @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…

  23. danimo commented on Aug 7, 2013

    @danimo
    Contributor

    @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:

    • We close this bug until we get the go from the server people that they released a version that is officially good to use on OS X. If the problems still persist, we can still reopen this bug. I looked through this again, and most of the things I see (errors in case of changing case sensitivity, etc), hint at OS X server problems.
    • We track the re-downloading problems (which seem to happen on all Server OSes) in Client suddenly re-downloads all files #747

    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.

  24. mkormendy commented on Aug 7, 2013

    @mkormendy
    Author

    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.

  25. mkormendy commented on Aug 22, 2013

    @mkormendy
    Author

    Still wondering why this thread is closed. It is not fixed.

  26. mkormendy commented on Aug 22, 2013

    @mkormendy
    Author

    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.

  27. mkormendy commented on Aug 24, 2013

    @mkormendy
    Author

    I have now....

    On Thu, Aug 22, 2013 at 2:57 PM, RealRancor [email protected]:

    Have you provided the fix for the unicode problem on the server side in
    the core bugtracker:

    https://github.com/owncloud/core/issues

    —
    Reply to this email directly or view it on GitHubhttps://github.com//issues/616#issuecomment-23116134
    .

  28. mkormendy commented on Mar 6, 2014

    @mkormendy
    Author

    Seems like the own cloud server works on OS X now, ...client reports possible invalid characters too. Very nice guys! Great job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions