0

我使用 resque 来运行后台作业,但我遇到了错误。我在本地运行应用程序,我无法成功运行。

PG::Error: SSL SYSCALL error: EOF detected : 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 = '"loans"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum

/home/pcs31/.rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:1158:in `exec'
/home/pcs31/.rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:1158:in `exec_no_cache'
/home/pcs31/.rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:664:in `block in exec_query'
/home/pcs31/.rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log'
/home/pcs31/.rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/pcs31/.rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'
/home/pcs31/.rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:663:in `exec_query'
/home/pcs31/.rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:1283:in `column_definitions'
/home/pcs31/.rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:859:in `columns'
/home/pcs31/.rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.8/lib/active_record/connection_adapters/schema_cache.rb:12:in `block in initialize'
/home/pcs31/.rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.8/lib/active_record/model_schema.rb:228:in `yield'
/home/pcs31/.rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.8/lib/active_record/model_schema.rb:228:in `default'
/home/pcs31/.rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.8/lib/active_record/model_schema.rb:228:in `columns'
/home/pcs31/.rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.8/lib/active_record/model_schema.rb:248:in `column_names'
/home/pcs31/.rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.8/lib/active_record/model_schema.rb:261:in `column_methods_hash'
/home/pcs31/.rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.8/lib/active_record/dynamic_matchers.rb:69:in `all_attributes_exists?'
/home/pcs31/.rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.8/lib/active_record/dynamic_matchers.rb:27:in `method_missing'
/home/pcs31/Desktop/workspace/cfs-web/app/resque_workers/document_worker.rb:7:in `perform'

我按照下面的链接 stackover溢出 在此处输入链接描述

对不起,我的英语不好。

你能推荐一个吗?

在此先感谢普拉萨德

4

0 回答 0