Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upcase-podman@demo.service does not work #1

Open
eriksjolund opened this issue Mar 20, 2022 · 2 comments
Open

upcase-podman@demo.service does not work #1

eriksjolund opened this issue Mar 20, 2022 · 2 comments

Comments

@eriksjolund
Copy link
Owner

eriksjolund commented Mar 20, 2022

  1. Run the commands

    podman build -t upcase .
    cp -r upcase-podman*  ~/.config/systemd/user
    systemctl --user daemon-reload
    systemctl --user start upcase-podman@demo.socket
    
  2. Try out the service

    $ socat readline tcp4:127.0.0.1:3011
    aa
    AA
    bbb
    BBB
    $
    

See log log.txt from

journalctl -xe --user --no-pager  -u upcase-podman@demo.service  

@eriksjolund
Copy link
Owner Author

It still fails, but it looks a bit more promising when replacing --sdnotify=conmon with --sdnotify=container

$ grep with_fds /tmp/log.txt 
Mar 20 15:02:35 asus upcase-demo[127287]: sd_pid_notify_with_fds() returned  0
$ grep with_fds /tmp/log2.txt 
Mar 20 16:50:50 asus upcase-demo[130999]: sd_pid_notify_with_fds() returned  1
$ 

log2.txt

@eriksjolund
Copy link
Owner Author

I upgraded to Podman 4.0.2

$ rpm -q podman
podman-4.0.2-5.fc35.x86_64

and ran the test once again.

$ socat readline tcp4:127.0.0.1:3011
aaa
bbb
AAA
BBB
ccc
CCC
$ 

log3.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant