Wikimedia Developer Support

[MediaWiki-l] Upload of png or svg files


Hello, when I try to upload a png or svg file I get this error:

Exception encountered, of type "LocalFileLockError"

[XC4uL4ZffggAACRtm4QAAAAC] /wiki/Spezial:Hochladen LocalFileLockError from line 1930 of /afs/ Could not acquire lock for '330px-Variable_Resistor.png.'


#0 /afs/ LocalFile->lock()

#1 /afs/ LocalFile->upload(string, string, string, integer, array, boolean, User, array)

#2 /afs/ UploadBase->performUpload(string, string, boolean, User, array)

#3 /afs/ SpecialUpload->processUpload()

#4 /afs/ SpecialUpload->execute(NULL)

#5 /afs/ SpecialPage->run(NULL)

#6 /afs/ SpecialPageFactory::executePath(Title, RequestContext)

#7 /afs/ MediaWiki->performRequest()

#8 /afs/ MediaWiki->main()

#9 /afs/ MediaWiki->run()

#10 {main}

What is the problem here?

Many Greetings,
Adalbert Wrona


There can be various causes, but your file path makes me suspect that it
might have something to do with the fact that your 'local' files are on a
shared/network file segment. Maybe your client isn't allowed to lock files
on this share.

But see


Merge Discourse users with different email addresses