Forum: Ruby Ruby on Rails application could not be started

Posted by Jesus Granados (jfgg)
on 2013-03-08 19:56
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
in `require'
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
in `depend_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
in `load_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
in `load_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
in `load_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
in `send'
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
in `require'
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
in `initialize_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
in `initialize_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
in `start'
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
in `spawn_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
in `spawn_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
in `synchronize'
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
in `spawn_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
in `__send__'
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
in `start_synchronously'
35
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/helper-scripts/passenger-spawn-server
99
Posted by Kendall Gifford (zettabyte)
on 2013-03-09 00:18
(Received via mailing list)
On Fri, Mar 8, 2013 at 11:56 AM, Jesus Granados <lists@ruby-forum.com> 
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...

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.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.