New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ownCloud 7.0.3 stable problems due to missing shareKey (sqlite3, SQLSTATE[HY000]: General error: 5 database is locked) #12428
Comments
I'm able to repeat this error anytime. Test case
ObservationsA) while uploading, you will see a message pop-up in yellow "An exception occurred while executing 'UPDATE "oc_filecache" SET "size"=? WHERE "fileid" = ?': SQLSTATE[HY000]: General error: 5 database is locked" (please see attached images are below) B) 5 files can't be accessed via web interface: C) also these 5 files do not have a thumbnail generated for them D) Error "An error occurred! Can not decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you." displayed only when trying to open the g.txt file. E) all 13 files appeared at the /my/path/owncloud/data/arno/files/testdir/ path as expected F) only 9 files appeared at the /my/path/owncloud/data/arno/files_encryption/keyfiles/testdir/ path G) only 8 files appeared at the /my/path/owncloud/data/arno/files_encryption/share-keys/testdir/ path H) modified files (checked right after I uploaded the 13 files as described above
more verbose information
|
might be a good idea to keep an eye at this post, once this sqlite3 pb is resolved http://forum.owncloud.org/viewtopic.php?f=29&t=24219 (not sure if it's the same problem, but the user described a missing sharedKey file, having SQLite DB and a little older ownCloud v7.0.2) |
Meanwhile, until this bug is resolved, what would be a good way to clean-up those files which were created without the .shareKey file and thus inaccessible (=> impossible to remove them via web interface)? Would it be enough to remove, for example for the e.txt file following:
Shouldn't it bring any inconsistency/corrupt the DB ? UPDATE A quick check for the other SQLite users would be:
|
@schiesbn |
One of the possible solutions to the "General error: 5 database is locked" -> http://php.net/manual/en/ref.pdo-sqlite.php#115031 |
Please try if this #13752 fixes for you |
@PVince81 probably good news, because I simply cannot simulate this error anymore. I mean without even applying #13752 .. maybe there was something in ownCloud v7.0.4 that fixed this issue? Please also find below version of sqlite & php in NixOS 14.12 currently:
|
@arno01 you might probably just be lucky. That error is usually caused by concurrent requests and might depend on the speed of your server. Anyway, that patch will be in 7.0.5 so once you'll upgrade you should be fine, too. I'll close this ticket then. Thanks for the feedback 😄 |
Hello devs,
I'm having an issue, when I've uploaded about 10 little files (<70 Kb) from Desktop via Web Interface to my ownCloud directory, I've noticed a yellow pop-up message in the web interface that shortly disappear, it was "An exception occurred while executing 'UPDATE "oc_filecache" SET "size"=? WHERE "fileid" = ?': SQLSTATE[HY000]: General error: 5 database is locked"
Then I've noticed that because of this error, one of uploaded files has been created without .shareKey file, which leads to the following problems:
Thus, I'd like to ask you, what would be the way:
Please feel free to ask me for more details to help you troubleshoot this problem.
extra notes
If I'm running
I can see there
However I can't see .shareKey ... neither it was created as I described above.
I expect to see there "files_encryption/share-keys/code/vigenere/info.txt.arno.shareKey" and the file itself ..
The text was updated successfully, but these errors were encountered: