I have setup an OpenShift cluster in AWS and installed the 3scale-amp 2.4 template and managed to get RedHat 3scale API Management Portal to work, but when I try to invite team members I get a timeout with html error 504. The mail is setup to go through Amazon SES.

In the Account Settings -> Users -> Invitations screen I click "Invite a New Team Member" and enter the recipient email and click sen, I get a timeout for 30 seconds and the I am presented with the error:

504 Gateway Time-out The server didn't respond in time.

I have tried to send email from one of the masters directly via Amazon SES and that works.

Header response

Request URL: https://3scale-admin.api.xxx.io/p/admin/account/invitations/5/resend
Request Method: POST
Status Code: 504 
Remote Address: xxx.xxx.xxx.xxx:443
Referrer Policy: no-referrer-when-downgrade

The log

[da2c91d4-9c85-499b-b0e4-8e0a52d10cb1] [3scale-admin.api.xxx.io] [xxx.xxx.xxx.xxx] Started PUT "/p/admin/account/invitations/3/resend" for xxx.xxx.xxx.xxx at 2019-05-13 08:45:53 +0000
[da2c91d4-9c85-499b-b0e4-8e0a52d10cb1] [3scale-admin.api.xxx.io] [xxx.xxx.xxx.xxx] Processing by Provider::Admin::Account::InvitationsController#resend as HTML
[da2c91d4-9c85-499b-b0e4-8e0a52d10cb1] [3scale-admin.api.xxx.io] [xxx.xxx.xxx.xxx]   Parameters: {"authenticity_token"=>"yyy", "id"=>"3"}
[da2c91d4-9c85-499b-b0e4-8e0a52d10cb1] [3scale-admin.api.xxx.io] [xxx.xxx.xxx.xxx]   Rendered provider_invitation_mailer/invitation.text.erb (0.1ms)
[da2c91d4-9c85-499b-b0e4-8e0a52d10cb1] [3scale-admin.api.xxx.io] [xxx.xxx.xxx.xxx] Sent mail to [email protected] (30004.6ms)
[da2c91d4-9c85-499b-b0e4-8e0a52d10cb1] [3scale-admin.api.xxx.io] [xxx.xxx.xxx.xxx] Completed 500 Internal Server Error in 30041ms (ActiveRecord: 11.7ms)
xxx.xxx.xxx.xxx,10.211.64.21 - - [13/May/2019:08:46:23 +0000] "PUT /500 HTTP/1.1" 500 - 30.0518
Exception -- [da2c91d4-9c85-499b-b0e4-8e0a52d10cb1] [3scale-admin.api.xxx.io] [xxx.xxx.xxx.xxx] execution expired
[da2c91d4-9c85-499b-b0e4-8e0a52d10cb1] [3scale-admin.api.xxx.io] [xxx.xxx.xxx.xxx] 
Net::OpenTimeout (execution expired):
  app/models/invitation.rb:62:in `notify_invitee'
  app/models/invitation.rb:41:in `resend'
  app/controllers/provider/admin/account/invitations_controller.rb:23:in `resend'
  lib/three_scale/middleware/multitenant.rb:116:in `_call'
  lib/three_scale/middleware/multitenant.rb:111:in `call'
  lib/action_dispatch/rails5_ssl.rb:86:in `call'

I expect the invite mail to end up in my email, but nothing happens. The actual invite is added to the 3scale database and is visible int he Invitations screen and I can press the "Resend" button but the same thing is happening again with the 504 error.

0 Answers