# Unable to activate account

**URL:** <https://meta.discourse.org/t/unable-to-activate-account/127802>\
**Category:** Self-hosting\
**Created:** [September 6, 2019, 12:39pm UTC](https://meta.discourse.org/t/unable-to-activate-account/127802 "2019-09-06T12:39:42Z")\
**Posts on this page:** 19\
**Page:** 1

## AI-generated summary

**Unable to Activate Account**

The discussion revolves around users [Curt_Lee](/t/-/127802/1) and [mors](/t/-/127802/9) experiencing issues with activating their Discourse accounts. The problem occurs when they click the "Click here to activate account" button, which does not respond.

[Curt_Lee](/t/-/127802/3) mentions that they followed the installation guide on the GitHub page and used a domain name. [codinghorror](/t/-/127802/5) suggests that the issue might be related to HTTPS or a proxy like CloudFlare.

After further investigation, [pfaffman](/t/-/127802/12) discovers that the problem is likely caused by incorrect HTTPS settings. [pfaffman](/t/-/127802/14) finds that the JavaScript console shows a Content Security Policy error, which is related to the use of a DigitalOcean Spaces CDN.

[mors](/t/-/127802/13) tries reinstalling the server, but the issue persists. [pfaffman](/t/-/127802/16) recommends removing the `DISCOURSE_S3` environment variables and setting them up through the web interface.

[Curt_Lee](/t/-/127802/18) eventually resolves their issue by switching to a VPS with a static IP. [mors](/t/-/127802/17) asks for help with setting up DigitalOcean Databases, but [pfaffman](/t/-/127802/19) suggests that it's beyond the scope of the support they can provide.

<div class="post-metadata">

**Author:** ![Curt\_Lee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/curt_lee/32/135453_2.png) [@Curt\_Lee](https://meta.discourse.org/u/Curt_Lee)\
**Post date:** [September 6, 2019, 12:39pm UTC](https://meta.discourse.org/t/unable-to-activate-account/127802/1 "2019-09-06T12:39:42Z")

</div>

Hey guys!  
So im currently trying to setup discourse!

So far everything seems fine, email is all good etcet!

So when i first join my new discourse it tells me to register etc as normal, I input the admin password for the email to setup the account etc, I then get the email to activate the account and then well this is where my issues start!

 ![8279a155a9521fbf179792b006ec764a](https://global.discourse-cdn.com/meta/original/3X/4/0/406465505e37f630b21bdfeedac44fcf3626f369.png)

I run the link emailed to me and then it brings me to the site and has a button `Click here to activate account` But nothing happens… Nothing at all the button is dead!

Why is this?

Thanks

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [September 6, 2019, 2:06pm UTC](https://meta.discourse.org/t/unable-to-activate-account/127802/2 "2019-09-06T14:06:36Z")

</div>

Are you using a domain name? That’s required.

How did you install?

---

<div class="post-metadata">

**Author:** ![Curt\_Lee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/curt_lee/32/135453_2.png) [@Curt\_Lee](https://meta.discourse.org/u/Curt_Lee)\
**Post date:** [September 6, 2019, 4:07pm UTC](https://meta.discourse.org/t/unable-to-activate-account/127802/3 "2019-09-06T16:07:48Z")

</div>

I followed the installation guide on the GitHub page.

Yes i am using a domain, But even if i do it local to the maching i get the same issue.

I also tried to force activate the account which lead to a white screen when loading the website 😕

---

<div class="post-metadata">

**Author:** ![Curt\_Lee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/curt_lee/32/135453_2.png) [@Curt\_Lee](https://meta.discourse.org/u/Curt_Lee)\
**Post date:** [September 6, 2019, 4:09pm UTC](https://meta.discourse.org/t/unable-to-activate-account/127802/4 "2019-09-06T16:09:16Z")

</div>

Could it because im using my domain name as is and not using a subdomain?

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [September 6, 2019, 4:11pm UTC](https://meta.discourse.org/t/unable-to-activate-account/127802/5 "2019-09-06T16:11:09Z")

</div>

This behavior usually means your https is busted or you are going through some weird proxy like CloudFlare to generate fake https.

---

<div class="post-metadata">

**Author:** ![Curt\_Lee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/curt_lee/32/135453_2.png) [@Curt\_Lee](https://meta.discourse.org/u/Curt_Lee)\
**Post date:** [September 6, 2019, 4:11pm UTC](https://meta.discourse.org/t/unable-to-activate-account/127802/6 "2019-09-06T16:11:55Z")

</div>

At the moment im doing it via GoDaddy where my domain is from.

All i have done is forward the Domain to the IP the forum is run on?

---

<div class="post-metadata">

**Author:** ![Curt\_Lee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/curt_lee/32/135453_2.png) [@Curt\_Lee](https://meta.discourse.org/u/Curt_Lee)\
**Post date:** [September 6, 2019, 5:27pm UTC](https://meta.discourse.org/t/unable-to-activate-account/127802/7 "2019-09-06T17:27:34Z")

</div>

So i did a fresh install of dscourse…

And when i use my domain the address bar shows the IP not the domain? Is that an issue with my DNS setup?

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [September 6, 2019, 6:12pm UTC](https://meta.discourse.org/t/unable-to-activate-account/127802/8 "2019-09-06T18:12:02Z")

</div>

did you run `./discourse-setup`? When you did, did you give it a hostname?

---

<div class="post-metadata">

**Author:** ![mors](https://avatars.discourse-cdn.com/v4/letter/m/9f8e36/32.png) [@mors](https://meta.discourse.org/u/mors)\
**Post date:** [September 6, 2019, 7:51pm UTC](https://meta.discourse.org/t/unable-to-activate-account/127802/9 "2019-09-06T19:51:30Z")

</div>

I have the same problem with you 😢

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [September 6, 2019, 7:56pm UTC](https://meta.discourse.org/t/unable-to-activate-account/127802/10 "2019-09-06T19:56:03Z")

</div>

You can see what `./discourse-doctor` has to say. You can also share your domain name here so we could check your DNS settings.

---

<div class="post-metadata">

**Author:** ![mors](https://avatars.discourse-cdn.com/v4/letter/m/9f8e36/32.png) [@mors](https://meta.discourse.org/u/mors)\
**Post date:** [September 6, 2019, 7:58pm UTC](https://meta.discourse.org/t/unable-to-activate-account/127802/11 "2019-09-06T19:58:08Z")

</div>

> [@pfaffman](#):
>
> ./discourse-doctor

Thank you very much  
my domain name is [asiavaper.com](http://asiavaper.com)

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [September 6, 2019, 8:00pm UTC](https://meta.discourse.org/t/unable-to-activate-account/127802/12 "2019-09-06T20:00:51Z")

</div>

There’s definitely something wrong with your https. Did you enable https by providing an email address to `./discourse-setup`? Do you have some reverse proxy or other device forwarding traffic to the domain?

---

<div class="post-metadata">

**Author:** ![mors](https://avatars.discourse-cdn.com/v4/letter/m/9f8e36/32.png) [@mors](https://meta.discourse.org/u/mors)\
**Post date:** [September 6, 2019, 8:04pm UTC](https://meta.discourse.org/t/unable-to-activate-account/127802/13 "2019-09-06T20:04:38Z")

</div>

Installed the same server a second time and encountered the same problem several times today.

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [September 6, 2019, 8:06pm UTC](https://meta.discourse.org/t/unable-to-activate-account/127802/14 "2019-09-06T20:06:47Z")

</div>

If you look at your javascript console (F12 on many browsers), you’ll see

```plaintext
categories:25 Refused to load the script 'https://asiavaper.com/assets/locales/en_US-13bd90597606fb9c418137d59bfbf2505d12db86463283f82980508460bbb766.js' because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'report-sample' https://asiavaper.com/logs/ https://asiavaper.com/sidekiq/ https://asiavaper.com/mini-profiler-resources/ https://discourse.sgp1.cdn.digitaloceanspaces.com/assets/ https://discourse.sgp1.cdn.digitaloceanspaces.com/brotli_asset/ https://asiavaper.com/extra-locales/ https://asiavaper.com/highlight-js/ https://asiavaper.com/javascripts/ https://asiavaper.com/plugins/ https://asiavaper.com/theme-javascripts/ https://asiavaper.com/svg-sprite/". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

```

I don’t know why stuff is linking to that Spaces CDN, but that’s likely the problem.

You just cloned discourse and ran `./discourse-setup`?

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [September 6, 2019, 8:09pm UTC](https://meta.discourse.org/t/unable-to-activate-account/127802/16 "2019-09-06T20:09:46Z")

</div>

I recommend that you remove those `DISCOURSE_S3` environment variables until you get things working. It’s best to start without them and enter them through the web interface until you’ve figured it all out. Getting Spaces working is a bit of a trick.

---

<div class="post-metadata">

**Author:** ![mors](https://avatars.discourse-cdn.com/v4/letter/m/9f8e36/32.png) [@mors](https://meta.discourse.org/u/mors)\
**Post date:** [September 6, 2019, 8:14pm UTC](https://meta.discourse.org/t/unable-to-activate-account/127802/17 "2019-09-06T20:14:54Z")

</div>

Ok, thanks for your help!

By the way, may I ask you another question?  
I want to re-install the database into DigitalOcean Databases. How should I set it up? It’s been bothering me for days.

---

<div class="post-metadata">

**Author:** ![Curt\_Lee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/curt_lee/32/135453_2.png) [@Curt\_Lee](https://meta.discourse.org/u/Curt_Lee)\
**Post date:** [September 6, 2019, 8:15pm UTC](https://meta.discourse.org/t/unable-to-activate-account/127802/18 "2019-09-06T20:15:57Z")

</div>

My issues was down to me trying to send my domain to a none static IP (IE i was sending my domain to a home hosted PC) which ofcourse it didnt like, Switched to OVH VPS and works perfect 😃

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [September 6, 2019, 8:17pm UTC](https://meta.discourse.org/t/unable-to-activate-account/127802/19 "2019-09-06T20:17:44Z")

</div>

Since it’s not a “[standard install](https://meta.discourse.org/t/142537?silent=true)”, configuring DigitalOcean databases is beyond the scope of the support you’re likely to get here. If you need help with it and have a budget feel free to contact me directly.

It _should_ be as simple as putting the credentials in as you can see in the `web_only` sample, but there are a number of things that can make it more complicated than that.

---

<div class="post-metadata">

**Author:** ![mors](https://avatars.discourse-cdn.com/v4/letter/m/9f8e36/32.png) [@mors](https://meta.discourse.org/u/mors)\
**Post date:** [September 6, 2019, 8:19pm UTC](https://meta.discourse.org/t/unable-to-activate-account/127802/20 "2019-09-06T20:19:52Z")

</div>

I’ll try, but thank you very much for your help

😄 😄 😄
