on system-(re)boot podman locks while starting a pod on a autogenerated systemdfile on F31 #5377
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
/kind bug
Description
i created two containers, that are running under two separate user accounts. After successful podman-build and podman podman-run both container are running. Both container are currently build on FedoraF31, the host is also running a F31-server edition. The hardware (testbed) is a cheap J4205 server with 4 raid disks, the OS is configured to load updates by itself and perform reboots, if needed. The container:
simple-app: is running user-account, that can be accessed from outside via
ssh -Y user@chasmash -p 9222 ./startShellJavaSwingapp.sh
. So i can access this desktop-application from any desktop. In an lan this application is running fast enough.web-application, more complex: this container is running a perl/php fastcgi-apache web-applicaiton, that needs access to a postgres-database, that is running on the host. The podmanan-Dockerfile allows also to generate an image including its own database for development.
I can build and run both apps on the server. From time to time the server needs a reboot, so i have to integrate the podman-start/stop with systemd. By calling:
does exactly what i want for both application. Great Job!
But when a reboot takes place, something strange happens. It seems, that the podman-start is blocking for any reason, because when i login, the podman tells (kivi_p05 is the desired container) me:
When you start
kiki_p05
see above, the command simply blocks and will not return. Typing a control-c breaks the command. From time-to-time, when you issue to podman command it again, it succeeds.Well systemctl will give you no more information, because it runs at the end a podman, but returns after some time, when the issued podman is still running (and maybe blocking other calls)
Anyway i also saw this behaviour before, and the simple application with the java-swing application inside has the same problem. It can not be started after a system reboot.
An idea:
Maybe you expect a logged in user and each account. When podman is called by
systemctl --user
there is no login on the console or via sshd. I found out, when i login on the account of the simply application from the root account by callingsu - simple
, then podman fails to run. A real login over ssh or terminal does something else, thatsystemctl --user
maybe forget to do (just an idea).Steps to reproduce the issue:
create a technical user on a server
inside this technical user do a
podman build
,podman run
and create a systemd-filepodman generate systemd --name kiki_p05
. Copy the output into a file under~/.config/systemd/user/
reload and enable the new serviceperform a reboot an you gonny miss your running container
Describe the results you received:
a container, that is not running and has problems to get started
Describe the results you expected:
after a host reboot a runnning container
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Host is running a Fedora F31 server edition (with auto update)
The text was updated successfully, but these errors were encountered: