-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Integrity constraint violation in 8.1.0.0 version server #14701
Comments
@lmaestro Please always include the server logs. Thanks. |
And server config - basically please use the issue template! |
Please also include the server configuration. Most importantly, what database is used. |
I was able to reproduce this error using the test_uploadFiles.py test, scenario 2, in smashbox running against a stable8 server on CentOs with slqlite db
|
See #13934 |
This is the code fragment where this happens: https://github.com/owncloud/core/blob/master/lib/private/files/cache/cache.php#L248 What's happening?The client uploads two files in parallel into the same folder - which means two requests are being processed in parallel on the server. This is the point where the operation fails because the data was meanwhile inserted and results in this 'Integrity constraint violation'. Short term solutionWe could try to use insertIfNotExists() - which might require some tweaks:
Mid term solution / discussion
|
Maybe switch the SQL statement to |
Thanks for this input - I was playing with insert ignore ... |
potential fix #14734 |
yes, fix 🍻 |
I can't reproduce it in the latest version so I close this issue. |
Should we reopen ? Because it was shown that not every such error was fixed by the linked PR. |
Yes I am still having the problem and the linked PR does not explain how to properly patch the issue. Are there some files we need to replace? Or do we need to reinstall the whole thing? :/ sorry for being newbish |
@sleepysmurf pease wait until tomorrow when 8.0.3 will be released - it contains the fix. THX |
not really - we have enough open issues to reflect that status 🙊 |
Actual behaviour
An error is shown in the UI
Steps to reproduce
Server configuration
{"installed":true,"maintenance":false,"version":"8.1.0.0","versionstring":"8.1 pre alpha","edition":""}
Client configuration
Client version: version 1.8beta2
Operating system:OS X 10.10
Logs
The text was updated successfully, but these errors were encountered: