Page MenuHomeMiraheze

Changing config does not work - it reads from cache without changing any of it on the fly (if that's what is done like for example wgDataDumpDirectory
Closed, ResolvedPublic

Description

root@mwtask111:/srv/mediawiki/w/maintenance# sudo -u www-data php eval.php --wiki labirintiedraghiwiki
> $backend = DataDump::getBackend();

> $directoryBackend = $backend->getRootStoragePath() . '/dumps-backup/';

> var_dump($backend->directoryExists( [ 'dir' => $directoryBackend ] ));
bool(true)

> var_dump($wgDataDumpDirectory);
string(49) "/mnt/mediawiki-static/labirintiedraghiwiki/dumps/"
root@mwtask111:/mnt/mediawiki-static/metawiki# sudo -u www-data php /srv/mediawiki/w/maintenance/dumpBackup.php --full --logs --uploads --output gzip:/mnt/mediawiki-static/private/dumps/labirintiedraghiwiki/labirintiedraghiwiki_xml_fc94d51e617482adaa3d.xml.gz --wiki labirintiedraghiwiki
sh: 1: cannot create /mnt/mediawiki-static/private/dumps/labirintiedraghiwiki/labirintiedraghiwiki_xml_fc94d51e617482adaa3d.xml.gz: Directory nonexistent

see log at https://graylog.miraheze.org/messages/graylog_129/9bac69c9-ed7f-11ec-96ed-5a209e913d91

Event Timeline

Paladox triaged this task as Unbreak Now! priority.Jun 16 2022, 14:33
Paladox created this task.
> var_dump($wgConf->settings['wgDataDumpDirectory']['default']);
string(57) "/mnt/mediawiki-static/private/dumps/labirintiedraghiwiki/"

somehow the configs aren't being updated?

> $globals = MirahezeFunctions::getConfigGlobals();
> var_dump($globals['wgDataDumpDirectory']);
string(49) "/mnt/mediawiki-static/labirintiedraghiwiki/dumps/"

so It seems like the cause is https://github.com/miraheze/mw-config/blob/master/LocalSettings.php#L5192?

Paladox renamed this task from DataDump broken to Changing config does not work - it reads from cache without changing any of it on the fly (if that's what is done like for example wgDataDumpDirectory.Jun 16 2022, 15:02