2016-04-27 8 views
1

Wenn ich bin/delayed_job start laufen lasse, erhalte ich folgende Fehler:Beim Laufen ist/Start delayed_job, hat Postgres keine Verbindung

Job ActiveJob::QueueAdapters::DelayedJobAdapter::JobWrapper (id=30) FAILED (0 prior attempts) with ActiveRecord::StatementInvalid: PG::ConnectionBad: PQconsumeInput() server closed the connection unexpectedly 
This probably means the server terminated abnormally 
before or while processing the request. 

PG::UnableToSend: no connection to the server 

Antwort

2

, indem es das zu config/initializers/delayed_job.rb folgenden Gelöst

ActiveRecord::Base.connection.reconnect! 
Verwandte Themen