Topic on Project:Support desk/Flow

Mkulawin (talkcontribs)

Hello, I updated my mediawiki from 1.35.14 to 1.42.3.

After run:

php maintenance/run.php update.php

The wiki is not running. The logfile of "php-fpm" shows the error:

PHP Fatal error:  Allowed memory size of 52428800 bytes exhausted (tried to allocate 40960 bytes) in /var/www/mediawiki-1.42.3/includes/config/GlobalVarConfig.php on line 75

I crease the memory limit from 20M to 100M. But I got the same error other limit.

Can you help?

Bawolff (talkcontribs)

The error says the memory limit is only 50mb. This is way too low for mediawiki. Please increase to about 256mb.

Mkulawin (talkcontribs)

Thanks for the info, I change to 256 MB but this not solve the issue.

[25-Oct-2024 08:21:52 UTC] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 40960 bytes) in /var/www/mediawiki-1.42.3/includes/config/GlobalVarConfig.php on line 75

I increase the memory to 512 MB, then the limit is not reach. But I got the error:

[25-Oct-2024 08:30:40 UTC] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/mediawiki-1.42.3/includes/libs/rdbms/database/DatabaseMySQL.php on line 756.

I use the database version:

Server version: 10.3.39-MariaDB MariaDB Server

Bawolff (talkcontribs)

Normally people disable max execution time for command line scripts. It is normal that update.php might take more than 30 seconds.

Mkulawin (talkcontribs)

The update.php don't need more then 30 second. The update runs without issue. The problem is:

When I got to our media wiki webpage and the index.php. I got a timeout because the index.php comes not back. When I increase the timeout, then you can see in the logfile from "php-fpm", that we reach the memory limit (see posts up). When I increase the memory big engouth, then I got a timeout from the DatabaseMySQL.php. But I see no long running quieries on the database. For me it looks that we have a memory leak during run index.php by accessing the database. But I don't see the reason.

This was a test:

When I update only the mediawiki php part, not the database part, than the index.php side will comes open without errors. The issue starts running php maintenance/run.php update.php.

Mkulawin (talkcontribs)

I test the update to version "mediawiki-1.41.4". This works well. I don't have issues with that version.

Mkulawin (talkcontribs)

Can you help me with version 1.42.3 and the memory leak. I don't found a solution. The usage of 1.41.4 is only a workaround.

Aafi (talkcontribs)

I wonder if you tried following Manual:Upgrading? What is your website address? How did you upgrade it to the LTS?

80686 (talkcontribs)

I can confirm this issue. I run many wikis on the same server cluster and when updating from 1.41 to 1.43 some of them broke. Before a solution is found I stopped doing updates on the rest of the wikis.

My guess is an infinite loop when gathering configuration data in an array with certain configurations. My wikis are 99% identical, the problem occurs on two wiki which use

wfLoadExtension( 'Auth_remoteuser' );

. Other wikis don't use this extension and there is no problem. Once I remove this extension the wiki loads (but is not usable for obvious reasons). --Manuel Schneider(bla) (+/-) 21:24, 22 December 2024 (UTC)

80686 (talkcontribs)
Reply to "Memory Leak"