# Activate button doesn't work

**URL:** https://meta.discourse.org/t/activate-button-doesnt-work/27011
**Category:** Self-hosting
**Created:** [March 31, 2015, 3:55am UTC](https://meta.discourse.org/t/activate-button-doesnt-work/27011 "2015-03-31T03:55:51Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![hongquan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hongquan/32/115859_2.png) [@hongquan](https://meta.discourse.org/u/hongquan)
#### Post date: [March 31, 2015, 3:55am UTC](https://meta.discourse.org/t/activate-button-doesnt-work/27011/1 "2015-03-31T03:55:51Z")

</div>

I setup Discourse in localhost, but in production mode, with Passenger & Nginx.  
Action mailer is setup with [mailtrap.io](http://mailtrap.io). I create account and get activation email. I click to the link and is brought to activate page with the “Activate your account” button. However, when I click to that button, nothing happens. No message shows, no redirection. From that on, if I go to any URL in the site, I only get this: [https://i.imgur.com/wxWQUmW.png](https://i.imgur.com/wxWQUmW.png). The site stops working.

Did I do something wrong?

— Update 1 —  
I found this in log/production.log:

```plaintext
Job exception: Wrapped ActiveRecord::RecordNotUnique: PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_uploads_on_sha1"
DETAIL: Key (sha1)=(48d15c70043e5c6da051b473073a85d7e893c9d9) already exists.
: INSERT INTO "uploads" ("created_at", "filesize", "height", "origin", "original_filename", "sha1", "updated_at", "url", "user_id", "width") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"

```

— Update 2 —

- On Firefox, if I open home page of my Discourse in tab 1, and open activation link in tab 2, the tab 2 will face the issue as described above. While in the tab 1, if I reload, the page become hanging (with busy JavaScript) and make the whole Firefox window freeze (CPU usage increases).
- When the issue happens, if I open my Discourse in another browser (Chromium), the site works as normal. I think there may be something wrong with cookies.

---

<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: [March 31, 2015, 6:23am UTC](https://meta.discourse.org/t/activate-button-doesnt-work/27011/2 "2015-03-31T06:23:40Z")

</div>

Sounds like a busted install to me. Is this for development or for a live site?

---

<div class="post-metadata">

### Author: ![hongquan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hongquan/32/115859_2.png) [@hongquan](https://meta.discourse.org/u/hongquan)
#### Post date: [March 31, 2015, 7:53am UTC](https://meta.discourse.org/t/activate-button-doesnt-work/27011/3 "2015-03-31T07:53:22Z")

</div>

It is for try. It runs on my localhost for me to test before setup in live site.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [March 31, 2015, 8:34pm UTC](https://meta.discourse.org/t/activate-button-doesnt-work/27011/4 "2015-03-31T20:34:56Z")

</div>

That’s the `<noscript>` content, except as plain text. Something’s wrong.

---

<div class="post-metadata">

### Author: ![hongquan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hongquan/32/115859_2.png) [@hongquan](https://meta.discourse.org/u/hongquan)
#### Post date: [April 1, 2015, 3:39am UTC](https://meta.discourse.org/t/activate-button-doesnt-work/27011/5 "2015-04-01T03:39:14Z")

</div>

I’ve just added more info (see Update 2).
