Spree - timeout when trying to access the backend

From today, access to the backend of my chauffeur shop is suddenly unavailable. When I try to visit any page in the backend (/ admin / users, / admin / orders, etc.), the page just loads for a long time until it expires, and I get a common error page.

When I look through the magazines, I always see:

Processing by Spree::Admin::OrdersController#index as HTML
Completed 500 Internal Server Error in 127259ms
** [Airbrake] Success: Net::HTTPOK

Errno::ETIMEDOUT (Connection timed out - connect(2)):
  app/middleware/flash_session_cookie_middleware.rb:18:in `call'

or

Processing by Spree::Admin::OrdersController#index as HTML
Completed 500 Internal Server Error in 127520ms
** [Airbrake] Success: Net::HTTPOK

SocketError (getaddrinfo: Name or service not known):
app/middleware/flash_session_cookie_middleware.rb:17:in `call'

It started after the last deployment to a production that only changed images and style sheets. I cannot reproduce the error locally, despite having the same code and an exact copy of the production database. I am using Spree version 2.0.3

+4
source share
1

Spree::Config[:check_for_spree_alerts] = false , . initializers/spree.rb, , check_for_spree_alerts .

, Spree Alerts . .: https://github.com/spree/spree/pull/6516

, , Spree 2.0.x - Spree https://github.com/spree/spree/blob/2-0-stable/backend/app/controllers/spree/admin/base_controller.rb#L39, alert.rb:14:

HTTParty.get('http://alerts.spreecommerce.com/alerts.json', query: params).parsed_response

alerts.spreecommerce.com , , .

Spree Alerts Spree 2.3, , .

+11

Source: https://habr.com/ru/post/1606819/


All Articles