Topic on Project:Support desk

Exception encountered, of type "LocalFileLockError"

12
OMG PLEASE DO NOT BE OCCUPIED I AM TRIGGERED (talkcontribs)

Whenever I want upload new image I get this error.

Exception encountered, of type "LocalFileLockError"

Ubuntu Server (Apache2)

87.123.9.12 (talkcontribs)

In which wiki is this happening?

Which version of MediaWiki is this wiki using?

(Possibly T135485, T132921...)

OMG PLEASE DO NOT BE OCCUPIED I AM TRIGGERED (talkcontribs)

Newest one

87.123.9.12 (talkcontribs)

What is the "newest version"? Is that 1.27, which is the newest LTS version? Or 1.28wmf..., which is the newest point release? Or even something completely different, because you installed this from some strange repository, which only has outdated stuff anyways?

OMG PLEASE DO NOT BE OCCUPIED I AM TRIGGERED (talkcontribs)

1 2 7

84.72.156.189 (talkcontribs)

Had the same issue but it was only a permission problem. MediaWiki was not able to write to the images subdirectory. Could be the same issue on your system.

Nicolas NALLET (talkcontribs)

try to put www-data as owner recursively

chown -R  www-data images

90.145.64.130 (talkcontribs)

Same problem here. We don't have a www-data user or group

97.75.165.2 (talkcontribs)

How do I fix this? When I try to upload an image on 1.27 I get the same "Exception encountered, of type "LocalFileLockError":

Already had issues with caching which I was able to resolve.

66.194.25.11 (talkcontribs)

I am having the same issue on 1.27 for the error below and was unable to resolve it.

Exception encountered, of type "LocalFileLockError"

192.62.77.24 (talkcontribs)

I has a similar problem.

In my case SELinux was the problem.

To verify - you can temporarily disable SELinux (sudo setenforce 0) and try again.

If the upload works - then you can follow the instructions at the MediaWiki SELinux page:

SELinux

What worked for me was to change the PHP file upload location from /tmp to the mediawiki/image/temp directory and then sudo chcon -R -t httpd_user_rw_content_t images

When you are done - dont forget to re-enable SELInux!

Hope this helps

Reply to "Exception encountered, of type "LocalFileLockError""