containers / containers/toolbox
toolbox: failed to start container fedora-toolbox-RELEASEVER
- Dominant language
- Go
- Stars
- 3.5k
- Forks
- 262
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 1
Description
**Describe the bug**
`toolbux --log-level debug enter` output:
```
DEBU[0000] Created OCI spec for container 2ce22b06eace2b0eb0f795b95f8f8a84c7e315c09ac4be2a5a703f0b468cd3ec at /home/fedora/.local/share/containers/storage/overlay-containers/2ce22b06eace2b0eb0f795b95f8f8a84c7e315c09ac4be2a5a703f0b468cd3ec/userdata/config.json
DEBU[0000] /usr/bin/conmon messages will be logged to syslog
DEBU[0000] running conmon: /usr/bin/conmon args="[--api-version 1 -c 2ce22b06eace2b0eb0f795b95f8f8a84c7e315c09ac4be2a5a703f0b468cd3ec -u 2ce22b06eace2b0eb0f795b95f8f8a84c7e315c09ac4be2a5a703f0b468cd3ec -r /usr/bin/crun -b /home/fedora/.local/share/containers/storage/overlay-containers/2ce22b06eace2b0eb0f795b95f8f8a84c7e315c09ac4be2a5a703f0b468cd3ec/userdata -p /run/user/1000/containers/overlay-containers/2ce22b06eace2b0eb0f795b95f8f8a84c7e315c09ac4be2a5a703f0b468cd3ec/userdata/pidfile -n fedora-toolbox-37 --exit-dir /run/user/1000/libpod/tmp/exits --full-attach -s -l journald --log-level debug --syslog --conmon-pidfile /run/user/1000/containers/overlay-containers/2ce22b06eace2b0eb0f795b95f8f8a84c7e315c09ac4be2a5a703f0b468cd3ec/userdata/conmon.pid --exit-command /usr/bin/podman --exit-command-arg --root --exit-command-arg /home/fedora/.local/share/containers/storage --exit-command-arg --runroot --exit-command-arg /run/user/1000/containers --exit-command-arg --log-level --exit-command-arg debug --exit-command-arg --cgroup-manager --exit-command-arg systemd --exit-command-arg --tmpdir --exit-command-arg /run/user/1000/libpod/tmp --exit-command-arg --network-config-dir --exit-command-arg --exit-command-arg --network-backend --exit-command-arg netavark --exit-command-arg --volumepath --exit-command-arg /home/fedora/.local/share/containers/storage/volumes --exit-command-arg --runtime --exit-command-arg crun --exit-command-arg --storage-driver --exit-command-arg overlay --exit-command-arg --events-backend --exit-command-arg journald --exit-command-arg --syslog --exit-command-arg container --exit-command-arg cleanup --exit-command-arg 2ce22b06eace2b0eb0f795b95f8f8a84c7e315c09ac4be2a5a703f0b468cd3ec]"
[conmon:d]: failed to write to /proc/self/oom_score_adj: Permission denied
DEBU[0000] Received: -1
DEBU[0000] Cleaning up container 2ce22b06eace2b0eb0f795b95f8f8a84c7e315c09ac4be2a5a703f0b468cd3ec
DEBU[0000] Network is already cleaned up, skipping...
DEBU[0000] Unmounted container "2ce22b06eace2b0eb0f795b95f8f8a84c7e315c09ac4be2a5a703f0b468cd3ec"
Error: OCI runtime error: unable to start container "2ce22b06eace2b0eb0f795b95f8f8a84c7e315c09ac4be2a5a703f0b468cd3ec": crun: sd-bus call: Unit libpod-2ce22b06eace2b0eb0f795b95f8f8a84c7e315c09ac4be2a5a703f0b468cd3ec.scope already exists.: File exists
```
**Steps how to reproduce the behaviour**
1. Run toolbox create command and create a box.
2. And run the box toolbox enter
**Expected behaviour**
toolbox running smoothly
**Actual behaviour**
toolbox: failed to start container fedora-toolbox-RELEASEVER
**Output of `toolbox --version` (v0.0.90+)**
toolbox version 0.0.99.3
**Toolbox package info (`rpm -q toolbox`)**
toolbox-0.0.99.3-7.fc37.x86_64
**Output of `podman version`**
```
Client: Podman Engine
Version: 4.2.0-rc3
API Version: 4.2.0-rc3
Go Version: go1.19
Built: Fri Aug 5 22:53:26 2022
OS/Arch: linux/amd64
```
**Podman package info (`rpm -q podman`)**
```
podman-gvproxy-4.2.0~rc3-2.fc37.x86_64
podman-plugins-4.2.0~rc3-2.fc37.x86_64
podman-4.2.0~rc3-2.fc37.x86_64
podman-compose-1.0.3-6.fc37.noarch
podman-docker-4.2.0~rc3-2.fc37.noarch
podman-tests-4.2.0~rc3-2.fc37.x86_64
podman-remote-4.2.0~rc3-2.fc37.x86_64
podman-tui-0.5.0-3.fc37.x86_64
```
**Info about your OS**
Fedora 37 Rawhide Prerelease
**Additional context**
If I run toolbox with `DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus` variable, the problem is solved
Contributor guide
Assessment
This issue has not been assessed yet.