# Session expired

**URL:** <https://discourse.getcockpit.com/t/session-expired/2540>\
**Category:** Support\
**Created:** [October 25, 2022, 1:18pm UTC](https://discourse.getcockpit.com/t/session-expired/2540 "2022-10-25T13:18:21Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![TryingHardToInstall](https://avatars.discourse-cdn.com/v4/letter/t/c57346/32.png) [@TryingHardToInstall](https://discourse.getcockpit.com/u/TryingHardToInstall)\
**Post date:** [October 25, 2022, 1:18pm UTC](https://discourse.getcockpit.com/t/session-expired/2540/1 "2022-10-25T13:18:21Z")

</div>

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

![Animation](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/2X/c/c02560066c00e6ce276ce4b90eee5df66d29f211.gif)

---

<div class="post-metadata">

**Author:** ![artur](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/artur/32/4_2.png) [@artur](https://discourse.getcockpit.com/u/artur)\
**Post date:** [October 25, 2022, 10:23pm UTC](https://discourse.getcockpit.com/t/session-expired/2540/2 "2022-10-25T22:23:11Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![TryingHardToInstall](https://avatars.discourse-cdn.com/v4/letter/t/c57346/32.png) [@TryingHardToInstall](https://discourse.getcockpit.com/u/TryingHardToInstall)\
**Post date:** [October 26, 2022, 12:27am UTC](https://discourse.getcockpit.com/t/session-expired/2540/3 "2022-10-26T00:27:03Z")

</div>

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

> **[Learn What You Can Do With Your Cloudways PHP Stack](https://www.cloudways.com/blog/php-stack-user-guide/)**
>
> Learn what you as a user can do with your Cloudways PHP Stack and take advantage of it to supercharge your websites. This guide will help you get started.

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

---

<div class="post-metadata">

**Author:** ![TryingHardToInstall](https://avatars.discourse-cdn.com/v4/letter/t/c57346/32.png) [@TryingHardToInstall](https://discourse.getcockpit.com/u/TryingHardToInstall)\
**Post date:** [October 26, 2022, 12:49am UTC](https://discourse.getcockpit.com/t/session-expired/2540/4 "2022-10-26T00:49:14Z")

</div>

```auto
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.

```

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/2X/f/fce4c5a7dc44f5167d243bace0976fb79d2fb3c7.png)

---

<div class="post-metadata">

**Author:** ![TryingHardToInstall](https://avatars.discourse-cdn.com/v4/letter/t/c57346/32.png) [@TryingHardToInstall](https://discourse.getcockpit.com/u/TryingHardToInstall)\
**Post date:** [October 26, 2022, 12:52am UTC](https://discourse.getcockpit.com/t/session-expired/2540/5 "2022-10-26T00:52:37Z")

</div>

Specifically this i think?

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/2X/f/f785417bf1872f24cc29e1ff3ff665c3de827928.png)

---

<div class="post-metadata">

**Author:** ![TryingHardToInstall](https://avatars.discourse-cdn.com/v4/letter/t/c57346/32.png) [@TryingHardToInstall](https://discourse.getcockpit.com/u/TryingHardToInstall)\
**Post date:** [October 26, 2022, 1:04am UTC](https://discourse.getcockpit.com/t/session-expired/2540/6 "2022-10-26T01:04:41Z")

</div>

Initial login page:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/2X/6/69abb530144f6cbfc50d2ca49ce24b8207e229ea.png)

---

<div class="post-metadata">

**Author:** ![artur](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/artur/32/4_2.png) [@artur](https://discourse.getcockpit.com/u/artur)\
**Post date:** [October 26, 2022, 8:55am UTC](https://discourse.getcockpit.com/t/session-expired/2540/7 "2022-10-26T08:55:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![TryingHardToInstall](https://avatars.discourse-cdn.com/v4/letter/t/c57346/32.png) [@TryingHardToInstall](https://discourse.getcockpit.com/u/TryingHardToInstall)\
**Post date:** [October 26, 2022, 10:00am UTC](https://discourse.getcockpit.com/t/session-expired/2540/8 "2022-10-26T10:00:17Z")

</div>

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](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](https://files.getcockpit.com/releases/master/cockpit-core.zip)

---

<div class="post-metadata">

**Author:** ![TryingHardToInstall](https://avatars.discourse-cdn.com/v4/letter/t/c57346/32.png) [@TryingHardToInstall](https://discourse.getcockpit.com/u/TryingHardToInstall)\
**Post date:** [October 26, 2022, 11:20am UTC](https://discourse.getcockpit.com/t/session-expired/2540/9 "2022-10-26T11:20:06Z")

</div>

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](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](http://your.domain.com/install)
7. login with no session errors
