【问题标题】:Could not spawn process for application无法为应用程序生成进程
【发布时间】:2015-01-15 01:29:16
【问题描述】:

我搜索并发现了一些与此问题有关的问题,但根本没有正确答案或答案。如何解决这个问题

403 禁止

[ 2015-01-15 02:37:25.2282 24300/b638eb40 Pool2/Implementation.cpp:287 ]: Could not spawn process for application ........../current: An error occured while starting up the preloader.
          Error ID: 71201b7d
    ....
          Message from application: ERROR: Failed to build gem native extension.

            /usr/bin/ruby2.1 extconf.rb
        #rake 10.1.0 not found in GEM_PATH
        /home/deploy/................n `initialize': Permission denied @ rb_sysopen - /usr/bin/rdoc (Errno::EACCES)

        from extconf.rb:19:in `<main>'
        bundler 1.7.12
        executable-hooks 1.3.2
        rdoc 4.1.0

        extconf failed, exit code 1`enter code here`
        Gem files will remain installed in .....

【问题讨论】:

    标签: ruby-on-rails passenger


    【解决方案1】:

    我以这种方式编辑了这个文件 /etc/nginx/sites-enabled/default:

    server {
            listen 80 default_server;
            rails_env           production;
            root /home/username/app-name/current/public;
            index index.html index.htm;
    
            # Make site accessible from http://localhost/
            server_name domain-name;
            passenger_enabled   on;
            error_page 500 502 503 504 /50x.html;
            location = /50x.html {
                    root html;
            }}
    

    它现在正在工作。

    ps。我还在/etc/nginx/nginx.conf 中向乘客指出了 rvm 版本的 ruby​​

    passenger_ruby /home/deplopy/.rvm/gems/ruby-2.1.2/wrappers/ruby;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-04-11
      • 1970-01-01
      • 2016-05-08
      • 1970-01-01
      • 2019-08-09
      • 2011-12-30
      • 1970-01-01
      • 2019-11-10
      相关资源
      最近更新 更多