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. [solved]Trying to change user password -> Internal error

[solved]Trying to change user password -> Internal error

Added by Bernd Müller almost 9 years ago

Hi!

I try to change the password for a user. When I try to do so I get following error

Internal error

An error occurred on the page you were trying to access.
If you continue to experience problems please contact your OpenProject administrator for assistance.

If you are the OpenProject administrator, check your log files for details about the error.

log say following:

I, [2016-07-22T11:22:23.418576 #25276]  INFO -- :   Parameters: {"utf8"=>"✓", "authenticity_token"=>"7rdT/qR65lkvQeNx0uBTRYHmI7BnP5KFWc3RFFBk8RIob5laJk6fqYefXuRNuPJQ+aY4grp30IcY8x0OSei4/Q==", "user"=>{"login"=>"tm", "firstname"=>"Thomas", "lastname"=>"Molden", "mail"=>"t.molden@moldenmedia.de", "language"=>"en", "admin"=>"0", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "force_password_change"=>"[FILTERED]", "mail_notification"=>"only_my_events"}, "pref"=>{"impaired"=>"0", "time_zone"=>"Berlin", "comments_sorting"=>"asc", "theme"=>"default", "warn_on_leaving_unsaved"=>"1"}, "self_notified"=>"1", "send_information"=>"1", "button"=>"", "id"=>"46"}
I, [2016-07-22T11:22:23.710978 #25276]  INFO -- :   Rendered user_mailer/account_information.html.erb within layouts/user_mailer (62.5ms)
I, [2016-07-22T11:22:23.768988 #25276]  INFO -- :   Rendered user_mailer/account_information.text.erb within layouts/user_mailer (2.5ms)
I, [2016-07-22T11:22:33.842325 #25276]  INFO -- : 
Sent mail to foo@bar (10070.0ms)
I, [2016-07-22T11:22:33.842741 #25276]  INFO -- : Completed 500 Internal Server Error in 10424ms (ActiveRecord: 30.4ms)
F, [2016-07-22T11:22:33.843717 #25276] FATAL -- : 
EOFError (end of file reached):
  app/controllers/users_controller.rb:188:in `update'
  app/middleware/reset_current_user.rb:47:in `call'
  app/middleware/params_parser_with_exclusion.rb:40:in `call'

Could this be related to the fact that email/emailsettings are currently not working?

Any help is appreciated.

Cheers!


Replies (6)

RE: [solved]Trying to change user password -> Internal error - Added by Bernd Müller almost 9 years ago

This was related to a non-working email setting.
See https://community.openproject.com/topics/6464

RE: [solved]Trying to change user password -> Internal error - Added by Andrea Consadori over 8 years ago

Hi, i’ve the same issue but my email settings is working fine because i can send test email.

when i try to change user password i’ve

F, [2016-10-24T09:21:06.621016 #15002] FATAL -- : EOFError (end of file reached): app/controllers/users_controller.rb:190:in `update' app/middleware/reset_current_user.rb:47:in `call' app/middleware/params_parser_with_exclusion.rb:40:in `call'

maybe something else?

if i try to delete and recreate user i’ve this error at the end
@
E, [2016-10-24T09:25:22.255946 #14946] ERROR — : 2016-10-24T09:25:22-0500: [Worker(host:openproject pid:14946)] Job DeliverInvitationJob (id=4011) FAILED (1 prior attempts) with EOFError: end of file reached@

if usefoul i can recieve project task update via email.

i also check this
openproject run check
[ok] MySQL configuration is working
[ok] Web server is running
[ok] openproject server is running
[ok] openproject background job worker is running
sending test email using SMTP…
[ok] test email sent to andrea.consadori@xxxx.xx

RE: [solved]Trying to change user password -> Internal error - Added by Oliver Günther over 8 years ago

Hi Andrea,

could you check the output of the following command ? Please enter the login of the affected user as LOGIN_NAME

1. Start a Rails console as the openproject user

openproject run console

2. Manually try to send the mail notification

user = User.find_by(login: 'LOGIN_NAME')
UserMailer.account_information(user, user.password).deliver_now

The error is related to the SMTP configuration.

Best,
Oliver

RE: [solved]Trying to change user password -> Internal error - Added by Andrea Consadori over 8 years ago

Hi Oliver, thanks for your quick reply

After the email body i i’ve this output

----==_mimepart_580ef0025cba3_48933fdd6b763328875a5--

EOFError: end of file reached
        from /opt/openproject/vendor/ruby-2.1.6/lib/ruby/2.1.0/net/protocol.rb:153:in `read_nonblock'
        from /opt/openproject/vendor/ruby-2.1.6/lib/ruby/2.1.0/net/protocol.rb:153:in `rbuf_fill'
        from /opt/openproject/vendor/ruby-2.1.6/lib/ruby/2.1.0/net/protocol.rb:134:in `readuntil'
        from /opt/openproject/vendor/ruby-2.1.6/lib/ruby/2.1.0/net/protocol.rb:144:in `readline'
        from /opt/openproject/vendor/ruby-2.1.6/lib/ruby/2.1.0/net/smtp.rb:938:in `recv_response'
        from /opt/openproject/vendor/ruby-2.1.6/lib/ruby/2.1.0/net/smtp.rb:924:in `block in getok'
        from /opt/openproject/vendor/ruby-2.1.6/lib/ruby/2.1.0/net/smtp.rb:948:in `critical'
        from /opt/openproject/vendor/ruby-2.1.6/lib/ruby/2.1.0/net/smtp.rb:922:in `getok'
        from /opt/openproject/vendor/ruby-2.1.6/lib/ruby/2.1.0/net/smtp.rb:916:in `quit'
        from /opt/openproject/vendor/ruby-2.1.6/lib/ruby/2.1.0/net/smtp.rb:616:in `do_finish'
        from /opt/openproject/vendor/ruby-2.1.6/lib/ruby/2.1.0/net/smtp.rb:523:in `ensure in start'
        from /opt/openproject/vendor/ruby-2.1.6/lib/ruby/2.1.0/net/smtp.rb:523:in `start'
        from /opt/openproject/vendor/bundle/ruby/2.1.0/gems/mail-2.6.4/lib/mail/network/delivery_methods/smtp.rb:113:in `deliver!'
        from /opt/openproject/vendor/bundle/ruby/2.1.0/gems/mail-2.6.4/lib/mail/message.rb:2149:in `do_delivery'
        from /opt/openproject/vendor/bundle/ruby/2.1.0/gems/mail-2.6.4/lib/mail/message.rb:237:in `block in deliver'
        from /opt/openproject/vendor/bundle/ruby/2.1.0/gems/actionmailer-4.2.7.1/lib/action_mailer/base.rb:543:in `block
in deliver_mail'
        from /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `block in instrument'
        from /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
        from /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:164:in `instrument'
        from /opt/openproject/vendor/bundle/ruby/2.1.0/gems/actionmailer-4.2.7.1/lib/action_mailer/base.rb:541:in `deliver_mail'
        from /opt/openproject/vendor/bundle/ruby/2.1.0/gems/mail-2.6.4/lib/mail/message.rb:237:in `deliver'
        from /opt/openproject/vendor/bundle/ruby/2.1.0/gems/actionmailer-4.2.7.1/lib/action_mailer/message_delivery.rb:85:in `deliver_now'
        from (irb):11
        from /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7.1/lib/rails/commands/console.rb:110:in `start'
        from /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7.1/lib/rails/commands/console.rb:9:in `start'
        from /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7.1/lib/rails/commands/commands_tasks.rb:68:in `console'
        from /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7.1/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
        from /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7.1/lib/rails/commands.rb:17:in `<top (required)>'
        from bin/rails:4:in `require'
        from bin/rails:4:in `<main>'irb(main):012:0>

other things i can check?

my openproject version is the following

Package: openproject
Status: install ok installed
Priority: extra
Section: default
Installed-Size: 476020
Maintainer: support@packager.io
Architecture: amd64
Version: 6.0.4-1473846456.d23fc45.jessie
Provides: openproject
Depends: mysql-common, libpq5, libsqlite3-0, openssl, libxml2, libxslt1.1, libreadline5, libreadline6, libmagickwand-6.q16-2, dialog, bash, debianutils
Conffiles:
 /etc/default/openproject f37ae6484323bced21d44871b92b9776
 /etc/logrotate.d/openproject f4ae188b18668aafc1c49d54d59e9dfc
Description: Official OpenProject Community Edition
License: unknown
Vendor: Packager.io <https://packager.io>
Homepage: https://packager.io/gh/opf/openproject-ce

RE: [solved]Trying to change user password -> Internal error - Added by Oliver Günther over 8 years ago

Does your settings really include @ SMTP_ENABLE_STARTTLS_AUTO=TRUE@ ?
cf., this topic: https://community.openproject.com/topics/6464

If yes, then some other thing is terminating the connection from the other side. It is not a bug within OpenProject.

Best,
Oliver

RE: [solved]Trying to change user password -> Internal error - Added by Andrea Consadori over 8 years ago

Yes i set this but i see that web interface doesn’t change (is not flagged).
if i flag from web interface i have this error
“An error occurred while sending mail (hostname ”172.16.100.254&quot; does not match the server certificate)"

it’s an internal relay with custom certificate

Finally i fix it configuring sendmail to send to my smart host.

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