Hi all, Ive just tried to run my app with jruby and glassfish. It seems to work mostly fine, except one weird thing. Glassfish turns over log/development.log when its size hits 1.9MB, renames it to something like development.log_2009-04-20T13-57-30 but never creates a fresh development.log and at that moment the glassfish server just stops working. What im doing is basically cd into my application''s RAILS_ROOT, and execute glassfish_rails. My OS is FreeBSD 7.2 Any ideas? -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I have the exact same problem. Has anyone figured out why this is? Joe On Apr 19, 11:01 pm, Petr Janda <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi all, > > Ive just tried to run my app with jruby and glassfish. It seems to work > mostly fine, except one weird thing. Glassfish turns over > log/development.log when its size hits 1.9MB, renames it to something > like > > development.log_2009-04-20T13-57-30 > > but never creates a fresh development.log and at that moment the > glassfish server just stops working. > > What im doing is basically cd into my application''s RAILS_ROOT, and > execute glassfish_rails. > > My OS is FreeBSD 7.2 > > Any ideas? > -- > Posted viahttp://www.ruby-forum.com/.
Permissions? Blog: http://random8.zenunit.com/ Learn rails: http://sensei.zenunit.com/ On 03/05/2009, at 6:14 AM, Joe Athman <jjathman-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I have the exact same problem. Has anyone figured out why this is? > > Joe > > On Apr 19, 11:01 pm, Petr Janda <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: >> Hi all, >> >> Ive just tried to run my app with jruby and glassfish. It seems to >> work >> mostly fine, except one weird thing. Glassfish turns over >> log/development.log when its size hits 1.9MB, renames it to something >> like >> >> development.log_2009-04-20T13-57-30 >> >> but never creates a fresh development.log and at that moment the >> glassfish server just stops working. >> >> What im doing is basically cd into my application''s RAILS_ROOT, and >> execute glassfish_rails. >> >> My OS is FreeBSD 7.2 >> >> Any ideas? >> -- >> Posted viahttp://www.ruby-forum.com/. > >
There are some known issues with logging, [1] and [2]. These issues are being worked on and will be available in the next gem version (in couple of weeks). Apparently [1] is the cause of what you are experiencing related to rotation of log files. Since rotation is not working so you as well disable it. Do the following to turn it off: The setting for the log rotation is in domain.xml file. You can edit $RAILS_ROOT/tmp/.glassfish/config/domain.xml. <log-service file="${jruby.log.location}" log-rotation-limit-in-bytes="2000000"> Set log-roation-limit-in-bytes to 0 to disable the rotation. -vivek. [1] http://rubyforge.org/tracker/index.php?func=detail&aid=24828&group_id=5450&atid=21080 [2] http://rubyforge.org/tracker/index.php?func=detail&aid=25560&group_id=5450&atid=21080 On Sat, May 2, 2009 at 8:35 PM, Julian Leviston <julian-AfxEtdRqmE/tt0EhB6fy4g@public.gmane.org>wrote:> > Permissions? > > Blog: http://random8.zenunit.com/ > Learn rails: http://sensei.zenunit.com/ > > On 03/05/2009, at 6:14 AM, Joe Athman <jjathman-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > I have the exact same problem. Has anyone figured out why this is? > > > > Joe > > > > On Apr 19, 11:01 pm, Petr Janda <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > wrote: > >> Hi all, > >> > >> Ive just tried to run my app with jruby and glassfish. It seems to > >> work > >> mostly fine, except one weird thing. Glassfish turns over > >> log/development.log when its size hits 1.9MB, renames it to something > >> like > >> > >> development.log_2009-04-20T13-57-30 > >> > >> but never creates a fresh development.log and at that moment the > >> glassfish server just stops working. > >> > >> What im doing is basically cd into my application''s RAILS_ROOT, and > >> execute glassfish_rails. > >> > >> My OS is FreeBSD 7.2 > >> > >> Any ideas? > >> -- > >> Posted viahttp://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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---