rails 5: TypeError (неявное преобразование OpenSSL :: ASN1 :: Integer в строку) - PullRequest
0 голосов
/ 20 декабря 2018

Когда Devise пытается отправить почту, эта ошибка отображается согласно моим журналам, я предполагаю, что так

Мой стек платформы - EC2 и Amazon ElastiCache, я могу пинговать с помощью redis-cli, я разрешил TCP в /из ElastiCache и моего экземпляра EC2 из любого места.

На локальном хосте все работает нормально, но ниже не работают производственные журналы

I, [2018-12-20T11:00:57.466583 #13106]  INFO -- : [26ec1aca-5f3a-40eb-913e-557ab044f4f2] Started GET "/users/sign_up" for 103.68.10.14 at 2018-12-20 11:00:57 +0000
I, [2018-12-20T11:00:57.467488 #13106]  INFO -- : [26ec1aca-5f3a-40eb-913e-557ab044f4f2] Processing by Devise::RegistrationsController#new as HTML
I, [2018-12-20T11:00:57.468656 #13106]  INFO -- : [26ec1aca-5f3a-40eb-913e-557ab044f4f2]   Rendering devise/registrations/new.html.erb within layouts/application
I, [2018-12-20T11:00:57.471929 #13106]  INFO -- : [26ec1aca-5f3a-40eb-913e-557ab044f4f2]   Rendered devise/shared/_links.html.erb (0.2ms)
I, [2018-12-20T11:00:57.472297 #13106]  INFO -- : [26ec1aca-5f3a-40eb-913e-557ab044f4f2]   Rendered devise/registrations/new.html.erb within layouts/application (3.5ms)
I, [2018-12-20T11:00:57.473032 #13106]  INFO -- : [26ec1aca-5f3a-40eb-913e-557ab044f4f2]   Rendered layouts/_navigation.html.erb (0.1ms)
I, [2018-12-20T11:00:57.473269 #13106]  INFO -- : [26ec1aca-5f3a-40eb-913e-557ab044f4f2] Completed 200 OK in 6ms (Views: 4.9ms)
I, [2018-12-20T11:01:07.420350 #13106]  INFO -- : [6c0a19b9-fe3b-44c1-baa3-66ca11a94561] Started POST "/users" for 103.68.10.14 at 2018-12-20 11:01:07 +0000
I, [2018-12-20T11:01:07.421228 #13106]  INFO -- : [6c0a19b9-fe3b-44c1-baa3-66ca11a94561] Processing by Devise::RegistrationsController#create as HTML
I, [2018-12-20T11:01:07.421388 #13106]  INFO -- : [6c0a19b9-fe3b-44c1-baa3-66ca11a94561]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"F7p0GJqJp5VbscWCEIGQ2NgrC2ZVTA8xZD/Jg5KlMshowzoqWXJw1PZSsKiNS9YN6+4n1U7Di2ZF9u7L9ANANQ==", "user"=>{"email"=>"sdfsdaf@543.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
D, [2018-12-20T11:01:07.573538 #13106] DEBUG -- : [6c0a19b9-fe3b-44c1-baa3-66ca11a94561]    (0.0ms)  begin transaction
D, [2018-12-20T11:01:07.574615 #13106] DEBUG -- : [6c0a19b9-fe3b-44c1-baa3-66ca11a94561]   User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?  [["email", "sdfsdaf@543.com"], ["LIMIT", 1]]
D, [2018-12-20T11:01:07.575598 #13106] DEBUG -- : [6c0a19b9-fe3b-44c1-baa3-66ca11a94561]   User Create (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "confirmation_token", "confirmation_sent_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  [["email", "sdfsdaf@543.com"], ["encrypted_password", "$2a$11$35UE9wB1CvIbZOYXhUoZo.sZ76JPUMoB2qd8RUm4uUClVmzec49ei"], ["confirmation_token", "brdsWzz-fz_3k9CSapi1"], ["confirmation_sent_at", "2018-12-20 11:01:07.574967"], ["created_at", "2018-12-20 11:01:07.574875"], ["updated_at", "2018-12-20 11:01:07.574875"]]
D, [2018-12-20T11:01:07.587962 #13106] DEBUG -- : [6c0a19b9-fe3b-44c1-baa3-66ca11a94561]    (12.0ms)  commit transaction
I, [2018-12-20T11:01:07.623979 #13106]  INFO -- : [6c0a19b9-fe3b-44c1-baa3-66ca11a94561] Completed 500 Internal Server Error in 202ms (ActiveRecord: 12.7ms)
F, [2018-12-20T11:01:07.625526 #13106] FATAL -- : [6c0a19b9-fe3b-44c1-baa3-66ca11a94561]   
F, [2018-12-20T11:01:07.625639 #13106] FATAL -- : [6c0a19b9-fe3b-44c1-baa3-66ca11a94561] TypeError (no implicit conversion of OpenSSL::ASN1::Integer into String):
F, [2018-12-20T11:01:07.625717 #13106] FATAL -- : [6c0a19b9-fe3b-44c1-baa3-66ca11a94561]   
F, [2018-12-20T11:01:07.625820 #13106] FATAL -- : [6c0a19b9-fe3b-44c1-baa3-66ca11a94561] redis (4.1.0) lib/redis/connection/ruby.rb:177:in `pack_sockaddr_in'
[6c0a19b9-fe3b-44c1-baa3-66ca11a94561] redis (4.1.0) lib/redis/connection/ruby.rb:177:in `connect_addrinfo'
[6c0a19b9-fe3b-44c1-baa3-66ca11a94561] redis (4.1.0) lib/redis/connection/ruby.rb:220:in `block in connect'
[6c0a19b9-fe3b-44c1-baa3-66ca11a94561] redis (4.1.0) lib/redis/connection/ruby.rb:218:in `each'
[6c0a19b9-fe3b-44c1-baa3-66ca11a94561] redis (4.1.0) lib/redis/connection/ruby.rb:218:in `each_with_index'
[6c0a19b9-fe3b-44c1-baa3-66ca11a94561] redis (4.1.0) lib/redis/connection/ruby.rb:218:in `connect'
[6c0a19b9-fe3b-44c1-baa3-66ca11a94561] redis (4.1.0) lib/redis/connection/ruby.rb:296:in `connect'
[6c0a19b9-fe3b-44c1-baa3-66ca11a94561] redis (4.1.0) lib/redis/client.rb:342:in `establish_connection'
[6c0a19b9-fe3b-44c1-baa3-66ca11a94561] redis (4.1.0) lib/redis/client.rb:104:in `block in connect'
...