You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[1.7.0-rc1]Error downloading <path_on_owncloud_server> - server replied: internal server error #2401
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.
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.
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"}
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.
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.
Activity
PeterPablo commentedon Oct 26, 2014
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.
PeterPablo commentedon Oct 26, 2014
I had a look at owncloud.log and it is flooded with entries like this:
The last one is present not so often...
PeterPablo commentedon Oct 26, 2014
And there is another error when I shut down the mirall client on my mac.
Since then my log is silent (as expected).
Sorry for flooding this bug report. I thought it might be helpful to describe the issue as detailed as possible.
PeterPablo commentedon Oct 26, 2014
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 ...
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.
PeterPablo commentedon Oct 26, 2014
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.
ogoffart commentedon Oct 27, 2014
@PVince81
dragotin commentedon Nov 28, 2014
@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.
guruz commentedon Jan 23, 2015
Please track #2743