This just means that passenger is not reading the right ruby version or gemset or both.
I went through a lot of trouble to get this fixed. I ran rvm implode which removes rvm and all rubies. I then reinstalled it all. Reinstalled passenger gem and compiled it as well (passenger-install-apache-module).
I then created a .rvmrc file and said rvm use 1.9.3@mygemsetname. I changed directory to the app and ran bundle install. This is when I got the error again, so I thought a little more and just removed the rvmrc and ran bundle install again and that fixed it.
My apache conf file was:
LoadModule passenger_module /Users/cgunnels/.rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12/ext/apache2/mod_passenger.so
PassengerRoot /Users/cgunnels/.rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12
PassengerRuby /Users/cgunnels/.rvm/wrappers/ruby-1.9.3-p194/ruby
So I'm guessing that because I didn't specify a gemset in the apache conf in was reading the wrong gem list.
Tuesday, May 15, 2012
cannot load such file -- somerubyfile
Error message:
cannot load such file -- config/initBacktrace:
line 3: config.ru
So I was trying to load a sinatra app and I had this error keep coming up. I found out that all you have to do is add "./" to the front of the require like "./config/init" and all will load just fine.
Using:
ruby 1.9.3p194
Phusion Passenger version 3.0.12
sinatra (1.3.2)
Passenger encountered the following error: The application spawner server exited unexpectedly: Unexpected end-of-file detected.
For me I install the passenger gem with the --pre flag and that caused the problem. I just reinstalled it without the flag and this error went away for me.
I am using Mac OSX 10.7.3
I am using Mac OSX 10.7.3
Thursday, June 16, 2011
undefined method `except' for "":String
Environment:
Ruby 1.9.2 via rvm, Running phusion passenger with apache and nginx (had to setup virtual host as proxy to get this to run multiple versions of ruby), Rails 3.0.8, Datamapper via the dm-rails gem. Mac OS X.
Error Message:
undefined method `except' for "":StringProblem:
For me this was in my database.yml file. Don't really know what the issue was, but I'm guessing an extra space or tab some where in the defaults section of the database.yml file.
Fix:
All I did was delete the defaults section and of course added the adapter, username, password, host, etc to each corresponding section in the database.yml file.
Tuesday, May 3, 2011
initialize: not in gzip format (Zlib::GzipFile::Error
Error message:
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/package/tar_input.rb:49:in `initialize': not in gzip format (Zlib::GzipFile::Error
Problem:
Github may go down/timeout during deploy
Fix:
1. ssh into the server
2. cd to your current deploy folder
3. run bundle show 'name of gem' (shows the location of the gem install)
4. cd to the /gems/ path that is shown in the previous step
5. run ls -l to see the latest install of the gem
6. run rm -rf on that directory (the latest gem install)
Monday, March 14, 2011
You have already activated rack 1.1.1, but your Gemfile requires rack 1.1.2. Consider using bundle exec.
Error message:
You have already activated rack 1.1.1, but your Gemfile requires rack 1.1.2. Consider using bundle exec.Problem:
Passenger preloads gems from global gem list if you have passenger spawn method set. My problem is two fold, i was using passenger spawn method and i didn't have version 1.1.2 of rack installed globally.
Fix:
Remove the passenger spawn method from httpd.conf and restart apache
Friday, August 27, 2010
no such file to load -- ./config/../.bundle/environment
Error:
no such file to load -- ./config/../.bundle/environment
Description:
All this means is that i didn't run 'bundle install'
no such file to load -- ./config/../.bundle/environment
Description:
All this means is that i didn't run 'bundle install'
Fix:
Run 'bundle install' on the command line
Subscribe to:
Posts (Atom)