Dashboard opens fine. I have the module line commented because puppetmaster 
also uses passenger and it's already loaded. I'll try the enc line in terminal 
when I get a chance. 

Sent from Mailbox for iPhone
—
Jason Hatman
270-790-1139

On Sun, May 4, 2014 at 8:23 AM, liu.cy <[email protected]> wrote:

> first, you configured enc to get node classes from dashboard.
> after configuring apache to serve dashboard, enc script can't get node 
> classes successfully, so puppet agent failed.
> the command enc get node classes from dashboard is "/usr/bin/env 
> PUPPET_DASHBOARD_URL=http://localhost:3000 
> /usr/share/puppet-dashboard/bin/external_node 
> munkitest1ml.local', you can just run it in terminal, then can see what's 
> wrong with it.
> then, your pasted apache configuration shows passenger_modules section is 
> commented, is it configured in other place? what's dashboard's status, can 
> you open it?
> On Saturday, May 3, 2014 12:17:01 AM UTC+8, Jason Hatman wrote:
>>
>> I've configured a new puppetmaster server.  I've installed Dashboard. 
>>  Everything works fine using webrick. As soon as I start using apache2 to 
>> serve dashboard, the nodes stop working. I can't quite pin down where the 
>> problem is.
>>
>> ERROR MESSAGE
>>
>> Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
>> Failed when searching for node munkitest1ml.local: Failed to find 
>> munkitest1ml.local via exec: Execution of '/usr/bin/env 
>> PUPPET_DASHBOARD_URL=http://localhost:3000/usr/share/puppet-dashboard/bin/external_node
>>  munkitest1ml.local' returned 
>> 1: 
>>
>> Warning: Not using cache on failed catalog
>> Error: Could not retrieve catalog; skipping run 
>>
>> PUPPET MASTER PUPPET.CONF
>>
>> [main] 
>> logdir=/var/log/puppet 
>> vardir=/var/lib/puppet 
>> ssldir=/var/lib/puppet/ssl 
>> rundir=/var/run/puppet 
>> factpath=$vardir/lib/facter 
>> templatedir=$confdir/templates 
>> certname=pmastertest.orchard.fruit.com 
>> dns_alt_names=pmastertest.orchard.fruit.com,pmastertest 
>> modulepath=/etc/puppet/modules 
>> server=pmastertest.orchard.fruit.com 
>> user=puppet 
>> group=puppet 
>> runinterval=1800 
>> splaylimit=1800 
>> splay=true 
>>
>> [master] 
>> # These are needed when the puppetmaster is run by passenger 
>> # and can safely be removed if webrick is used. 
>> ssl_client_header = SSL_CLIENT_S_DN 
>> ssl_client_verify_header = SSL_CLIENT_VERIFY 
>> ca_name='Puppet CA: pmastertest.orchard.fruit.com' 
>> reports=store,http 
>> reporturl=http://pmastertest.orchard.fruit.com:3000/reports/upload 
>> node_terminus = exec 
>> external_nodes = /usr/bin/env 
>> PUPPET_DASHBOARD_URL=http://localhost:3000/usr/share/puppet-dashboard/bin/external_node
>>
>> PUPPET-DASHBOARD VHOST FILE
>>
>> # UPDATE THESE PATHS TO SUIT YOUR ENVIRONMENT 
>> #LoadModule passenger_module 
>> /var/lib/gems/1.8/gems/passenger-2.2.11/ext/apache2/mod_passenger.so 
>> #PassengerRoot /var/lib/gems/1.8/gems/passenger-2.2.11 
>> #PassengerRuby /usr/bin/ruby
>>
>> PassengerHighPerformance on 
>> PassengerMaxPoolSize 12 
>> PassengerPoolIdleTime 1500 
>> # PassengerMaxRequests 1000 
>> PassengerStatThrottleRate 120 
>> #RailsAutoDetect On 
>>
>> Listen 3000 
>> <VirtualHost *:3000> 
>> RailsBaseURI / 
>> ServerName pmastertest.orchard.fruit.com 
>> DocumentRoot /usr/share/puppet-dashboard/public/ 
>> <Directory /usr/share/puppet-dashboard/public/> 
>> Options None 
>> Order allow,deny 
>> allow from all 
>> </Directory> 
>> ErrorLog /var/log/apache2/pmastertest.orchard.fruit.com_error.log 
>> LogLevel warn 
>> CustomLog /var/log/apache2/pmastertest.orchard.fruit.com_access.log 
>> combined 
>> ServerSignature On 
>>
>> ...
>>
>>
>>
>>
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "Puppet Users" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/puppet-users/EC4ln8GzBRQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/fd64a946-3022-43de-81e2-fd3707b22a7d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/1399222461045.f9bba75d%40Nodemailer.
For more options, visit https://groups.google.com/d/optout.

Reply via email to