> My production log was getting really big so I figured I would delete it > and make a new empty one. I guess this was a bad idea? Now if I make a > new one and set it to permission 644, 700 or 750 nothing gets written to > it. If I don''t make a new one rails does not seem to be creating one.lighttpd is probably not running as you. So you probably need something like 770 or even 777. Depending on whether you''re in the same group as the lighttpd user or not. -- David Heinemeier Hansson http://www.loudthinking.com -- Broadcasting Brain http://www.basecamphq.com -- Online project management http://www.backpackit.com -- Personal information manager http://www.rubyonrails.com -- Web-application framework
My production log was getting really big so I figured I would delete it and make a new empty one. I guess this was a bad idea? Now if I make a new one and set it to permission 644, 700 or 750 nothing gets written to it. If I don''t make a new one rails does not seem to be creating one. I am running on lighttpd with fcgi and I am restarting lighttpd after each try. It was working up until I deleted it so I know for sure that I am running in production mode. Any suggestions? -Matt Margolis
David Heinemeier Hansson wrote:>>My production log was getting really big so I figured I would delete it >>and make a new empty one. I guess this was a bad idea? Now if I make a >>new one and set it to permission 644, 700 or 750 nothing gets written to >>it. If I don''t make a new one rails does not seem to be creating one. >> >> > >lighttpd is probably not running as you. So you probably need >something like 770 or even 777. Depending on whether you''re in the >same group as the lighttpd user or not. > >I am on Textdrive and I don''t believe that they let you run with anything higher than 750 and still have things work. I am running lighttpd as my main account user anyway so I shouldn''t need to go that high. -Matt Margolis
Matthew Margolis wrote:> David Heinemeier Hansson wrote: > >>> My production log was getting really big so I figured I would delete it >>> and make a new empty one. I guess this was a bad idea? Now if I >>> make a >>> new one and set it to permission 644, 700 or 750 nothing gets >>> written to >>> it. If I don''t make a new one rails does not seem to be creating one. >>> >> >> >> lighttpd is probably not running as you. So you probably need >> something like 770 or even 777. Depending on whether you''re in the >> same group as the lighttpd user or not. >> >> > I am on Textdrive and I don''t believe that they let you run with > anything higher than 750 and still have things work. I am running > lighttpd as my main account user anyway so I shouldn''t need to go that > high. > > -Matt Margolis > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/railsI had some living dispatch.fcgi processes still running around. Be sure that you kill everything lighttpd related if this happens to you. -Matt Margolis
For future reference, you can empty a log file without hosing permissions with: cat /dev/null > /path/to/your/logfile Thanks, Tristan ------------------------------------- Date: Thu, 7 Jul 2005 23:40:22 +0200 From: David Heinemeier Hansson <david.heinemeier-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Subject: Re: [Rails] Production log not working To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Message-ID: <fe20adc605070714406804964b-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> Content-Type: text/plain; charset=ISO-8859-1> My production log was getting really big so I figured I would delete > it and make a new empty one. I guess this was a bad idea? Now if I > make a new one and set it to permission 644, 700 or 750 nothing gets > written to it. If I don''t make a new one rails does not seem to becreating one. lighttpd is probably not running as you. So you probably need something like 770 or even 777. Depending on whether you''re in the same group as the lighttpd user or not. -- David Heinemeier Hansson http://www.loudthinking.com -- Broadcasting Brain http://www.basecamphq.com -- Online project management http://www.backpackit.com -- Personal information manager http://www.rubyonrails.com -- Web-application framework