엉덩방아를 찧다
6785 단어 alonetone
묘사
6:in `<main>'
sudara@alonetone-ramen ~ $ /bin/bash -l -c 'cd /data/alonetone-rails4; bundle exec rails runner -e production "Asset.update_hotness"'
[SKYLIGHT] Skylight agent enabled
/data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands/runner.rb:53:in `eval': undefined method `fields' for nil:NilClass (NoMethodError)
from /data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/mysql2_adapter.rb:233:in `select'
from /data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:24:in `select_all'
from /data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'
from /data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/relation/calculations.rb:262:in `execute_simple_calculation'
from /data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/relation/calculations.rb:224:in `perform_calculation'
from /data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/relation/calculations.rb:108:in `calculate'
from /data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/activerecord-deprecated_finders-1.0.3/lib/active_record/deprecated_finders/relation.rb:84:in `calculate'
from /data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/relation/calculations.rb:24:in `count'
from /data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/querying.rb:12:in `count'
from /data/alonetone-rails4/app/models/asset/statistics.rb:38:in `calculate_hotness'
from /data/alonetone-rails4/app/models/asset/statistics.rb:32:in `block in update_hotness'
from /data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/relation/batches.rb:26:in `block (2 levels) in find_each'
from /data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/relation/batches.rb:26:in `each'
from /data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/relation/batches.rb:26:in `block in find_each'
from /data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/relation/batches.rb:75:in `find_in_batches'
from /data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/activerecord-deprecated_finders-1.0.3/lib/active_record/deprecated_finders/relation.rb:70:in `find_in_batches'
from /data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/relation/batches.rb:25:in `find_each'
from /data/alonetone-rails4/app/models/asset/statistics.rb:30:in `update_hotness'
from (eval):1:in `<top (required)>'
from /data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands/runner.rb:53:in `eval'
from /data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands/runner.rb:53:in `<top (required)>'
from /data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:86:in `require'
from /data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:86:in `<top (required)>'
from script/rails:6:in `require'
토론 #1
/data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:444:[오류] 세그먼트 오류ruby 2.0.0p247(2013-06-27 수정판 41674)[i686 linux]
-- 제어 프레임 정보 -----------------------------------------------
c:0016 p:----s:0056 e:000055 CFUNC:[]=
c:0015 p:----s:0048 e:000053 CFUNC:public_send[FINISH]
c:0014p:--s:0042e:000041 IFUNC[완성]
c:0013 p:0023 s:0040 e:000039 METHOD/home/sudara/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/monitor.rb:211
c:0012p:---s:0039e:000038 CFUNC: 전류
c:0011 p:0041 s:0035 e:000034 METHOD/home/sudara/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/monitor.rb:246
c:0010 p:0050 s:0032 e:000031 METHOD/home/sudara/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/monitor.rb:199
c:0009 p:0023 s:0028 e:000027 METHOD/home/sudara/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/monitor.rb:211
c:0008p:0010s:0025e:000024 방법/데이터/alonetone-rails4/공급업체/패키지/ruby/2.0/gems/activerecord-4.0.1/lib/active 기록/연결 어댑터/abstract/connecti
c:0007p:---s:0023e:000022 CFUNC:현재
c:0006 p:---s:0019 e:000018 CFUNC:잠금 해제
c:0005 p:0050 s:0016 e:000015 METHOD/home/sudara/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/monitor.rb:199
c:0004 p:0023 s:0012 e:000011 METHOD/home/sudara/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/monitor.rb:211
c:0003 p:---s:0010 e:000009 CFUNC:수면
c:0002 p:0015 s:0006 e:000005 BLOCK/data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.1/lib/active_record/connection_adapters/abstract/connecti[FINISH]
c:0001p:---s:0002 e:000001 상단 [액세서리]
/data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:216:in
block in run'
/data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:216:in
자라--C레벨 거슬러 올라가는 정보 ---------------------------------------
/home/sudara/.rbenv/versions/2.0.0-p247/bin/ruby(+0x15b842)[0xb76ee842]
/home/sudara/.rbenv/versions/2.0.0-p247/bin/ruby(+0x1b4acf)[0xb7747acf]
/home/sudara/.rbenv/versions/2.0.0-p247/bin/ruby(rb_bug+0x49)[0xb7747d19]
/home/sudara/.rbenv/versions/2.0.0-p247/bin/ruby(+0xd7e9c)[0xb766ae9c]
[0xf57fe40c]
/data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/mysql2-0.3.14/lib/mysql2/mysql2.그래서 (내 인터넷 읽기 +0x187) [0xb6d08a07] 파일.c:2258
/data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/mysql2-0.3.14/lib/mysql2/mysql2.그래서 (cli safe read+0x2f)[0xb6d0d30f]gc.c:801
/data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/mysql2-0.3.14/lib/mysql2/mysql2.그래서 (+0x2da1f)[0xb6d0da1f]gc.c:1340
/data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/mysql2-0.3.14/lib/mysql2/mysql2.따라서(mysql read query result+0x14) [0xb6d02b74] 파일입니다.c:2900
/data/alonetone-rails4/vendor/bundle/ruby/2.0.0/gems/mysql2-0.3.14/lib/mysql2/mysql2.그래서 (+0x1dd1d)[0xb6cfdd1d]vm 핵심.h:885
/home/sudara/.rbenv/versions/2.0.0-p247/bin/ruby(+0x16a2ff)[0xb76fd2ff]
토론 #2
#61에서 수정된 것 같습니다.Reference
이 문제에 관하여(엉덩방아를 찧다), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://github.com/sudara/alonetone/issues/60텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)