Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Resque worker failing with PostgreSQL server
- getaddrinfo: nodename nor servname provided, or not known
- Class SentimentJob
- Arguments [4, 5, 6]
- Exception ActiveRecord::StatementInvalid
- Error PGError: server closed the connection unexpectedly This probably means
- the server terminated abnormally before or while processing the request.
- : SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc,
- a.attnotnull FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid =
- d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"taggings"'::regclass
- AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum
- Class FBConnectionsJob
- Arguments 1
- Exception OpenSSL::SSL::SSLError
- Error SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B:
- certificate verify failed
- Class FBConnectionsJob
- Arguments 1
- Exception ActiveRecord::StatementInvalid
- Error PGError: server closed the connection unexpectedly This probably means
- the server terminated abnormally before or while processing the request.
- : SELECT tablename FROM pg_tables WHERE schemaname = ANY
- (current_schemas(false))
- uri = URI.parse(ENV["REDISTOGO_URL"])
- Resque.redis = Redis.new(:host => uri.host, :port => uri.port, :password => uri.password)
- Dir["#{Rails.root}/app/jobs/*.rb"].each { |file| require file }
- uri = URI.parse(ENV["REDISTOGO_URL"])
- REDIS = Redis.new(:host => uri.host, :port => uri.port, :password => uri.password)
- Resque.redis = REDIS
- ENV["REDISTOGO_URL"] = 'redis://username:password@my.host:6789'
- task "resque:setup" => :environment do
- Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection }
- end
- if Rails.env.development?
- uri = URI.parse(ENV["REDISTOGO_URL"])
- Resque.redis = Redis.new(:host => 'localhost', :port => '6379')
- else
- uri = URI.parse(ENV["REDISTOGO_URL"])
- Resque.redis = Redis.new(:host => uri.host, :port => uri.port, :password => uri.password)
- end
Add Comment
Please, Sign In to add comment