Puppet-Dashboard가 Ruby Gem Passenger 5로 로드되지 않습니다.

Puppet-Dashboard가 Ruby Gem Passenger 5로 로드되지 않습니다.

Ruby Passenger 5에서 Puppet Dashboard를 실행하는 데 문제가 발생한 사람이 있습니까? 그렇다면 해당 Passenger 버전에서 실제로 작동합니까?

Passenger를 통해 Puppet Dashboard를 실행하는 데 필요한 파일을 이미 설정하고 구성했습니다. 현재 대시보드 메뉴 대신 Apache 테스트 페이지가 표시됩니다. Puppet-Dashboard가 경량 Webrick 서버에서 실행되는 경우에는 나타나지 않습니다.

Centos 6에 대한 설치 및 구성 방법에 대한 대부분의 설치 샘플과 매뉴얼을 검색하는 동안 대부분 Passenger 3/4를 기반으로 한 것을 보았습니다. 현재 5.0.10과 함께 사용되므로 사용하고 있습니다. 꼭두각시 3.8.1. 한 가지 확실한 점은 RailsAutoDetect가 버전 5에서 더 이상 사용되지 않으며 주석 처리되었다는 것입니다.

내 puppet-dashboard.conf 파일 아래(이중 인스턴스화를 방지하기 위해 로드 모듈이 다른 파일로 이동되었습니다)

로그에서 보고된 첫 번째 오류는 /usr/share/puppet-dashboard/public/reports/upload 경로가 없다는 것이므로 다음 오류가 무엇인지 확인하기 위해 해당 하위 폴더를 만들었습니다.

이후 로그 파일의 다음 오류는 이제 다음과 같이 표시됩니다. Attempt to Serve Directory: /usr/share/puppet-dashboard/public/reports/upload/

업무 시간 동안 정상적인 인형 실행 간격 활동을 방해하지 않도록 외부 노드 및 노드 종단 옵션이 주석 처리되었습니다.

PassengerHighPerformance on
PassengerMaxPoolSize 6
PassengerPoolIdleTime 1500
PassengerStatThrottleRate 120 

Listen 3000
<VirtualHost *:3000>
   ServerName mi-cloud-mgmt-config-01
   ServerAlias mi-cloud-mgmt-config-01.mimos.local
   RailsBaseURI /
   PassengerAppRoot /usr/share/puppet-dashboard/
   DocumentRoot /usr/share/puppet-dashboard/public/

# UPDATE THIS TO YOUR FQDN
<Directory /usr/share/puppet-dashboard/public/>
    Options None
    Order allow,deny
    allow from all
</Directory>

ErrorLog /var/log/httpd/dashboard_error.log
LogLevel debug
CustomLog /var/log/httpd/dashboard_access.log combined
ServerSignature Off
</VirtualHost>

답변1

나는 이 문제가 있었고 그것이 /usr/share/puppet-dashboard/config.ru존재하지 않는다고 지적했습니다. 나는 다음을 수행하여 문제를 해결할 수있었습니다.

cp vendor/rails/railties/dispatches/config.ru .

에 있는 동안 /usr/share/puppet-dashboard.

관련 정보