My scap sync failed on i18n changes.
It does not seem related to any code issue (e.g. invalid JSON files). That should be caught by Jenkins, and I manually checked both the files changed and one of the languages that failed (hif-latn).
First error I see is:
"15:34:43 ['/usr/bin/scap', 'pull-master', 'tin.eqiad.wmnet'] on naos.codfw.wmnet returned [70]: Could not chdir to home directory /var/lib/mwdeploy: No such file or directory"
Then the CDB issues later.
| 1 | mattflaschen@tin:/srv/mediawiki-staging/php-1.30.0-wmf.16$ scap sync 'Prepare to enable RCFilters (WLFilters) on Watchlist' |
|---|---|
| 2 | ___ ____ |
| 3 | ⎛ ⎛ ,---- |
| 4 | \ //==--' |
| 5 | _//|,.·//==--' ____________________________ |
| 6 | _OO≣=- ︶ ᴹw ⎞_§ ______ ___\ ___\ ,\__ \/ __ \ |
| 7 | (∞)_, ) ( | ______/__ \/ /__ / /_/ / /_/ / |
| 8 | ¨--¨|| |- ( / ______\____/ \___/ \__^_/ .__/ |
| 9 | ««_/ «_/ jgs/bd808 /_/ |
| 10 | |
| 11 | 15:27:31 Started scap: Prepare to enable RCFilters (WLFilters) on Watchlist |
| 12 | 15:27:54 Copying to tin.eqiad.wmnet from tin.eqiad.wmnet |
| 13 | 15:27:54 Started rsync common |
| 14 | 15:27:59 Finished rsync common (duration: 00m 05s) |
| 15 | 15:27:59 Started cache_git_info |
| 16 | 15:28:02 Finished cache_git_info (duration: 00m 03s) |
| 17 | 15:28:03 Started l10n-update |
| 18 | 15:28:03 Updating ExtensionMessages-1.30.0-wmf.16.php |
| 19 | 15:28:04 Updating LocalisationCache for 1.30.0-wmf.16 using 10 thread(s) |
| 20 | 15:33:01 Generating JSON versions and md5 files |
| 21 | 15:33:20 Finished l10n-update (duration: 05m 17s) |
| 22 | 15:33:20 Started sync-masters |
| 23 | 15:34:43 ['/usr/bin/scap', 'pull-master', 'tin.eqiad.wmnet'] on naos.codfw.wmnet returned [70]: Could not chdir to home directory /var/lib/mwdeploy: No such file or directory |
| 24 | 15:33:21 Copying to naos.codfw.wmnet from tin.eqiad.wmnet |
| 25 | 15:33:21 Started rsync master |
| 26 | cannot delete non-empty directory: php-1.30.0-wmf.9/cache/l10n |
| 27 | cannot delete non-empty directory: php-1.30.0-wmf.9/cache/l10n |
| 28 | cannot delete non-empty directory: php-1.30.0-wmf.9/cache |
| 29 | cannot delete non-empty directory: php-1.30.0-wmf.9/cache |
| 30 | cannot delete non-empty directory: php-1.30.0-wmf.9 |
| 31 | cannot delete non-empty directory: php-1.30.0-wmf.7/cache/l10n |
| 32 | cannot delete non-empty directory: php-1.30.0-wmf.7/cache/l10n |
| 33 | cannot delete non-empty directory: php-1.30.0-wmf.7/cache |
| 34 | cannot delete non-empty directory: php-1.30.0-wmf.7/cache |
| 35 | cannot delete non-empty directory: php-1.30.0-wmf.7 |
| 36 | cannot delete non-empty directory: php-1.30.0-wmf.11/cache/l10n |
| 37 | cannot delete non-empty directory: php-1.30.0-wmf.11/cache/l10n |
| 38 | cannot delete non-empty directory: php-1.30.0-wmf.11/cache |
| 39 | cannot delete non-empty directory: php-1.30.0-wmf.11/cache |
| 40 | cannot delete non-empty directory: php-1.30.0-wmf.11 |
| 41 | cannot delete non-empty directory: php-1.30.0-wmf.10/cache/l10n |
| 42 | cannot delete non-empty directory: php-1.30.0-wmf.10/cache/l10n |
| 43 | cannot delete non-empty directory: php-1.30.0-wmf.10/cache |
| 44 | cannot delete non-empty directory: php-1.30.0-wmf.10/cache |
| 45 | cannot delete non-empty directory: php-1.30.0-wmf.10 |
| 46 | cannot delete non-empty directory: php-1.30.0-wmf.12/cache/l10n |
| 47 | cannot delete non-empty directory: php-1.30.0-wmf.13/cache/l10n |
| 48 | cannot delete non-empty directory: php-1.30.0-wmf.14/cache/l10n |
| 49 | 15:34:13 Finished rsync master (duration: 00m 51s) |
| 50 | 15:34:13 Started rebuild CDB staging files |
| 51 | 15:34:43 Failure processing (u'/srv/mediawiki-staging/php-1.30.0-wmf.16/cache/l10n', u'l10n_cache-hif-latn.cdb', True) |
| 52 | Traceback (most recent call last): |
| 53 | File "/usr/lib/python2.7/dist-packages/scap/tasks.py", line 477, in update_l10n_cdb_wrapper |
| 54 | return update_l10n_cdb(*args) |
| 55 | File "/usr/lib/python2.7/dist-packages/scap/utils.py", line 401, in context_wrapper |
| 56 | return func(*args, **kwargs) |
| 57 | File "/usr/lib/python2.7/dist-packages/scap/tasks.py", line 458, in update_l10n_cdb |
| 58 | raise IOError(errno.ENOENT, 'Failed to create CDB', tmp_cdb_path) |
| 59 | IOError: [Errno 2] Failed to create CDB: u'/srv/mediawiki-staging/php-1.30.0-wmf.16/cache/l10n/l10n_cache-hif-latn.cdb.tmp' |
| 60 | 15:34:43 Failure processing (u'/srv/mediawiki-staging/php-1.30.0-wmf.16/cache/l10n', u'l10n_cache-mrj.cdb', True) |
| 61 | Traceback (most recent call last): |
| 62 | File "/usr/lib/python2.7/dist-packages/scap/tasks.py", line 477, in update_l10n_cdb_wrapper |
| 63 | return update_l10n_cdb(*args) |
| 64 | File "/usr/lib/python2.7/dist-packages/scap/utils.py", line 401, in context_wrapper |
| 65 | return func(*args, **kwargs) |
| 66 | File "/usr/lib/python2.7/dist-packages/scap/tasks.py", line 458, in update_l10n_cdb |
| 67 | raise IOError(errno.ENOENT, 'Failed to create CDB', tmp_cdb_path) |
| 68 | IOError: [Errno 2] Failed to create CDB: u'/srv/mediawiki-staging/php-1.30.0-wmf.16/cache/l10n/l10n_cache-mrj.cdb.tmp' |
| 69 | 15:34:43 Failure processing (u'/srv/mediawiki-staging/php-1.30.0-wmf.16/cache/l10n', u'l10n_cache-din.cdb', True) |
| 70 | Traceback (most recent call last): |
| 71 | File "/usr/lib/python2.7/dist-packages/scap/tasks.py", line 477, in update_l10n_cdb_wrapper |
| 72 | return update_l10n_cdb(*args) |
| 73 | File "/usr/lib/python2.7/dist-packages/scap/utils.py", line 401, in context_wrapper |
| 74 | return func(*args, **kwargs) |
| 75 | File "/usr/lib/python2.7/dist-packages/scap/tasks.py", line 458, in update_l10n_cdb |
| 76 | raise IOError(errno.ENOENT, 'Failed to create CDB', tmp_cdb_path) |
| 77 | IOError: [Errno 2] Failed to create CDB: u'/srv/mediawiki-staging/php-1.30.0-wmf.16/cache/l10n/l10n_cache-din.cdb.tmp' |
| 78 | 15:34:43 Unhandled error: |
| 79 | Traceback (most recent call last): |
| 80 | File "/usr/lib/python2.7/dist-packages/scap/cli.py", line 308, in run |
| 81 | exit_status = app.main(app.extra_arguments) |
| 82 | File "/usr/lib/python2.7/dist-packages/scap/main.py", line 416, in main |
| 83 | cache_dir, use_cores, True, self.arguments.mute) |
| 84 | File "/usr/lib/python2.7/dist-packages/scap/utils.py", line 401, in context_wrapper |
| 85 | return func(*args, **kwargs) |
| 86 | File "/usr/lib/python2.7/dist-packages/scap/tasks.py", line 280, in merge_cdb_updates |
| 87 | itertools.repeat(trust_mtime))), 1): |
| 88 | File "/usr/lib/python2.7/multiprocessing/pool.py", line 659, in next |
| 89 | raise value |
| 90 | IOError: [Errno 2] Failed to create CDB: u'/srv/mediawiki-staging/php-1.30.0-wmf.16/cache/l10n/l10n_cache-mrj.cdb.tmp' |
| 91 | 15:34:43 cdb-rebuild failed: <IOError> [Errno 2] Failed to create CDB: u'/srv/mediawiki-staging/php-1.30.0-wmf.16/cache/l10n/l10n_cache-mrj.cdb.tmp' |
| 92 | 15:34:43 Finished rebuild CDB staging files (duration: 00m 29s) |
| 93 | 15:34:43 Unhandled error: |
| 94 | Traceback (most recent call last): |
| 95 | File "/usr/lib/python2.7/dist-packages/scap/cli.py", line 308, in run |
| 96 | exit_status = app.main(app.extra_arguments) |
| 97 | File "/usr/lib/python2.7/dist-packages/scap/main.py", line 548, in main |
| 98 | verbose=self.verbose |
| 99 | File "/usr/lib/python2.7/dist-packages/scap/utils.py", line 401, in context_wrapper |
| 100 | return func(*args, **kwargs) |
| 101 | File "/usr/lib/python2.7/dist-packages/scap/tasks.py", line 322, in sync_master |
| 102 | '--staging', '--verbose']) |
| 103 | File "/usr/lib/python2.7/subprocess.py", line 540, in check_call |
| 104 | raise CalledProcessError(retcode, cmd) |
| 105 | CalledProcessError: Command '['sudo', '-u', 'l10nupdate', '-n', '--', '/usr/bin/scap', 'cdb-rebuild', '--no-progress', '--staging', '--verbose']' returned non-zero exit status 70 |
| 106 | 15:34:43 pull-master failed: <CalledProcessError> Command '['sudo', '-u', 'l10nupdate', '-n', '--', '/usr/bin/scap', 'cdb-rebuild', '--no-progress', '--staging', '--verbose']' returned non-zero exit status 70 |
| 107 | |
| 108 | sync-masters: 100% (ok: 0; fail: 1; left: 0) |
| 109 | 15:34:43 1 masters had sync errors |
| 110 | 15:34:43 Finished sync-masters (duration: 01m 22s) |
| 111 | 15:34:43 Started sync-pull-masters |
| 112 | sync-pull-masters: 100% (ok: 1; fail: 0; left: 0) |
| 113 | 15:35:38 Finished sync-pull-masters (duration: 00m 54s) |
| 114 | 15:35:38 Started sync-check-canaries |
| 115 | ^C15:36:14 Finished sync-check-canaries (duration: 00m 36s) |
| 116 | 15:36:14 scap aborted: Prepare to enable RCFilters (WLFilters) on Watchlist (duration: 08m 42s) |