Hi all,

I've been having issues with systemd and Podman. Especially when the service is restarting.

Starting it initially works without problem, though when restarting I run into one of two issues.
--reboot--
Jul 08 10:00:49 KeyraGuest1 systemd[1]: Started Bitwarden.
Jul 08 10:00:59 KeyraGuest1 podman[536]: Error: could not get runtime: error creating tmpdir /run/user/1000/libpod/tmp: mkdir /run/user/1000: permission denied
Jul 08 10:00:59 KeyraGuest1 systemd[1]: bitwarden.service: Main process exited, code=exited, status=125/n/a
Jul 08 10:00:59 KeyraGuest1 systemd[1]: bitwarden.service: Failed with result 'exit-code'.
Jul 08 10:01:29 KeyraGuest1 systemd[1]: bitwarden.service: Service RestartSec=30s expired, scheduling restart.
Jul 08 10:01:29 KeyraGuest1 systemd[1]: bitwarden.service: Scheduled restart job, restart counter is at 1.
Jul 08 10:01:29 KeyraGuest1 systemd[1]: Stopped Bitwarden.

And:
Jul 08 10:01:29 KeyraGuest1 systemd[1]: Started Bitwarden.
Jul 08 10:01:39 KeyraGuest1 podman[914]: 2019-07-08 10:01:39.067436802 +0000 UTC m=+1.076662432 system refresh
Jul 08 10:01:53 KeyraGuest1 podman[894]: Error: error creating container storage: the container name "bitwarden" is already in use by "34fb34844382c9118be3d377e9f41de6f21485329c824cdd0da109304a2506f3". You have to remove that container to be able to reuse that name.: that name is already in use
Jul 08 10:01:53 KeyraGuest1 systemd[1]: bitwarden.service: Main process exited, code=exited, status=125/n/a
Jul 08 10:01:53 KeyraGuest1 systemd[1]: bitwarden.service: Failed with result 'exit-code'.
Jul 08 10:02:23 KeyraGuest1 systemd[1]: bitwarden.service: Service RestartSec=30s expired, scheduling restart.
Jul 08 10:02:23 KeyraGuest1 systemd[1]: bitwarden.service: Scheduled restart job, restart counter is at 2.
Jul 08 10:02:23 KeyraGuest1 systemd[1]: Stopped Bitwarden.

I've attached the bitwarden_service, which runs podman with --rm, so it should automatically remove the pod from before. With the first issue with permission denied, I'm not sure what's causing that either.

Any help would be appreciated :)

Thanks,

Eric Gustavsson

He / Him

Associate Software Engineer

Red Hat

IM: Telegram: @SpyTec