Ruby on Rails application could not be started

We have two aplications on ths same server, one it is used for
Production and the other one is for testing…

We have tried some changes on testing apps… works fine… but when we
put the new controllers over prodcution we got this…

Ruby on Rails application could not be started

These are the possible causes:
There may be a syntax error in the application’s code. Please check for
such errors and fix them.
A required library may not installed. Please install all libraries that
this application requires.
The application may not be properly configured. Please check whether all
configuration files are written correctly, fix any incorrect
configurations, and restart this application.
A service that the application relies on (such as the database server or
the Ferret search engine server) may not have been started. Please start
that service.
Further information about the error may have been written to the
application’s log file. Please check it in order to analyse the problem.

Exception class:
SyntaxError

Application root:

File
Line
Location
0
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 29 in
gem_original_require’
1
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb
29
in require' 2 /home/XXXXX/ruby/gems/gems/activesupport-2.3.4/lib/active_support/dependencies.rb 158 inrequire’
3
/home/XXXXX/ruby/gems/gems/activesupport-2.3.4/lib/active_support/dependencies.rb
265
in require_or_load' 4 /home/XXXXX/ruby/gems/gems/activesupport-2.3.4/lib/active_support/dependencies.rb 224 independ_on’
5
/home/XXXXX/ruby/gems/gems/activesupport-2.3.4/lib/active_support/dependencies.rb
136
in require_dependency' 6 /home/XXXXX/ruby/gems/gems/rails-2.3.4/lib/initializer.rb 414 inload_application_classes’
7
/home/XXXXX/ruby/gems/gems/rails-2.3.4/lib/initializer.rb
413
in each' 8 /home/XXXXX/ruby/gems/gems/rails-2.3.4/lib/initializer.rb 413 inload_application_classes’
9
/home/XXXXX/ruby/gems/gems/rails-2.3.4/lib/initializer.rb
411
in each' 10 /home/XXXXX/ruby/gems/gems/rails-2.3.4/lib/initializer.rb 411 inload_application_classes’
11
/home/XXXXX/ruby/gems/gems/rails-2.3.4/lib/initializer.rb
197
in process' 12 /home/XXXXX/ruby/gems/gems/rails-2.3.4/lib/initializer.rb 113 insend’
13
/home/XXXXX/ruby/gems/gems/rails-2.3.4/lib/initializer.rb
113
in `run’
14
/home/XXXXX/rubyApps/jescoEnvios2/config/environment.rb
15

15
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb
29
in gem_original_require' 16 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 29 inrequire’
17
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/classic_rails/application_spawner.rb
222
in preload_application' 18 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/classic_rails/application_spawner.rb 181 ininitialize_server’
19
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/utils.rb
572
in report_app_init_status' 20 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/classic_rails/application_spawner.rb 174 ininitialize_server’
21
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb
204
in start_synchronously' 22 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb 180 instart’
23
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/classic_rails/application_spawner.rb
149
in start' 24 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb 219 inspawn_rails_application’
25
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server_collection.rb
132
in lookup_or_add' 26 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb 214 inspawn_rails_application’
27
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server_collection.rb
82
in synchronize' 28 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server_collection.rb 79 insynchronize’
29
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb
213
in spawn_rails_application' 30 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb 132 inspawn_application’
31
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb
275
in handle_spawn_application' 32 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb 357 insend
33
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb
357
in server_main_loop' 34 /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb 206 instart_synchronously’
35
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/helper-scripts/passenger-spawn-server
99

On Fri, Mar 8, 2013 at 11:56 AM, Jesus G. [email protected]
wrote:

/home/XXXXX/rubyApps/jescoEnvios2/config/environment.rb

If I don’t say it, someone else will: you should ask ruby on rails
questions on their mailing list:

https://groups.google.com/forum/?fromgroups#!forum/rubyonrails-talk

Anyhow, that said, the only line in that stack trace that wasn’t code
from phusion passenger or some other gem, was this one:

/home/XXXXX/rubyApps/jescoEnvios2/config/environment.rb 15

So, I’d take a look at what’s on line 15 of your config/environment.rb
and then re-ask this question, perhaps with more detail (and, if
possible, more/better formatting of your stack trace), in the ruby on
rails mailing list.

Either way, good luck.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs