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
Files locks in database after occ upgrade/server restart #25440
Comments
Two ideas:
@felixboehm fyi. |
Suggestion: If there are some php being interupted, thus files locks are hanging in the database, what about cleaning these locks during the ownCloud startup (service apache2 start). These also requires rethinking for clustered setups. |
Or "occ restart" command instead of manual apache2 restart? |
It is only valid for some files which have been in some process on the server. (lock -1, 1) |
Not sure if this is even possible without a lot of hackery. |
There is also a slight chance that this has nothing to do with pending PHP requests. There have been reports of stray locks in some configurations but so far it wasn't possible to find out why these weren't freed. |
What I did it was syncing a lot of small files and just run service apache2 restart in the middle. It resulted in some files having lock flag -1 and 1 after restart. I solved the problem by doing
This could be the way ownCloud is being restarted, or at least started. |
Still an issue ? I suggest closing unless it happens again |
Hey, this issue has been closed because the label (This is an automated comment from GitMate.io. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I have observed, that if I am stressing the ownCloud server with performance test (smashbox, automated syncing with different distribution of the files), and during that synchronisation I will start upgrade to the newest ownCloud enterprise version, after the upgrade there are hanging files in the oc_file_locks table. After the upgrade, the files have 1h lock timeout and I cannot do anything with them, I cannot also delete the parent folder.
Steps to reproduce
Expected behaviour
After the upgrade/restart there should be no problem in synchronisation against the previously locked files
Actual behaviour
The files and parent folder is locked.
Server configuration
Operating system:
Ubuntu 14.04
Database:
mysql
PHP version:
PHP 5.5.9-1ubuntu4.17
Updated from an older ownCloud or fresh install:
yes
Where did you install ownCloud from:
tar
Client configuration
Operating system:
Ubuntu 14.04
Logs
Web server error log
ownCloud log (data/owncloud.log)
The text was updated successfully, but these errors were encountered: