Content
Can't login after fresh install (Debian/Ubuntu package install)
I cannot log in with the default admin:admin. I’ve tried the rake db:seed suggestion (running as user openproject), too, but that returns the error
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
@ @
(See full trace by running task with --trace)
What am I missing? How do I log in so I can start configuring projects?
Follow-up: the output from [openprojecthost] RAILS_ENV=“production” ./bin/rake db:seed@ yields:
*** Seeding admin user
@ ***** No need to seed an admin as there already is one.@
Still no luck getting a login. How can I either delete the existing admin account, or find some other way to log in?
Followed the directions in this post https://community.openproject.com/topics/1052, but discovered a typo:
To reset the admin (or any user) password from the command line:
- Check if you have enabled the ‘forget password’ function if activated you can find a link for password reset on the login page or in the login dropdown.
- If not enabled you can enable this function in the rails console by running the following commands:
RAILS_ENV=production bundle exec rails c
Setting.lost_password="1"
- Change the users password with rails console. This is not recommended because it is possible that the plain password is stored in the history of the console.
RAILS_ENV=production bundle exec rails c
u = User.find_by_login "your login name"(eg.u = User.find_by_login "admin")
u.password=u.password_confirmation='my new password'
u.save!<— note the “!”. The post linked above omits the “!”, and the console will return “false”.
How to start a rails console ? I install Openproject with bitnami in Google Cloud Platform
When i connect with ssh, i have this :
RAILS_ENV=production bundle exec rails c
Could not locate Gemfile or .bundle/ directory
I Need my admin password :-(