Ruby on rails Passenger和Nginx:unix:/tmp/Passenger.MGo50AR/agents.s/core在连接到上游时失败(2:没有这样的文件或目录)

Ruby on rails Passenger和Nginx:unix:/tmp/Passenger.MGo50AR/agents.s/core在连接到上游时失败(2:没有这样的文件或目录),ruby-on-rails,ruby-on-rails-3,ruby-on-rails-4,nginx,passenger,Ruby On Rails,Ruby On Rails 3,Ruby On Rails 4,Nginx,Passenger,我是新来的乘客/Nginx, 我的rails应用程序在Nginx和passenger上运行。有时,我的应用程序停止工作,我在nginx error.log文件中遇到以下错误: App 19637 stderr: /usr/lib/ruby/vendor_ruby/phusion_passenger/platform_info.rb:363: warning: Insecure world writable dir /usr/local/rvm/gems/ruby-2.4.0 in PATH,

我是新来的乘客/Nginx, 我的rails应用程序在Nginx和passenger上运行。有时,我的应用程序停止工作,我在nginx error.log文件中遇到以下错误:

App 19637 stderr:  /usr/lib/ruby/vendor_ruby/phusion_passenger/platform_info.rb:363: warning: Insecure world writable dir /usr/local/rvm/gems/ruby-2.4.0 in PATH, mode 042777
App 19637 stderr:  [passenger_native_support.so] trying to compile for the current user (nobody) and Ruby interpreter...
App 19637 stderr:
App 19637 stderr:      (set PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 to disable)
App 19637 stderr:
App 19637 stderr:      Warning: compilation didn't succeed. To learn why, read this file:
App 19637 stderr:
App 19637 stderr:      /tmp/passenger_native_support-2s90v9.log
App 19637 stderr:
App 19637 stderr:  [passenger_native_support.so] finding downloads for the current Ruby interpreter...
App 19637 stderr:
App 19637 stderr:      (set PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=0 to disable)
App 19637 stderr:
App 19637 stderr:      Could not download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.2.3/rubyext-ruby-2.4.0-x86_64-linux.tar.gz: The requested URL returned error: 404 Not Found
App 19637 stderr:      Trying next mirror...
App 19637 stderr:      Could not download https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/5.2.3/rubyext-ruby-2.4.0-x86_64-linux.tar.gz: The requested URL returned error: 403 Forbidden
App 19637 stderr:  [passenger_native_support.so] will not be used (can't compile or download)


0 11:07:05 [crit] 6591#6591: *217 connect() to unix:/tmp/passenger.MGo50AR/agents.s/core failed (2: No such file or directory) while connecting to upstream, client: 122.160.67.201, server: 58.98.163.42, request: "POST /customerBadgesCounts HTTP/1.1", upstream: "passenger:unix:/tmp/passenger.MGo50AR/agents.s/core:", host: "58.98.163.42:3001"
2018/04/10 11:07:05 [crit] 6591#6591: *217 connect() to unix:/tmp/passenger.MGo50AR/agents.s/core failed (2: No such file or directory) while connecting to upstream, client: 122.160.67.201, server: 58.98.163.42, request: "POST /updated/branches/search HTTP/1.1", upstream: "passenger:unix:/tmp/passenger.MGo50AR/agents.s/core:", host: "58.98.163.42:3001"
2018/04/10 11:07:25 [crit] 6591#6591: *220 connect() to unix:/tmp/passenger.MGo50AR/agents.s/core failed (2: No such file or directory) while connecting to upstream, client: 122.160.67.201, server: 58.98.163.42, request: "GET / HTTP/1.1", upstream: "passenger:unix:/tmp/passenger.MGo50AR/agents.s/core:", host: "mydomain.com:3001"
2018/04/10 11:07:42 [crit] 6591#6591: *224 connect() to unix:/tmp/passenger.MGo50AR/agents.s/core failed (2: No such file or directory) while connecting to upstream, client: 122.177.174.65, server: 58.98.163.42, request: "POST /suggestsearch HTTP/1.1", upstream: "passenger:unix:/tmp/passenger.MGo50AR/agents.s/core:", host: "58.98.163.42:3001"
2018/04/10 11:07:42 [crit] 6592#6592: *226 connect() to unix:/tmp/passenger.MGo50AR/agents.s/core failed (2: No such file or directory) while connecting to upstream, client: 122.177.174.65, server: 58.98.163.42, request: "POST /customerBadgesCounts HTTP/1.1", upstream: "passenger:unix:/tmp/passenger.MGo50AR/agents.s/core:", host: "58.98.163.42:3001"
2018/04/10 11:07:42 [crit] 6592#6592: *228 connect() to unix:/tmp/passenger.MGo50AR/agents.s/core failed (2: No such file or directory) while connecting to upstream, client: 122.177.174.65, server: 58.98.163.42, request: "POST /updated/home HTTP/1.1", upstream: "passenger:unix:/tmp/passenger.MGo50AR/agents.s/core:", host: "58.98.163.42:3001"
2018/04/10 11:09:05 [crit] 6591#6591: *230 connect() to unix:/tmp/passenger.MGo50AR/agents.s/core failed (2: No such file or directory) while connecting to upstream, client: 122.160.67.201, server: 58.98.163.42, request: "GET / HTTP/1.1", upstream: "passenger:unix:/tmp/passenger.MGo50AR/agents.s/core:", host: "mydomain.com:1111"
2018/04/10 11:09:15 [crit] 6591#6591: *234 connect() to unix:/tmp/passenger.MGo50AR/agents.s/core failed (2: No such file or directory) while connecting to upstream, client: 122.160.67.201, server: 58.98.163.42, request: "GET / HTTP/1.1", upstream: "passenger:unix:/tmp/passenger.MGo50AR/agents.s/core:", host: "mydomain.com:3001"
我不明白我在那里做错了什么

请帮帮我,建议一个离开这里的方法