2016-11-15 1 views
1

를 실행하지 않는 것 :CentOS는 *** ERROR : Phusion 여객 내가 내 CentOS는 서버에 카피 스트라 노를 통해 내가이 오류가 발생 된 모든 시간을 내 레일 응용 프로그램을 배포하고있어 동안

*** ERROR: Phusion Passenger doesn't seem to be running. If you are sure that it is running, then the causes of this problem could be one of:

  1. You customized the instance registry directory using Apache's PassengerInstanceRegistryDir option, Nginx's passenger_instance_registry_dir option, or Phusion Passenger Standalone's --instance-registry-dir command line argument. If so, please set the environment variable PASSENGER_INSTANCE_REGISTRY_DIR to that directory and run this command again.
  2. The instance directory has been removed by an operating system background service. Please set a different instance registry directory using Apache's PassengerInstanceRegistryDir option, Nginx's passenger_instance_registry_dir option, or Phusion Passenger Standalone's --instance-registry-dir command line argument.

에 내 서버에 아파치와 승객 5.0.30 첫째, 스택에있는 다른 사람들의 대답을 찾고있었습니다. Link to one of these topics. 불행히도 아무것도 도움이되지 못했습니다. 나는 env 경로와 다른 설정을 아파치 conf에서 설정하려고 시도했다. 레일 앱을 배포하기 위해 무엇을 변경해야합니까? PATH의 첫 번째 승객 상태에 대한 전체 경로는 어디입니까? passenger_root와 일치합니까? 다음은 내 로그입니다

$ passenger-config validate-install 


> What would you like to validate? Use <space> to select. If the menu 
> doesn't display correctly, press '!' 
> 
> ⬢ Passenger itself ‣ ⬢ Apache 
> 
> ------------------------------------------------------------------------- 
> 
> Checking whether there are multiple Apache installations... Only a 
> single installation detected. This is good. 
> 
> ------------------------------------------------------------------------- 
> 
> * Checking whether this Passenger install is in PATH... ✓ * Checking 
> whether there are no other Passenger installations... ✓ * Checking 
> whether Apache is installed... ✓ * Checking whether the Passenger 
> module is correctly configured in Apache... ✓ 
> 
> Everything looks good. :-) 




$ rvmsudo passenger-memory-stats 

Version: 5.0.30 
Date : 2016-11-15 13:43:44 +0100 

---------- Apache processes ---------- 
PID PPID VMSize Private Name 
-------------------------------------- 
25188 1  476.6 MB 1.5 MB /usr/sbin/httpd -DFOREGROUND 
25220 25188 270.4 MB 0.5 MB /usr/sbin/httpd -DFOREGROUND 
25246 25188 478.6 MB 0.2 MB /usr/sbin/httpd -DFOREGROUND 
25247 25188 478.6 MB 0.2 MB /usr/sbin/httpd -DFOREGROUND 
25248 25188 478.6 MB 0.2 MB /usr/sbin/httpd -DFOREGROUND 
25249 25188 478.6 MB 0.2 MB /usr/sbin/httpd -DFOREGROUND 
25250 25188 478.6 MB 0.2 MB /usr/sbin/httpd -DFOREGROUND 
### Processes: 7 
### Total private dirty RSS: 3.08 MB 


-------- Nginx processes -------- 

### Processes: 0 
### Total private dirty RSS: 0.00 MB 


----- Passenger processes ----- 
PID VMSize Private Name 
------------------------------- 
25222 421.0 MB 0.9 MB Passenger watchdog 
25225 772.6 MB 1.5 MB Passenger core 
25234 431.3 MB 1.0 MB Passenger ust-router 
### Processes: 3 
### Total private dirty RSS: 3.39 MB 

내 아파치 설정 파일 :

<VirtualHost *:80> 
    ServerName www.app.com 
    ServerAdmin admin 

    DocumentRoot "/srv/www/app_name/current/public" 

LoadModule passenger_module /home/userr/.rvm/gems/ruby-2.2.5/gems/passenger-5.0.30/buildout/apache2/mod_passenger.so 

#<IfModule mod_passenger.c> 
# PassengerRuby /usr/local/rvm/gems/ruby-2.2.5 
# PassengerRoot /usr/local/rvm/gems/ruby-2.2.5/gems/passenger-5.0.30 
# PassengerDefaultRuby /usr/local/rvm/gems/ruby-2.2.5/wrappers/ruby 
# PassengerInstanceRegistryDir /tmp 
#</IfModule> 

<IfModule mod_passenger.c> 
     PassengerRoot /home/userr/.rvm/gems/ruby-2.2.5/gems/passenger-5.0.30 
     PassengerDefaultRuby /home/userr/.rvm/gems/ruby-2.2.5/wrappers/ruby 
     PassengerInstanceRegistryDir /tmp 
</IfModule> 

    Options -Indexes -FollowSymLinks -MultiViews 

    LogLevel warn 
    ErrorLog logs/www.app.com-error.log 
    TransferLog logs/www.app.com-access.log 
    CustomLog logs/www.app.cp,.log combined 

<Directory /srv/www/app_name/current/public> 
    AddDefaultCharset UTF-8 

    <IfModule mod_authz_core.c> 
    # Apache 2.4 
    <RequireAny> 
     Require all granted 
    </RequireAny> 
    </IfModule> 
    <IfModule !mod_authz_core.c> 
    # Apache 2.2 
    Order Deny,Allow 
    Deny from All 
    Allow from All 
    </IfModule> 
</Directory> 

</VirtualHost> 

그리고 내 ENV 경로 : 내가 뭔가 잘못 만들고있어 확인을 위해

env file: 
    SHELL=/bin/bash 
    PATH=/sbin:/bin:/usr/sbin:/usr/bin 
    LOGNAME=root 
    USER=root 
    USERNAME=root 
    HOME=/root 
    SUDO_COMMAND=/bin/env PASSENGER_INSTANCE_REGISTRY_DIR=/tmp 
    SUDO_USER=userr 
    SUDO_UID=1001 
    SUDO_GID=100 
    PASSENGER_INSTANCE_REGISTRY_DIR=/tmp 

. 모든 조언을 주셔서 감사합니다.

답변

0

마지막으로 내 문제가 해결되었습니다. 나는 두 가지 일을했다.

먼저 내 홈 디렉토리에 새 임시 폴더를 만들었습니다. 그런 다음 아파치 설정 파일 내에서 내가 그런

PassengerInstanceRegistryDir /home/userr/instancetemp 

추가 내가

나는이 충분하다 생각
echo 'PASSENGER_INSTANCE_REGISTRY_DIR=/home/userr/instancetemp' >> ~/.bash_profile 

내 ENV 경로에이 밀어하지만 난 내 카피 스트라 노의 설정에이 경로를 추가

set :default_env, { 
    "PASSENGER_INSTANCE_REGISTRY_DIR" => "/home/t.panek/passenger_temp" 
} 
0

문제가 개인용 온도 기능 인 것 같습니다. httpd :

용으로 비활성화 할 수 있습니다.
mkdir /etc/systemd/system/httpd.service.d 
echo "[Service]" > /etc/systemd/system/httpd.service.d/nopt.conf 
echo "PrivateTmp=false" >> /etc/systemd/system/httpd.service.d/nopt.conf 
systemctl daemon-reload 
systemctl restart httpd 

승객 5.0은 더 이상 상태 정보를 얻기 위해 /tmp을 사용하지 않으므로 개인 temps에서도 작동합니다.

관련 문제