# Login stopped working

**URL:** <https://discourse.getcockpit.com/t/login-stopped-working/1034>\
**Category:** Uncategorized\
**Created:** [September 25, 2019, 1:50pm UTC](https://discourse.getcockpit.com/t/login-stopped-working/1034 "2019-09-25T13:50:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![techwriter](https://avatars.discourse-cdn.com/v4/letter/t/87869e/32.png) [@techwriter](https://discourse.getcockpit.com/u/techwriter)\
**Post date:** [September 25, 2019, 1:50pm UTC](https://discourse.getcockpit.com/t/login-stopped-working/1034/1 "2019-09-25T13:50:01Z")

</div>

We use Cockpit to manage a developer portal (versioning, feedback) but none of us can log in to our accounts all of a sudden.

Am reaching out in the hopes that maybe @Artur will answer? Something suddenly happened but we have no idea what it was. Who can you contact for support?

---

<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:** [September 25, 2019, 2:12pm UTC](https://discourse.getcockpit.com/t/login-stopped-working/1034/2 "2019-09-25T14:12:12Z")

</div>

this is strange. do you have any admins installed?

---

<div class="post-metadata">

**Author:** ![techwriter](https://avatars.discourse-cdn.com/v4/letter/t/87869e/32.png) [@techwriter](https://discourse.getcockpit.com/u/techwriter)\
**Post date:** [September 25, 2019, 4:38pm UTC](https://discourse.getcockpit.com/t/login-stopped-working/1034/3 "2019-09-25T16:38:35Z")

</div>

I thought we were all admins, actually. Any one of us can add or remove users.

---

<div class="post-metadata">

**Author:** ![raffaelj](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/raffaelj/32/331_2.png) [@raffaelj](https://discourse.getcockpit.com/u/raffaelj)\
**Post date:** [September 25, 2019, 4:51pm UTC](https://discourse.getcockpit.com/t/login-stopped-working/1034/4 "2019-09-25T16:51:49Z")

</div>

> [@techwriter](#):
>
> Something suddenly happened

Hard to guess…

Which Cockpit version + addons do you use and do you use MongoDB or SQLite?

Can you access the login page and enter your login credentials? Or is that page completely broken, too?

If you have access to the login page - can you try to login and than call the url to Cockpit in the address bar? There is a small chance, that something in the response gone wrong (error message on the top of the json response…), so the login page doesn’t redirect, but the login actually worked.

Do you use an addon or custom code, that uses the events `cockpit.authentication.success` or `cockpit.authentication.failed`?

Did you create a folder with the name “check” in the root of your cockpit installation? In this case, the request to `/check` wouldn’t work anymore.

---

<div class="post-metadata">

**Author:** ![techwriter](https://avatars.discourse-cdn.com/v4/letter/t/87869e/32.png) [@techwriter](https://discourse.getcockpit.com/u/techwriter)\
**Post date:** [September 25, 2019, 5:59pm UTC](https://discourse.getcockpit.com/t/login-stopped-working/1034/5 "2019-09-25T17:59:54Z")

</div>

So, we can see the login page, and enter our credentials, but they aren’t working, even though they’re the correct credentials. I asked our developer (works remotely) and he said he saw a 500 error in his console. I’m not sure if our developer installed any particular add ons or is using custom code.

---

<div class="post-metadata">

**Author:** ![techwriter](https://avatars.discourse-cdn.com/v4/letter/t/87869e/32.png) [@techwriter](https://discourse.getcockpit.com/u/techwriter)\
**Post date:** [September 25, 2019, 6:25pm UTC](https://discourse.getcockpit.com/t/login-stopped-working/1034/6 "2019-09-25T18:25:48Z")

</div>

Replying again in case someone else has this issue: turned out the SQLite database file was corrupted. A fresh Cockpit install and restoring the users in a new database file (by copying the users’ data) seemed to fix the problem.

---

<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:** [September 25, 2019, 8:39pm UTC](https://discourse.getcockpit.com/t/login-stopped-working/1034/7 "2019-09-25T20:39:59Z")

</div>

can you tell a little bit more about the scenario (eg how you use cockpit) and what might be the reason for the corruption?
