Michael Hulet
2010-Jul-28 14:04 UTC
production.log ownership switched to root -> app is down
Hi all, We are facing a problem we can''t resolve for now. We have an application where sometimes production.log ownership switches from www-data to root. It crashes the application, as it is run by www-data user. We use Phusion Passenger with Nginx on Debian and the default user is set to www-data. We have several Rails processes that could possibly write to the log. We checked them all, they are all runned by www-data. Maybe you can help. Do you know something we could do to "trace" the owernship switch on Linux? We are of course looking for the process that is setting the new owernship to root. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
SeanWalberg
2010-Jul-28 14:43 UTC
Re: production.log ownership switched to root -> app is down
On Jul 28, 9:04 am, Michael Hulet <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Maybe you can help. Do you know something we could do to "trace" the > owernship switch on Linux? We are of course looking for the process that > is setting the new owernship to root.Is the timestamp on the file consistent? Look into any cron jobs that manage logs. They will be run as root. Sean -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hassan Schroeder
2010-Jul-28 14:52 UTC
Re: production.log ownership switched to root -> app is down
On Wed, Jul 28, 2010 at 7:04 AM, Michael Hulet <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> We have an application where sometimes production.log ownership switches > from www-data to root.> We are of course looking for the process that is setting the new > owernship to root.The first thing I''d do would be to check all cron jobs and particularly any log-rotating programs. -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.