Jump to content

Issues connecting with cockpit to Ubuntu

Go to solution Solved by Master Disaster,

Its a certificate error. From what I'm reading on GitHub it seems as though Cockpit has to be accessed through HTTPS on the browser, using HTTP won't work. I'm not sure how you can get a certificate for your loopback subdomain though? All the people who fixed this issue did so by using Apache/NGINX, obtaining a certificate using Cerbot then setting up a HTTPS reverse proxy.

 

One person says that adding "AllowUnencrypted = true" to "/etc/cockpit/cockpit.conf" and restarting the cockpit service allows it to work internally through HTTP but you lose external access entirely.

So I have this NAS running on Ubuntu 20.04 (if I got the version correctly).
I installed cockpit on it. The installation went without a hitch, yet whenever I try to log in through the web interface using the credentials, I get the following error:

107708168-b5d92580-6ccb-11eb-9587-1d64c60d83eb.png

 

Upon inspecting that particular log, I found the following line:
 

cockpit-tls[3372]: cockpit-tls: gnutls_handshake failed: A TLS fatal alert has been received.

It occurs once, and only when I try to log in.

Also here's a picture with the actual screen:

107707736-0308c780-6ccb-11eb-8f3c-ceb72b15037e.jpg

 

I have no idea what could be causing this, guys. Can anyone help?
I already posted this issue on their github page, but no one there seems to answer.

Link to comment
Share on other sites

Link to post
Share on other sites

Its a certificate error. From what I'm reading on GitHub it seems as though Cockpit has to be accessed through HTTPS on the browser, using HTTP won't work. I'm not sure how you can get a certificate for your loopback subdomain though? All the people who fixed this issue did so by using Apache/NGINX, obtaining a certificate using Cerbot then setting up a HTTPS reverse proxy.

 

One person says that adding "AllowUnencrypted = true" to "/etc/cockpit/cockpit.conf" and restarting the cockpit service allows it to work internally through HTTP but you lose external access entirely.

Main Rig:-

Ryzen 7 3800X | Asus ROG Strix X570-F Gaming | 16GB Team Group Dark Pro 3600Mhz | Corsair MP600 1TB PCIe Gen 4 | Sapphire 5700 XT Pulse | Corsair H115i Platinum | WD Black 1TB | WD Green 4TB | EVGA SuperNOVA G3 650W | Asus TUF GT501 | Samsung C27HG70 1440p 144hz HDR FreeSync 2 | Ubuntu 20.04.2 LTS |

 

Server:-

Intel NUC running Server 2019 + Synology DSM218+ with 2 x 4TB Toshiba NAS Ready HDDs (RAID0)

Link to comment
Share on other sites

Link to post
Share on other sites

13 minutes ago, Master Disaster said:

One person says that adding "AllowUnencrypted = true" to "/etc/cockpit/cockpit.conf" and restarting the cockpit service allows it to work internally through HTTP but you lose external access entirely.

Thank you for replying.

And... I already did that. I was getting a certificate warning on the browser.
Placing that line in the config, got rid of the warning, and I've been able to reach the login page without any issues.

Now, I took your advice and tried connecting using http, instead of https. Something else happens now:
I'm not getting that error that directs me to the log. Instead I remain on the login page. The browser even offered to remember the credentials.
And when I check the log, I get a different error:
 

cockpit-tls[2159]: cockpit-tls: gnutls_handshake failed: The TLS connection was non-properly terminated.

 

Link to comment
Share on other sites

Link to post
Share on other sites

Update:
I tried connecting using Edge, and it worked. I successfully accessed the cockpit control panel.
The 2159 error is only caused when I try logging in using Opera... which kinda sucks, cause it's my browser of choice.

 

I'll mark this one solved, for now. Thank you for your assistance, @Master Disaster!

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×