Session expired

every time I click on something I need to login again, new install on cloudways, latest version as of today

Animation

Hi! Hard to say, you’re the first one reporting that issue. Can you try to look at the php error log files?

Also, what is the os, web server etc you’re running Cockpit on?

I’m using php 8.1
via cloudways and their default php stack:

I can’t see any logs in the cockpit app, something is definitely not right…

Clear-Site-Data header on 'https://phpstack-651706-2983846.cloudwaysapps.com/auth/login?to=/utils/csrf/login': Unrecognized type: cache.
api:1 Clear-Site-Data header on 'https://phpstack-651706-2983846.cloudwaysapps.com/auth/login?to=/utils/csrf/login': No recognized types specified.
admin.js?ver=2.3.2:32 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'token')
    at admin.js?ver=2.3.2:32:20
api:1 Clear-Site-Data header on 'https://phpstack-651706-2983846.cloudwaysapps.com/auth/login?to=/system/api/load': Unrecognized type: cache.
api:1 Clear-Site-Data header on 'https://phpstack-651706-2983846.cloudwaysapps.com/auth/login?to=/system/api/load': No recognized types specified.
api#:1 Clear-Site-Data header on 'https://phpstack-651706-2983846.cloudwaysapps.com/auth/login?to=/system/api/restApiViewer': Unrecognized type: cache.
api#:1 Clear-Site-Data header on 'https://phpstack-651706-2983846.cloudwaysapps.com/auth/login?to=/system/api/restApiViewer': No recognized types specified.
api#:1 Autofocus processing was blocked because a document already has a focused element.
/app-event-stream:1          Failed to load resource: the server responded with a status of 404 ()
api/restApiViewer:1 Unchecked runtime.lastError: The message port closed before a response was received.
api#:1 Unchecked runtime.lastError: The message port closed before a response was received.

Specifically this i think?

Initial login page:

Looks like there is some kind of “firewall” configured on cloudways side that blocks requests. This is related to their stack and setup.

so if I install this via ssh then it works no worries, however this is an older version:
wget https://github.com/agentejo/cockpit/archive/refs/heads/next.zip

if I install this via ssh then I get the admin session errors:
wget https://files.getcockpit.com/releases/master/cockpit-core.zip

Got It Working!

If anyone is wondering how to set it up on cloudways… just google it

no just kidding:

  1. launch a php stack
  2. ssh master@ into the stack (/public_html)
  3. wget https://files.getcockpit.com/releases/master/cockpit-core.zip
  4. unzip cockpit-core.zip to root of /public_html
  5. Turn off varnish cache in the application settings on cloudways!
  6. go to your.domain.com/install
  7. login with no session errors
1 Like