Topic on Project:Support desk

Resolved: Upgrade error, 1.25.2 -> 1.27.1

5
70.162.99.246 (talkcontribs)

Hi All,

Trying to upgrade from 1.25.2 to 1.27.1 on a RHEL 6.8 system running php 5.5.29 with mysql 5.5.45 and receiving the below errors.

I downloaded the tar.gz mediawiki directly from mediawiki.org and uncompressed it to a new directory and then copied over all of the "other files" listed at Manual:Upgrading#Other files . I didn't have any extensions installed other than the ones that come as part of the tar.gz download.

I then ran the upgrade.php and then navigate to the site, at which point I get the below errors.

I have verified that the /tmp directory is writable:

ls -l | grep tmp

drwxrwxrwt. 6 root root 12288 Sep 26 20:01 tmp

Any help/suggestions appreciated,

[298bb9adbc1dbdac3e37308f] /mediawiki-1.27.1/ MWException from line 132 of /var/www/mediawiki-1.27.1/includes/cache/localisation/LCStoreCDB.php: Error writing to CDB file "/tmp/l10n_cache-en.cdb.tmp.206954764".

Backtrace:

#0 /var/www/mediawiki-1.27.1/includes/cache/localisation/LocalisationCache.php(1021): LCStoreCDB->set(string, boolean)

#1 /var/www/mediawiki-1.27.1/includes/cache/localisation/LocalisationCache.php(462): LocalisationCache->recache(string)

#2 /var/www/mediawiki-1.27.1/includes/cache/localisation/LocalisationCache.php(379): LocalisationCache->initLanguage(string)

#3 /var/www/mediawiki-1.27.1/includes/cache/localisation/LocalisationCache.php(294): LocalisationCache->loadSubitem(string, string, string)

#4 /var/www/mediawiki-1.27.1/languages/Language.php(2561): LocalisationCache->getSubitem(string, string, string)

#5 /var/www/mediawiki-1.27.1/includes/cache/MessageCache.php(869): Language->getMessage(string)

#6 /var/www/mediawiki-1.27.1/includes/cache/MessageCache.php(827): MessageCache->getMessageForLang(Language, string, boolean, array)

#7 /var/www/mediawiki-1.27.1/includes/cache/MessageCache.php(768): MessageCache->getMessageFromFallbackChain(Language, string, boolean)

#8 /var/www/mediawiki-1.27.1/includes/Message.php(1178): MessageCache->get(string, boolean, Language)

#9 /var/www/mediawiki-1.27.1/includes/Message.php(801): Message->fetchMessage()

#10 /var/www/mediawiki-1.27.1/includes/Message.php(892): Message->toString()

#11 /var/www/mediawiki-1.27.1/includes/title/MalformedTitleException.php(49): Message->text()

#12 /var/www/mediawiki-1.27.1/includes/title/MediaWikiTitleCodec.php(296): MalformedTitleException->__construct(string, string)

#13 /var/www/mediawiki-1.27.1/includes/Title.php(3343): MediaWikiTitleCodec->splitTitleString(string, integer)

#14 /var/www/mediawiki-1.27.1/includes/Title.php(367): Title->secureAndSplit()

#15 /var/www/mediawiki-1.27.1/includes/MediaWiki.php(79): Title::newFromURL(NULL)

#16 /var/www/mediawiki-1.27.1/includes/MediaWiki.php(135): MediaWiki->parseTitle()

#17 /var/www/mediawiki-1.27.1/includes/MediaWiki.php(661): MediaWiki->getTitle()

#18 /var/www/mediawiki-1.27.1/includes/MediaWiki.php(519): MediaWiki->main()

#19 /var/www/mediawiki-1.27.1/index.php(43): MediaWiki->run()

#20 {main}

AhmadF.Cheema (talkcontribs)

From what I know this is caused because of incorrect ownership rules for the MW cache directory.

Try this: Topic:T7me7nu8tmlj8dhd

70.162.99.246 (talkcontribs)

All files in both directories are owned by the nginx user which is what both php-fpm and nginx run as.

FYI, the 1.25.2 site, had no issues with permissions when nginx owned everything.

Thanks

Ciencia Al Poder (talkcontribs)

You can try creating a temp folder inside MediaWiki installation files, giving all permissions to all users, setting $wgTmpDirectory to it and see if that solves the problem or not, so you can discard a permission or SELinux issue.

70.162.99.246 (talkcontribs)

Hi All,

Thanks for the help, it's always the easy things we miss.. Turns out the / partition was full. I cleared some space, tried again, but got an error about not being able to move the database to the new location.

I then tried Ciencia's suggestion of using an alternative temp location and that fixed the issue.

Thanks again!