First account has no access to admin panel

(Matt) #1

I just installed Discourse on DigitalOcean using the one-click apps and went through the setup over SSH. Everything checks out but my first user account that I created on the web site (using the same email address provided over SSH - I checked 3 times) was not an admin account. In other words, I have no access to the admin panel. Any tips? :slight_smile:

Email address is case-sensitive in first run install setup
(cpradio) #2

SSH into the server

cd /var/discourse
./launcher enter app
u = User.find_by_email('your_email');
u.admin = true;

(Matt) #3

Thanks - it works up to this point, which line gives:

bash: syntax error near unexpected token `(’

(Gerhard Schlager) #4

You need to start the Rails console after entering the container. This is it:

cd /var/discourse
./launcher enter app
rails c
u = User.find_by_email('your_email');
u.admin = true;

(cpradio) #5

oops, I forgot about the rails console.

(Matt) #6

Thanks! I figure this is a bug with Discourse since I started over from scratch and entered my email in the setup with all lowercase and it worked. Will open a new thread for that.

(Jeff Atwood) #7

No known bugs with this that I’ve seen. Just make sure the email matches what you entered at bootstrap time. It is not case sensitive.

(Matt) #8

I think it is; I repeated the process exactly and got it to work with a lowercase email. Here’s a report.

Discourse is great, by the way! Thanks for making it.

(Jeff Atwood) closed #9