Topic on Project:Support desk

Skjölker (talkcontribs)

Why am I getting the following message? How can I fix it? I just installed MediaWiki again after some time, this has never happened to me before.

Warning: rename(/tmp/l10n_cache-en.cdb.tmp.1541950862,/tmp/l10n_cache-en.cdb): Operation not permitted in /home/u849803034/public_html/vendor/wikimedia/cdb/src/Writer/DBA.php on line 59

[V@7fWB@qpBAAAE@ii8sAAADH] 2016-09-30 21:55:37: Fatal exception of type MWException

Warning: dba_close(): 167 is not a valid DBA identifier resource in /home/u849803034/public_html/vendor/wikimedia/cdb/src/Writer/DBA.php on line 54

Warning: rename(/tmp/l10n_cache-en.cdb.tmp.1541950862,/tmp/l10n_cache-en.cdb): Operation not permitted in /home/u849803034/public_html/vendor/wikimedia/cdb/src/Writer/DBA.php on line 59

Fatal error: Uncaught exception 'Cdb\Exception' with message 'Unable to move the new CDB file into place.' in /home/u849803034/public_html/vendor/wikimedia/cdb/src/Writer/DBA.php:60 Stack trace: #0 /home/u849803034/public_html/vendor/wikimedia/cdb/src/Writer.php(88): Cdb\Writer\DBA->close() #1 [internal function]: Cdb\Writer->__destruct() #2 {main} thrown in /home/u849803034/public_html/vendor/wikimedia/cdb/src/Writer/DBA.php on line 60

87.123.11.131 (talkcontribs)

The error

 rename(/tmp/l10n_cache-en.cdb.tmp.1541950862,/tmp/l10n_cache-en.cdb): Operation not permitted

most likely points to wrong permissions. Make sure that permissions on your cache folder allow to read from and to write to it. If you cannot change permissions of folder /tmp/, then set $wgCacheDirectory to a folder, which fits your needs and set the correct permissions for that folder.

Skjölker (talkcontribs)

/tmp/ doesn't exist..?

This post was hidden by Skjölker (history)
87.123.11.131 (talkcontribs)

Then create it!

Skjölker (talkcontribs)
Warning: failed to mkdir "http://(my address, which I do not want to show here)/cache" mode 0777 [Called from wfMkdirParents in /home/u849803034/public_html/includes/GlobalFunctions.php at line 2200] in /home/u849803034/public_html/includes/debug/MWDebug.php on line 300
[V-AUtB@qpBAAAAfegSUAAADN] 2016-10-01 19:55:33: Fatal exception of type MWException


Now I keep getting that message.

87.123.11.131 (talkcontribs)

Does the error message really contain a URL, starting with http://? Or does it contain a local folder path? It should be a folder path!

Skjölker (talkcontribs)

It contains the URL starting with http://.

87.123.54.185 (talkcontribs)

That should not be. Please provide a stack trace, so that we can see, why there is the URL in there!

Ciencia Al Poder (talkcontribs)

That's most likely Pjoona11 putting an URL for $wgTmpDirectory instead of using a local path

Reply to ""Internal error"?"