Can't log in as admin

653 views
Skip to first unread message

BGarr

unread,
Feb 4, 2011, 11:22:55 AM2/4/11
to Canvas LMS Users
Hi
I just set up an instance of Canvas LMS on a test server. I had to use
mysql, as it is a CentOS box, and I could not get a recent enough
version of sqlite from yum. rake db:initial_setup ran fine, though,
once I created the databases. I entered a password for the site admin,
but I can't log in using it and the admin user name I established. I
dropped the databases and started from scratch just to be sure, but I
got the same behavior the second time around. Do you have any
suggestions?

Thanks,
Bill Garr

JT Olds

unread,
Feb 4, 2011, 11:49:19 AM2/4/11
to canvas-l...@googlegroups.com
I assume you followed the Quick-Start instructions and are using
script/server to run Canvas.

I have two ideas:

* First, just try the forgot password link and see what that does.
Obviously it won't email you, but the email it would have sent will
show up in the output of script/server.
* Second, run script/console, and see what the command "User.last"
says. If that is your user you can manually set the password with the
following set of commands:

u = User.last
u.register
p = u.pseudonyms.first
p.password = p.password_confirmation = "newpassword"
p.save
exit

How far do those ideas get you?

bgarr.thinkabt

unread,
Feb 4, 2011, 2:34:27 PM2/4/11
to canvas-l...@googlegroups.com
Dear JT,
Thanks for your suggestions. I hadn't recognized the email record for what it was in the terminal output. I used the link to reset my password. Actually, I think it was my username that had been wrong. I didn't expect it to be User. That isn't what I specified in the rake task input. Anyway, I'm up and running. Thank you.

Bill

Sent from my iPhone

Reply all
Reply to author
Forward
Message has been deleted
0 new messages