# Some users getting "Unknown error" upon login

**URL:** https://meta.discourse.org/t/some-users-getting-unknown-error-upon-login/85905
**Category:** Support
**Created:** [April 22, 2018, 1:53pm UTC](https://meta.discourse.org/t/some-users-getting-unknown-error-upon-login/85905 "2018-04-22T13:53:31Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ThinkSaveRetire](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thinksaveretire/32/94988_2.png) [@ThinkSaveRetire](https://meta.discourse.org/u/ThinkSaveRetire)
#### Post date: [April 22, 2018, 1:53pm UTC](https://meta.discourse.org/t/some-users-getting-unknown-error-upon-login/85905/1 "2018-04-22T13:53:31Z")

</div>

Hi everyone - strange issue. First, we are running the latest version of Discourse (as of this writing, it’s v2.0.0.beta6 +90). We’re on Nginx, though I don’t personally have access to the server itself.

Some of my users are telling me that whenever they attempt to login, they are getting an “Unknown error” returned to them. The “fix” is to disable their account in the Admin console and resend the activation email. Once they click on the activation link, their account works again. But, this keeps happening. In fact, it’s happening twice with a couple of my users.

I put in a trouble ticket with my hosting provider but they didn’t find anything obvious.

Has anyone seen this problem before?

---

<div class="post-metadata">

### Author: ![ThinkSaveRetire](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thinksaveretire/32/94988_2.png) [@ThinkSaveRetire](https://meta.discourse.org/u/ThinkSaveRetire)
#### Post date: [April 25, 2018, 1:56pm UTC](https://meta.discourse.org/t/some-users-getting-unknown-error-upon-login/85905/2 "2018-04-25T13:56:56Z")

</div>

No one has had this problem before, huh? Hmm…

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [April 25, 2018, 2:18pm UTC](https://meta.discourse.org/t/some-users-getting-unknown-error-upon-login/85905/3 "2018-04-25T14:18:27Z")

</div>

How did you install Discourse? Did you follow our [recommended setup](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md)?

---

<div class="post-metadata">

### Author: ![Peter\_Backgren](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/peter_backgren/32/66263_2.png) [@Peter\_Backgren](https://meta.discourse.org/u/Peter_Backgren)
#### Post date: [March 13, 2019, 5:51pm UTC](https://meta.discourse.org/t/some-users-getting-unknown-error-upon-login/85905/4 "2019-03-13T17:51:14Z")

</div>

Run into this problem today. Weird, I saw several topics about it and one very good one as it had someone encountering it after restoring from backup… but I cannot find that one so I’m just posting here.

Moved one forum to another site today.

Everything was working just fine.

Then I tried enabling sso which hit one of the “stupid organization with too strict security policy”-snafus. Which really is weird as the other forum I’m using has sso enabled and works just fine. Did I mention stupid and strict security already? 😃

Anyway, went back to the normal login instead.

And suddenly the same username which worked well when logged in to the forum from outside now failed with “unknown error” when logging in from within the organization. Made absolutely no sense.

I checked I didn’t have https enabled in the original app.yml

After reading everything I could find on this forum I caved in and just tried enabling https.

And suddenly logging in worked.

(tried a clean browser without cookies etc just in case, that didn’t help)

No idea why but apparently enabling https is worth trying as a solution, thankfully Discourse makes Let’s Encrypt usage a breeze.

Verified on [v2.3.0.beta4 +39]

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [May 29, 2022, 10:04am UTC](https://meta.discourse.org/t/some-users-getting-unknown-error-upon-login/85905/6 "2022-05-29T10:04:50Z")

</div>


