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

General discussion
  1. OpenProject
  2. Forums
  3. General discussion
  4. problem logging into system

problem logging into system

Added by ivan mustaka almost 5 years ago

Hello, I'm new in here, found that project and decided to give it a shot, but so far not working

I made fresh install on debian 10 reading the wiki. After all done (with no errors)

I open the web interfeca and login using default user/pass

after login it offers me to change password, when I enter old and new one it display this errors:

This account uses an external authentication source. Impossible to change the password.

1 error prohibited this User from being saved

There were problems with the following fields:

  • Email can't be blank.

Replies (4)

RE: problem logging into system - Added by Oliver Günther almost 5 years ago

Hi Ivan,

you have likely provided an empty string to the admin mail wizard question, which in turn sets the ADMIN_EMAIL ENV variable to an empty string.

This has been fixed in https://github.com/opf/openproject/commit/b07aacdf42 , but here's how you can correct this locally for now:

Assuming you installed the packaged version of OpenProject, run this command as root or openproject user:

`openproject run bundle exec rails runner "User.where(login: 'admin').update_all(mail: 'yourmail@example.com')"

Then try to login again and change your password.

Best

Oliver

RE: problem logging into system - Added by ivan mustaka almost 5 years ago

thank you for quick answer, tried but no success, guess installation is somehow corrupt:

Traceback (most recent call last):
        21: from bin/rails:9:in `<main>'
        20: from bin/rails:9:in `require'
        19: from /opt/openproject/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/commands.rb:18:in `<top (required)>'
        18: from /opt/openproject/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/command.rb:46:in `invoke'
        17: from /opt/openproject/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/command/base.rb:69:in `perform'
        16: from /opt/openproject/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
        15: from /opt/openproject/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
        14: from /opt/openproject/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
        13: from /opt/openproject/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/commands/runner/runner_command.rb:33:in `perform'
        12: from /opt/openproject/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/command/actions.rb:14:in `require_application_and_environment!'
        11: from /opt/openproject/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/command/actions.rb:22:in `require_application!'
        10: from /opt/openproject/vendor/bundle/ruby/2.6.0/gems/railties-6.0.2.2/lib/rails/command/actions.rb:22:in `require'
         9: from /opt/openproject/config/application.rb:82:in `<top (required)>'
         8: from /opt/openproject/config/application.rb:83:in `<module:OpenProject>'
         7: from /opt/openproject/config/application.rb:183:in `<class:Application>'
         6: from /opt/openproject/lib/open_project/configuration.rb:258:in `[]'
         5: from /opt/openproject/lib/open_project/configuration.rb:189:in `load'
         4: from /opt/openproject/lib/open_project/configuration.rb:439:in `load_config_from_file'
         3: from /opt/openproject/vendor/ruby-2.6.6/lib/ruby/2.6.0/psych.rb:277:in `load'
         2: from /opt/openproject/vendor/ruby-2.6.6/lib/ruby/2.6.0/psych.rb:390:in `parse'
         1: from /opt/openproject/vendor/ruby-2.6.6/lib/ruby/2.6.0/psych.rb:456:in `parse_stream'
/opt/openproject/vendor/ruby-2.6.6/lib/ruby/2.6.0/psych.rb:456:in `parse': (<unknown>): did not find expected whitespace or line break while scanning a tag at line 38 column 18 (Psych::SyntaxError)

RE: problem logging into system - Added by ivan mustaka almost 5 years ago

tried to run "openproject reconfigure" , same error

RE: problem logging into system - Added by Oliver Günther almost 5 years ago

It appears to fail trying ot parse your /opt/openproject/config/configuration.yml. Judging from the line 38 column 18, this might be due to your SMTP_PASSWORD somehow breaking the YML spec https://github.com/opf/openproject/blob/dev/packaging/conf/configuration.yml#L38

This is probably because the string is not properly escaped while writing. Without exposing your password, could you let me know if there are any control characters (colon, ampersand and the like) that I could test against?

Best

Oliver

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