Skip to content

Commit

Permalink
Merge pull request #13197 from giuseppe/doc-cannot-write-loginuid
Browse files Browse the repository at this point in the history
[CI:DOCS] troubleshooting: add doc for ssh into a container
  • Loading branch information
openshift-merge-robot authored Feb 10, 2022
2 parents 0144413 + a0b38c0 commit 6d2b54a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -919,3 +919,22 @@ After deleting a client VM on macOS via `podman machine stop` && `podman machine
### Solution

You will need to remove the hanging gv-proxy process bound to the port in question. For example, if the port mentioned in the error message is 127.0.0.1:7777, you can use the command `kill -9 $(lsof -i:7777)` in order to identify and remove the hanging process which prevents you from starting a new VM on that default port.

### 32) The sshd process fails to run inside of the container.

#### Symptom

The sshd process running inside the container fails with the error
"Error writing /proc/self/loginuid".

### Solution

If the `/proc/self/loginuid` file is already initialized then the
`CAP_AUDIT_CONTROL` capability is required to override it.

This happens when running Podman from a user session since the
`/proc/self/loginuid` file is already initialized. The solution is to
run Podman from a system service, either using the Podman service, and
then using podman -remote to start the container or simply by running
something like `systemd-run podman run ...`. In this case the
container will only need `CAP_AUDIT_WRITE`.

0 comments on commit 6d2b54a

Please sign in to comment.