Skip to content

Commit 0118b31

Browse files
author
qount25
committed
Problem: podman error on SOME freshly installed systems when running the first build
Solution: adding a documentation md file on how to solve it by followin a few simple steps
1 parent 2ae1b01 commit 0118b31

File tree

2 files changed

+45
-2
lines changed

2 files changed

+45
-2
lines changed

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
/.yardoc
33
/_yardoc/
44
/coverage/
5-
/doc/
65
/pkg/
76
/spec/reports/
87
/tmp/
98
.idea
10-
Gemfile.lock
9+
Gemfile.lock

doc/podman.md

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
Known podman issues
2+
===================
3+
4+
"Unable to start container" error
5+
---------------------------------
6+
When you first build a package, podman downloads the base image and attempts
7+
to create a local image with correct version PostgreSQL installed into it.
8+
However on some systems, running podman may initially result in the following
9+
error:
10+
11+
```
12+
Error: unable to start container "[CONTAINER_ID]": container create failed (no logs from conmon): conmon bytes "": readObjectStart: expect { or n, but found , error found in #0 byte of ...||..., bigger context ...||...
13+
```
14+
15+
To fix this issue the following steps need to be performed:
16+
17+
1. Wipe all podman runtime and configuration:
18+
19+
pkill -9 -f 'conmon|podman'
20+
rm -rf ~/.local/share/containers/
21+
rm -rf ~/.config/containers/
22+
rm -rf /run/user/$(id -u)/libpod/
23+
podman system reset --force
24+
25+
2. Reinstall podman and its components:
26+
27+
sudo apt reinstall podman conmon runc crun
28+
29+
3. Create storage settings conf file:
30+
31+
mkdir -p ~/.config/containers/
32+
touch ~/.config/containers/storage.conf
33+
34+
# Add the following lines to the newly
35+
# created ~/.config/containers/storage.conf:
36+
#
37+
[storage]
38+
driver = "overlay"
39+
graphroot = "/home/$USER/.local/share/containers/storage"
40+
runroot = "/run/user/$(id -u)/containers"
41+
42+
4. Restart the service (if applicable):
43+
44+
service podman restart

0 commit comments

Comments
 (0)