Skip to content
This repository has been archived by the owner on Oct 31, 2018. It is now read-only.

Getting a file_locking error in the server log file when uploading a file - preview tile is missing #23

Closed
jnfrmarks opened this issue May 5, 2015 · 5 comments
Assignees
Milestone

Comments

@jnfrmarks
Copy link

Steps to reproduce

  1. Install 8.1
  2. upload a file

Expected behaviour

No file locking errors thrown

Actual behaviour

A file locking error is thrown:

{"reqId":"WC6GIL9YU44WNUgBf82b","remoteAddr":"x.x.x.x","app":"index","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\LockNotAcquiredException\",\"Message\":\"Could not obtain lock type 2 on \\\"\\\/\\\".\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_locking\\\/lib\\\/lockingwrapper.php(44): OCA\\\\Files_Locking\\\\Lock->addLock(2, NULL)\\n#1 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_locking\\\/lib\\\/lockingwrapper.php(93): OCA\\\\Files_Locking\\\\LockingWrapper->getLock('thumbnails\\\/10\\\/2...', 2)\\n#2 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/files\\\/view.php(936): OCA\\\\Files_Locking\\\\LockingWrapper->file_put_contents('thumbnails\\\/10\\\/2...', '?PNG????????IHD...')\\n#3 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/files\\\/view.php(554): OC\\\\Files\\\\View->basicOperation('file_put_conten...', 'thumbnails\\\/10\\\/2...', Array, '?PNG????????IHD...')\\n#4 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/preview.php(856): OC\\\\Files\\\\View->file_put_contents('thumbnails\\\/10\\\/2...', '?PNG????????IHD...')\\n#5 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/preview.php(816): OC\\\\Preview->storeMaxPreview('thumbnails\\\/10\\\/')\\n#6 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/preview.php(521): OC\\\\Preview->generatePreview(10)\\n#7 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/preview.php(544): OC\\\\Preview->getPreview()\\n#8 \\\/var\\\/www\\\/html\\\/owncloud\\\/core\\\/ajax\\\/preview.php(61): OC\\\\Preview->showPreview()\\n#9 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/route\\\/route.php(153) : runtime-created function(1): require_once('\\\/var\\\/www\\\/html\\\/o...')\\n#10 [internal function]: __lambda_func(Array)\\n#11 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/route\\\/router.php(272): call_user_func('?lambda_230', Array)\\n#12 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/base.php(860): OC\\\\Route\\\\Router->match('\\\/core\\\/preview.p...')\\n#13 \\\/var\\\/www\\\/html\\\/owncloud\\\/index.php(40): OC::handleRequest()\\n#14 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_locking\\\/lib\\\/lock.php\",\"Line\":251}","level":4,"time":"2015-05-05T16:48:06+00:00"}

Server Host info:

Ubuntu 14.04
PHP 5.5.9
MySQL DB

Server configuration:

ownCloud Enterprise Edition 8.1 alpha 3 (daily) Build:2015-05-05T03:08:44+00:00 fa6a67ccc1a7919aea2b18b445c0a31546184326

@jnfrmarks jnfrmarks added the bug label May 5, 2015
@jnfrmarks jnfrmarks added this to the 8.1-current milestone May 5, 2015
@jnfrmarks
Copy link
Author

A bit more info:

The file is uploaded but there isn't a preview icon:

p339

@jnfrmarks jnfrmarks changed the title Getting a file_locking error in the server log file when uploading a file Getting a file_locking error in the server log file when uploading a file - preview tile is missing May 5, 2015
@jnfrmarks
Copy link
Author

@DeepDiver1975

I don't know who is looking at these issues, so ... tag you're it?

@jnfrmarks
Copy link
Author

I can't tell if this is the root of other issues I'm seeing such as core/issues/13566

@DeepDiver1975 DeepDiver1975 self-assigned this May 5, 2015
@DeepDiver1975
Copy link
Contributor

@jnfrmarks should be fixed with #25 as well

@DeepDiver1975
Copy link
Contributor

as core/issues/13566

refs owncloud/core#13566

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants