Perma [tier 2] FileNotFoundError: [Errno 2] No such file or directory: '/run/user/1000/4118' | PermissionError: [Errno 13] Permission denied: '/run/user/1000' | single tracking bug
Categories
(Firefox Build System :: Third Party Packaging, defect, P5)
Tracking
(firefox-esr128 unaffected, firefox-esr140 fixed, firefox142 unaffected, firefox143 unaffected, firefox144 fixed)
| Tracking | Status | |
|---|---|---|
| firefox-esr128 | --- | unaffected |
| firefox-esr140 | --- | fixed |
| firefox142 | --- | unaffected |
| firefox143 | --- | unaffected |
| firefox144 | --- | fixed |
People
(Reporter: intermittent-bug-filer, Assigned: gerard-majax)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: intermittent-failure, regression)
Attachments
(1 file)
Filed by: chorotan [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=523533618&repo=autoland&task=VPF9s4N8RcOVhKxww8yhvg.0
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/VPF9s4N8RcOVhKxww8yhvg/runs/0/artifacts/public/logs/live_backing.log
[task 2025-08-22T04:07:31.564+00:00] Creating snap package...
[task 2025-08-22T04:07:43.375+00:00] Packed firefox_144.0a1_native.snap
[task 2025-08-22T04:07:43.376+00:00] snapcraft internal error: PermissionError(13, 'Permission denied')
[task 2025-08-22T04:07:43.379+00:00] Full execution log: '/builds/worker/.local/state/snapcraft/log/snapcraft-20250822-034140.665159.log'
[task 2025-08-22T04:07:43.382+00:00] Traceback (most recent call last):
[task 2025-08-22T04:07:43.382+00:00] File "/snap/snapcraft/current/usr/lib/python3.12/pathlib.py", line 1313, in mkdir
[task 2025-08-22T04:07:43.382+00:00] os.mkdir(self, mode)
[task 2025-08-22T04:07:43.382+00:00] FileNotFoundError: [Errno 2] No such file or directory: '/run/user/1000/4118'
[task 2025-08-22T04:07:43.382+00:00]
[task 2025-08-22T04:07:43.382+00:00] During handling of the above exception, another exception occurred:
[task 2025-08-22T04:07:43.382+00:00]
[task 2025-08-22T04:07:43.382+00:00] Traceback (most recent call last):
[task 2025-08-22T04:07:43.382+00:00] File "/snap/snapcraft/current/lib/python3.12/site-packages/craft_application/application.py", line 623, in run
[task 2025-08-22T04:07:43.382+00:00] return_code = self._run_inner()
[task 2025-08-22T04:07:43.382+00:00] ^^^^^^^^^^^^^^^^^
[task 2025-08-22T04:07:43.382+00:00] File "/snap/snapcraft/current/lib/python3.12/site-packages/snapcraft/application.py", line 184, in _run_inner
[task 2025-08-22T04:07:43.382+00:00] return_code = super()._run_inner()
[task 2025-08-22T04:07:43.382+00:00] ^^^^^^^^^^^^^^^^^^^^
[task 2025-08-22T04:07:43.382+00:00] File "/snap/snapcraft/current/lib/python3.12/site-packages/craft_application/application.py", line 602, in _run_inner
[task 2025-08-22T04:07:43.382+00:00] return_code = dispatcher.run() or os.EX_OK
[task 2025-08-22T04:07:43.382+00:00] ^^^^^^^^^^^^^^^^
[task 2025-08-22T04:07:43.382+00:00] File "/snap/snapcraft/current/lib/python3.12/site-packages/craft_cli/dispatcher.py", line 564, in run
[task 2025-08-22T04:07:43.382+00:00] return self._loaded_command.run(self._parsed_command_args)
[task 2025-08-22T04:07:43.383+00:00] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2025-08-22T04:07:43.383+00:00] File "/snap/snapcraft/current/lib/python3.12/site-packages/craft_application/commands/base.py", line 200, in run
[task 2025-08-22T04:07:43.383+00:00] result = self._run(parsed_args, **kwargs) or result
[task 2025-08-22T04:07:43.383+00:00] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2025-08-22T04:07:43.383+00:00] File "/snap/snapcraft/current/lib/python3.12/site-packages/snapcraft/commands/lifecycle.py", line 74, in _run
[task 2025-08-22T04:07:43.383+00:00] super()._run(parsed_args)
[task 2025-08-22T04:07:43.383+00:00] File "/snap/snapcraft/current/lib/python3.12/site-packages/craft_application/commands/lifecycle.py", line 576, in _run
[task 2025-08-22T04:07:43.383+00:00] return self._run_real(parsed_args=parsed_args, step_name=step_name)
[task 2025-08-22T04:07:43.383+00:00] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2025-08-22T04:07:43.383+00:00] File "/snap/snapcraft/current/lib/python3.12/site-packages/craft_application/commands/lifecycle.py", line 442, in _run_real
[task 2025-08-22T04:07:43.383+00:00] self._services.package.write_state(artifact=artifact, resources=resources)
[task 2025-08-22T04:07:43.383+00:00] File "/snap/snapcraft/current/lib/python3.12/site-packages/craft_application/services/package.py", line 64, in write_state
[task 2025-08-22T04:07:43.383+00:00] state_service = self._services.get("state")
[task 2025-08-22T04:07:43.383+00:00] ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2025-08-22T04:07:43.383+00:00] File "/snap/snapcraft/current/lib/python3.12/site-packages/craft_application/services/service_factory.py", line 308, in get
[task 2025-08-22T04:07:43.383+00:00] instance = cls(app=self.app, services=self, **kwargs)
[task 2025-08-22T04:07:43.383+00:00] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2025-08-22T04:07:43.383+00:00] File "/snap/snapcraft/current/lib/python3.12/site-packages/craft_application/services/state.py", line 73, in __init__
[task 2025-08-22T04:07:43.383+00:00] self.__state_dir = self._get_state_dir()
[task 2025-08-22T04:07:43.383+00:00] ^^^^^^^^^^^^^^^^^^^^^
[task 2025-08-22T04:07:43.383+00:00] File "/snap/snapcraft/current/lib/python3.12/site-packages/craft_application/services/state.py", line 298, in _get_state_dir
[task 2025-08-22T04:07:43.383+00:00] state_dir = platformdirs.user_runtime_path(
[task 2025-08-22T04:07:43.383+00:00] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2025-08-22T04:07:43.383+00:00] File "/snap/snapcraft/current/lib/python3.12/site-packages/platformdirs/__init__.py", line 566, in user_runtime_path
[task 2025-08-22T04:07:43.383+00:00] ).user_runtime_path
[task 2025-08-22T04:07:43.383+00:00] ^^^^^^^^^^^^^^^^^
[task 2025-08-22T04:07:43.383+00:00] File "/snap/snapcraft/current/lib/python3.12/site-packages/platformdirs/api.py", line 254, in user_runtime_path
[task 2025-08-22T04:07:43.383+00:00] return Path(self.user_runtime_dir)
[task 2025-08-22T04:07:43.383+00:00] ^^^^^^^^^^^^^^^^^^^^^
[task 2025-08-22T04:07:43.383+00:00] File "/snap/snapcraft/current/lib/python3.12/site-packages/platformdirs/unix.py", line 185, in user_runtime_dir
[task 2025-08-22T04:07:43.383+00:00] return self._append_app_name_and_version(path)
[task 2025-08-22T04:07:43.383+00:00] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2025-08-22T04:07:43.383+00:00] File "/snap/snapcraft/current/lib/python3.12/site-packages/platformdirs/api.py", line 88, in _append_app_name_and_version
[task 2025-08-22T04:07:43.383+00:00] self._optionally_create_directory(path)
[task 2025-08-22T04:07:43.383+00:00] File "/snap/snapcraft/current/lib/python3.12/site-packages/platformdirs/api.py", line 93, in _optionally_create_directory
[task 2025-08-22T04:07:43.383+00:00] Path(path).mkdir(parents=True, exist_ok=True)
[task 2025-08-22T04:07:43.383+00:00] File "/snap/snapcraft/current/usr/lib/python3.12/pathlib.py", line 1317, in mkdir
[task 2025-08-22T04:07:43.384+00:00] self.parent.mkdir(parents=True, exist_ok=True)
[task 2025-08-22T04:07:43.384+00:00] File "/snap/snapcraft/current/usr/lib/python3.12/pathlib.py", line 1313, in mkdir
[task 2025-08-22T04:07:43.384+00:00] os.mkdir(self, mode)
[task 2025-08-22T04:07:43.384+00:00] PermissionError: [Errno 13] Permission denied: '/run/user/1000'
[task 2025-08-22T04:07:43.384+00:00]
[task 2025-08-22T04:07:43.384+00:00] During handling of the above exception, another exception occurred:
[task 2025-08-22T04:07:43.384+00:00]
[task 2025-08-22T04:07:43.384+00:00] Traceback (most recent call last):
[task 2025-08-22T04:07:43.384+00:00] File "/snap/snapcraft/current/bin/snapcraft", line 7, in <module>
[task 2025-08-22T04:07:43.384+00:00] sys.exit(main())
[task 2025-08-22T04:07:43.384+00:00] ^^^^^^
[task 2025-08-22T04:07:43.384+00:00] File "/snap/snapcraft/current/lib/python3.12/site-packages/snapcraft/application.py", line 473, in main
[task 2025-08-22T04:07:43.384+00:00] return app.run()
[task 2025-08-22T04:07:43.384+00:00] ^^^^^^^^^
[task 2025-08-22T04:07:43.384+00:00] File "/snap/snapcraft/current/lib/python3.12/site-packages/craft_application/application.py", line 684, in run
[task 2025-08-22T04:07:43.384+00:00] if self.services.get("config").get("debug"):
[task 2025-08-22T04:07:43.384+00:00] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2025-08-22T04:07:43.384+00:00] File "/snap/snapcraft/current/lib/python3.12/site-packages/craft_application/services/config.py", line 189, in get
[task 2025-08-22T04:07:43.384+00:00] value = handler.get_raw(item)
[task 2025-08-22T04:07:43.384+00:00] ^^^^^^^^^^^^^^^^^^^^^
[task 2025-08-22T04:07:43.384+00:00] File "/snap/snapcraft/current/lib/python3.12/site-packages/craft_application/services/config.py", line 116, in get_raw
[task 2025-08-22T04:07:43.384+00:00] return self._snap.get(snap_item)
[task 2025-08-22T04:07:43.384+00:00] ^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2025-08-22T04:07:43.384+00:00] File "/snap/snapcraft/current/lib/python3.12/site-packages/snaphelpers/_conf.py", line 125, in get
[task 2025-08-22T04:07:43.384+00:00] options = self.get_options(top_key)
[task 2025-08-22T04:07:43.384+00:00] ^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2025-08-22T04:07:43.384+00:00] File "/snap/snapcraft/current/lib/python3.12/site-packages/snaphelpers/_conf.py", line 114, in get_options
[task 2025-08-22T04:07:43.384+00:00] options.fetch()
[task 2025-08-22T04:07:43.384+00:00] File "/snap/snapcraft/current/lib/python3.12/site-packages/snaphelpers/_conf.py", line 86, in fetch
[task 2025-08-22T04:07:43.384+00:00] self._config = self._snapctl.config_get(*self._keys)
[task 2025-08-22T04:07:43.384+00:00] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2025-08-22T04:07:43.384+00:00] File "/snap/snapcraft/current/lib/python3.12/site-packages/snaphelpers/_ctl.py", line 147, in config_get
[task 2025-08-22T04:07:43.384+00:00] conf = json.loads(self.run("get", "-d", *keys))
[task 2025-08-22T04:07:43.384+00:00] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2025-08-22T04:07:43.384+00:00] File "/snap/snapcraft/current/lib/python3.12/site-packages/snaphelpers/_ctl.py", line 271, in run
[task 2025-08-22T04:07:43.384+00:00] raise SnapCtlError(process)
[task 2025-08-22T04:07:43.384+00:00] snaphelpers._ctl.SnapCtlError: Call to snapctl failed with error 1: error: cannot communicate with server: Post "http://localhost/v2/snapctl": dial unix /run/snapd-snap.socket: connect: no such file or directory
[task 2025-08-22T04:07:43.384+00:00]
[taskcluster 2025-08-22 04:07:55.839Z] === Task Finished ===
[taskcluster 2025-08-22 04:07:56.759Z] Unsuccessful task run with exit code: 1 completed in 1868.352 seconds
Updated•5 months ago
|
Comment 2•5 months ago
|
||
Fixed by backout: https://hg.mozilla.org/integration/autoland/rev/617dd14051890531fe6105fb631a8091705d7eb1
| Assignee | ||
Comment 3•5 months ago
|
||
I'll try to look into that, but I'm like glandium, I dont think it's related to zstandard itself but rather the new snapcraft version. Maybe we need /run/user/1000 in the docker now? I'll try and see if I can make something.
| Assignee | ||
Comment 4•5 months ago
|
||
The issue is still here ...
| Assignee | ||
Comment 5•5 months ago
|
||
Backout link does not show any snap run: https://treeherder.mozilla.org/jobs?repo=autoland&revision=011f57d0e00cfa0deebeec9522ab92bc1c172941
| Assignee | ||
Comment 6•5 months ago
|
||
Comment 7•5 months ago
|
||
| Assignee | ||
Comment 8•5 months ago
|
||
(In reply to Cristina Horotan [:chorotan] from comment #7)
again, that's just luck because it reverted to the previous docker image where snapcraft is still 8.10.2, but any changes triggering a rebuild of docker image would fail again
| Assignee | ||
Comment 9•5 months ago
|
||
Updated•5 months ago
|
| Assignee | ||
Comment 10•5 months ago
|
||
green with this change: https://treeherder.mozilla.org/jobs?repo=try&revision=36f1f15d612d83e8540922508f6b4f46ec910bd2
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Assignee | ||
Comment 13•5 months ago
|
||
Confirmed by snapcraft maintainers this is an expected change and the proper fix is indeed having a directory where the state can be written. We can fix like that or they suggest we setup CRAFT_STATE_DIR=...
Comment 14•5 months ago
|
||
Comment 15•5 months ago
|
||
Comment 16•5 months ago
|
||
| Assignee | ||
Comment 17•5 months ago
|
||
(In reply to Cristina Horotan [:chorotan] from comment #16)
Backed out for causing snap bustages
It makes no sense, try was green a few days ago ...
Comment 18•5 months ago
|
||
(In reply to :gerard-majax from comment #17)
It makes no sense, try was green a few days ago ...
I've seen it happen today with my trys for bug 1984380. Maybe I should expand bug 1984380 to make the snap docker images use a snapshot too.
| Assignee | ||
Comment 19•5 months ago
|
||
(In reply to Mike Hommey [:glandium] from comment #18)
(In reply to :gerard-majax from comment #17)
It makes no sense, try was green a few days ago ...
I've seen it happen today with my trys for bug 1984380. Maybe I should expand bug 1984380 to make the snap docker images use a snapshot too.
You only change Ubuntu 24 image, here it is failing also on 22 ... ?
| Assignee | ||
Comment 20•5 months ago
|
||
I worry else something changed somewhere and I'm going to loose my day debugging that ...
| Assignee | ||
Comment 21•5 months ago
|
||
Someone else will have to take care of a proper fix, i've already spent too much time on that. Followup is bug 1985494
Comment 22•5 months ago
|
||
Comment 23•5 months ago
|
||
| bugherder | ||
Comment 24•5 months ago
|
||
Set release status flags based on info from the regressing bug 1912605
Updated•2 months ago
|
Comment 25•2 months ago
|
||
| uplift | ||
Description
•