Skip to content

Files randomly deleted locally (while still being on server) #3102

Closed

Description

@hecsa

Hi!
I'm using owncloud for some time, almost half a year.
Everything were ok until last week, when something was upgraded from the client side, and then the files started to be deleted.
The files appear to be on the server, but considering I have some GBs, a new sync will take almost a week, with me not having all the files I own.
Please, let me know if there is something I need to check to avoid this behavior, and to have all my files again in my folders.
The server is 6.0.7, and the client is 1.8, I'm using Windows XP in my machine, planing to migrate to Windows 8 in the near future...if I can recover all my files again!
Thanks in advance, and best regards,

HeCSa.

Activity

  1. guruz commented on Apr 12, 2015

    @guruz
    Contributor

    The files appear to be on the server, but considering I have some GBs, a new sync will take almost a week, with me not having all the files I own.

    You mean the files are deleted locally but are all still on the server? Or some files also deleted from the server?
    Is there anything special about those files (special characters in file names? file in shared folder? external storage?)
    In general we'd need more information to be able to conclude on what could have happened..

  2. added this to the 1.8.1 - Bugfix milestone on Apr 12, 2015
  3. added
    p2-high
    on Apr 12, 2015
  4. guruz commented on Apr 12, 2015

    @guruz
    Contributor

    Also, is it single files inside folders?
    Or complete folders with content?

  5. hecsa commented on Apr 12, 2015

    @hecsa
    Author

    Hi!
    @guruz
    No special files, just .doc, .xls, .ppt, or .pdf files. We have two Windows XP machines, both sync'ing same files.
    No special characters, I mean there is no rule for that...some files have some "á", some not.
    @RealRancor
    Tomorrow I'll get all this information, and paste the files/complete everything to have it properly documented.
    Thanks a lot for your time and attention!

    HeCSa.

  6. hecsa commented on Apr 13, 2015

    @hecsa
    Author

    @RealRancor
    Here is the report:

    Expected behaviour

    Files should be in sync between both Windows XP PCs. Both must have same files on same paths, as configured.

    Actual behaviour

    Files get deleted in both computers, then downloaded, then deleted, then downloaded, etc.
    The downloaded files have changed their creation date to the download date.
    All files are messed with this issue. On both PCs.

    Steps to reproduce

    1. Have ownCloud cliente upgraded to latest version (1.8)
    2. Wait for sync
    3. Check deleted files. Are on server, but not on client. Are thousands, then is not easy to wait one week for all the files to download again. After that, they get deleted, we never understand which process (deletion or download) is finished.

    Server configuration

    Operating system: Ubuntu 13.10.

    Web server: Apache
    root@WSPR01:~# /usr/sbin/apache2 -version
    Server version: Apache/2.4.6 (Ubuntu)
    Server built: Dec 5 2013 18:33:15

    Database:
    Server version: 5.5.35-0ubuntu0.13.10.1 (Ubuntu)

    PHP version:
    root@WSPR01:~# php --version
    PHP 5.5.3-1ubuntu2.1 (cli) (built: Dec 12 2013 04:22:11)
    Copyright (c) 1997-2013 The PHP Group
    Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
    with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2013, by Zend Technologies

    ownCloud version:
    6.0.7

    Storage backend:
    Normal ext4 filesystem.

    Client configuration

    Client version:
    1.8

    Operating system:
    Windows XP.

    OS language:
    Spanish

    Installation path of client:
    C:\Archivos de Programa\owncloud

    Logs

    Please use Gist (https://gist.github.com/) or a similar code paster for longer
    logs.

    Template for output < 10 lines

    1. Output of owncloud --logwindow or owncloud --logfile log.txt
      (On Windows using cmd.exe, you might need to first cd into the ownCloud directory)
      (See also http://doc.owncloud.org/desktop/1.8/troubleshooting.html#client-logfile )

    https://gist.github.com/hecsa/b67d5da3b676ee10138e

    1. Web server error log:

    https://gist.github.com/hecsa/11fac238616f00120d42

    1. ownCloud log (data/owncloud.log):

    Contains logs for 108 users, rmurmis is mine, and I received messages from mtoloza having the same issue: https://gist.github.com/hecsa/90f94fcd7c79376a4c43

    Thanks a lot!

  7. guruz commented on Apr 13, 2015

    @guruz
    Contributor

    @hecsa Can you check your webserver's access.log for DELETE entries for the files you are missing?

    CC @dragotin

  8. hecsa commented on Apr 13, 2015

    @hecsa
    Author

    @guruz @dragotin
    Hi!
    Here is the details for this file:

    root@WSPR01:/var/log/apache2# grep DELETE access.log.1 | grep rmurmis
    192.168.0.132 - [email protected] [06/Apr/2015:12:06:19 -0300] "DELETE /cloud/remote.php/webdav/ARCH/TAX-/VARI/Acceso%20directo%20(3)%20a%20Biblio.xlsx.lnk HTTP/1.1" 204 724 "-" "Mozilla/5.0 (Windows) mirall/1.8.0"
    192.168.0.132 - [email protected] [06/Apr/2015:12:06:04 -0300] "DELETE /cloud/remote.php/webdav/ARCH/TAX-/VARI/Acceso%20directo%20(2)%20a%20Biblio.xlsx.lnk HTTP/1.1" 204 725 "-" "Mozilla/5.0 (Windows) mirall/1.8.0"
    root@WSPR01:/var/log/apache2# zcat access.log.2.gz | grep DELETE | grep rmurmis
    192.168.0.132 - [email protected] [31/Mar/2015:19:19:05 -0300] "DELETE /cloud/remote.php/webdav/ARCH/RDM-/TAX/GANA/2014/Asiento%20de%20cierre%20de%20resultados.xls HTTP/1.1" 204 725 "-" "Mozilla/5.0 (Windows) csyncoC/0.91.5 neon/0.30.1"
    192.168.0.132 - [email protected] [31/Mar/2015:19:19:11 -0300] "DELETE /cloud/remote.php/webdav/ARCH/RDM-/TAX/GANA/2014/Asiento%20de%20cierre%20patrimonial.xls HTTP/1.1" 204 725 "-" "Mozilla/5.0 (Windows) csyncoC/0.91.5 neon/0.30.1"
    192.168.0.132 - [email protected] [01/Apr/2015:15:25:40 -0300] "DELETE /cloud/remote.php/webdav/ARCH/RDM-/VARI/rmurmis.wab HTTP/1.1" 204 725 "-" "Mozilla/5.0 (Windows) mirall/1.8.0"
    root@WSPR01:/var/log/apache2#

    There is no file in access.log with DELETE in its command line. And those lines do not reflect the reality of the deletion for user rmurmis.
    If I filter with "mtoloza" (the other user experiencing problems) this is worst, and maybe more representative:

    root@WSPR01:/var/log/apache2# zcat access.log.2.gz | grep DELETE | grep mtoloza | wc -l
    2
    root@WSPR01:/var/log/apache2# grep DELETE access.log.1 | grep DELETE | grep mtoloza | wc -l
    1095
    root@WSPR01:/var/log/apache2# grep DELETE access.log | grep DELETE | grep mtoloza | wc -l
    0
    root@WSPR01:/var/log/apache2#

    Something interesting I noticed is that MySQL is eating a lot of CPU...consider that this server is configured with 4 CPUs:

    root@WSPR01:/var/log/apache2# top
    top - 11:55:50 up 3 days, 12:58, 2 users, load average: 8.18, 8.39, 8.20
    Tasks: 142 total, 1 running, 141 sleeping, 0 stopped, 0 zombie
    %Cpu(s): 69.9 us, 6.7 sy, 0.0 ni, 20.6 id, 0.0 wa, 0.0 hi, 2.8 si, 0.0 st
    KiB Mem: 2064352 total, 1897456 used, 166896 free, 121936 buffers
    KiB Swap: 3906556 total, 22816 used, 3883740 free, 1404312 cached

    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    993 mysql 20 0 350m 171m 4056 S 259.7 8.5 4872:58 mysqld
    8196 www-data 20 0 179m 17m 9968 S 20.0 0.9 1:56.45 apache2
    11681 www-data 20 0 179m 17m 9.8m S 7.0 0.9 1:05.44 apache2
    2204 www-data 20 0 179m 16m 8988 S 6.7 0.8 3:28.08 apache2
    12237 www-data 20 0 178m 16m 9.8m S 6.7 0.8 0:52.27 apache2
    ...

    Thanks a lot!
    HeCSa.

  9. guruz commented on Apr 13, 2015

    @guruz
    Contributor

    @hecsa Thanks

    And those lines do not reflect the reality of the deletion for user rmurmis.

    Do you mean those lines are not the files you were missing? So the client didn't send any DELETE for those to the server?
    (Same for mtoloza?)

  10. dragotin commented on Apr 13, 2015

    @dragotin
    Contributor

    Yes, what we basically want to know is if there have been DELETE requests from any client in the interesting timeframe for the files that were unexpectedly deleted.

  11. hecsa commented on Apr 13, 2015

    @hecsa
    Author

    @dragotin
    Exactly! This is the effect we are experiencing!
    Thanks, and best regards,

    HeCSa.

  12. guruz commented on Apr 13, 2015

    @guruz
    Contributor

    @hecsa Could you grep if any PROPFIND did not return a HTTP 207 or otherwise failed?

  13. hecsa commented on Apr 13, 2015

    @hecsa
    Author

    @guruz
    Hi!
    Tons of "401 992" and "401 993" when I grep:
    My command was:
    root@WSPR01:/var/log/apache2# grep PROPFIND access.log | grep -v 207 | more
    The results are:
    192.168.0.132 - - [12/Apr/2015:06:40:00 -0300] "PROPFIND /cloud/remote.php/webdav/photos HTTP/1.1" 401 992 "-" "Mozilla/5.0 (Windows) csyncoC/0.91.5 neon/0.30.1"
    192.168.0.132 - - [12/Apr/2015:06:40:01 -0300] "PROPFIND /cloud/remote.php/webdav/music HTTP/1.1" 401 992 "-" "Mozilla/5.0 (Windows) csyncoC/0.91.5 neon/0.30.1"
    192.168.0.132 - - [12/Apr/2015:06:40:01 -0300] "PROPFIND /cloud/remote.php/webdav/videos HTTP/1.1" 401 992 "-" "Mozilla/5.0 (Windows) csyncoC/0.91.5 neon/0.30.1"
    192.168.0.132 - - [12/Apr/2015:06:40:29 -0300] "PROPFIND /cloud/remote.php/webdav/documentos HTTP/1.1" 401 993 "-" "Mozilla/5.0 (Windows) csyncoC/0.91.5 neon/0.30.1"
    192.168.0.132 - - [12/Apr/2015:06:40:29 -0300] "PROPFIND /cloud/remote.php/webdav/videos HTTP/1.1" 401 993 "-" "Mozilla/5.0 (Windows) csyncoC/0.91.5 neon/0.30.1"
    192.168.0.132 - - [12/Apr/2015:06:40:30 -0300] "PROPFIND /cloud/remote.php/webdav/Desktop HTTP/1.1" 401 992 "-" "Mozilla/5.0 (Windows) csyncoC/0.91.5 neon/0.30.1"
    192.168.0.132 - - [12/Apr/2015:06:40:30 -0300] "PROPFIND /cloud/remote.php/webdav/musica HTTP/1.1" 401 992 "-" "Mozilla/5.0 (Windows) csyncoC/0.91.5 neon/0.30.1"
    192.168.0.132 - - [12/Apr/2015:06:40:31 -0300] "PROPFIND /cloud/remote.php/webdav/photos HTTP/1.1" 401 992 "-" "Mozilla/5.0 (Windows) csyncoC/0.91.5 neon/0.30.1"

    192.168.0.132 is the machine that contains the httpd server that redirects to the ownCloud server via some lines in the httpd.conf file:

    ProxyPass /cloud http://192.168.0.8/cloud
    ProxyPassReverse /cloud http://192.168.0.8/cloud

    192.168.0.8 is the ownCloud server, and 192.168.0.132 is the redirector httpd server.

    Thanks, and best regards,

    HeCSa.

  14. guruz commented on Apr 13, 2015

    @guruz
    Contributor

    Did you switch back to 1.7.x version?

    Is really 1.8.0 used (check the settings dialog of the client)?

    (Because 1.8.0 should display different versions in log..)

  15. 24 remaining items

  16. guruz commented on Apr 20, 2015

    @guruz
    Contributor

    @hecsa Or instead of the PROPFIND maybe better to create a file on client or server in that specific directory and then see if the other files come back..

  17. guruz commented on Apr 22, 2015

    @guruz
    Contributor

    @rhabbachi Can you copy/paste your comment to here: #3131 and delete the one here? (or create a new one)

    This issue is for the bug where files STAY on the server and are only deleted locally.

    CC @PVince81 FYI shared-folder thingy.

  18. hecsa commented on Apr 22, 2015

    @hecsa
    Author

    Hi @guruz ,
    I think I finally understand the full nature of the problem.
    If we installed OC client in a machine, and that machine automatically updated the client, and (here is what is interesting) that machine work in a network different than the one used when installing the client, it fails. Nothing happens if the machine continues to work on the same network.
    Then, if an ethernet cable was in place when installing the client, and the user goes to a place where wifi is used, outside of our office, it fails.
    Something more interesting (and horrifying) is that the client absolutely overrides the ignored extension list, and deletes everything. For example, some of our users have no .pst files anymore because OC deleted them.
    Now you can imagine why I'm taking one or more days to answer here...I'm starting to be a friend of GetDataBack, because OC instead of backing up the machines, is destroying everything it has in front of it...this is my 3rd day without sleeping just to recover deleted files...a nightmare on Elm street...

  19. hecsa commented on Apr 22, 2015

    @hecsa
    Author

    Sorry @guruz ... another thing...no PROPFIND entries when deleting the .pst files, and no way to recover them from the OC server, because those .pst files were on the ignored extension list. Double nightmare...the information is no longer there, and I have no place in OC to look for it...so the title of this issue can avoid having the "(while still being on server)", because those files aren't, and were never sync'ed.
    Thanks, and best regards.

  20. rbahassine commented on Apr 23, 2015

    @rbahassine

    Hi @hecsa ,

    I think this problem exists only in 1.8 client. I downgraded to 1.7.1. And I will downgrade all my users to 1.7.1 and will disable auto update (changing the serveur config.php and adding this
    'updatechecker' => false,)

    For me the problem exists since March 20th and the 1.8 was released on 17th...

  21. guruz commented on Apr 23, 2015

    @guruz
    Contributor

    @hecsa Thanks. your comment made me to check the code again and try to reproduce the behaviour like when someone is behind a captive portal in a WiFi network. I fixed another bug which was triggering those empty client directories.

    Fix will be in 1.8.1

  22. hecsa commented on Apr 23, 2015

    @hecsa
    Author

    @guruz Hi!
    Excellent! I'll do all the test in a controlled environment when 1.8.1 arrives.
    Thanks a lot!

    HeCSa.

  23. guruz commented on May 5, 2015

    @guruz
    Contributor

    https://owncloud.org/install/#testing
    The rc2 has code to automatically bring back the files. Sorry for the trouble.
    If this still happens please re-open and comment.

  24. guruz commented on May 6, 2015

    @guruz
    Contributor

    @sleepysmurf The best way is to install 1.8.1rc2(see URL two commits up) or 1.8.1(coming out tomorrow). It will bring the files back (they should be still on the server, nothing locally)

  25. sleepysmurf commented on May 6, 2015

    @sleepysmurf

    do we know what caused the problem in 1.8.0 ?

  26. danimo commented on May 6, 2015

    @danimo
    Contributor

    @sleepysmurf Yes, otherwise we would not claim that it was fixed in 1.8.1 :-)

  27. sleepysmurf commented on May 6, 2015

    @sleepysmurf

    oh.. I was probing for more details on the problem (I am curious)

  28. danimo commented on May 6, 2015

    @danimo
    Contributor

    I guessed as much :) See #3102 for the gory details.

  29. simogeo commented on Jan 4, 2018

    @simogeo

    Hi all,
    I'm experiencing a similar issue (see #6282) after Ubuntu client update to Version 2.4.0 (build 8911).
    Files are not present anymore locally but are still on the server !

    Is there a way to downgrade owncloud client version on ubuntu ? I would be (very) happy to get back my files.
    Thanks !

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ReadyToTestp2-hightype:bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions