Skip to content

[1.50rc1] server did not provide ETag (only within shared folders) #1279

Closed

Description

@pdesanex

I'm having an issue with OC Client RC1 / OC6. For files larger than 10 MB the client cannot correctly upload into shared folders: It will throw "server did not provide ETag". On the server side files with the extension ".ocTransferIdXXXXXXXXXX" will appear and sync back to the client. This happens on all platforms. On my Mac, the client will then usually freeze and I have to kill the process.

Note, that this will only happen, if I sync files to a folder shared by another user. I can successfully sync large files to my own folders. OC6 runs on a hosting provider (allinkl), with enforced HTTPS and server-side encryption. Let me know if you need more details and where I can find them..

Activity

  1. ogoffart commented on Dec 13, 2013

    @ogoffart
    Contributor
  2. pdesanex commented on Dec 13, 2013

    @pdesanex
    Author

    Sorry, I'm new to this ... here you go:

    Expected behaviour

    Files >10 MB should correctly sync to shared folders

    Actual behaviour

    • Sync starts
    • progress bar fills
    • at the end, client throws "The server did not provide an Etag."
    • the client then usually freezes (mac only)
    • on the server, the respective folder will contain a file with the extension '.ocTransferIdXXXXXXXXXX' -- this file will sync back to the client.
    • NOTE: User B can successfully sync to his own folders. The issue only arises with shared folders.

    Steps to reproduce

    1. User A creates folder and shares it with user B
    2. User B syncs files > 10 MB to folder

    Server configuration

    OC is running on a hosted service by allinkl.com

    Operating system: Linux 3.2.0-57-generic #87-Ubuntu SMP Tue Nov 12 21:35:10 UTC 2013 x86_64

    Web server: Apache

    Database: mySQL

    PHP version: 5.5.5-nmm1

    ownCloud version: 6 (stable)

    Storage backend: common internal storage, no external mount

    Client configuration

    Client version: 1.5RC1

    Operating system: Mac (also Windows and Linux, but without freeze)

    OS language: English

    Installation path of client: /Applications/owncloud.app

    Logs

    1. Output of owncloud --logfile log.txt
      https://gist.github.com/pdesanex/fdc8f0b35d5a672f32dd
    2. Web server error log:
      (I don't have access to this, afaik)
    3. ownCloud log (data/owncloud.log):

    HUGE file (>120 MB)
    The respective lines:

    {"app":"files_sharing","message":"File source not found for: \/files\/Test\/01 Now Jazz Ramwong.m4a.ocTransferId2935583044","level":3,"time":"2013-12-13T11:27:27+00:00"}
    {"app":"webdav","message":"\\OC\\Files\\Filesystem::rename() failed","level":3,"time":"2013-12-13T11:27:27+00:00"}
    {"app":"PHP","message":"Call to undefined method OC\\Files\\Storage\\Wrapper\\Quota::deleteAll() at \/www\/htdocs\/wXXXXXeX\/oc\/lib\/private\/files\/view.php#400","level":3,"time":"2013-12-13T11:27:27+00:00"}
    
  3. ogoffart commented on Dec 13, 2013

    @ogoffart
    Contributor

    Thanks for the bug report.

    The server seems to be doing something wierd as it reassemple the chunks on Shared folders. It does not sent an E-Tag on the last chunk as it is supposed to do. And it saves the file with the wrong filename.

    @DeepDiver1975 do you know what could cause this?

  4. DeepDiver1975 commented on Dec 13, 2013

    @DeepDiver1975
    Contributor

    {"app":"webdav","message":"\OC\Files\Filesystem::rename() failed","level":3,"time":"2013-12-13T11:27:27+00:00"}

    this really scares me - this means that the chunks go reassembled put could not be moved into the final location.
    As a result no etag has been provided - there should be a failure in the client logs

  5. ogoffart commented on Dec 13, 2013

    @ogoffart
    Contributor

    There is no HTTP error in the client logs. Which seems to indicate that the answer to the last chunk was 200 OK but without E-Tag (which we use to detect if the server correctly received the file)

  6. pdesanex commented on Dec 13, 2013

    @pdesanex
    Author

    I'll see if the client logs on my Linux machine give more information. As I mentioned, the Mac client usually freezes, so maybe the logs are truncated ... right now I only have access to the Mac though

  7. ogoffart commented on Dec 13, 2013

    @ogoffart
    Contributor

    Are you able to run in a debugger and see where it freeze? does it uses the CPU or not?

  8. pdesanex commented on Dec 13, 2013

    @pdesanex
    Author

    For the debugging part you'll have to to help me out ... Sorry, I have no idea how to do this. As for the CPU usage: Up to about 40% during syncing. Then it drops back to 0% and becomes unresponsive, CPU usage stays at 0%.

    I'm not sure, whether the freezing is connected to the problem described above. The client seems to freeze regularly. Sometimes it gets back to being responsive after a while (I tend to be a bit impatient, but its in the order of several minutes).

  9. pdesanex commented on Dec 13, 2013

    @pdesanex
    Author

    I believe there are some serious issues here. I just got an email from my Hoster, saying that I exceeded my webspace. The folder /data/username/files_trashbin/versions/ of two users were in the range of 20GB. Users are limited to 5GB.

    Possibly related (note the differences in filesize):
    screen shot 2013-12-13 at 14 15 56

    I waited for the Mac client to come out of its freeze to get a more complete client log:
    https://gist.github.com/pdesanex/87b72b99f2bec6518992

    The freeze always occurs after
    Loading config: "/Users/username/Library/Application Support/ownCloud/owncloud.cfg"

    Here is the respective server log:

    {"app":"files_sharing","message":"File source not found for: \/test","level":3,"time":"2013-12-13T12:58:06+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/test","level":3,"time":"2013-12-13T12:58:06+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/test","level":3,"time":"2013-12-13T12:58:06+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/test","level":3,"time":"2013-12-13T12:58:06+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/files\/test\/01 Now Jazz Ramwong.m4a.ocTransferId2958949702","level":3,"time":"2013-12-13T13:02:41+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/files\/test\/01 Now Jazz Ramwong.m4a.ocTransferId2958949702","level":3,"time":"2013-12-13T13:02:41+00:00"}
    {"app":"webdav","message":"\\OC\\Files\\Filesystem::rename() failed","level":3,"time":"2013-12-13T13:02:41+00:00"}
    {"app":"PHP","message":"Call to undefined method OC\\Files\\Storage\\Wrapper\\Quota::deleteAll() at \/www\/htdocs\/wXXXXXeX\/oc\/lib\/private\/files\/view.php#400","level":3,"time":"2013-12-13T13:02:41+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/files\/test\/01 Now Jazz Ramwong.m4a.ocTransferId2958949702","level":3,"time":"2013-12-13T13:05:12+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/files\/test\/01 Now Jazz Ramwong.m4a.ocTransferId2958949702","level":3,"time":"2013-12-13T13:05:12+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/files\/test\/01 Now Jazz Ramwong.m4a.ocTransferId2958949702","level":3,"time":"2013-12-13T13:05:13+00:00"}
    {"app":"webdav","message":"\\OC\\Files\\Filesystem::rename() failed","level":3,"time":"2013-12-13T13:05:14+00:00"}
    

    I hope this helps. Sorry if I mix unrelated issues here. Switching to maintenance mode now :-(

  10. pdesanex commented on Dec 18, 2013

    @pdesanex
    Author

    I did an upgrade to owncloud 6.0.0a (deleted everything except for data and config) and client 1.5 (build 1811) stable. The problem persists ...

    Can anyone reproduce this?

  11. tustudium commented on Dec 19, 2013

    @tustudium

    I have exactly the same problem

    owncloud 6.0.0a (on ubuntu 12.04.3 standard intall) and client 1.5.0 on mac

    in the apache log i see

    [Thu Dec 19 08:10:06 2013] [warn] [client 123.123.123.123] mod_fcgid: stderr: PHP Fatal error: Call to undefined method OC\Files\Storage\Wrapper\Quota::deleteAll() in /var/www/clients/client2/web1/web/test/cloud/lib/private/files/view.php on line 400

    All files all partially uploaded and the files get ".oc.TransferID349489343" endings

    How can i fix this?

  12. tustudium commented on Dec 19, 2013

    @tustudium

    can confirm, problem only occurs if i copy files into a shared folder

  13. tustudium commented on Dec 19, 2013

    @tustudium

    from the data/owncloud.log

    {"app":"OC\Files\Cache\Scanner","message":"!!! No reuse of etag for 'test/test' !!! \ncache: Array\n(\n [fileid] => 742\n [storage] => bbe1cc6a32681d3e38dbca951a982109\n [path] => files/test\n [parent] => 316\n [name] => test\n [mimetype] => httpd/unix-directory\n [mimepart] => httpd\n [size] => 253705124\n [mtime] => 1387437869\n [storage_mtime] => 1387437869\n [encrypted] => \n [unencrypted_size] => 0\n [etag] => 52b29f2dcee1a\n)\n \ndata: Array\n(\n [mimetype] => httpd/unix-directory\n [mtime] => 1387437875\n [size] => -1\n [etag] => 52b29f33a24b0\n [storage_mtime] => 1387437875\n)\n","level":0,"time":"2013-12-19T07:24:35+00:00"}

    and

    {"app":"files_sharing","message":"File source not found for: /files/test/2011.pdf.ocTransferId697954195","level":3,"time":"2013-12-19T07:24:35+00:00"}

  14. dragotin commented on Dec 19, 2013

    @dragotin
    Contributor

    @karlitschek who can help with this one? Thanks.

  15. tripflex commented on Jan 9, 2014

    @tripflex

    I was having these errors show in my logs and originally I thought it was due to the renaming of files (which caused sync issues on sync clients which would upload and not rename the .ocTransferIdXXXXXX to the actual filename).

    That issue was fixed by
    owncloud/core#6687

    But i'm still seeing the "File source not found for:" on all other files in that same shared directory .... BUT the good thing, is no longer are there only .ocTransferIdXXXX files and they at least upload successfully :)

  16. pdesanex commented on Jan 24, 2014

    @pdesanex
    Author

    Confirming ... fixed in 6.0.1. 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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions