Hi Edward,
The problem here are the permissions you have on the
app\views\taglibs\auto directory. When running Hobo with apache the first
time you connect to the Hobo app after restarting the webserver Hobo will
try to recompile the DRYML in your project. Passenger is not expecting this
and does not set up the permissions accordingly. Because Hobo is running
under the 'apache' or 'httpd' user it will have 'write' permissions to the
directory mentioned above by default and it will cause a server error which
will be reported by passenger.
To get around this open a terminal window and naviagte to the root of your
Rails/Hobo project. Then run the following command:
chmod -R 777 app\views\taglibs\auto
Restart the apache webserver and you should be ok then.
If that doesn't work I would suggest making a copy of your app and running
this command from the root of your project:
chmod -R 777 *
Note: This will give all permissions possible to your app and is not secure
so should only be used as a last resort to rule out permissions as the cause
of your problem.
restart the webserver.
And if that doesn't work check out your apache error log and your rails app
log.
One last thing about permissions, if apache does not have write access to
development.log or production.log all of the rails errors will be logged
into the apache error log.
Hope that helps, let me know how you get on or if you have any questions.
Cheers,
Patrick
so you need to manually change the permissions on the directory so ap
On Mon, Dec 7, 2009 at 7:26 AM, Edward Samokhvalov <[email protected]>wrote:
> but when i try to start hobo app the normal way ./script/server -p80 -
> it works fine!
> so does it still indicate the gems problems? maybe i've installed
> passenger, and other im wrong order?
>
> On Dec 6, 10:36 pm, Matt Jones <[email protected]> wrote:
> > This is happening way earlier than Hobo loads - note that the error
> > comes from within the load_rails_gem part, so there's clearly a
> > serious problem with the rubygems install. My first suspect would be
> > that the Ruby install is hosed somehow, as you've got Passenger
> > loading (way down in the trace) from /usr/lib/ruby/gems, but the
> > rubygems.rb file is in /usr/local/lib/site_ruby/1.8 (which is
> > typically /usr/local/lib/ruby/site_ruby/1.8 - note the missing 'ruby'
> > directory...)
> >
> > Hope this helps - you may also want to try the main rails-talk list
> > for help.
> >
> > --Matt Jones
> >
> > On Dec 6, 2009, at 3:23 PM, Edward Samokhvalov wrote:
> >
> > > Dear All!
> >
> > > I've set up my apache, passenger and configs, the passenger works, but
> > > the app can't be started. the erros are the following
> >
> > > Error message:
> > > No such file or directory - /nonexistent
> > > Exception class:
> > > Errno::ENOENT
> > > Application root:
> > > /home/es-server/employee_status
> >
> > > Backtrace:
> > > # File Line Location
> > > 0 /usr/local/lib/site_ruby/1.8/rubygems.rb 723 in
> `initialize'
> > > 1 /usr/local/lib/site_ruby/1.8/rubygems.rb 723 in
> `new'
> > > 2 /usr/local/lib/site_ruby/1.8/rubygems.rb 723 in
> `set_paths'
> > > 3 /usr/local/lib/site_ruby/1.8/rubygems.rb 719 in
> `each'
> > > 4 /usr/local/lib/site_ruby/1.8/rubygems.rb 719 in
> `set_paths'
> > > 5 /usr/local/lib/site_ruby/1.8/rubygems.rb 526 in
> `path'
> > > 6 /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb 66
> in
> > > `installed_spec_directories'
> > > 7 /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb 56
> in
> > > `from_installed_gems'
> > > 8 /usr/local/lib/site_ruby/1.8/rubygems.rb 736 in
> > > `source_index'
> > > 9 /usr/local/lib/site_ruby/1.8/rubygems.rb 140 in
> `activate'
> > > 10 /usr/local/lib/site_ruby/1.8/rubygems.rb 49 in
> `gem'
> > > 11 /home/es-server/employee_status/config/boot.rb 60 in
> > > `load_rails_gem'
> > > 12 /home/es-server/employee_status/config/boot.rb 54 in
> > > `load_initializer'
> > > 13 /home/es-server/employee_status/config/boot.rb 38 in
> `run'
> > > 14 /home/es-server/employee_status/config/boot.rb 11 in
> `boot!'
> > > 15 /home/es-server/employee_status/config/boot.rb 110
> > > 16 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb
> 31
> > > in `gem_original_require'
> > > 17 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb
> 31
> > > in `require'
> > > 18 /home/es-server/employee_status/config/environment.rb 7
> > > 19 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb
> 31
> > > in `gem_original_require'
> > > 20 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb
> 31
> > > in `require'
> > > 21 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
> > > phusion_passenger/railz/application_spawner.rb 299 in
> > > `preload_application'
> > > 22 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
> > > phusion_passenger/railz/application_spawner.rb 248 in
> > > `initialize_server'
> > > 23 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
> > > phusion_passenger/utils.rb 255 in `report_app_init_status'
> > > 24 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
> > > phusion_passenger/railz/application_spawner.rb 233 in
> > > `initialize_server'
> > > 25 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
> > > phusion_passenger/abstract_server.rb 194 in
> `start_synchronously'
> > > 26 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
> > > phusion_passenger/abstract_server.rb 163 in `start'
> > > 27 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
> > > phusion_passenger/railz/application_spawner.rb 209 in `start'
> > > 28 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
> > > phusion_passenger/spawn_manager.rb 262 in
> `spawn_rails_application'
> > > 29 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
> > > phusion_passenger/abstract_server_collection.rb 126 in
> > > `lookup_or_add'
> > > 30 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
> > > phusion_passenger/spawn_manager.rb 256 in
> `spawn_rails_application'
> > > 31 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
> > > phusion_passenger/abstract_server_collection.rb 80 in
> `synchronize'
> > > 32 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
> > > phusion_passenger/abstract_server_collection.rb 79 in
> `synchronize'
> > > 33 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
> > > phusion_passenger/spawn_manager.rb 255 in
> `spawn_rails_application'
> > > 34 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
> > > phusion_passenger/spawn_manager.rb 154 in
> `spawn_application'
> > > 35 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
> > > phusion_passenger/spawn_manager.rb 287 in
> `handle_spawn_application'
> > > 36 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
> > > phusion_passenger/abstract_server.rb 352 in `__send__'
> > > 37 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
> > > phusion_passenger/abstract_server.rb 352 in `main_loop'
> > > 38 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
> > > phusion_passenger/abstract_server.rb 196 in
> `start_synchronously'
> > > 39 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/bin/passenger-
> > > spawn-server 61
> >
> > > Please help.
> >
> > > thx in advance.
> >
> > > --
> >
> > > You received this message because you are subscribed to the Google
> > > Groups "Hobo Users" group.
> > > To post to this group, send email to [email protected].
> > > To unsubscribe from this group, send email to
> [email protected]<hobousers%[email protected]>
> > > .
> > > For more options, visit this group athttp://
> groups.google.com/group/hobousers?hl=en
> > > .
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Hobo Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<hobousers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/hobousers?hl=en.
>
>
>
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.