Topic on Project:Support desk

Fatal error: Uncaught Cdb\Exception: Error writing to CDB file

3
180.150.157.62 (talkcontribs)

Warning: rename(/tmp/l10n_cache-en.cdb.tmp.1457297703,/tmp/l10n_cache-en.cdb): Operation not permitted in /home/u96904/wiki.test.ru/vendor/wikimedia/cdb/src/Writer/PHP.php on line 89

Warning: fclose(): supplied resource is not a valid stream resource in /home/u96904/wiki.test.ru/vendor/wikimedia/cdb/src/Writer/PHP.php on line 236

[WAzq4VvZCasAAEsECPEAAAAU] 2016-10-23 16:52:49: Fatal exception of type MWException

Warning: fwrite(): supplied resource is not a valid stream resource in /home/u96904/wiki.test.ru/vendor/wikimedia/cdb/src/Writer/PHP.php on line 100

Warning: fclose(): supplied resource is not a valid stream resource in /home/u96904/wiki.test.ru/vendor/wikimedia/cdb/src/Writer/PHP.php on line 236

Warning: unlink(/tmp/l10n_cache-en.cdb.tmp.1457297703): No such file or directory in /home/u96904/wiki.test.ru/vendor/wikimedia/cdb/src/Writer/PHP.php on line 237

Fatal error: Uncaught Cdb\Exception: Error writing to CDB file "/tmp/l10n_cache-en.cdb.tmp.1457297703". in /home/u96904/wiki.test.ru/vendor/wikimedia/cdb/src/Writer/PHP.php:239 Stack trace: #0 /home/u96904/wiki.tets.ru/vendor/wikimedia/cdb/src/Writer/PHP.php(102): Cdb\Writer\PHP->throwException('Error writing t...') #1 /home/u96904/wiki.test.ru/vendor/wikimedia/cdb/src/Writer/PHP.php(215): Cdb\Writer\PHP->write('\x00\x00\x00\x00\x00\x00\x00\x00') #2 /home/u96904/wiki.test.ru/vendor/wikimedia/cdb/src/Writer/PHP.php(82): Cdb\Writer\PHP->finish() #3 /home/u96904/wiki.test.ru/vendor/wikimedia/cdb/src/Writer.php(88): Cdb\Writer\PHP->close() #4 [internal function]: Cdb\Writer->__destruct() #5 {main} thrown in /home/u96904/wiki.test.ru/vendor/wikimedia/cdb/src/Writer/PHP.php on line 239

87.123.27.215 (talkcontribs)

The problem is that the cache directory is not writable.

Two possible solutions:

  • Either make sure that your cache directory (in your case /tmp/) is writable by the webserver user. Or
  • Set a different caching directory with $wgCacheDirectory and $wgTmpDirectory and make sure that write permissions for the webserver user are granted on these folders!
Valerio Bozzolan (talkcontribs)

Also check your disk space :^)

Reply to "Fatal error: Uncaught Cdb\Exception: Error writing to CDB file"