# Failed to automatically register with Discourse ID

**URL:** https://meta.discourse.org/t/failed-to-automatically-register-with-discourse-id/403951
**Category:** Self-hosting
**Created:** [May 27, 2026, 8:04pm UTC](https://meta.discourse.org/t/failed-to-automatically-register-with-discourse-id/403951 "2026-05-27T20:04:11Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![itoutsider](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itoutsider/32/556113_2.png) [@itoutsider](https://meta.discourse.org/u/itoutsider)
#### Post date: [May 27, 2026, 8:04pm UTC](https://meta.discourse.org/t/failed-to-automatically-register-with-discourse-id/403951/1 "2026-05-27T20:04:11Z")

</div>

Howdy,

Fresh like a newborn to the discourse world and trying to give it a whirl. I’ve setup a brand new debian 13 VM and have a custom dns entry setup through cloudflare.  
I’ve gone through the setup and first ran into Let’s Encrypt and the whole port 80 callback. I moved the cert process to acme.sh and have that all sorted along with the template entry for cloudflare.

Problem I’m running into now is a failed setup after deploying with the following message:

> enable\_discourse\_id: Failed to automatically register with Discourse ID. This could be due to network connectivity issues, firewall restrictions, or the Discourse ID service being unreachable. Please check server logs for more details or contact support.
> 
> You have opted to skip setting up email for now. Unfortunately due to the error message above, the setup cannot continue. Please report this issue on [meta.discourse.org](https://meta.discourse.org/).

There is nothing preventing outbound comms on this VM as it was updated and config pulled from the external with no issues.  
I’ve checked the container logs and there are no errors of any kind.

Interesting enough, I can add an invalid or valid URI after the base URL and get to the login/signup page or the regular 404 as applicable. Sign up and such would work if I had SMTP configured, but I don’t and don’t really want to mess with that.

Any info or assistance would be appreciated on where to go next to validate/confirm the Discord ID setup to get this functional.

---

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [May 27, 2026, 8:32pm UTC](https://meta.discourse.org/t/failed-to-automatically-register-with-discourse-id/403951/2 "2026-05-27T20:32:53Z")

</div>

> [@itoutsider](#):
>
> I’ve checked the container logs and there are no errors of any kind.

You have been to `yoursite.com/logs`? That is where the error would be.

---

<div class="post-metadata">

### Author: ![itoutsider](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itoutsider/32/556113_2.png) [@itoutsider](https://meta.discourse.org/u/itoutsider)
#### Post date: [May 27, 2026, 8:43pm UTC](https://meta.discourse.org/t/failed-to-automatically-register-with-discourse-id/403951/3 "2026-05-27T20:43:05Z")

</div>

I’ve not I’ll check that out.

---

<div class="post-metadata">

### Author: ![itoutsider](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itoutsider/32/556113_2.png) [@itoutsider](https://meta.discourse.org/u/itoutsider)
#### Post date: [May 27, 2026, 8:47pm UTC](https://meta.discourse.org/t/failed-to-automatically-register-with-discourse-id/403951/4 "2026-05-27T20:47:54Z")

</div>

Looks like a HTTPS redirect error, but I believe I’m forcing https anywhere required:

> Discourse ID register failed at step ‘/register’. Error: Request to ‘/register’ failed: 400  
> Error: {“errors”:[“You supplied invalid parameters to the request: Redirect URI must use HTTPS”],“error\_type”:“invalid\_parameters”}  
> Rendered layout layouts/finish\_installation.html.erb (Duration: 16.5ms | GC: 0.0ms)  
> Completed 200 OK in 654ms (Views: 17.9ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)  
> Started GET “/” for at 2026-05-27 20:44:09 +0000  
> Processing by FinishInstallationController#index as HTML  
> Discourse ID register failed at step ‘/register’. Error: Request to ‘/register’ failed: 400  
> Error: {“errors”:[“You supplied invalid parameters to the request: Redirect URI must use HTTPS”],“error\_type”:“invalid\_parameters”}  
> Rendered layout layouts/finish\_installation.html.erb (Duration: 35.0ms | GC: 0.0ms)  
> Completed 200 OK in 507ms (Views: 36.2ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)

I did read about a force https setting in the admin panel once you get into the console, but that’s a step past where I can currently get to.

---

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [May 27, 2026, 8:49pm UTC](https://meta.discourse.org/t/failed-to-automatically-register-with-discourse-id/403951/5 "2026-05-27T20:49:12Z")

</div>

Yes, `force_https` needs to be enabled. You can enable it from your settings menu, no need for console access:

 ![image](https://global.discourse-cdn.com/meta/original/4X/4/a/7/4a759098d030f16a06e1fdd66107a98d2bc11016.jpeg)

Nevermind, won’t work if you can’t log into the site. Do you have access to the rails console?

---

<div class="post-metadata">

### Author: ![itoutsider](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itoutsider/32/556113_2.png) [@itoutsider](https://meta.discourse.org/u/itoutsider)
#### Post date: [May 27, 2026, 8:50pm UTC](https://meta.discourse.org/t/failed-to-automatically-register-with-discourse-id/403951/6 "2026-05-27T20:50:59Z")

</div>

I have root access to the VM and docker container, but don’t know how to access the rails console.

---

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [May 27, 2026, 8:54pm UTC](https://meta.discourse.org/t/failed-to-automatically-register-with-discourse-id/403951/7 "2026-05-27T20:54:11Z")

</div>

Sorry, correction, no need for the rails console (even though you do have access to it with CLI access). You can make your account like this then:

```sh
cd /var/discourse # or wherever you put the `discourse_docker` repo
./launcher enter app
rake admin:create

```

---

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [May 27, 2026, 8:59pm UTC](https://meta.discourse.org/t/failed-to-automatically-register-with-discourse-id/403951/8 "2026-05-27T20:59:29Z")

</div>

Wait, I’m confused. You have access to the site as admin? I interpreted

> [@itoutsider](#):
>
> but that’s a step past where I can currently get to.

as no admin access, but you said you could read site logs.

---

<div class="post-metadata">

### Author: ![itoutsider](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itoutsider/32/556113_2.png) [@itoutsider](https://meta.discourse.org/u/itoutsider)
#### Post date: [May 27, 2026, 9:05pm UTC](https://meta.discourse.org/t/failed-to-automatically-register-with-discourse-id/403951/9 "2026-05-27T21:05:52Z")

</div>

I read the site logs from with the app/container, that is how i determined the redirect info above. I was able to create an account via the rake command and then was able to get into the console as an admin and force https. The setup was basically failing and coudln’t continue because of the redirect issue, but I couldn’t make an account to force https because I don’t have an smtp server setup.

Looks to be all good now, although at the login page there isn’t a “login with Discourse ID” as I would expect, but my rake created account logs in fine.

---

<div class="post-metadata">

### Author: ![itoutsider](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itoutsider/32/556113_2.png) [@itoutsider](https://meta.discourse.org/u/itoutsider)
#### Post date: [May 27, 2026, 9:09pm UTC](https://meta.discourse.org/t/failed-to-automatically-register-with-discourse-id/403951/10 "2026-05-27T21:09:18Z")

</div>

I had to enable it in the admin settings as a login method. All good now.

---

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [May 27, 2026, 9:10pm UTC](https://meta.discourse.org/t/failed-to-automatically-register-with-discourse-id/403951/11 "2026-05-27T21:10:06Z")

</div>

You can make sure it’s working at yoursite.com/admin/config/login-and-authentication/discourse-id. You can also test by connecting your own account here.

 ![image](https://global.discourse-cdn.com/meta/original/4X/8/1/0/810cc83f5f3803dfe06a9728ff92a97d6b5326a9.jpeg)

If that solved your problem, make sure to mark as solution so other people know for the future!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [June 26, 2026, 9:10pm UTC](https://meta.discourse.org/t/failed-to-automatically-register-with-discourse-id/403951/12 "2026-06-26T21:10:14Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
