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. "Email is invalid" message when logging in for first time

"Email is invalid" message when logging in for first time

Added by David NoLastName almost 9 years ago

I“ve just installed OP on RHEL 7, and I can connect to the Dashboard and log in as admin/admin. I tried to change the password as requested, but then I get the ”email is invalid" message. The new password is not saved, and I’m not actually logged in. I can’t work out what aspect of the email is invalid. I tried to just use root@localhost and similar accounts, all with the same result. For now I don’t actually need email and would happily disable it, but the only way I saw to do that was through the GUI, which I can’t get to (not logged in).

Can anyone suggest how to either fix or disable email while I test OP?

thanks

configuration.yml contains the following:

email_delivery_method: <%= ENV.fetch(‘EMAIL_DELIVERY_METHOD’) { :sendmail } %>
smtp_address: <%= ENV[‘SMTP_HOST’] %>
smtp_port: <%= ENV.fetch(‘SMTP_PORT’) { 25 }.to_i %>
smtp_domain: <%= ENV.fetch(‘SMTP_DOMAIN’) { ENV[‘HOSTNAME’] } %>
smtp_authentication: <%= ENV.fetch(‘SMTP_AUTHENTICATION’) { :login }.to_sym %>
smtp_user_name: <%= ENV[‘SMTP_USERNAME’] %>
smtp_password: <%= ENV[‘SMTP_PASSWORD’] %>
smtp_enable_starttls_auto: <%= ENV.fetch(‘SMTP_ENABLE_STARTTLS_AUTO’) { “false” } %>


Replies (4)

RE: "Email is invalid" message when logging in for first time - Added by Thomas B. almost 9 years ago

sorry, no help. same problem.

would be cool to use this without external email support…

RE: "Email is invalid" message when logging in for first time - Added by Ray Ketcham over 8 years ago

I get the same issue stating ’ Email can’t be blank ’

Can someone please advise?

thanks,

RK

RE: "Email is invalid" message when logging in for first time - Added by Oliver Günther over 8 years ago

Hi everyone,

upon first installing, the database is seeded with default information (such as the admin user). That admin user receives an email address that stems from your configuration, if it is set: ADMIN_EMAIL.
You probably set a mail address that is not being matched by the regex

/\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i

.
(root@localhost would be invalid, for example).

Please use the following steps to correct this issue:

1. Spawn an interactive shell on the installation:

openproject run console

This will boot up the application and should show the following output:

Loading production environment (Rails 4.2.7.1)
irb(main):001:0>

2. When the console has loaded, update the email address of the admin user

admin = User.find_by(login: 'admin')
admin.mail = '<Your mail address>'
admin.save!

This should print => true.
If it instead fails with an error something like ActiveRecord::RecordInvalid: Validation failed: Email is invalid., your mail address is invalid.

Afterwards, you should be able to login and change your password.

Best,
Oliver

RE: "Email is invalid" message when logging in for first time - Added by Ray Ketcham over 8 years ago

Perfect - i was able to login afterwards.

thank you very much!

rk

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