Skip to content

InternalServer Error on desktop client & various error in backend. #10872

Closed

Description

@dacoex

We are running 7.0.2

I am using the respective clients on Linux & Windows to synch a directory of text files generated between the server and 2 computers.

On one client I always get the followin errors:
"Error downloading FILENAME.txt - server replied: Internal Server Error"
on other files it says:
"Error downloading FILENAME.txt - An If-Match header was specified, but none of the specified the ETags matched."

What could be the couse for this?

Activity

  1. PVince81 commented on Sep 5, 2014

    @PVince81
    Contributor
  2. added this to the milestone on Sep 5, 2014
  3. dacoex commented on Sep 12, 2014

    @dacoex
    Author

    Steps to reproduce

    1. Create a folder with a bunch of text files on 1 computer1
    2. synch to OC via client
    3. synch on another computer2 via client
    4. edit on the other computer2
    5. Error occurs

    Expected behaviour

    The text files should synch and thus changes on computer2 should overwrite the changes on computer1, this should also apply for new files

    Actual behaviour

    not everything is synched well.
    the client issues "internal server error messages"

    Server configuration

    Operating system:
    Ubuntu 14.04

    Web server:
    Apache 2.4.7

    Database:
    MySQL 5.5.38

    PHP version:
    5.5.9

    ownCloud version: (see ownCloud admin page)
    7.0.2

    Updated from an older ownCloud or fresh install:
    updated

    List of activated apps:
    3rd party: News, Notes

    The content of config/config.php:

    <?php
    $CONFIG = array (
      'installed' => true,
      'dbtype' => 'mysql',
      'dbname' => 'xxxx',
      'dbuser' => 'xxxxx',
      'dbpassword' => 'xxxxxxx',
      'dbhost' => 'localhost',
      'dbtableprefix' => '',
      'forcessl' => true,
      'blacklisted_files' =>
      array (
        0 => '.htaccess',
      ),
      'trashbin_retention_obligation' => 30,
      'allow_user_to_change_display_name' => true,
      'updatechecker' => true,
      'has_internet_connection' => true,
      'enablebackup' => false,
      'datadirectory' => '/var/www/owncloud/data',
      'version' => '7.0.2.1',
      'installedat' => '1325006970.14',
      'lastupdatedat' => '1329928732.51',
      'loglevel' => '0',
      'logdateformat' => 'F d, Y H:i:s',
      'instanceid' => 'xxxxxxx',
      'maintenance' => false,
      'theme' => '',
      'trusted_domains' =>
      array (
        0 => 'domain1.example.com',
        1 => 'domain2.example.com',
      ),
      'appcodechecker' => false,
      'appstoreenabled' => false,
      'asset-pipeline.enabled' => false,
      'overwritewebroot'=>'/owncloud',
    );
    

    Are you using external storage, if yes which one: no

    Are you using encryption: yes

    Client configuration

    Browser:

    Operating system:
    Windows / Linux

    Logs

    Web server error log

    Insert your webserver log here
    

    ownCloud log (data/owncloud.log)

    from Admin interface:

    For each file where the notice in the client was "Internal Server Error"

    Debug    OC\Files\Cache\Scanner
    
    !!! No reuse of etag for 'files_versions/textfile-folder/textfile-folder2' !!! cache: Array ( [fileid] => 16438 [storage] => home::USER1 [path] => files_versions/textfile-folder/textfile-folder2 [parent] => 10781 [name] => textfile-folder2 [mimetype] => httpd/unix-directory [mimepart] => httpd [size] => 134068 [mtime] => 1409402430 [storage_mtime] => 1408361571 [encrypted] => [unencrypted_size] => 0 [etag] => 5401c63f0201d [permissions] => 31 ) data: Array ( [mimetype] => httpd/unix-directory [mtime] => 1409909968 [size] => -1 [etag] => 5412d92235b0d [storage_mtime] => 1409909968 [permissions] => 31 [parent] => 10781 )
    

    or

    !!! No reuse of etag for 'files/the/path/ascii_file.txt' !!! cache: Array ( [fileid] => 26706 [storage] => local::/var/www/owncloud/data/USER/ [path] => iles/the/path/ascii_file.txt [parent] => 25068 [name] => ascii_file.txt [mimetype] => text/plain [mimepart] => text [size] => 11084 [mtime] => 1410444651 [storage_mtime] => 1410444651 [encrypted] => 1 [unencrypted_size] => 2149 [etag] => 5411ad6be3691 [permissions] => 27 ) data: Array ( [mimetype] => text/plain [mtime] => 1410444652 [size] => 11084 [etag] => 5411ad6be3a38 [storage_mtime] => 1410444652 [permissions] => 27 [parent] => 25068 )
    

    Additionally, the general debug notice

    Sabre\DAV\Exception\NotAuthenticated: No basic authentication headers were found
    

    Browser log

    Not relevant, here.

  4. PVince81 commented on Sep 12, 2014

    @PVince81
    Contributor

    Strange. Usually internal server error should have matching entries in the log (the "no reuse of etag" is just a usual and expected debug message).

    The message with "If-Match" usually means that while client1 was uploading the file, client2 was faster and modified the file in the first place. So the file version that client1 was expected to overwrite isn't the same any more, so it cancels the upload and possibly create a conflict file.

    Did you see any conflict files locally ?

  5. dacoex commented on Sep 12, 2014

    @dacoex
    Author

    The message with "If-Match" usually means that while client1 was uploading the file, client2 was >faster and modified the file in the first place. So the file version that client1 was expected to >overwrite isn't the same any more, so it cancels the upload and possibly create a conflict file.

    I only use on client at a time:
    computer1 synchs after edit & shuts down (private)
    computer2 synchs -> edit & synch (work)

    Did you see any conflict files locally ?

    Yes. For some of the text files. Let me verify on Monday.

  6. dacoex commented on Sep 15, 2014

    @dacoex
    Author

    Did you see any conflict files locally ?

    Yes, but only with one file.
    The error reported in the client is

    server replied: Precondition failed (An If-Match header was specified, but none of the specified the ETags matched.) 
    

    All other files do not have a conflict but are reporting the same error.

  7. dacoex commented on Sep 18, 2014

    @dacoex
    Author

    Any idea?
    Do you want me to provide more info?

  8. removed this from the milestone on Jan 9, 2015
  9. MorrisJobke commented on Jan 9, 2015

    @MorrisJobke
    Contributor
  10. PVince81 commented on Mar 28, 2015

    @PVince81
    Contributor

    @guruz @ogoffart does this syncing issue ring any bells ?

    @dacoex have you tried upgrading to 7.0.5 or 8.0.2 and see if the issue persists ?
    I see you're using encryption and there were several bugs related to it that were fixed since 7.0.2.

  11. dacoex commented on Mar 30, 2015

    @dacoex
    Author

    I see you're using encryption and there were several bugs related to it that were fixed since 7.0.2.

    We disabled encryption. Now it looks like it's fixed.
    I just got quite some conflicts after decryption so I will have to remove those leftovers.

  12. locked as resolved and limited conversation to collaborators on Aug 12, 2019
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions