-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
"Not found" with direct cockpit-ws --local-session=/usr/bin/cockpit-bridge #16528
Comments
Was also reported 4 years back -> #8263 It looks like the author self closed it. |
This is really important for the Podman Desktop effort on MAC, our plan as @baude pointed out is to have GUI for managing podman machine, but if users want to manage the containers then we throw them into Cockpit. This could lead to some good exposure for Cockpit-podman, but we need to have this working. Our goal is to announce this at year end, at the same time that Docker is going to start charging users on MACs, so we are under some time pressure. |
I would be surprised if this is really a "missing locale data" issue, that should just be warning. It might well be, of course. Is this the actual thing that needs to work?
You are connecting to I see if I can reproduce the "not found" behavior with our CoreOS image from CI. |
This is actually conceptually not too far apart from what cockpit-desktop does, except that this won't work for this use case -- it does support SSH, but it runs cockpit-ws on the local machine (for very good reasons). The "invalid or unusable locale" is not important. SSH has this irritating behaviour of blindly copying the client-side locale env to the server side, and then complain that it doesn't work. The internet is full of this, but it's not what breaks here. I can run this on my Fedora 35 desktop:
and can connect to http://localhost:9190 just fine, with a running session. The reproducer translated to our CI Fedora CoreOS image:
This also works fine for me, http://localhost:9190 has the session (even in German for me). I stared at your reproducer a bit more, and saw the
This fails:
It did install cockpit-{system,bridge,networkmanager}, but not cockpit-podman nor cockpit-ws.
|
Some general remarks:
|
This is also the location that was used in the Proof of Concept and what CodeReady Containers will do: Note: The only problem that exist is that 'authentication' is needed, but that is a different issue |
Electron securityAs it's somewhat related to the thread here (about running Cockpit Podman in Electron), here are a few Electron-related security resources I saw recently:
Apologies if you already know about these. If not, I hope you find them useful. (Of course, a proof of concept doesn't need to worry about this. Once we start to get to a basic working implementation which uses Electron, we'll want to consider the above.) |
@baude just posted this to IRC:
I.e. you don't have cockpit-system installed, and thus no cockpit shell or overview. So you have to use the direct frame URL, http://localhost:9190/cockpit/@localhost/podman/index.html -- with just localhost:9190 you would get the "not found" due to the missing shell. |
As @martinpitt says, the correct url is http://localhost:9190/cockpit/@localhost/podman/index.html ... i'm closing out this bug. |
@baude it might help to sync as a lot of this was already concluded in our spike for CRC. We also implemented a bearer token method to authenticate. |
@gbraad excellent ... will do! |
Cockpit version:
cockpit-bridge-255.1-1.fc34.x86_64
cockpit-ws-255.1-1.fc34.x86_64
cockpit-podman-34-1.fc34.noarch
OS: fedora coreos 24
Page: NA
When trying to run cockpit on fedora core-os using ssh, we get a fatal? error about locale no being supported. This is because fcos only installs one locale -- C.UTF-8. We are doing this to support the Podman on Mac effort where we would like to present cockpit as the GUI interface for interacting with containers.
Relevant parts of the system log are also useful:
Oct 26 18:19:27 localhost cockpit/ssh[2982]: invalid or unusable locale: en_US.UTF-8 <-- this is the key one I think
Steps to reproduce
ex. ssh -p 41149 -i /home/baude/.ssh/podman-machine-default -L 9190:localhost:9190 core@localhost /usr/libexec/cockpit-ws -a 127.0.0.1 -p 9190 --local-session=/usr/bin/cockpit-bridge
You will get a Not Found cockpit screen. It definitely hit the cockpit service as this is NOT a 404.
The text was updated successfully, but these errors were encountered: