Example run:
17:09:35 17:09:35 Started scap: beta-scap-eqiad (build #223032) 17:09:39 17:09:39 Copying to deployment-deploy01.deployment-prep.eqiad.wmflabs from deployment-deploy01.deployment-prep.eqiad.wmflabs 17:09:39 17:09:39 Started rsync common 17:09:44 17:09:44 Finished rsync common (duration: 00m 05s) 17:09:44 17:09:44 Started cache_git_info 17:22:09 17:22:09 Finished cache_git_info (duration: 12m 24s) 17:22:10 17:22:10 Started l10n-update 17:22:10 17:22:10 Updating ExtensionMessages-master.php 17:22:12 17:22:12 Updating LocalisationCache for master using 6 thread(s) 17:23:04 17:23:04 Last output: 17:23:04 sudo: a password is required 17:23:04 17:23:04 Last output: 17:23:04 sudo: a password is required 17:23:04 17:23:04 Finished l10n-update (duration: 00m 54s) 17:23:04 17:23:04 Unhandled error: 17:23:04 Traceback (most recent call last): 17:23:04 File "/usr/lib/python2.7/dist-packages/scap/cli.py", line 342, in run 17:23:04 exit_status = app.main(app.extra_arguments) 17:23:04 File "/usr/lib/python2.7/dist-packages/scap/main.py", line 552, in main 17:23:04 return super(Scap, self).main(*extra_args) 17:23:04 File "/usr/lib/python2.7/dist-packages/scap/main.py", line 70, in main 17:23:04 self._after_sync_common() 17:23:04 File "/usr/lib/python2.7/dist-packages/scap/main.py", line 575, in _after_sync_common 17:23:04 version, wikidb, self.verbose, self.config) 17:23:04 File "/usr/lib/python2.7/dist-packages/scap/utils.py", line 402, in context_wrapper 17:23:04 return func(*args, **kwargs) 17:23:04 File "/usr/lib/python2.7/dist-packages/scap/tasks.py", line 637, in update_localization_cache 17:23:04 wikidb, cache_dir, use_cores, force=force_rebuild, quiet=quiet_rebuild) 17:23:04 File "/usr/lib/python2.7/dist-packages/scap/tasks.py", line 551, in _call_rebuildLocalisationCache 17:23:04 'out_dir': out_dir 17:23:04 File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__ 17:23:04 self.gen.throw(type, value, traceback) 17:23:04 File "/usr/lib/python2.7/dist-packages/scap/utils.py", line 541, in sudo_temp_dir 17:23:04 sudo_check_call(owner, 'find "%s" -maxdepth 1 -delete' % dirname) 17:23:04 File "/usr/lib/python2.7/dist-packages/scap/utils.py", line 402, in context_wrapper 17:23:04 return func(*args, **kwargs) 17:23:04 File "/usr/lib/python2.7/dist-packages/scap/utils.py", line 497, in sudo_check_call 17:23:04 raise subprocess.CalledProcessError(proc.returncode, cmd) 17:23:04 CalledProcessError: Command 'find "/tmp/scap_l10n_3445030935" -maxdepth 1 -delete' returned non-zero exit status 1 17:23:04 17:23:04 scap failed: CalledProcessError Command 'find "/tmp/scap_l10n_3445030935" -maxdepth 1 -delete' returned non-zero exit status 1 (duration: 13m 29s)
Not sure if ldap is somehow flapping, but this has been self-recovering for a while now. This has not, as far as I know, happened in production so it is very likely something to do with the beta-cluster infrastructure and not scap itself.
The code that is failing is part of sudo_temp_dir a utility contextlib method that's only use is in rebuildLocalisationCache: https://phabricator.wikimedia.org/source/scap/browse/master/scap/tasks.py$522