Closed Bug 1839369 Opened 2 years ago Closed 2 years ago

Perma PermissionError: [Errno 13] Permission denied: '/builds/worker/.mozbuild/srcdirs'

Categories

(Firefox Build System :: Task Configuration, defect, P1)

defect

Tracking

(firefox-esr102 unaffected, firefox-esr115 unaffected, firefox114 unaffected, firefox115 unaffected, firefox116 fixed)

RESOLVED FIXED
116 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox-esr115 --- unaffected
firefox114 --- unaffected
firefox115 --- unaffected
firefox116 --- fixed

People

(Reporter: intermittent-bug-filer, Unassigned)

References

(Regression)

Details

(Keywords: intermittent-failure, regression)

Filed by: nerli [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=419958962&repo=mozilla-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Jf9pEwhTT_ucqG3x-XOjBw/runs/0/artifacts/public/logs/live_backing.log


[task 2023-06-20T12:10:27.743Z] Error running mach:
[task 2023-06-20T12:10:27.743Z] 
[task 2023-06-20T12:10:27.743Z]     mach l10n-cross-channel -o /builds/worker/artifacts/outgoing.diff --attempts 5 --ssh-secret project/releng/gecko/build/level-3/l10n-cross-channel-quarantine-ssh prep create push clean
[task 2023-06-20T12:10:27.743Z] 
[task 2023-06-20T12:10:27.743Z] The error occurred in code that was called by the mach command. This is either
[task 2023-06-20T12:10:27.743Z] a bug in the called code itself or in the way that mach is calling it.
[task 2023-06-20T12:10:27.743Z] You can invoke ``./mach busted`` to check if this issue is already on file. If it
[task 2023-06-20T12:10:27.743Z] isn't, please use ``./mach busted file l10n-cross-channel`` to report it. If ``./mach busted`` is
[task 2023-06-20T12:10:27.743Z] misbehaving, you can also inspect the dependencies of bug 1543241.
[task 2023-06-20T12:10:27.743Z] 
[task 2023-06-20T12:10:27.743Z] If filing a bug, please include the full output of mach, including this error
[task 2023-06-20T12:10:27.743Z] message.
[task 2023-06-20T12:10:27.743Z] 
[task 2023-06-20T12:10:27.743Z] The details of the failure are as follows:
[task 2023-06-20T12:10:27.743Z] 
[task 2023-06-20T12:10:27.743Z] PermissionError: [Errno 13] Permission denied: '/builds/worker/.mozbuild/srcdirs'
[task 2023-06-20T12:10:27.743Z] 
[task 2023-06-20T12:10:27.743Z]   File "/builds/worker/checkouts/gecko/tools/compare-locales/mach_commands.py", line 171, in cross_channel
[task 2023-06-20T12:10:27.743Z]     command_context.activate_virtualenv()
[task 2023-06-20T12:10:27.743Z]   File "/builds/worker/checkouts/gecko/python/mozbuild/mozbuild/base.py", line 833, in activate_virtualenv
[task 2023-06-20T12:10:27.743Z]     self.virtualenv_manager.activate()
[task 2023-06-20T12:10:27.744Z]   File "/builds/worker/checkouts/gecko/python/mozbuild/mozbuild/base.py", line 266, in virtualenv_manager
[task 2023-06-20T12:10:27.744Z]     get_virtualenv_base_dir(self.topsrcdir),
[task 2023-06-20T12:10:27.744Z]   File "/builds/worker/checkouts/gecko/python/mach/mach/util.py", line 90, in get_virtualenv_base_dir
[task 2023-06-20T12:10:27.744Z]     get_state_dir(specific_to_topsrcdir=True, topsrcdir=topsrcdir),
[task 2023-06-20T12:10:27.744Z]   File "/builds/worker/checkouts/gecko/python/mach/mach/util.py", line 79, in get_state_dir
[task 2023-06-20T12:10:27.744Z]     state_dir.mkdir(mode=0o770, parents=True)
[task 2023-06-20T12:10:27.744Z]   File "/usr/lib/python3.9/pathlib.py", line 1316, in mkdir
[task 2023-06-20T12:10:27.744Z]     self.parent.mkdir(parents=True, exist_ok=True)
[task 2023-06-20T12:10:27.744Z]   File "/usr/lib/python3.9/pathlib.py", line 1312, in mkdir
[task 2023-06-20T12:10:27.744Z]     self._accessor.mkdir(self, mode)
[taskcluster 2023-06-20 12:10:28.207Z] === Task Finished ===
[taskcluster 2023-06-20 12:10:28.213Z] Artifact "public/build" not found at "/builds/worker/artifacts": (HTTP code 404) no such container - Could not find the file /builds/worker/artifacts in container 5cf21cf34b044c3449fd682160fdbf7a184eeaa4e7a9bb6b5e60bb776790cd4f 
[taskcluster 2023-06-20 12:10:28.236Z] Unsuccessful task run with exit code: 1 completed in 15.723 seconds
Summary: Intermittent PermissionError: [Errno 13] Permission denied: '/builds/worker/.mozbuild/srcdirs' → Perma PermissionError: [Errno 13] Permission denied: '/builds/worker/.mozbuild/srcdirs'

This started to appear with merge.
Could this be caused by the changes in https://bugzilla.mozilla.org/show_bug.cgi?id=1839081?

Flags: needinfo?(mstange.moz)

No, it couldn't.

Flags: needinfo?(mstange.moz)
No longer regressed by: 1839081
Flags: needinfo?(ahochheiden)
Regressed by: 1838763

Set release status flags based on info from the regressing bug 1838763

Severity: S4 → S2
Priority: P5 → P1

Fixed by backout of bug 1838763.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
Flags: needinfo?(ahochheiden)

Set release status flags based on info from the regressing bug 1838763

You need to log in before you can comment on or make changes to this bug.