Bug #16051

Updated by Peter Amstutz almost 2 years ago

Looks like mail is not set up:

<pre>
#<ArvadosApiClient::ApiErrorResponseException: request failed: http://localhost:8004/arvados/v1/users/setup: 422 Unprocessable Entity: #<Errno::ECONNREFUSED: Connection refused - connect(2) for "localhost" port 25> (req-equ9m4uafgajc9xkcvi7) [API: 422]>
/var/www/arvados-workbench/current/app/models/arvados_api_client.rb:180:in `api'
/var/www/arvados-workbench/current/app/models/user.rb:99:in `setup'
/var/www/arvados-workbench/current/app/controllers/users_controller.rb:223:in `block in setup'
/var/www/arvados-workbench/shared/vendor_bundle/ruby/2.5.0/gems/actionpack-5.0.7.2/lib/action_controller/metal/mime_responds.rb:195:in `respond_to'
/var/www/arvados-workbench/current/app/controllers/users_controller.rb:205:in `setup'
</pre>

The real error is

<pre>
/usr/lib/ruby/2.5.0/net/smtp.rb:539:in `initialize'
/usr/lib/ruby/2.5.0/net/smtp.rb:539:in `open'
/usr/lib/ruby/2.5.0/net/smtp.rb:539:in `tcp_socket'
/usr/lib/ruby/2.5.0/net/smtp.rb:549:in `block in do_start'
/usr/lib/ruby/2.5.0/timeout.rb:93:in `block in timeout'
/usr/lib/ruby/2.5.0/timeout.rb:103:in `timeout'
/usr/lib/ruby/2.5.0/net/smtp.rb:548:in `do_start'
/usr/lib/ruby/2.5.0/net/smtp.rb:518:in `start'
/var/www/arvados-api/shared/vendor_bundle/ruby/2.5.0/gems/mail-2.7.1/lib/mail/network/delivery_methods/smtp.rb:109:in `start_smtp_session'
/var/www/arvados-api/shared/vendor_bundle/ruby/2.5.0/gems/mail-2.7.1/lib/mail/network/delivery_methods/smtp.rb:100:in `deliver!'
/var/www/arvados-api/shared/vendor_bundle/ruby/2.5.0/gems/mail-2.7.1/lib/mail/message.rb:2159:in `do_delivery'
/var/www/arvados-api/shared/vendor_bundle/ruby/2.5.0/gems/mail-2.7.1/lib/mail/message.rb:260:in `block in deliver'
/var/www/arvados-api/shared/vendor_bundle/ruby/2.5.0/gems/actionmailer-5.0.7.2/lib/action_mailer/base.rb:543:in `block in deliver_mail'
/var/www/arvados-api/shared/vendor_bundle/ruby/2.5.0/gems/activesupport-5.0.7.2/lib/active_support/notifications.rb:164:in `block in instrument'
/var/www/arvados-api/shared/vendor_bundle/ruby/2.5.0/gems/activesupport-5.0.7.2/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/var/www/arvados-api/shared/vendor_bundle/ruby/2.5.0/gems/activesupport-5.0.7.2/lib/active_support/notifications.rb:164:in `instrument'
/var/www/arvados-api/shared/vendor_bundle/ruby/2.5.0/gems/actionmailer-5.0.7.2/lib/action_mailer/base.rb:541:in `deliver_mail'
/var/www/arvados-api/shared/vendor_bundle/ruby/2.5.0/gems/mail-2.7.1/lib/mail/message.rb:260:in `deliver'
/var/www/arvados-api/shared/vendor_bundle/ruby/2.5.0/gems/actionmailer-5.0.7.2/lib/action_mailer/message_delivery.rb:96:in `block in deliver_now'
/var/www/arvados-api/shared/vendor_bundle/ruby/2.5.0/gems/actionmailer-5.0.7.2/lib/action_mailer/rescuable.rb:15:in `handle_exceptions'
/var/www/arvados-api/shared/vendor_bundle/ruby/2.5.0/gems/actionmailer-5.0.7.2/lib/action_mailer/message_delivery.rb:95:in `deliver_now'
/var/www/arvados-api/current/app/controllers/arvados/v1/users_controller.rb:124:in `setup'
</pre>

Back