地址:http://203.195.169.138/
我是照着这个教程做的
https://github.com/ruby-china/ruby-china/wiki/Ubuntu-12.04-%E4%B8%8A%E4%BD%BF%E7%94%A8-Nginx-Passenger-%E9%83%A8%E7%BD%B2-Ruby-on-Rails
error.log
App 8556 stdout:
App 8556 stderr: --> Compiling passenger_native_support.so for the current Ruby interpreter...
App 8556 stderr:
App 8556 stderr: (set PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 to disable)
App 8556 stderr:
App 8556 stderr: --> Downloading precompiled passenger_native_support.so for the current Ruby interpreter...
App 8556 stderr:
App 8556 stderr: (set PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=0 to disable)
App 8556 stderr:
App 8556 stderr: Could not download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/4.0.45/rubyext-ruby-2.1.1-x86_64-linux.tar.gz: The requested URL returned error: 404
App 8556 stderr: Trying next mirror...
App 8556 stderr: Could not download https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/4.0.45/rubyext-ruby-2.1.1-x86_64-linux.tar.gz: connect() timed out!
App 8556 stderr: --> Continuing without passenger_native_support.so.
App 8556 stdout:
[ 2014-06-21 04:00:12.2888 8338/7f87b3115700 Pool2/Implementation.cpp:883 ]: Could not spawn process for group /var/www/xmis#default: An error occured while starting up the preloader.
in 'void Passenger::ApplicationPool2::SmartSpawner::handleErrorResponse(Passenger::ApplicationPool2::SmartSpawner::StartupDetails&)' (SmartSpawner.h:451)
in 'std::string Passenger::ApplicationPool2::SmartSpawner::negotiatePreloaderStartup(Passenger::ApplicationPool2::SmartSpawner::StartupDetails&)' (SmartSpawner.h:562)
in 'void Passenger::ApplicationPool2::SmartSpawner::startPreloader()' (SmartSpawner.h:202)
in 'virtual Passenger::ApplicationPool2::ProcessPtr Passenger::ApplicationPool2::SmartSpawner::spawn(const Passenger::ApplicationPool2::Options&)' (SmartSpawner.h:746)
in 'void Passenger::ApplicationPool2::Group::spawnThreadRealMain(const SpawnerPtr&, const Passenger::ApplicationPool2::Options&, unsigned int)' (Implementation.cpp:804)
[ 2014-06-21 04:00:12.2891 8338/7f87b0df0700 agents/HelperAgent/RequestHandler.h:2262 ]: [Client 20] Cannot checkout session.
Error page:
<p>It looks like Bundler could not find a gem. Maybe you didn't install all the gems that this application needs. To install your gems, please run:</p>
<pre class="commands">bundle install</pre>
<p>If that didn't work, then the problem is probably caused by your application being run under a different environment than it's supposed to. Please check the following:</p>
<ol>
<li>Is this app supposed to be run as the <code>nobody</code> user?</li>
<li>Is this app being run on the correct Ruby interpreter? Below you will
see which Ruby interpreter Phusion Passenger attempted to use.</li>
<li>Please check whether the correct RVM gemset is being used.</li>
<li>Sometimes, RVM gemsets may be broken.
<a href="https://github.com/phusion/passenger/wiki/Resetting-RVM-gemsets">Try resetting them.</a></li>
</ol>
<p>-------- The exception is as follows: -------</p>
git://github.com/rweng/jquery-datatables-rails.git (at master) is not yet checked out. Run `bundle install` first. (Bundler::GitError)
<pre> /home/ubuntu/.rvm/gems/ruby-2.1.1/gems/bundler-1.6.3/lib/bundler/source/git.rb:187:in `rescue in load_spec_files'
/home/ubuntu/.rvm/gems/ruby-2.1.1/gems/bundler-1.6.3/lib/bundler/source/git.rb:184:in `load_spec_files'
/home/ubuntu/.rvm/gems/ruby-2.1.1/gems/bundler-1.6.3/lib/bundler/source/path.rb:92:in `local_specs'
/home/ubuntu/.rvm/gems/ruby-2.1.1/gems/bundler-1.6.3/lib/bundler/source/git.rb:154:in `specs'
/home/ubuntu/.rvm/gems/ruby-2.1.1/gems/bundler-1.6.3/lib/bundler/lazy_specification.rb:53:in `__materialize__'
/home/ubuntu/.rvm/gems/ruby-2.1.1/gems/bundler-1.6.3/lib/bundler/spec_set.rb:88:in `block in materialize'
/home/ubuntu/.rvm/gems/ruby-2.1.1/gems/bundler-1.6.3/lib/bundler/spec_set.rb:85:in `map!'
/home/ubuntu/.rvm/gems/ruby-2.1.1/gems/bundler-1.6.3/lib/bundler/spec_set.rb:85:in `materialize'
/home/ubuntu/.rvm/gems/ruby-2.1.1/gems/bundler-1.6.3/lib/bundler/definition.rb:133:in `specs'
/home/ubuntu/.rvm/gems/ruby-2.1.1/gems/bundler-1.6.3/lib/bundler/definition.rb:178:in `specs_for'
/home/ubuntu/.rvm/gems/ruby-2.1.1/gems/bundler-1.6.3/lib/bundler/definition.rb:167:in `requested_specs'
/home/ubuntu/.rvm/gems/ruby-2.1.1/gems/bundler-1.6.3/lib/bundler/environment.rb:18:in `requested_specs'
/home/ubuntu/.rvm/gems/ruby-2.1.1/gems/bundler-1.6.3/lib/bundler/runtime.rb:13:in `setup'
/home/ubuntu/.rvm/gems/ruby-2.1.1/gems/bundler-1.6.3/lib/bundler.rb:120:in `setup'
/home/ubuntu/.rvm/gems/ruby-2.1.1/gems/bundler-1.6.3/lib/bundler/setup.rb:17:in `<top (required)>'
/home/ubuntu/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `require'
/home/ubuntu/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
/home/ubuntu/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:144:in `require'
/usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:258:in `block in run_load_path_setup_code'
/usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:361:in `running_bundler'
/usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:256:in `run_load_path_setup_code'
/usr/share/passenger/helper-scripts/rack-preloader.rb:100:in `preload_app'
/usr/share/passenger/helper-scripts/rack-preloader.rb:158:in `<module:App>'
/usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
/usr/share/passenger/helper-scripts/rack-preloader.rb:28:in `<main>'</pre>