Cockpit Connection Failed

Hi,

First time posting here, so I just wanted to say this project is amazing and all of the good people who help maintain this are doing some great work! Thank You So Very Much! I plan on actively promoting this project once I can get my own instance sorted out.

Now to the problem I am experiencing: I cannot access the Cockpit from the Admin Page. I am met with:

Connection failed
There was an unexpected error while connecting to the machine.
Messages related to the failure might be found in the journal:
journalctl -u cockpit

Been reading through the guide ( FreedomBox/Manual/Cockpit - Debian Wiki ), so hopefully it is up to date/complete.

The biggest clue I have found so far is that I cannot seem to access the FreedomBox portal or Cockpit from the domain I registered with the system during the initial setup. *I installed FB on a fresh install of Debian 11 on my own PC if that matters at all.

I can only seem to access the FB portal from the local IP of my server, but I realize that is not going to work with Cockpit as the documentation states. Everything in the FB portal seems to work fine, but Cockpit refuses to open. Did I do something wrong during the initial freedombox install, or perhaps something went wrong?

Here is the contents of my cockpit.conf:

*NOTE: I tried adding the local ip of my server to the cockpit.conf file (such as: https://192.168.x.x) for troubleshooting purposes, rebooted the server, but itā€™s the same issue. I realize that probably wonā€™t work any, but I donā€™t know what else to look for. Iā€™m not an expert with Linux, but Iā€™m not totally helpless either and willing to read/learn!

Here are the contents of the journal. Unfortunately, it doesnā€™t say much.

Blockquote
journalctl -u cockpit
ā€“ Journal begins at Tue 2022-07-19 12:32:04 MST, ends at Wed 2022-07-20 09:33:26 MST. ā€“
Jul 19 19:35:05 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 19 19:35:06 debian systemd[1]: Started Cockpit Web Service.
Jul 19 19:39:15 debian systemd[1]: cockpit.service: Succeeded.
ā€“ Boot bf8f20c4621741b88db3e101ad2e0bd6 ā€“
Jul 20 06:34:53 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 06:34:53 debian systemd[1]: Started Cockpit Web Service.
Jul 20 06:36:47 debian systemd[1]: cockpit.service: Succeeded.
Jul 20 07:11:40 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 07:11:40 debian systemd[1]: Started Cockpit Web Service.
Jul 20 07:13:22 debian systemd[1]: cockpit.service: Succeeded.
Jul 20 07:13:27 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 07:13:27 debian systemd[1]: Started Cockpit Web Service.
Jul 20 07:18:23 debian systemd[1]: cockpit.service: Succeeded.
Jul 20 07:18:54 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 07:18:54 debian systemd[1]: Started Cockpit Web Service.
Jul 20 07:20:55 debian systemd[1]: cockpit.service: Succeeded.
Jul 20 07:28:12 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 07:28:12 debian systemd[1]: Started Cockpit Web Service.
Jul 20 07:30:59 debian systemd[1]: cockpit.service: Succeeded.
Jul 20 07:35:33 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 07:35:33 debian systemd[1]: Started Cockpit Web Service.
Jul 20 07:39:20 debian systemd[1]: cockpit.service: Succeeded.
Jul 20 07:58:29 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 07:58:29 debian systemd[1]: Started Cockpit Web Service.
Jul 20 07:59:59 debian systemd[1]: cockpit.service: Succeeded.
Jul 20 08:03:32 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 08:03:32 debian systemd[1]: Started Cockpit Web Service.
Jul 20 08:05:34 debian systemd[1]: cockpit.service: Succeeded.
Jul 20 08:11:10 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 08:11:10 debian systemd[1]: Started Cockpit Web Service.
Jul 20 08:13:52 debian systemd[1]: cockpit.service: Succeeded.
Jul 20 08:22:52 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 08:22:52 debian systemd[1]: Started Cockpit Web Service.
Jul 20 08:24:57 debian systemd[1]: cockpit.service: Succeeded.
Jul 20 08:37:36 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 08:37:36 debian systemd[1]: Started Cockpit Web Service.
Jul 20 08:39:40 debian systemd[1]: cockpit.service: Succeeded.
ā€“ Boot 613ab3180c53435eb6c9d4b4b4b50917 ā€“
Jul 20 09:25:53 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 09:25:53 debian systemd[1]: Started Cockpit Web Service.
Jul 20 09:27:23 debian systemd[1]: cockpit.service: Succeeded.
Jul 20 09:28:07 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 09:28:07 debian systemd[1]: Started Cockpit Web Service.
Jul 20 09:29:37 debian systemd[1]: cockpit.service: Succeeded.
Jul 20 09:30:14 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 09:30:14 debian systemd[1]: Started Cockpit Web Service.
Jul 20 09:32:18 debian systemd[1]: cockpit.service: Succeeded.
Jul 20 09:32:49 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 09:32:49 debian systemd[1]: Started Cockpit Web Service.
Blockquote

*Please let me know if any other info. is needed of if I forgot some critical details. Thank You!

Update: I got remote access to the FB portal working through the domain i registered with on initial setup. However, when I select Cockpit I am still getting the same error.

Reviewing the log again using: journalctl -u cockpit all it shows is:

Blockquote
ā€“ Journal begins at Tue 2022-07-19 12:32:04 MST, ends at Wed 2022-07-20 11:45:49 MST. ā€“
Jul 19 19:35:05 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 19 19:35:06 debian systemd[1]: Started Cockpit Web Service.
Jul 19 19:39:15 debian systemd[1]: cockpit.service: Succeeded.
ā€“ Boot bf8f20c4621741b88db3e101ad2e0bd6 ā€“
Jul 20 06:34:53 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 06:34:53 debian systemd[1]: Started Cockpit Web Service.
Jul 20 06:36:47 debian systemd[1]: cockpit.service: Succeeded.
Jul 20 07:11:40 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 07:11:40 debian systemd[1]: Started Cockpit Web Service.
Jul 20 07:13:22 debian systemd[1]: cockpit.service: Succeeded.
Jul 20 07:13:27 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 07:13:27 debian systemd[1]: Started Cockpit Web Service.
Jul 20 07:18:23 debian systemd[1]: cockpit.service: Succeeded.
Jul 20 07:18:54 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 07:18:54 debian systemd[1]: Started Cockpit Web Service.
Jul 20 07:20:55 debian systemd[1]: cockpit.service: Succeeded.
Jul 20 07:28:12 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 07:28:12 debian systemd[1]: Started Cockpit Web Service.
Jul 20 07:30:59 debian systemd[1]: cockpit.service: Succeeded.
Jul 20 07:35:33 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 07:35:33 debian systemd[1]: Started Cockpit Web Service.
Jul 20 07:39:20 debian systemd[1]: cockpit.service: Succeeded.
Jul 20 07:58:29 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 07:58:29 debian systemd[1]: Started Cockpit Web Service.
Jul 20 07:58:29 debian systemd[1]: Started Cockpit Web Service.
Jul 20 07:58:29 debian systemd[1]: Started Cockpit Web Service.
Jul 20 07:58:29 debian systemd[1]: Started Cockpit Web Service.
Jul 20 07:59:59 debian systemd[1]: cockpit.service: Succeeded.
Jul 20 08:03:32 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 08:03:32 debian systemd[1]: Started Cockpit Web Service.
Jul 20 08:05:34 debian systemd[1]: cockpit.service: Succeeded.
Jul 20 08:11:10 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 08:11:10 debian systemd[1]: Started Cockpit Web Service.
Jul 20 08:13:52 debian systemd[1]: cockpit.service: Succeeded.
Jul 20 08:22:52 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 08:22:52 debian systemd[1]: Started Cockpit Web Service.
Jul 20 08:24:57 debian systemd[1]: cockpit.service: Succeeded.
Jul 20 08:37:36 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 08:37:36 debian systemd[1]: Started Cockpit Web Service.
Jul 20 08:39:40 debian systemd[1]: cockpit.service: Succeeded.
ā€“ Boot 613ab3180c53435eb6c9d4b4b4b50917 ā€“
Jul 20 09:25:53 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 09:25:53 debian systemd[1]: Started Cockpit Web Service.
Jul 20 09:27:23 debian systemd[1]: cockpit.service: Succeeded.
Jul 20 09:28:07 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 09:28:07 debian systemd[1]: Started Cockpit Web Service.
Jul 20 09:29:37 debian systemd[1]: cockpit.service: Succeeded.
Jul 20 09:30:14 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 09:30:14 debian systemd[1]: Started Cockpit Web Service.
Jul 20 09:32:18 debian systemd[1]: cockpit.service: Succeeded.
Jul 20 09:32:49 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 09:32:49 debian systemd[1]: Started Cockpit Web Service.
Jul 20 09:34:40 debian systemd[1]: cockpit.service: Succeeded.
Jul 20 11:35:10 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 11:35:10 debian systemd[1]: Started Cockpit Web Service.
Jul 20 11:37:04 debian systemd[1]: cockpit.service: Succeeded.
Jul 20 11:40:13 debian systemd[1]: Starting Cockpit Web Serviceā€¦
Jul 20 11:40:13 debian systemd[1]: Started Cockpit Web Service.
Jul 20 11:43:59 debian systemd[1]: cockpit.service: Succeeded.
Blockquote

Hi!
This issue was just fixed in the most recent FreedomBox version update. If you have turned on frequent feature updates, this issue will resolve itself once the update is available on your installation.

1 Like

Hey, thanks for the info! Awesome community project youā€™ve got going here! I will be looking forward to the next update.

1 Like