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? ![]()
AI-generated summary
User mholt reported an issue where their first account, created during a Discourse installation on DigitalOcean, lacked admin access despite using the correct email. cpradio initially provided a Ruby command to grant admin rights, but mholt encountered a syntax error. gerhard clarified that the Rails console must be started first using rails c before executing the user update commands. After applying the corrected solution, mholt noted that the process worked only when the email was entered in lowercase during setup, suggesting a potential case-sensitivity bug in the DigitalOcean one-click app, which they reported here. While codinghorror stated that email matching is not case-sensitive, mholt confirmed the issue persisted and thanked the community for their help.
SSH into the server
cd /var/discourse
./launcher enter app
u = User.find_by_email('your_email');
u.admin = true;
u.save
Thanks - it works up to this point, which line gives:
bash: syntax error near unexpected token `(’
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;
u.save
oops, I forgot about the rails console.
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.
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.
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.