Topic on Project:Support desk

Upgrade from 1.27.1 to 1.29.2 failed

8
Loman87 (talkcontribs)

Hi everybody,

I have tried to upgrade my from a 1.27.1 installation to the latest available version. I made backups of the db, LocalSettings.php, extensions and images folders. After restoring everything, I run the update script and this is the result

[ca6a4dfc97c7c3ad3074e1fe] [no req]   Error from line 2905 of .../mediawiki/includes/libs/rdbms/database/Database.php: Class 'Wikimedia\Timestamp\ConvertibleTimestamp' not found

Backtrace:
#0 .../mediawiki/includes/objectcache/SqlBagOStuff.php(546): Wikimedia\Rdbms\Database->timestamp(integer)
#1 .../mediawiki/includes/objectcache/SqlBagOStuff.php(535): SqlBagOStuff->getMaxDateTime(Wikimedia\Rdbms\DatabaseMysqli)
#2 .../mediawiki/includes/objectcache/SqlBagOStuff.php(310): SqlBagOStuff->isExpired(Wikimedia\Rdbms\DatabaseMysqli, string)
#3 .../mediawiki/includes/objectcache/SqlBagOStuff.php(256): SqlBagOStuff->getMulti(array)
#4 .../mediawiki/includes/objectcache/SqlBagOStuff.php(252): SqlBagOStuff->getWithToken(string, NULL, integer)
#5 .../mediawiki/includes/libs/objectcache/BagOStuff.php(185): SqlBagOStuff->doGet(string, integer)
#6 .../mediawiki/includes/cache/MessageCache.php(316): BagOStuff->get(string)
#7 .../mediawiki/includes/cache/MessageCache.php(976): MessageCache->load(string)
#8 .../mediawiki/includes/cache/MessageCache.php(905): MessageCache->getMsgFromNamespace(string, string)
#9 .../mediawiki/includes/cache/MessageCache.php(873): MessageCache->getMessageForLang(Language, string, boolean, array)
#10 .../mediawiki/includes/cache/MessageCache.php(813): MessageCache->getMessageFromFallbackChain(Language, string, boolean)
#11 .../mediawiki/includes/Message.php(1275): MessageCache->get(string, boolean, Language)
#12 .../mediawiki/includes/Message.php(842): Message->fetchMessage()
#13 .../mediawiki/includes/Message.php(934): Message->toString(string)
#14 .../mediawiki/extensions/SemanticGlossary/extensions/Lingo/src/Hooks.php(108): Message->text()
#15 .../mediawiki/includes/Setup.php(827): Lingo\Hooks::initExtension()
#16 .../mediawiki/maintenance/doMaintenance.php(98): require_once(string)
#17 .../mediawiki/maintenance/update.php(237): require_once(string)
#18 {main}

Any suggestions?

Thanks,

Lorenzo

2003:CC:ABC7:3B00:44E5:5972:CE6:17B (talkcontribs)

Hi Lorenzo,

how are you installing MediaWiki?

If you used Composer, maybe you still have to run composer update before you can run update.php. That would be what happened in https://phabricator.wikimedia.org/T166738.

Bawolff (talkcontribs)

If you installed via the tarball, it probably means that you still have the old folder of your vendor directory. Try and re-install, making sure to extract mediawiki in an empty directory.

Loman87 (talkcontribs)

Hi, thanks for your answers.

I am installing using the tarball and I have updated composer before running update.php. Everything works fine if I upgrade from 1.27.1 to 1.27.4, so there are some issues with 1.29.2 only.

@User:Bawolff the directory seems fine to me.

Ciencia Al Poder (talkcontribs)

Did you extract mediawiki in an empty directory (instead of extracting it over the old 1.27 files)?

Loman87 (talkcontribs)

Hi,

I made the extraction using tar -xvzf mediawiki-1.29.2.tar.gz, then I have renamed the folder mediawiki-1.29.2 to mediawiki, that is my root folder. So I did not extract the new folder into the old one.

Bawolff (talkcontribs)

You said you "updated composer" before running upgrade.php. Do you mean you ran composer update --no-dev or something else?. Normally you don't need to update composer if you are installing via a tarball (However, normally it wouldn't hurt anything either). Are the composer files (composer.json, composer.lock and composer.local.json) directly from the tarball or have they been modified in any way?

Loman87 (talkcontribs)

Hi, I guess the problem was related to composer.json. Initially, I used the old one from my 1.27.1 installation; then I manually updated that one in the 1.27.4 tarball and everything works fine. Now I have another problem with upload wizard, but I will post it in another thread.

Thanks for your help!