(Amazon linux AMI) passenger starts but something is off?

sndlt

New member
Joined
Sep 7, 2015
Messages
1
I'm trying to move over to AWS. Been installing puppet open source on Amazon Linux AMI.
After hours of struggle, finally got passenger(ruby rack) to start. ("/var/log/httpd/error_log" been saying it can't find passenger rack to start but I provided correct ruby path now).

But https://master:8140 is displaying "We're sorry, but something went wrong"
I usually get this when something around in "/etc/puppet" is off. (Last time it did this, I got rid of hiera yaml statements and it returned to normal).

Code:
    [root@master httpd]# ruby -v
    ruby 2.0.0p647 (2015-08-18) [x86_64-linux]
    [root@master httpd]# gem install bundler
    Fetching: bundler-1.10.6.gem (100%)
    Successfully installed bundler-1.10.6
    Parsing documentation for bundler-1.10.6
    Installing ri documentation for bundler-1.10.6
    Done installing documentation for bundler after 6 seconds
    1 gem installed
    [root@master httpd]# bundle -v
    bash: bundle: command not found

(/var/log/puppet/masterhttp.log)
Code:
    [2015-09-07 03:29:36] INFO  WEBrick 1.3.1
    [2015-09-07 03:29:36] INFO  ruby 1.8.7 (2013-06-27) [x86_64-linux]
    [2015-09-07 03:29:46] INFO  WEBrick::HTTPServer#start done.

(/var/log/httpd/error_log)
Code:
    [ 2015-09-07 13:56:34.8445 4134/7fdf9b482700 App/Implementation.cpp:303 ]: Could not spawn process for application /usr/share/puppet/rack/puppetmasterd: An error occured while starting up the preloader.
      Error ID: f8296d07
      Error details saved to: /tmp/passenger-error-uiiXv3.html
      Message from application: cannot load such file -- puppet/application/master (LoadError)
      /usr/share/ruby/vendor_ruby/2.0/rubygems/core_ext/kernel_require.rb:55:in `require'
      /usr/share/ruby/vendor_ruby/2.0/rubygems/core_ext/kernel_require.rb:55:in `require'
      /usr/share/puppet/rack/puppetmasterd/config.ru:13:in `block in <main>'
      /usr/local/share/ruby/gems/2.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
      /usr/local/share/ruby/gems/2.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
      /usr/share/puppet/rack/puppetmasterd/config.ru:1:in `new'
      /usr/share/puppet/rack/puppetmasterd/config.ru:1:in `<main>'
      /usr/local/share/ruby/gems/2.0/gems/passenger-5.0.16/helper-scripts/rack-preloader.rb:107:in `eval'
      /usr/local/share/ruby/gems/2.0/gems/passenger-5.0.16/helper-scripts/rack-preloader.rb:107:in `preload_app'
      /usr/local/share/ruby/gems/2.0/gems/passenger-5.0.16/helper-scripts/rack-preloader.rb:153:in `<module:App>'
      /usr/local/share/ruby/gems/2.0/gems/passenger-5.0.16/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
      /usr/local/share/ruby/gems/2.0/gems/passenger-5.0.16/helper-scripts/rack-preloader.rb:28:in `<main>'
    
    
    [ 2015-09-07 13:56:34.8482 4134/7fdf95c66700 age/Cor/Req/CheckoutSession.cpp:252 ]: [Client 1-1] Cannot checkout session because a spawning error occurred. The identifier of the error is f8296d07. Please see earlier logs for details about the error.

(/tmp/passenger-error-uiiXv3.html)
Code:
     <dl>
                                    <dt>Error ID</dt>
                                    <dd>f8296d07</dd>
                                    <dt>Application root</dt>
                                    <dd>/usr/share/puppet/rack/puppetmasterd</dd>
                                    <dt>Environment (value of RAILS_ENV, RACK_ENV, WSGI_ENV, NODE_ENV and PASSENGER_APP_ENV)</dt>
                                    <dd>production</dd>
    
                                            <dt>Ruby interpreter command</dt>
                                            <dd><pre>/usr/bin/ruby2.0</pre></dd>
    
                                    <dt>User and groups</dt>
                                    <dd><pre>uid=<wbr>99(nobody) gid=<wbr>99(nobody) groups=<wbr>99(nobody)
    </pre></dd>
                                    <dt>Environment variables</dt>
                                    <dd><pre>TERM =<wbr> vt100
    PATH =<wbr> /sbin:<wbr>/usr/sbin:<wbr>/bin:<wbr>/usr/bin
    PWD =<wbr> /usr/share/puppet/rack/puppetmasterd
    LANG =<wbr> C
    SHLVL =<wbr> 2
    _ =<wbr> /usr/sbin/httpd
    PASSENGER_USE_FEEDBACK_FD =<wbr> true
    SERVER_SOFTWARE =<wbr> Apache/2.2.31 (Unix) DAV/2 Phusion_Passenger/5.0.16
    PASSENGER_DEBUG_DIR =<wbr> /tmp/passenger.spawn-debug.XXXXMy9EAX

(etc/puppet/puppet.conf)
Code:
    [main]
        # The Puppet log directory.
        # The default value is '$vardir/log'.
        logdir = /var/log/puppet
    
        # Where Puppet PID files are kept.
        # The default value is '$vardir/run'.
        rundir = /var/run/puppet
    
        # Where SSL certificates are kept.
        # The default value is '$confdir/ssl'.
        ssldir = $vardir/ssl
    
        certname = master
    
        dns_alt_names = puppet,puppetmaster
    
    [master]
        environmentpath = $confdir/environments
        basemodulepath = $confdir/modules:/opt/puppet/share/modules
    
    [agent]
        # The file in which puppetd stores a list of the classes
        # associated with the retrieved configuratiion.  Can be loaded in
        # the separate ``puppet`` executable using the ``--loadclasses``
        # option.
        # The default value is '$confdir/classes.txt'.
        classfile = $vardir/classes.txt
    
        # Where puppetd caches the local configuration.  An
        # extension indicating the cache format is added automatically.
        # The default value is '$confdir/localconfig'.
        localconfig = $vardir/localconfig

[/etc/httpd/conf.d/puppetmaster.conf]
Code:
    LoadModule passenger_module /usr/local/share/ruby/gems/2.0/gems/passenger-5.0.16/buildout/apache2/mod_passenger.so PassengerRoot /usr/local/share/ruby/gems/2.0/gems/passenger-5.0.16 PassengerDefaultRuby /usr/bin/ruby2.0
    
    PassengerHighPerformance on PassengerMaxPoolSize 12 PassengerPoolIdleTime 1500 PassengerMaxRequests 1000 PassengerStatThrottleRate 120
    
    Listen 8140
    
    <VirtualHost *:8140>
            SSLEngine on
            SSLProtocol             ALL -SSLv2 -SSLv3
            SSLCipherSuite          EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH:+CAMELLIA256:+AES256:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!IDEA:!ECDSA:kEDH:CAMELLIA256-SHA:AES256-SHA:CAMELLIA128-SHA:AES128-SHA
            SSLHonorCipherOrder     on
    
            SSLCertificateFile      /var/lib/puppet/ssl/certs/cert.crt
            SSLCertificateKeyFile   /var/lib/puppet/ssl/private_keys/private.pem
            SSLCertificateChainFile /var/lib/puppet/ssl/certs/CA.crt
            SSLCACertificateFile    /var/lib/puppet/ssl/ca/ca_crt.pem
            SSLCARevocationFile     /var/lib/puppet/ssl/ca/ca_crl.pem
            SSLVerifyClient optional
            SSLVerifyDepth  1
            SSLOptions +StdEnvVars +ExportCertData
    
            RequestHeader unset X-Forwarded-For
    
            RequestHeader set X-SSL-Subject %{SSL_CLIENT_S_DN}e
            RequestHeader set X-Client-DN %{SSL_CLIENT_S_DN}e
            RequestHeader set X-Client-Verify %{SSL_CLIENT_VERIFY}e
    
            DocumentRoot /usr/share/puppet/rack/puppetmasterd/public/
            RackBaseURI /
            <Directory /usr/share/puppet/rack/puppetmasterd/>
                    Options None
                    AllowOverride None
                    Order allow,deny
                    allow from all
            </Directory>
            PassengerAppRoot /usr/share/puppet/rack/puppetmasterd </VirtualHost>

Any ideas?
Also any other logs I can provide for clue?

Thanks.
 
Back
Top