LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-07-2015, 09:29 AM   #1
sndlt
Member
 
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).

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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:17 PM.

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