数据库 resque 配合 postgresql 使用出现 ssl 错误

zhulinpinyu · 2013年02月18日 · 3026 次阅读

ActiveRecord::StatementInvalid Error PG::Error: SSL error: decryption failed or bad record mac : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum

解决方法:

task "resque:setup" => :environment do ENV['QUEUE'] = '*' Resque.after_fork = Proc.new { ActiveRecord::Base.establish_connection } end

http://stackoverflow.com/questions/9915146/resque-with-rails-3-heroku-redistogo-giving-postgresql-error

暂无回复。
需要 登录 后方可回复, 如果你还没有账号请 注册新账号