owncloud / core

:cloud: ownCloud web server core (Files, DAV, etc.)
https://owncloud.com
GNU Affero General Public License v3.0
8.38k stars 2.06k forks source link

file is locked error message when file doesn't exist in the filesystem #19096

Closed oparoz closed 9 years ago

oparoz commented 9 years ago

Env

FreeBSD, ZFS MariaDB 10 PHP 5.5 Encryption turned on

Enabled:
  - activity: 2.1.2
  - encryption: 1.0.0
  - files: 1.1.11
  - files_external: 0.2.3
  - files_sharing: 0.6.3
  - files_texteditor: 2.0
  - files_versions: 1.0.6
  - gallery: 14.0.0
  - provisioning_api: 0.2

Description

I always upload the same files to perform tests and recently the GUI has prevented me from doing so. I get a "file is locked" yellow notification

Looking at the JSON I see a code of null and status of error.

There is nothing in the ownCloud logs.

Running occ files operation does nothing.

@PVince81 @DeepDiver1975

karlitschek commented 9 years ago

@icewind1991

oparoz commented 9 years ago

@PVince81 It seems the DB table holding the information is dirty and that's what's causing the problem. It would be good to add an extra step to the occ repair command.

PVince81 commented 9 years ago

Is it still happening on master ? I seem to remember having a similar discussion recently. Locks should now auto-clean already after a TTL.

oparoz commented 9 years ago

We talked about it in another issue. Should be fixed. I will re-open should the TTL prove to be an ineffective ghost buster :)