Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Can't login after fresh install (Debian/Ubuntu package install)

Can't login after fresh install (Debian/Ubuntu package install)

Added by Patrick Regan over 8 years ago

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?


Replies (3)

RE: Can't login after fresh install (Debian/Ubuntu package install) - Added by Patrick Regan over 8 years ago

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?

RE: Can't login after fresh install (Debian/Ubuntu package install) - Added by Patrick Regan over 8 years ago

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:

  1. 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.
  1. 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"
  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”.

RE: RE: Can't login after fresh install (Debian/Ubuntu package install) - Added by Quentin Goulard over 6 years ago

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 :-(

  • (1 - 3/3)
Loading...