Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-07-2015, 09:29 AM   #1
Registered: Jun 2014
Posts: 55

Rep: Reputation: Disabled
(Amazon linux AMI) passenger starts but something is off?

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).

    [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
    [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.
    [ 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/ `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/ `new'
      /usr/share/puppet/rack/puppetmasterd/ `<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.
                                    <dt>Error ID</dt>
                                    <dt>Application root</dt>
                                    <dt>Environment (value of RAILS_ENV, RACK_ENV, WSGI_ENV, NODE_ENV and PASSENGER_APP_ENV)</dt>
                                            <dt>Ruby interpreter command</dt>
                                    <dt>User and groups</dt>
                                    <dd><pre>uid=<wbr>99(nobody) gid=<wbr>99(nobody) groups=<wbr>99(nobody)
                                    <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
    SERVER_SOFTWARE =<wbr> Apache/2.2.31 (Unix) DAV/2 Phusion_Passenger/5.0.16
    PASSENGER_DEBUG_DIR =<wbr> /tmp/passenger.spawn-debug.XXXXMy9EAX
        # 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
        environmentpath = $confdir/environments
        basemodulepath = $confdir/modules:/opt/puppet/share/modules
        # 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
    LoadModule passenger_module /usr/local/share/ruby/gems/2.0/gems/passenger-5.0.16/buildout/apache2/ 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
            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
            PassengerAppRoot /usr/share/puppet/rack/puppetmasterd </VirtualHost>
Any ideas?
Also any other logs I can provide for clue?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Amazon Linux AMI(Amazon Machine Image) - ec2 server - query about pem file unclesamcrazy Linux - Newbie 11 11-27-2014 04:31 PM
What distro would be the closest match for Amazon Linux AMI? UCBCarebear Linux - Server 2 01-11-2013 03:52 PM
LXer: Amazon's Linux AMI is All Grown Up LXer Syndicated Linux News 0 09-28-2011 05:20 PM
Amazon AMI Linux vandora Linux - Newbie 2 06-06-2011 04:08 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:11 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration