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

Sessions wouldn't terminate after logout in Web-UI #1773

Open
wy580477 opened this issue Jun 28, 2024 · 1 comment
Open

Sessions wouldn't terminate after logout in Web-UI #1773

wy580477 opened this issue Jun 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@wy580477
Copy link

wy580477 commented Jun 28, 2024

Cockpit version: 318-4 from debian testing
Cockpit-podman version: 89-4 from debian testing
Podman version: 4.9.4+ds1-1 from debian testing
OS: Debian 12 bookworm stable

After I exit Cockpit, a Cockpit session does not terminate. Each time I log in and open the Cockpit Podman page, an additional session is created, and they keep accumulating.

image

image

Steps to reproduce

  1. Login into cockpit webui
  2. Enter cockpit-podman page
  3. Logout cockpit webui
  4. Then there is another redundant Cockpit session.

Journald log:
Jun 28 20:24:04 debian-home systemd[1]: Starting cockpit-ws-user.service - Dynamic user for cockpit-ws...
Jun 28 20:24:04 debian-home systemd[1]: Finished cockpit-ws-user.service - Dynamic user for cockpit-ws.
Jun 28 20:24:04 debian-home systemd[1]: Starting cockpit-wsinstance-http.socket - Socket for Cockpit Web Service http instance...
Jun 28 20:24:04 debian-home systemd[1]: Starting cockpit-wsinstance-https-factory.socket - Socket for Cockpit Web Service https instance factory...
Jun 28 20:24:04 debian-home systemd[1]: Listening on cockpit-wsinstance-http.socket - Socket for Cockpit Web Service http instance.
Jun 28 20:24:04 debian-home systemd[1]: Listening on cockpit-wsinstance-https-factory.socket - Socket for Cockpit Web Service https instance factory.
Jun 28 20:24:04 debian-home systemd[1]: Starting cockpit.service - Cockpit Web Service...
Jun 28 20:24:04 debian-home systemd[1]: Started cockpit.service - Cockpit Web Service.
Jun 28 20:24:04 debian-home systemd[1]: Started cockpit-wsinstance-http.service - Cockpit Web Service http instance.
Jun 28 20:24:05 debian-home cockpit-session[366912]: pam_ssh_add: Identity added: /home/debian/.ssh/id_rsa (OpenWRT)
Jun 28 20:24:05 debian-home cockpit-session[366912]: pam_unix(cockpit:session): session opened for user debian(uid=1000) by (uid=0)
Jun 28 20:24:05 debian-home systemd-logind[630]: New session 55 of user debian.
Jun 28 20:24:05 debian-home systemd[1]: Started session-55.scope - Session 55 of User debian.
Jun 28 20:24:05 debian-home cockpit-session[366912]: pam_env(cockpit:session): deprecated reading of user environment enabled
Jun 28 20:24:06 debian-home sudo[366922]: debian : PWD=/ ; USER=root ; COMMAND=/usr/bin/cockpit-bridge --privileged
Jun 28 20:24:06 debian-home sudo[366922]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Jun 28 20:24:06 debian-home dbus-daemon[617]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.572' (uid=1000 pid=366920 comm="/usr/bin/python3 /usr/bin/cockpit-bridge")
Jun 28 20:24:06 debian-home systemd[1]: Starting systemd-hostnamed.service - Hostname Service...
Jun 28 20:24:07 debian-home dbus-daemon[617]: [system] Successfully activated service 'org.freedesktop.hostname1'
Jun 28 20:24:07 debian-home systemd[1]: Started systemd-hostnamed.service - Hostname Service.
Jun 28 20:24:07 debian-home dbus-daemon[617]: [system] Activating via systemd: service name='org.freedesktop.timedate1' unit='dbus-org.freedesktop.timedate1.service' requested by ':1.572' (uid=1000 pid=366920 comm="/usr/bin/python3 /usr/bin/cockpit-bridge")
Jun 28 20:24:07 debian-home systemd[1]: Starting systemd-timedated.service - Time & Date Service...
Jun 28 20:24:08 debian-home systemd[1]: Starting podman.service - Podman API Service...
Jun 28 20:24:08 debian-home systemd[1]: Started podman.service - Podman API Service.
Jun 28 20:24:08 debian-home dbus-daemon[617]: [system] Activating via systemd: service name='org.freedesktop.PackageKit' unit='packagekit.service' requested by ':1.574' (uid=0 pid=366923 comm="/usr/bin/python3 /usr/bin/cockpit-bridge --privile")
Jun 28 20:24:08 debian-home systemd[1]: Starting packagekit.service - PackageKit Daemon...
Jun 28 20:24:08 debian-home PackageKit[366961]: daemon start
Jun 28 20:24:08 debian-home dbus-daemon[617]: [system] Successfully activated service 'org.freedesktop.timedate1'
Jun 28 20:24:08 debian-home systemd[1]: Started systemd-timedated.service - Time & Date Service.
Jun 28 20:24:08 debian-home podman[366957]: time="2024-06-28T20:24:08+08:00" level=info msg="/usr/bin/podman filtering at log level info"
Jun 28 20:24:08 debian-home podman[366957]: time="2024-06-28T20:24:08+08:00" level=info msg="Using boltdb as database backend"
Jun 28 20:24:08 debian-home podman[366957]: time="2024-06-28T20:24:08+08:00" level=info msg="Setting parallel job count to 13"
Jun 28 20:24:08 debian-home podman[366957]: time="2024-06-28T20:24:08+08:00" level=info msg="Using systemd socket activation to determine API endpoint"
Jun 28 20:24:08 debian-home podman[366957]: time="2024-06-28T20:24:08+08:00" level=info msg="API service listening on "/run/podman/podman.sock". URI: "/run/podman/podman.sock""
Jun 28 20:24:08 debian-home dbus-daemon[617]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Jun 28 20:24:08 debian-home systemd[1]: Started packagekit.service - PackageKit Daemon.
Jun 28 20:24:10 debian-home podman[357492]: @ - - [28/Jun/2024:20:24:08 +0800] "GET /v1.12/libpod/info? HTTP/1.1" 200 3541 "" ""
Jun 28 20:24:10 debian-home podman[357492]: @ - - [28/Jun/2024:20:24:10 +0800] "GET /v1.12/libpod/pods/json? HTTP/1.1" 200 3 "" ""
Jun 28 20:24:10 debian-home podman[357492]: @ - - [28/Jun/2024:20:24:10 +0800] "GET /v1.12/libpod/containers/json?all=true HTTP/1.1" 200 7412 "" ""
Jun 28 20:24:10 debian-home podman[366957]: @ - - [28/Jun/2024:20:24:08 +0800] "GET /v1.12/libpod/info? HTTP/1.1" 200 3328 "" ""
Jun 28 20:24:10 debian-home podman[357492]: @ - - [28/Jun/2024:20:24:10 +0800] "GET /v1.12/libpod/containers/ac061810452e2a39a929db2c02c2b19e8bed8fe41df49cca465231add6cedaac/json?size=false HTTP/1.1" 200 6959 "" ""
Jun 28 20:24:10 debian-home podman[357492]: @ - - [28/Jun/2024:20:24:10 +0800] "GET /v1.12/libpod/containers/afc9731beba06ef3238e314b3eb90bd97d87ee8f6bd25e70129ca4c6cdbfd15e/json?size=false HTTP/1.1" 200 7798 "" ""
Jun 28 20:24:10 debian-home podman[357492]: @ - - [28/Jun/2024:20:24:10 +0800] "GET /v1.12/libpod/containers/9de40f10c74f95393d397a6f1459defbfa2afaa709d767657c7df65770a94adc/json?size=false HTTP/1.1" 200 8770 "" ""
Jun 28 20:24:10 debian-home podman[357492]: @ - - [28/Jun/2024:20:24:10 +0800] "GET /v1.12/libpod/containers/5e867f57ca641864d02885b82df46679dfe879a57b8f2cedd4de0496a2b14bc2/json?size=false HTTP/1.1" 200 8876 "" ""
Jun 28 20:24:10 debian-home podman[357492]: @ - - [28/Jun/2024:20:24:10 +0800] "GET /v1.12/libpod/containers/4f06e1a625df1f267c16b00c43a656050434982362ffd75e55d01032059e4c2e/json?size=false HTTP/1.1" 200 6939 "" ""
Jun 28 20:24:10 debian-home podman[357492]: @ - - [28/Jun/2024:20:24:10 +0800] "GET /v1.12/libpod/containers/7fed3440a502dd79fceb8ed146a0518ff6c308e0881dfd1bc841bef1a5bf4593/json?size=false HTTP/1.1" 200 7954 "" ""
Jun 28 20:24:10 debian-home podman[357492]: @ - - [28/Jun/2024:20:24:10 +0800] "GET /v1.12/libpod/containers/245989ea1b061664836d3784e58ba9ed3a15a31875f99d080c7685c82545f971/json?size=false HTTP/1.1" 200 7975 "" ""
Jun 28 20:24:10 debian-home podman[357492]: @ - - [28/Jun/2024:20:24:10 +0800] "GET /v1.12/libpod/images/json? HTTP/1.1" 200 6089 "" ""
Jun 28 20:24:10 debian-home podman[366957]: @ - - [28/Jun/2024:20:24:10 +0800] "GET /v1.12/libpod/containers/json?all=true HTTP/1.1" 200 1155 "" ""
Jun 28 20:24:10 debian-home podman[366957]: @ - - [28/Jun/2024:20:24:10 +0800] "GET /v1.12/libpod/pods/json? HTTP/1.1" 200 3 "" ""
Jun 28 20:24:10 debian-home podman[366957]: @ - - [28/Jun/2024:20:24:10 +0800] "GET /v1.12/libpod/images/json? HTTP/1.1" 200 976 "" ""
Jun 28 20:24:10 debian-home podman[357492]: @ - - [28/Jun/2024:20:24:10 +0800] "GET /v1.12/libpod/images/5c5bbb9171bb9c9cb02a3488062286440690891a0788d52ae609a78acef54f6b/json? HTTP/1.1" 200 9061 "" ""
Jun 28 20:24:10 debian-home podman[357492]: @ - - [28/Jun/2024:20:24:10 +0800] "GET /v1.12/libpod/images/d25a14ab6abb525356eee8d3beaaa19050e7ed258ac7b23634f70bbbe2046ac6/json? HTTP/1.1" 200 12505 "" ""
Jun 28 20:24:10 debian-home podman[366957]: @ - - [28/Jun/2024:20:24:10 +0800] "GET /v1.12/libpod/images/8f53a859c3565a09b617e008b2f7582918bdaf9db85e761b0dc902a1e8e8ba75/json? HTTP/1.1" 200 4754 "" ""
Jun 28 20:24:10 debian-home podman[357492]: @ - - [28/Jun/2024:20:24:10 +0800] "GET /v1.12/libpod/images/c7c9ae8ea7f61fa6ad80b37100d23fd8b40dc08fc9368b52cfcdcf3c391c0c1e/json? HTTP/1.1" 200 5434 "" ""
Jun 28 20:24:10 debian-home podman[366957]: @ - - [28/Jun/2024:20:24:10 +0800] "GET /v1.12/libpod/containers/5a39d8dc7d9f115918ef33950f36c5a4d01cf7f2dfc0bbcafb9e71c2687eb9ea/json?size=false HTTP/1.1" 200 8894 "" ""
Jun 28 20:24:10 debian-home podman[357492]: @ - - [28/Jun/2024:20:24:10 +0800] "GET /v1.12/libpod/images/f2dc224fce393bcc42e760868161b0d79f3924e70297fa244f9f82e824e162dc/json? HTTP/1.1" 200 2824 "" ""
Jun 28 20:24:10 debian-home podman[357492]: @ - - [28/Jun/2024:20:24:10 +0800] "GET /v1.12/libpod/images/9808ddb33eaab263a6e99c26499e1e777046ef1dc04a37c35089dcea94ed2730/json? HTTP/1.1" 200 9519 "" ""
Jun 28 20:24:10 debian-home podman[357492]: @ - - [28/Jun/2024:20:24:10 +0800] "GET /v1.12/libpod/images/0a5f6bc2ea975b7e99cf1c8da72abb3b2fc2476ab43b27a505fdd0d98acf4ff8/json? HTTP/1.1" 200 2652 "" ""
Jun 28 20:24:10 debian-home podman[357492]: @ - - [28/Jun/2024:20:24:10 +0800] "GET /v1.12/libpod/images/a996e8bce36f82d7e8895105a6fd942ad43341ab26a82b6d707b6cbd8f028e03/json? HTTP/1.1" 200 5859 "" ""
Jun 28 20:24:11 debian-home PackageKit[366961]: resolve transaction /1107_dececead from uid 0 finished with success after 2030ms
Jun 28 20:24:14 debian-home podman[357492]: @ - - [28/Jun/2024:20:24:10 +0800] "GET /v1.12/libpod/events HTTP/1.0" 200 0 "" ""
Jun 28 20:24:14 debian-home podman[366957]: @ - - [28/Jun/2024:20:24:10 +0800] "GET /v1.12/libpod/events? HTTP/1.1" 200 0 "" ""
Jun 28 20:24:14 debian-home podman[366957]: @ - - [28/Jun/2024:20:24:10 +0800] "GET /v1.12/libpod/events HTTP/1.0" 200 0 "" ""
Jun 28 20:24:14 debian-home PackageKit[366961]: get-updates transaction /1108_cbbecade from uid 0 finished with success after 3075ms
Jun 28 20:24:14 debian-home sudo[366922]: pam_unix(sudo:session): session closed for user root
Jun 28 20:24:16 debian-home podman[366957]: @ - - [28/Jun/2024:20:24:11 +0800] "GET /v1.12/libpod/containers/stats?stream=true HTTP/1.1" 200 453 "" ""
Jun 28 20:24:16 debian-home podman[366957]: @ - - [28/Jun/2024:20:24:11 +0800] "GET /v1.12/libpod/containers/stats?stream=true HTTP/1.1" 200 453 "" ""
Jun 28 20:24:20 debian-home podman[357492]: @ - - [28/Jun/2024:20:24:10 +0800] "GET /v1.12/libpod/containers/stats?stream=true HTTP/1.1" 200 6088 "" ""
Jun 28 20:24:21 debian-home systemd[1]: podman.service: Deactivated successfully.
Jun 28 20:24:21 debian-home systemd[1]: podman.service: Consumed 2.329s CPU time.
Jun 28 20:24:38 debian-home systemd[1]: systemd-hostnamed.service: Deactivated successfully.
Jun 28 20:24:42 debian-home systemd[1]: systemd-timedated.service: Deactivated successfully.
Jun 28 20:25:44 debian-home systemd[1]: cockpit-wsinstance-http.service: Deactivated successfully.
Jun 28 20:25:44 debian-home systemd[1]: cockpit-wsinstance-http.service: Consumed 1.086s CPU time.
Jun 28 20:26:15 debian-home systemd[1]: cockpit-wsinstance-http.socket: Deactivated successfully.
Jun 28 20:26:15 debian-home systemd[1]: Closed cockpit-wsinstance-http.socket - Socket for Cockpit Web Service http instance.
Jun 28 20:26:15 debian-home systemd[1]: cockpit-wsinstance-https-factory.socket: Deactivated successfully.
Jun 28 20:26:15 debian-home systemd[1]: Closed cockpit-wsinstance-https-factory.socket - Socket for Cockpit Web Service https instance factory.
Jun 28 20:26:15 debian-home systemd[1]: cockpit-ws-user.service: Deactivated successfully.
Jun 28 20:26:15 debian-home systemd[1]: Stopped cockpit-ws-user.service - Dynamic user for cockpit-ws.

@wy580477 wy580477 added the bug Something isn't working label Jun 28, 2024
@wy580477
Copy link
Author

wy580477 commented Jul 1, 2024

Cockpit updated to 319-1
Cockpit updated to 90-1

Still the same behavior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant