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. Mail Notifications fail with "Invalid :protocol option: " ""

Mail Notifications fail with "Invalid :protocol option: " ""

Added by Oliver Jakobi over 8 years ago

On a fresh install with email configured, openproject fails to send emails with error Message

Invalid :protocol option: ""

From my production log, I found

F, [2016-09-28T14:27:31.676129 #21788] FATAL -- : ArgumentError (Invalid :protocol option: ""):
  app/mailers/user_mailer.rb:232:in `message_posted'
  app/models/message_observer.rb:37:in `block in after_create'
  app/models/message_observer.rb:36:in `each'
  app/models/message_observer.rb:36:in `after_create'
  app/controllers/messages_controller.rb:82:in `create'
  app/middleware/reset_current_user.rb:47:in `call'
  app/middleware/params_parser_with_exclusion.rb:40:in `call'

The mentioned line of code reads:

    @message_url = topic_url(@message.root, r: @message.id, anchor: "message-#{@message.id}")

Since this error occurs on versions 5 and 6, I hardly believe this to be a bug.
Did I miss anything configuration-wise?

Best,
Oliver


Replies (4)

RE: Mail Notifications fail with "Invalid :protocol option: " "" - Added by Oliver Jakobi over 8 years ago

Solved!

Sending the Message failed, because the hostname in “System Settings” -> “General” was not set.
Adding the IP/fqdn did the trick.

RE: Mail Notifications fail with "Invalid :protocol option: " "" - Added by Oliver Günther over 8 years ago

Hi Oliver,

we’ve seen this issue a few times before, and it appears to be failing to set the hostname from the packager installation. Did you use the Apache installation step of the packager wizard,
or did you skip it?

In the latter case, I suspect that a hostname will not be automatically set (because it does not know the actual value), and cause these type of errors.

Best,
Oliver

RE: Mail Notifications fail with "Invalid :protocol option: " "" - Added by Oliver Jakobi over 8 years ago

Hi Oliver,

I installed OpenProject behind Nginx, so the Apache installation was skipped.

For these cases, if OpenProject is installed behind a webserver other than Apache, wouldn’t it be more convenient to let the installer ask for the hostname?

Best,
Oliver

RE: Mail Notifications fail with "Invalid :protocol option: " "" - Added by Oliver Günther over 8 years ago

Hi Oliver,

yes, exactly that. I’ll create a ticket.

Thanks for your quick reply.

Best,
Oliver

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