gpt4 book ai didi

ruby-on-rails-4 - apache 错误 "Could not download..."的乘客

转载 作者:行者123 更新时间:2023-12-04 18:46:54 26 4
gpt4 key购买 nike

我正在使用:Ubuntu Ubuntu 15.04 x64, Ruby 2.1.4, Rails 4.2.3, Passenger 5.0.0.rc2 or later tryed, Apache 2.4.10 .

我无法在生产中启动项目,因为收到错误:

[ 2015-08-24 10:40:53.2503 3427/7fc8ed450700 agents/HelperAgent/RequestHandler/CheckoutSession.cpp:252 ]: [Client 1-2] Cannot checkout session because a spawning error occurred. The identifier of the error is 952e5695. Please see earlier logs for details about the error.
App 3829 stdout:
App 3829 stderr: --> Compiling passenger_native_support.so for the current Ruby interpreter...
App 3829 stderr:
App 3829 stderr: (set PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 to disable)
App 3829 stderr:
App 3829 stderr: --> Downloading precompiled passenger_native_support.so for the current Ruby interpreter...
App 3829 stderr:
App 3829 stderr: (set PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=0 to disable)
App 3829 stderr:
App 3829 stderr: Could not download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.0.0.rc2/rubyext-ruby-2.1.4-x86_64-linux.tar.gz: The requested URL returned error: 404 Not Found
App 3829 stderr: Trying next mirror...
App 3829 stderr: Could not download https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/5.0.0.rc2/rubyext-ruby-2.1.4-x86_64-linux.tar.gz: The requested URL returned error: 403 Forbidden
App 3829 stderr: --> Continuing without passenger_native_support.so.
App 3829 stdout:
[ 2015-08-24 12:00:43.5322 3427/7fc8f3c99700 Pool2/Implementation.cpp:287 ]: Could not spawn process for application /var/www/html/apptest: An error occured while starting up the preloader.
Error ID: cddc003b
Error details saved to: /tmp/passenger-error-V7RWyB.html
Message from application: cannot load such file -- bundler/setup (LoadError)
/usr/local/rvm/rubies/ruby-2.1.4/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/usr/local/rvm/rubies/ruby-2.1.4/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/usr/local/rvm/gems/ruby-2.1.4/gems/passenger-5.0.0.rc2/lib/phusion_passenger/loader_shared_helpers.rb:278:in `block in run_load_path_setup_code'
/usr/local/rvm/gems/ruby-2.1.4/gems/passenger-5.0.0.rc2/lib/phusion_passenger/loader_shared_helpers.rb:381:in `running_bundler'
/usr/local/rvm/gems/ruby-2.1.4/gems/passenger-5.0.0.rc2/lib/phusion_passenger/loader_shared_helpers.rb:276:in `run_load_path_setup_code'
/usr/local/rvm/gems/ruby-2.1.4/gems/passenger-5.0.0.rc2/helper-scripts/rack-preloader.rb:99:in `preload_app'
/usr/local/rvm/gems/ruby-2.1.4/gems/passenger-5.0.0.rc2/helper-scripts/rack-preloader.rb:157:in `<module:App>'
/usr/local/rvm/gems/ruby-2.1.4/gems/passenger-5.0.0.rc2/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
/usr/local/rvm/gems/ruby-2.1.4/gems/passenger-5.0.0.rc2/helper-scripts/rack-preloader.rb:28:in `<main>'

我该如何解决?

最佳答案

“无法下载”不是这里的实际问题。如您所见,它后来表示“继续没有passenger_native_support”,这意味着它退回到不需要下载任何东西的机制。实际问题是在那之后出现的:“无法加载此类文件——捆绑器/设置”。这可能意味着您的应用程序正在以错误的用户身份运行。检查/tmp/passenger-error-V7RWyB.html 中的错误详细信息转储,并仔细检查所有设置是否正确。特别要仔细检查用户是否正确,然后阅读 Passenger's user account sandboxing学习如何解决这个问题。

关于ruby-on-rails-4 - apache 错误 "Could not download..."的乘客,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32187733/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com