2011-09-18 18 views
5

He estado tratando de descubrir qué es lo que falla de los registros, pero no tengo idea de cómo solucionarlo. Aquí están los fragmentos de los registros Estoy un poco confundido en cuanto a cómo solucionarlo. Cualquier ayuda sería muy apreciada.La aplicación Rails funciona localmente, se bloquea en Heroku

Could not load SystemTimer >= v1.2.0. Falling back to timeout.rb. SystemTimer is STRONGLY recommended for timeouts in Ruby 1.8.7. See http://ph7spot.com/blog/system-timer-1-2-release for details. 

/app/.bundle/gems/ruby/1.8/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:306:in `depend_on': No such file to load -- spec_helper (LoadError) 

y esto era en la parte superior de los registros de

from /app/.bundle/gems/ruby/1.8/gems/railties-3.1.0/lib/rails/initializable.rb:49:in `run_initializers' 

Según paquete, los siguientes gemas se utilizan

Según haz de instalar, se instalan los siguientes gemas

Usando el rake (0.9.2) Usando abstract (1.0.0) Usando activesupport (3.0.3) Usando el constructor (2.1.2) Usando i18n (0.6.0) Usando ActiveModel (3.0.3) Usando erubis (2.6.6) Uso de cremallera (1.2.4) Uso de montaje en bastidor (0.6.14) Uso de estante -test (0.5.7) Usando tzinfo actionpack (0.3.29) Uso de (3.0.3) Uso de tipos MIME (1,16) Uso políglota (0.3.2) Uso de copas de los árboles (1.4.10) Usando el correo (2.2.19) Usando actionmailer (3.0.3) Usando Arel (2.0.10) Usando activerecord (3.0.3) Usando ActiveResource (3.0.3) Usando BSON (1.3.1) Usando bson_ext (1,3 .1) Usando bundler (1.0.18) Usando carrierwave (0.5.7) Usando excon (0.6.6) Usando formatador (0.2.1) Usando multi_json (1.0.3) por medio de net-ssh (2.1.4) por medio de net-SCP (1.0.4) Usando nokogiri (1.5.0) El uso de rubí hmac (0.4.0) ayuda de niebla (0.11.0) Usando Formtastic (1.2.4) Usando mongo (1.3. 1) Usando valientes (0.3.8) Usando mongo_mapper (0.9.2) Usando thor (0.14.6) Uso de railties (3.0.3) Uso de carriles (3.0.3) Uso de rails3-generadores (0,17. 4)

Éstos son los registros completos heroku

2011-09-19T00:19:53+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:49:in `run_initializers' 
2011-09-19T00:19:53+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:134:in `initialize!' 
2011-09-19T00:19:53+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:77:in `method_missing' 
2011-09-19T00:19:53+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>' 
2011-09-19T00:19:53+00:00 app[web.1]: from <internal:lib/rubygems/custom_require>:29:in `require' 
2011-09-19T00:19:53+00:00 app[web.1]: from <internal:lib/rubygems/custom_require>:29:in `require' 
2011-09-19T00:19:53+00:00 app[web.1]: from config.ru:3:in `block (3 levels) in <main>' 
2011-09-19T00:19:53+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:23:in `eval' 
2011-09-19T00:19:53+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:23:in `block (3 levels) in <main>' 
2011-09-19T00:19:53+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval' 
2011-09-19T00:19:53+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize' 
2011-09-19T00:19:53+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:63:in `new' 
2011-09-19T00:19:53+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:63:in `map' 
2011-09-19T00:19:53+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:18:in `block (2 levels) in <main>' 
2011-09-19T00:19:53+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval' 
2011-09-19T00:19:53+00:00 heroku[web.1]: Process exited 
2011-09-19T00:19:53+00:00 heroku[web.1]: State changed from starting to crashed 
2011-09-19T00:31:24+00:00 heroku[web.1]: State changed from crashed to created 
2011-09-19T00:31:24+00:00 heroku[web.1]: State changed from created to starting 
2011-09-19T00:31:27+00:00 heroku[web.1]: Starting process with command `thin -p 42871 -e production -R /home/heroku_rack/heroku.ru start` 
2011-09-19T00:31:31+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:304:in `rescue in depend_on': No such file to load -- spec_helper (LoadError) 
2011-09-19T00:31:31+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:299:in `depend_on' 
2011-09-19T00:31:31+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:216:in `require_dependency' 
2011-09-19T00:31:31+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:138:in `block (2 levels) in eager_load!' 
2011-09-19T00:31:31+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:137:in `each' 
2011-09-19T00:31:31+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:137:in `block in eager_load!' 
2011-09-19T00:31:31+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:135:in `each' 
2011-09-19T00:31:31+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:135:in `eager_load!' 
2011-09-19T00:31:31+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:108:in `eager_load!' 
2011-09-19T00:31:31+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application/finisher.rb:41:in `block in <module:Finisher>' 
2011-09-19T00:31:31+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:25:in `instance_exec' 
2011-09-19T00:31:31+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:25:in `run' 
2011-09-19T00:31:31+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:50:in `block in run_initializers' 
2011-09-19T00:31:31+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:49:in `each' 
2011-09-19T00:31:31+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:49:in `run_initializers' 
2011-09-19T00:31:31+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:134:in `initialize!' 
2011-09-19T00:31:31+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:77:in `method_missing' 
2011-09-19T00:31:31+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>' 
2011-09-19T00:31:31+00:00 app[web.1]: from <internal:lib/rubygems/custom_require>:29:in `require' 
2011-09-19T00:31:31+00:00 app[web.1]: from <internal:lib/rubygems/custom_require>:29:in `require' 
2011-09-19T00:31:31+00:00 app[web.1]: from config.ru:3:in `block (3 levels) in <main>' 
2011-09-19T00:31:31+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:23:in `eval' 
2011-09-19T00:31:31+00:00 heroku[web.1]: Process exited 
2011-09-19T00:31:32+00:00 heroku[web.1]: State changed from starting to crashed 
2011-09-19T00:40:49+00:00 heroku[slugc]: Slug compilation started 
2011-09-19T00:40:59+00:00 heroku[api]: Deploy 50313f5 by [email protected] 
2011-09-19T00:40:59+00:00 heroku[api]: Release v5 created by [email protected] 
2011-09-19T00:40:59+00:00 heroku[web.1]: State changed from crashed to created 
2011-09-19T00:40:59+00:00 heroku[web.1]: State changed from created to starting 
2011-09-19T00:41:00+00:00 heroku[slugc]: Slug compilation finished 
2011-09-19T00:41:02+00:00 heroku[web.1]: Starting process with command `thin -p 22238 -e production -R /home/heroku_rack/heroku.ru start` 
2011-09-19T00:41:06+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:304:in `rescue in depend_on': No such file to load -- spec_helper (LoadError) 
2011-09-19T00:41:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:299:in `depend_on' 
2011-09-19T00:41:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:216:in `require_dependency' 
2011-09-19T00:41:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:138:in `block (2 levels) in eager_load!' 
2011-09-19T00:41:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:137:in `each' 
2011-09-19T00:41:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:137:in `block in eager_load!' 
2011-09-19T00:41:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:135:in `each' 
2011-09-19T00:41:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/engine.rb:135:in `eager_load!' 
2011-09-19T00:41:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:108:in `eager_load!' 
2011-09-19T00:41:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application/finisher.rb:41:in `block in <module:Finisher>' 
2011-09-19T00:41:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:25:in `instance_exec' 
2011-09-19T00:41:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:25:in `run' 
2011-09-19T00:41:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:50:in `block in run_initializers' 
2011-09-19T00:41:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:49:in `each' 
2011-09-19T00:41:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/initializable.rb:49:in `run_initializers' 
2011-09-19T00:41:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:134:in `initialize!' 
2011-09-19T00:41:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.3/lib/rails/application.rb:77:in `method_missing' 
2011-09-19T00:41:06+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>' 
2011-09-19T00:41:06+00:00 app[web.1]: from <internal:lib/rubygems/custom_require>:29:in `require' 
2011-09-19T00:41:06+00:00 app[web.1]: from <internal:lib/rubygems/custom_require>:29:in `require' 
2011-09-19T00:41:06+00:00 app[web.1]: from config.ru:3:in `block (3 levels) in <main>' 
2011-09-19T00:41:06+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:23:in `eval' 
2011-09-19T00:41:06+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:23:in `block (3 levels) in <main>' 
2011-09-19T00:41:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval' 
2011-09-19T00:41:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize' 
2011-09-19T00:41:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:63:in `new' 
2011-09-19T00:41:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:63:in `map' 
2011-09-19T00:41:06+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:18:in `block (2 levels) in <main>' 
2011-09-19T00:41:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval' 
2011-09-19T00:41:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize' 
2011-09-19T00:41:06+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:11:in `new' 
2011-09-19T00:41:06+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:11:in `block in <main>' 
2011-09-19T00:41:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval' 
2011-09-19T00:41:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize' 
2011-09-19T00:41:06+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:1:in `new' 
2011-09-19T00:41:06+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:1:in `<main>' 
2011-09-19T00:41:06+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/rack/adapter/loader.rb:36:in `eval' 
2011-09-19T00:41:06+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/rack/adapter/loader.rb:36:in `load' 
2011-09-19T00:41:06+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/controllers/controller.rb:175:in `load_rackup_config' 
2011-09-19T00:41:06+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/controllers/controller.rb:65:in `start' 
2011-09-19T00:41:06+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/runner.rb:177:in `run_command' 
2011-09-19T00:41:06+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/runner.rb:143:in `run!' 
2011-09-19T00:41:06+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/bin/thin:6:in `<top (required)>' 
2011-09-19T00:41:06+00:00 app[web.1]: from /usr/ruby1.9.2/bin/thin:19:in `load' 
2011-09-19T00:41:06+00:00 app[web.1]: from /usr/ruby1.9.2/bin/thin:19:in `<main>' 
2011-09-19T00:41:06+00:00 heroku[web.1]: Process exited 
2011-09-19T00:41:07+00:00 heroku[web.1]: State changed from starting to crashed 

, gracias!

+0

¿cómo lo arreglaste? –

+0

¿obtuviste una solución a este problema ??? – Jaqx

+0

Sí, no recuerdo la solución exacta, pero creo que se corrigió cuando especifiqué las versiones de gemas exactas que quería (heroku tenía versiones incompatibles más nuevas) – Kyle

Respuesta

0

Creo que el problema podría estar en esta línea:

/app/.bundle/gems/ruby/1.8/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:306:in `depend_on': No such file to load -- spec_helper (LoadError) 

Parece que uno de sus inicializadores tiene require "spec_helper" en ella (o carga un archivo en otra ubicación que hace lo mismo) y no debe. Esto podría tener que ver con las gemas en su Gemfile que están en el grupo :test que no se cargan de forma predeterminada en Heroku.

Puede intentar ejecutar bundle install --without test development localmente para reproducir cómo Heroku está instalando las gemas. Tenga en cuenta que esta será la forma permanente en que el paquete instala gemas hasta que elimine el archivo ./.bundle/config de su proyecto, por lo que querrá hacer eso una vez que haya resuelto los problemas.

Espero que esto ayude ...

+0

No pude encontrar un archivo con require "spec_helper" en ningún de los inicializadores :(. Hice paquete de instalación - sin desarrollo de prueba y no ocurrió ningún error. – Kyle

+0

la aplicación se ejecutó localmente, pero todavía falla en heroku – Kyle

+0

@Kyle después de que lo hizo. Debería ejecutar sus comandos (como 'carriles ',' rails c', 'rake something') prefijándolos con' bundle exec'. De esta manera está reproduciendo completamente el heroku env. De lo contrario, sus comandos aún ven las gemas "desinstaladas". – Fabio

2

Tenía lo mismo. Resulta que durante el desarrollo una especificación de alguna manera se ha copiado en la carpeta de controladores. No tuvo ningún efecto a nivel local, pero se estrelló cedro ...

+0

Creo que debe aclarar su pregunta de manera fácil. De lo contrario, su probl em explicación crear otro problema – khan

+0

Acabo de pasar un montón de tiempo tratando de rastrear esto, y tu respuesta resolvió mi problema. Terminé buscando en mi aplicación "spec_helper" y descubrí que accidentalmente guardé uno de mis archivos de especificaciones en la carpeta de modelos. – nfriend21

-1

Tenía el mismo problema con los pasajeros. El problema era un requerimiento en un modelo que dependía de una lib. Agregar el directorio lib para autocargar y eliminar todo requiere (encontrado por fgrep 'require' -r app/) trabajado.

Cuestiones relacionadas