Page MenuHomePhabricator

scap error handling
Closed, ResolvedPublic

Description

Dieing to a python stack trace isn't very nice... We should probably trap the error and also pass a "!log scap failed" to logmsgbot to post to IRC/SQL

reedy@tin:/a/common$ scap testwiki to 1.23wmf13 and build l10n cache
[2014-02-06 16:04:31,041] started scap: testwiki to 1.23wmf13 and build l10n cache
[2014-02-06 16:04:31,056] Checking syntax
Copying to tin from tin.eqiad.wmnet...ok
Done
Updating ExtensionMessages-1.23wmf12.php...
done
Copying to local copy...
done
Updating LocalisationCache for 1.23wmf12... done
Updating ExtensionMessages-1.23wmf11.php...
done
Copying to local copy...
done
Updating LocalisationCache for 1.23wmf11... done
Updating ExtensionMessages-1.23wmf13.php...PHP Warning: require(/a/common/php-1.23wmf13/../wmf-config/ExtensionMessages-1.23wmf13.php): failed to open stream: No such file or directory in /usr/local/apache/common-local/wmf-config/CommonSettings.php on line 2660

Warning: require(/a/common/php-1.23wmf13/../wmf-config/ExtensionMessages-1.23wmf13.php): failed to open stream: No such file or directory in /usr/local/apache/common-local/wmf-config/CommonSettings.php on line 2660
PHP Fatal error: require(): Failed opening required '/a/common/php-1.23wmf13/../wmf-config/ExtensionMessages-1.23wmf13.php' (include_path='/a/common/php-1.23wmf13/extensions/TimedMediaHandler/handlers/OggHandler/PEAR/File_Ogg:/a/common/php-1.23wmf13:/usr/local/lib/php:/usr/share/php') in /usr/local/apache/common-local/wmf-config/CommonSettings.php on line 2660

Fatal error: require(): Failed opening required '/a/common/php-1.23wmf13/../wmf-config/ExtensionMessages-1.23wmf13.php' (include_path='/a/common/php-1.23wmf13/extensions/TimedMediaHandler/handlers/OggHandler/PEAR/File_Ogg:/a/common/php-1.23wmf13:/usr/local/lib/php:/usr/share/php') in /usr/local/apache/common-local/wmf-config/CommonSettings.php on line 2660
Update of MediaWiki localisation messages failed
Traceback (most recent call last):

File "/usr/local/bin/scap", line 220, in <module>
  scap()
File "/usr/local/bin/scap", line 177, in scap
  subprocess.check_call('/usr/local/bin/mw-update-l10n')
File "/usr/lib/python2.7/subprocess.py", line 511, in check_call
  raise CalledProcessError(retcode, cmd)

subprocess.CalledProcessError: Command '/usr/local/bin/mw-update-l10n' returned non-zero exit status 1


Version: wmf-deployment
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=51174

Details

Reference
bz60967

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:02 AM
bzimport added a project: Deployments.
bzimport set Reference to bz60967.

Added in I98c6ec2 and deployed to tin.