Topic on Project:Support desk

[RESOLVED] Update from 1.17.0 to 1.23.4

7
82.220.1.199 (talkcontribs)

Hallo

I try to update from 1.17.0 to 1.23.4. The update script worked well, as it seems. No errors at all.
But when I access the page in the webbrowser now, I see the flowing Error message:

[ae439d39] /update/index.php Exception from line 1318 of /home/www/tf/wiki/includes/cache/LocalisationCache.php: Unable to open CDB file for write "cache/l10n_cache-en.cdb"

Backtrace:

#0 /home/www/tf/wiki/includes/cache/LocalisationCache.php(959): LCStoreCDB->startWrite(string)
#1 /home/www/tf/wiki/includes/cache/LocalisationCache.php(452): LocalisationCache->recache(string)
#2 /home/www/tf/wiki/includes/cache/LocalisationCache.php(369): LocalisationCache->initLanguage(string)
#3 /home/www/tf/wiki/includes/cache/LocalisationCache.php(283): LocalisationCache->loadSubitem(string, string, string)
#4 /home/www/tf/wiki/languages/Language.php(2347): LocalisationCache->getSubitem(string, string, string)
#5 /home/www/tf/wiki/includes/cache/MessageCache.php(825): Language->getMessage(string)
#6 /home/www/tf/wiki/includes/cache/MessageCache.php(752): MessageCache->getMessageFromFallbackChain(Language, string, string, boolean)
#7 /home/www/tf/wiki/includes/Message.php(1003): MessageCache->get(string, boolean, Language)
#8 /home/www/tf/wiki/includes/Message.php(637): Message->fetchMessage()
#9 /home/www/tf/wiki/includes/Message.php(732): Message->toString()
#10 /home/www/tf/wiki/includes/Title.php(442): Message->text()
#11 /home/www/tf/wiki/includes/Wiki.php(121): Title::newMainPage()
#12 /home/www/tf/wiki/includes/Wiki.php(137): MediaWiki->parseTitle()
#13 /home/www/tf/wiki/includes/Wiki.php(514): MediaWiki->getTitle()
#14 /home/www/tf/wiki/includes/Wiki.php(447): MediaWiki->main()
#15 /home/www/tf/wiki/index.php(46): MediaWiki->run()
#16 {main}

Any idea what's wrong?

Jackmcbarn (talkcontribs)

Can your web server write to your cache directory?

82.220.1.199 (talkcontribs)

Hallo the existing MediaWiki installation is able to write to the cache directory.

Ciencia Al Poder (talkcontribs)

Apparently it can't, as the error message says:

Unable to open CDB file for write "cache/l10n_cache-en.cdb"

Be sure a folder named "cache" exists in your MediaWiki installation directory and that is writable by the webserver.

82.220.1.199 (talkcontribs)

Problem solved! SELinux did cause the confusing error. Relabelling of the file system solved the problem finally.

Soumya.sadanandan (talkcontribs)

Give >chmod -R 777 <foldername>. This resolved my issue.- Unable to open CDB file for write "cache/l10n_cache-en.cdb"

星耀晨曦 (talkcontribs)

In fact, 777 permissions are not recommended. You can chown a user who run web server, and chmod 775 or 755.