Explain what happens
I have a fresh install of Ubuntu 22.04 that I installed cockpit with this command:
sudo apt install -t jammy-backports cockpit
After install I am able to login and work in the UI for non-administrative tasks but when I click the button to enable administrative stuff, it pops up the window prompting for my password for a second but it goes away very quickly and logs me out. If I hit the F5 button on the browser it is the same thing. When looking at the logs it appears it closes the session because it sees an existing session, then forces me to login again.
Not sure if I did something wrong or what is going on.
Version of Cockpit
310.1-1~bpo22.04.1
Where is the problem in Cockpit?
Unknown or not applicable
Server operating system
Ubuntu
Server operating system version
22.04
What browsers are you using?
Edge
System log
10:56 AM: [systemd] : Started Session 35 of User jltaylor.
10:56 AM: [systemd-logind] : New session 35 of user jltaylor.
10:56 AM: [cockpit-session] : pam_unix(cockpit:session): session opened for user jltaylor(uid=1000) by (uid=0)
10:56 AM: [cockpit-session] : pam_ssh_add: Failed adding some keys
10:55 AM: [systemd-logind] : Removed session 34.
10:55 AM: [systemd] : session-34.scope: Consumed 4.076s CPU time.
10:55 AM: [systemd] : session-34.scope: Deactivated successfully.
10:55 AM: [systemd-logind] : Session 34 logged out. Waiting for processes to exit.
10:55 AM: [cockpit-session] : pam_unix(cockpit:session): session closed for user jltaylor
10:55 AM: [cockpit-ws] : cockpit.protocol.CockpitProtocolError: channel is already open
10:55 AM: [cockpit-ws] : raise CockpitProtocolError('channel is already open')
10:55 AM: [cockpit-ws] : File "/usr/lib/python3/dist-packages/cockpit/router.py", line 200, in channel_control_received
10:55 AM: [cockpit-ws] : self.channel_control_received(channel, command, message)
10:55 AM: [cockpit-ws] : File "/usr/lib/python3/dist-packages/cockpit/protocol.py", line 98, in control_received
10:55 AM: [cockpit-ws] : self.control_received(data)
10:55 AM: [cockpit-ws] : File "/usr/lib/python3/dist-packages/cockpit/protocol.py", line 88, in frame_received
10:55 AM: [cockpit-ws] : self.frame_received(data[start:end])
10:55 AM: [cockpit-ws] : File "/usr/lib/python3/dist-packages/cockpit/protocol.py", line 134, in consume_one_frame
10:55 AM: [cockpit-ws] : result = self.consume_one_frame(self.buffer)
10:55 AM: [cockpit-ws] : File "/usr/lib/python3/dist-packages/cockpit/protocol.py", line 184, in data_received
10:55 AM: [cockpit-ws] : await self._communication_done
10:55 AM: [cockpit-ws] : File "/usr/lib/python3/dist-packages/cockpit/router.py", line 258, in communicate
10:55 AM: [cockpit-ws] : await router.communicate()
10:55 AM: [cockpit-ws] : File "/usr/lib/python3/dist-packages/cockpit/bridge.py", line 178, in run
10:55 AM: [cockpit-ws] : return future.result()
10:55 AM: [cockpit-ws] : File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
10:55 AM: [cockpit-ws] : return loop.run_until_complete(main)
10:55 AM: [cockpit-ws] : File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
10:55 AM: [cockpit-ws] : asyncio.run(main, debug=debug)
10:55 AM: [cockpit-ws] : File "/usr/lib/python3/dist-packages/cockpit/_vendor/systemd_ctypes/event.py", line 135, in run_async
10:55 AM: [cockpit-ws] : run_async(run(args), debug=args.debug)
10:55 AM: [cockpit-ws] : File "/usr/lib/python3/dist-packages/cockpit/bridge.py", line 311, in main
10:55 AM: [cockpit-ws] : sys.exit(main())
10:55 AM: [cockpit-ws] : File "/usr/bin/cockpit-bridge", line 8, in <module>
10:55 AM: [cockpit-ws] : Traceback (most recent call last):
10:55 AM: [cockpit-ws] : OSError: [Errno 22] sd_bus_attach_event: Invalid argument
10:55 AM: [cockpit-ws] : raise OSError(-result, f"{func.__name__}: {os.strerror(-result)}")
10:55 AM: [cockpit-ws] : File "/usr/lib/python3/dist-packages/cockpit/_vendor/systemd_ctypes/librarywrapper.py", line 73, in errcheck
10:55 AM: [cockpit-ws] : setattr(cls, name, lambda *args: func(*args))
10:55 AM: [cockpit-ws] : File "/usr/lib/python3/dist-packages/cockpit/_vendor/systemd_ctypes/librarywrapper.py", line 194, in <lambda>
10:55 AM: [cockpit-ws] : self.bus.attach_event(None, 0)
10:55 AM: [cockpit-ws] : File "/usr/lib/python3/dist-packages/cockpit/channels/dbus.py", line 248, in do_open
10:55 AM: [cockpit-ws] : self.do_open(message)
10:55 AM: [cockpit-ws] : File "/usr/lib/python3/dist-packages/cockpit/channel.py", line 119, in do_control
10:55 AM: [cockpit-ws] : self.do_control(command, message)
10:55 AM: [cockpit-ws] : File "/usr/lib/python3/dist-packages/cockpit/channel.py", line 141, in do_channel_control
10:55 AM: [cockpit-ws] : endpoint.do_channel_control(channel, command, message)
10:55 AM: [cockpit-ws] : File "/usr/lib/python3/dist-packages/cockpit/router.py", line 219, in channel_control_received
10:55 AM: [cockpit-ws] : self.channel_control_received(channel, command, message)
10:55 AM: [cockpit-ws] : File "/usr/lib/python3/dist-packages/cockpit/protocol.py", line 98, in control_received
10:55 AM: [cockpit-ws] : self.control_received(data)
10:55 AM: [cockpit-ws] : File "/usr/lib/python3/dist-packages/cockpit/protocol.py", line 88, in frame_received
10:55 AM: [cockpit-ws] : self.frame_received(data[start:end])
10:55 AM: [cockpit-ws] : File "/usr/lib/python3/dist-packages/cockpit/protocol.py", line 134, in consume_one_frame
10:55 AM: [cockpit-ws] : result = self.consume_one_frame(self.buffer)
10:55 AM: [cockpit-ws] : File "/usr/lib/python3/dist-packages/cockpit/protocol.py", line 184, in data_received
10:55 AM: [cockpit-ws] : self._protocol.data_received(data)
10:55 AM: [cockpit-ws] : File "/usr/lib/python3/dist-packages/cockpit/transports.py", line 110, in _read_ready
10:55 AM: [cockpit-ws] : self._context.run(self._callback, *self._args)
10:55 AM: [cockpit-ws] : File "/usr/lib/python3.10/asyncio/events.py", line 80, in _run
10:55 AM: [cockpit-ws] : Traceback (most recent call last):
10:55 AM: [cockpit-ws] : handle: <Handle _Transport._read_ready()>
10:55 AM: [cockpit-ws] : asyncio-ERROR: Exception in callback _Transport._read_ready()
10:55 AM: [systemd] : Started Hostname Service.
10:55 AM: [dbus-daemon] : [system] Successfully activated service 'org.freedesktop.hostname1'
10:55 AM: [cockpit-tls] : cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received. 5Occurrences
10:55 AM: [systemd] : Starting Hostname Service...
10:55 AM: [dbus-daemon] : [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.114' (uid=1000 pid=58629 comm="/usr/bin/python3 /usr/bin/cockpit-bridge " label="unconfined")
10:55 AM: [cockpit-tls] : cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received. 15Occurrences
10:52 AM: [systemd] : Started Time & Date Service.
10:52 AM: [dbus-daemon] : [system] Successfully activated service 'org.freedesktop.timedate1'
10:52 AM: [systemd] : Starting Time & Date Service...
10:52 AM: [dbus-daemon] : [system] Activating via systemd: service name='org.freedesktop.timedate1' unit='dbus-org.freedesktop.timedate1.service' requested by ':1.114' (uid=1000 pid=58629 comm="/usr/bin/python3 /usr/bin/cockpit-bridge " label="unconfined")
10:51 AM: [systemd] : systemd-timedated.service: Deactivated successfully.
10:51 AM: [systemd] : Started Time & Date Service.
10:51 AM: [dbus-daemon] : [system] Successfully activated service 'org.freedesktop.timedate1'
10:51 AM: [systemd] : Starting Time & Date Service...
10:51 AM: [dbus-daemon] : [system] Activating via systemd: service name='org.freedesktop.timedate1' unit='dbus-org.freedesktop.timedate1.service' requested by ':1.114' (uid=1000 pid=58629 comm="/usr/bin/python3 /usr/bin/cockpit-bridge " label="unconfined")
10:50 AM: [systemd] : systemd-timedated.service: Deactivated successfully.
10:47 AM: [systemd] : systemd-hostnamed.service: Deactivated successfully.
10:47 AM: [PackageKit] : get-updates transaction /43_bbcbeeea from uid 1000 finished with success after 404ms
10:47 AM: [PackageKit] : resolve transaction /42_adaebaba from uid 1000 finished with success after 273ms
10:47 AM: [systemd] : Started Time & Date Service.
10:47 AM: [dbus-daemon] : [system] Successfully activated service 'org.freedesktop.timedate1'
10:47 AM: [systemd] : Starting Time & Date Service...
10:47 AM: [dbus-daemon] : [system] Activating via systemd: service name='org.freedesktop.timedate1' unit='dbus-org.freedesktop.timedate1.service' requested by ':1.114' (uid=1000 pid=58629 comm="/usr/bin/python3 /usr/bin/cockpit-bridge " label="unconfined")
10:47 AM: [cockpit-tls] : cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received. 2Occurrences
10:47 AM: [systemd] : Started Hostname Service.
10:47 AM: [dbus-daemon] : [system] Successfully activated service 'org.freedesktop.hostname1'
10:47 AM: [systemd] : Starting Hostname Service...
10:47 AM: [dbus-daemon] : [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.114' (uid=1000 pid=58629 comm="/usr/bin/python3 /usr/bin/cockpit-bridge " label="unconfined")
10:47 AM: [cockpit-tls] : cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received. 6Occurrences
10:47 AM: [systemd] : Started Session 34 of User jltaylor.
10:47 AM: [systemd-logind] : New session 34 of user jltaylor.
Explain what happens
I have a fresh install of Ubuntu 22.04 that I installed cockpit with this command:
After install I am able to login and work in the UI for non-administrative tasks but when I click the button to enable administrative stuff, it pops up the window prompting for my password for a second but it goes away very quickly and logs me out. If I hit the F5 button on the browser it is the same thing. When looking at the logs it appears it closes the session because it sees an existing session, then forces me to login again.
Not sure if I did something wrong or what is going on.
Version of Cockpit
310.1-1~bpo22.04.1
Where is the problem in Cockpit?
Unknown or not applicable
Server operating system
Ubuntu
Server operating system version
22.04
What browsers are you using?
Edge
System log