Issue #11409 has been updated by Jo Rhett.

It's running as apache, just like the working system. httpd runs as apache, but 
master and all passenger clients run as puppet there.  I've actually been 
curious how it makes that happen, which is part of why I can't evaluate what 
might be failing there.

>From the working system:

$ ps auwx |grep httpd
apache    2675  0.0  0.0 199936  7244 ?        S    19:08   0:05 /usr/sbin/httpd
apache    2701  0.0  0.0 199948  7264 ?        S    19:08   0:05 /usr/sbin/httpd
apache    2722  0.0  0.0 199948  7276 ?        S    19:08   0:05 /usr/sbin/httpd
apache   11481  0.1  0.0 199660  6932 ?        S    20:11   0:03 /usr/sbin/httpd

$ ps auwx |grep puppet
puppet   11491  7.4  0.6 212512 105568 ?       S    20:11   2:26 Rack: 
/nas/puppet/rack                                                                
                                                                        
puppet   11494  8.3  0.6 214824 107936 ?       S    20:11   2:42 Rack: 
/nas/puppet/rack                                                                
                                                                        
puppet   11501  7.9  0.6 214996 108252 ?       S    20:11   2:35 Rack: 
/nas/puppet/rack                                                                
                                                                        
puppet   11505  7.6  0.6 210796 103776 ?       S    20:11   2:29 Rack: 
/nas/puppet/rack                                                                
                                                                        

I documented internally my steps for setting up passenger, and nothing at all 
included steps to tell us to run the passenger client as the puppet user.  It 
just worked that way.
----------------------------------------
Bug #11409: passenger won't start up
https://projects.puppetlabs.com/issues/11409

Author: Jo Rhett
Status: Needs More Information
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 2.6.12
Keywords: 
Branch: 


I've made a perfect copy of our production environment on another 
machine/environment so that I can test ruby and puppet version upgrades without 
affecting production systems.  This is essential for ruby 1.8.7 upgrades.  
puppet master worked perfectly fine when running in webrick mode.

For reasons I simply cannot trace down, I get the following errors when we 
first connect to the passenger application:

[Thu Dec 15 05:02:29 2011] [notice] Apache/2.2.3 (CentOS) configured -- 
resuming normal operations
Could not prepare for execution: Got 1 failure(s) while initializing: change 
from absent to file failed: Could not set 'file on ensure: Permission denied - 
/nas/puppet/var/log/masterhttp.log
Could not prepare for execution: Got 1 failure(s) while initializing: change 
from absent to file failed: Could not set 'file on ensure: Permission denied - 
/nas/puppet/var/log/masterhttp.log

This file (and the entire heirarchy it is in) are the exact same rights as on 
the production system.

[05:02 root@ats001 conf.d]$ ls -la /nas/puppet/var/log
total 44
drwxr-x---  2 puppet puppet  4096 Dec 15 04:20 .
drwxr-xr-x 14 puppet puppet  4096 Dec 15 00:39 ..
-rw-rw----  1 puppet puppet 30965 Dec 15 04:38 masterhttp.log

Su to the puppet user and I can edit files in that directory just fine.    I've 
done funny things like change the ownership of the directory and it complains:
Could not prepare for execution: Got 1 failure(s) while initializing: change 
from 775 to 750 failed: failed to chmod /nas/puppet/var/log: Operation not 
permitted - /nas/puppet/var/log

So it's seeing the right directory, it just doesn't like it.  The best I can 
imagine is that the master process isn't starting up as the puppet user?  How 
can I validate this?

Exact same OS, exact same kernel, exact same packages, exact same LDAP 
structure, matching (few) local accounts.  This is identical in every way.  
What's going on here?



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to