Skip to content

[1.7.0-rc1]Error downloading <path_on_owncloud_server> - server replied: internal server error #2401

Closed

Description

@PeterPablo

Hi!
I am running OwnCloud 7.0.2 on my Raspberry PI and the data is stored on an external HDD. The webinterface runs without problems and now I wanted to give the Mirall client a try on Mac OS X Yosemite. I pulled the current release candidate and would like to report the following problem:

My initial synchronisation is still running and files are happily synced TO my Raspberry PI. The log in the Mirall window is unfortunately full of errors:
'''Error downloading <path_on_owncloud_server> - server replied: internal server error'''
Though not all files give this error, others are synced without problem.

I checked my logs in apache. "error.log" is clean and "ssl_access.log" gives me:

IP - USER [26/Oct/2014:11:13:43 +0100] "PUT /owncloud/remote.php/webdav/PATH/image-21_4.jpg HTTP/1.1" 201 1028 "-" "Mozilla/5.0 (Macintosh) mirall/1.7.0"
IP - USER [26/Oct/2014:11:14:17 +0100] "PUT /owncloud/remote.php/webdav/PATH/image-22_3.jpg HTTP/1.1" 500 1077 "-" "Mozilla/5.0 (Macintosh) mirall/1.7.0"

As you can see "image-22_3.jpg" return error 500, whereas the very similar file "image-21_4.jpg" goes through without a problem. This matches the log in the Mirall Client window.

I then checked if both files were uploaded by looking directly on the storage. Both files were uploaded successfully (after downloading over a network share I can open them), though the "failed file" lost it's creation and modification timestamps on the Raspberry PI, whereas the file without problem has the original timestamps.

I consider this a bug. Hopefully my report gives you a starting point for investigating.

Thank you!

Activity

  1. PeterPablo commented on Oct 26, 2014

    @PeterPablo
    Author

    I would like to add that now the client is syncing back the "failed" files to my Mac and thereby overwriting the timestamps, e.g. a file originally last modified in 2011 is now marked as modified today at some half hour ago.
    This is not acceptable for me. I stopped the tool.

  2. PeterPablo commented on Oct 26, 2014

    @PeterPablo
    Author

    I had a look at owncloud.log and it is flooded with entries like this:

    {"app":"remote","message":"An exception occurred while executing 'UPDATE \"oc_filecache\" SET \"size\"=? WHERE \"fileid\" = ?':\n\nSQLSTATE[HY000]: General error: 5 database is locked","level":4,"time":"2014-10-26T10:17:22+00:00"}
    
    {"app":"PHP","message":"Session has been closed - no further changes to the session as allowed at \/var\/www\/owncloud\/lib\/private\/session\/memory.php#80","level":3,"time":"2014-10-26T10:17:22+00:00"}
    
    {"app":"hook","message":"error while running hook (\\OC\\Files\\Cache\\Shared_Updater::writeHook): An exception occurred while executing 'UPDATE \"oc_filecache\" SET \"size\"=? WHERE \"fileid\" = ?':\n\nSQLSTATE[HY000]: General error: 5 database is locked","level":3,"time":"2014-10-26T10:17:32+00:00"}
    

    The last one is present not so often...

  3. PeterPablo commented on Oct 26, 2014

    @PeterPablo
    Author

    And there is another error when I shut down the mirall client on my mac.
    Since then my log is silent (as expected).

    {"app":"PHP","message":"Session has been closed - no further changes to the session as allowed at \/var\/www\/owncloud\/lib\/private\/session\/memory.php#80","level":3,"time":"2014-10-26T10:24:50+00:00"}
    {"app":"hook","message":"error while running hook (OCA\\Files_Versions\\Hooks::write_hook): An exception occurred while executing 'UPDATE \"oc_filecache\" SET \"size\"=? WHERE \"fileid\" = ?':\n\nSQLSTATE[HY000]: General error: 5 database is locked","level":3,"time":"2014-10-26T10:26:42+00:00"}
    {"app":"hook","message":"error while running hook (OCA\\Files_Versions\\Hooks::write_hook): An exception occurred while executing 'INSERT INTO \"oc_filecache\" (\"mimepart\", \"mimetype\", \"mtime\", \"size\", \"etag\", \"storage_mtime\", \"permissions\", \"parent\", \"path_hash\", \"path\", \"name\", \"storage\") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)':\n\nSQLSTATE[23000]: Integrity constraint violation: 19 columns storage, path_hash are not unique","level":3,"time":"2014-10-26T10:26:51+00:00"}
    {"app":"remote","message":"An exception occurred while executing 'UPDATE \"oc_filecache\" SET \"size\"=? WHERE \"fileid\" = ?':\n\nSQLSTATE[HY000]: General error: 5 database is locked","level":4,"time":"2014-10-26T10:28:51+00:00"}
    {"app":"PHP","message":"Session has been closed - no further changes to the session as allowed at \/var\/www\/owncloud\/lib\/private\/session\/memory.php#80","level":3,"time":"2014-10-26T10:28:51+00:00"}
    

    Sorry for flooding this bug report. I thought it might be helpful to describe the issue as detailed as possible.

  4. PeterPablo commented on Oct 26, 2014

    @PeterPablo
    Author

    Hi @RealRancor,

    I looked it up in the documentation (http://doc.owncloud.org/desktop/1.7/ocdoc/admin_manual/configuration/configuration_database.html) and there it is stated that ...

    The MySQL or MariaDB databases are the recommended database engines. However, because it is a file based database with the least administrative overhead, SQLite is chosen by default.
    
    Note
    Because SQLite has some difficulties handling multiple users, we recommend that it be used only for single user ownCloud installatins.
    

    Since I am the single user at the moment, I think I followed the instructions properly. I am rather unwilling to change the used database type -- who knows what new problems I would run into.

  5. PeterPablo commented on Oct 26, 2014

    @PeterPablo
    Author

    This should be stated somewhere in large letters! In my opinion this issue means a corruption of user data. Luckily I noticed it quite soon.

  6. ogoffart commented on Oct 27, 2014

    @ogoffart
    Contributor
  7. dragotin commented on Nov 28, 2014

    @dragotin
    Contributor

    @PeterPablo I think it makes more sense to reopen this issue in the core repository, that will raise more attention on this problem I think.

  8. guruz commented on Jan 23, 2015

    @guruz
    Contributor

    Please track #2743

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