Page 1 of 1

[SOLVED] Unable to access cockpit web page

PostPosted: Jul 25th, '22, 07:35
by xboxboy
Hi all, was excited to see cockpit in the repo's. I installed it on my server, I have nextcloud on it. I can access the nextcloud page from any pc on the network, but I can not access the cockpit page. I did start the cockpit server. Unsure what I've missed or need to trouble shoot.

Re: Unable to access cockpit web page

PostPosted: Jul 25th, '22, 13:29
by sturmvogel
Did you already consult the extensive documentation how to set it up properly?
https://cockpit-project.org/documentation.html
https://cockpit-project.org/running.html

Re: Unable to access cockpit web page

PostPosted: Jul 30th, '22, 15:50
by xboxboy
No I haven't: IIRC when I'd previously installed it on Mageia there was no configuration, it just worked.

I've just checked that cockpit.socket is running, and it is:

So I've loaded the cockpit page on the server browser: so yes, cockpit is installed and functioning.

I can't access it over the network, so I suspect this is a firewall issue: How can I allowed cockpit to be accessed on a network?

Re: Unable to access cockpit web page

PostPosted: Jul 30th, '22, 15:57
by sturmvogel
Still many informations missing to be able to help you.
Can you ping the server?
How do you try to reach the server? with ip-address-of-machine:9090 or localhost:9090 ?
Did you adapt the firewall of the server with the builtin cockpit tools to allow the service?
Did you properly setup the server with cockpit tools to be reachable from outside?
Did you add the cockpit service to firewalld aka is port 9090 open?

Again: the documentation of cockpit is extensive.

Re: Unable to access cockpit web page

PostPosted: Aug 11th, '22, 14:17
by xboxboy
I've got it accessible now.
I had to add "9090/tcp" to the advanced tab in the firewall section of MCC. Firefox then complains of the certificate, as expected, so allow the exception.

Is this the correct and strictest way?

Re: Unable to access cockpit web page

PostPosted: Aug 27th, '22, 17:44
by obgr_seneca
Yes it is.

Per default Mageia blocks all external access to the computer in the Firewall.
You can then add exceptions in mcc like for sshd. Or as you did it for special ports in the advanced tab.