I setup Discourse in localhost, but in production mode, with Passenger & Nginx.
Action mailer is setup with 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: http://i.imgur.com/wxWQUmW.png. The site stops working.
Did I do something wrong?
— Update 1 —
I found this in log/production.log:
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 —
- 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.