Issue :
We followed the official mediawiki documentations and made a bash script that upgrade mediawiki following these steps :
- Back up existing files and the database
- Unpack the new files
- Upgrade extensions
- Run the update script to check the database
- Test the update
- Remove leftovers from old installations
The Script was working like charm few months ago, but now while we were trying to upgrade mediawiki the script failed at step 3. Upgrade extensions with 429 too many requests error specifically after running the command :
git submodule update --init --recursive
Part of the error :
Cloning into '/var/www/wiki-dev/wiki/fr/extensions/Wikibase/view/lib/wikibase-data-model'... error: RPC failed; HTTP 429 curl 22 The requested URL returned error: 429 fatal: the remote end hung up unexpectedly fatal: clone of 'https://phabricator.wikimedia.org/source/wikibase-data-model.git' into submodule path '/var/www/wiki-dev/wiki/fr/extensions/Wikibase/view/lib/wikibase-data-model' failed Failed to clone 'view/lib/wikibase-data-model'. Retry scheduled Cloning into '/var/www/wiki-dev/wiki/fr/extensions/WikibaseLexeme/resources/special/new-lexeme'... fatal: unable to access 'https://phabricator.wikimedia.org/diffusion/NLSP/new-lexeme-special-page.git/': The requested URL returned error: 429 fatal: clone of 'https://phabricator.wikimedia.org/diffusion/NLSP/new-lexeme-special-page.git' into submodule path '/var/www/wiki-dev/wiki/fr/extensions/WikibaseLexeme/resources/special/new-lexeme' failed Failed to clone 'resources/special/new-lexeme' a second time, aborting fatal: Failed to recurse into submodule path 'extensions/Wikibase' fatal: Failed to recurse into submodule path 'extensions/WikibaseLexeme'
My Question :
Is this normal?, It's been more than 12h and we are still getting 429 error, and are there some ways to prevent this from happening again?
I appreciate any help.