This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.
From: Meng Weng Wong <mengwong@dumbo.pobox.com> To: mason-users@lists.sourceforge.net Subject: Re: [Mason] PerlFreshRestart is the culprit Date: Wed, 17 Jul 2002 22:24:03 -0400 On Wed, Jul 17, 2002 at 09:46:29PM -0400, Meng Weng Wong wrote: | It's probably something really simple and stupid. I'll keep | working on it. hypothesis: recent HTML::Mason doesn't play well with PerlFreshRestart on. the problem stopped when i took it out. to duplicate the problem, can you try putting in PerlFreshRestart in httpd.conf? If everything gets buggered perhaps a mention could be made in the UPGRADE file. solution: use PerlInitHandler Apache::Reload PerlSetVar ReloadAll Off ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users === From: Dave Rolsky <autarch@urth.org> To: Meng Weng Wong <mengwong@dumbo.pobox.com> Subject: Re: [Mason] PerlFreshRestart is the culprit Date: Wed, 17 Jul 2002 23:54:32 -0500 (CDT) On Wed, 17 Jul 2002, Meng Weng Wong wrote: > On Wed, Jul 17, 2002 at 09:46:29PM -0400, Meng Weng Wong wrote: > | It's probably something really simple and stupid. I'll keep > | working on it. > > hypothesis: > recent HTML::Mason doesn't play well with PerlFreshRestart on. Maybe ... > to duplicate the problem, can you try putting in PerlFreshRestart in > httpd.conf? If everything gets buggered perhaps a mention could be made > in the UPGRADE file. I could not duplicate it, but I wouldn't say you're wrong regardless. PerlFreshRestart breaks lots of modules, and I wouldn't be surprised if it broke Mason, since ApacheHandler does some funky stuff on startup. We've seen other reports of weirdness with PerlFreshRestart turned on and we generally tell people to turn it off. What versions of mod_perl & Apache are you using? Ken Miller and anybody else who had this problem, did you have PerlFreshRestart on? -dave /*================== www.urth.org we await the New Sun ==================*/ ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users === From: "Jonathan Swartz" <swartz@pobox.com> To: "'Meng Weng Wong'" <mengwong@dumbo.pobox.com>, Subject: RE: [Mason] PerlFreshRestart is the culprit Date: Wed, 17 Jul 2002 22:30:48 -0700 > On Wed, Jul 17, 2002 at 09:46:29PM -0400, Meng Weng Wong wrote: > | It's probably something really simple and stupid. I'll keep > | working on it. > > hypothesis: > recent HTML::Mason doesn't play well with PerlFreshRestart on. Aha! Well in all fairness, this is in the README :) WARNINGS! * Don't use Mason with PerlFreshRestart. The mod_perl PerlFreshRestart directive attempts to reload modules on restart in a very simplistic way. Mason cannot be reloaded this way. To reliably restart a server using Mason, you must actually stop and start the server. It would be nice though to reproduce or even understand this problem, so that we could be more specific in the warning. As it is we just "suspect" for vague reasons that PerlFreshRestart will break Mason. Also, for redundancy I guess we should put this somewhere other than the README. Perhaps add a FAQ once we confirm the issue. Jon ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users === From: Meng Weng Wong <mengwong@dumbo.pobox.com> To: Jonathan Swartz <swartz@pobox.com> Cc: "'Meng Weng Wong'" <mengwong@dumbo.pobox.com>, Subject: Re: [Mason] PerlFreshRestart is the culprit Date: Thu, 18 Jul 2002 10:37:45 -0400 On Wed, Jul 17, 2002 at 10:30:48PM -0700, Jonathan Swartz wrote: | | Aha! Well in all fairness, this is in the README :) | OK. But it worked with 0.8 so I suspect many other asses may have been bit by the upgrade. | | It would be nice though to reproduce or even understand this problem, so | that we could be more specific in the warning. As it is we just "suspect" | for vague reasons that PerlFreshRestart will break Mason. | | Also, for redundancy I guess we should put this somewhere other than the | README. Perhaps add a FAQ once we confirm the issue. | also perhaps Mason could see if PerlFreshRestart was set to 'on', and spit out a warning to error_log. an easy clue to save time. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users === From: Perrin Harkins <perrin@elem.com> To: Meng Weng Wong <mengwong@dumbo.pobox.com> Subject: Re: [Mason] PerlFreshRestart is the culprit Date: Thu, 18 Jul 2002 11:01:31 -0700 Meng Weng Wong wrote: >OK. But it worked with 0.8 so I suspect many other asses may have been >bit by the upgrade. > I'm always amazed that anyone is still running PerlFreshRestart. The mod_perl guide says it probably will break your site. Every time it comes up on the mailing list people say to turn it off. It simply doesn't work with a large percentage of the modules on CPAN, and it absolutely trashes your shared memory. You are much better off doing a full restart of your server. - Perrin ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users === From: Dave Rolsky <autarch@urth.org> To: Meng Weng Wong <mengwong@dumbo.pobox.com> Subject: Re: [Mason] PerlFreshRestart is the culprit Date: Thu, 18 Jul 2002 10:10:29 -0500 (CDT) On Thu, 18 Jul 2002, Meng Weng Wong wrote: > also perhaps Mason could see if PerlFreshRestart was set to 'on', and > spit out a warning to error_log. an easy clue to save time. I was thinking of that but I can't find any way to detect that it's on from Perl. -dave /*================== www.urth.org we await the New Sun ==================*/ ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users === From: Dave Rolsky <autarch@urth.org> To: Perrin Harkins <perrin@elem.com> Subject: Re: [Mason] PerlFreshRestart is the culprit Date: Thu, 18 Jul 2002 10:11:23 -0500 (CDT) On Thu, 18 Jul 2002, Perrin Harkins wrote: > I'm always amazed that anyone is still running PerlFreshRestart. The > mod_perl guide says it probably will break your site. Every time it > comes up on the mailing list people say to turn it off. It simply > doesn't work with a large percentage of the modules on CPAN, and it > absolutely trashes your shared memory. You are much better off doing a > full restart of your server. I think for a lot of people it's something they stuck in their server config a while back and haven't touched since. Of course, AFAICT it's completely unneeded now that Apache::Reload exists, and provides much better control (and doesn't break Mason or other module ;) -dave /*================== www.urth.org we await the New Sun ==================*/ ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users === From: Meng Weng Wong <mengwong@dumbo.pobox.com> To: mason-users@lists.sourceforge.net Subject: Re: [Mason] PerlFreshRestart is the culprit Date: Thu, 18 Jul 2002 12:21:17 -0400 On Thu, Jul 18, 2002 at 10:11:23AM -0500, Dave Rolsky wrote: | | I think for a lot of people it's something they stuck in their server | config a while back and haven't touched since. | | Of course, AFAICT it's completely unneeded now that Apache::Reload exists, yeah, i guess the right place for a PerlFreshRestart warning is in mod_perl itself. things in config files last forever. meng ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users === From: Dave Rolsky <autarch@urth.org> To: Mason-Users <mason-users@lists.sourceforge.net> Subject: RE: [Mason] PerlFreshRestart is the culprit Date: Thu, 18 Jul 2002 12:23:52 -0500 (CDT) [ ing back to list ... ] On Thu, 18 Jul 2002, Ken Miller wrote: > Yeah, that's what my problem was as well. Ok, I've added a bunch of FAQ items to the "UPGRADING ..." section that basically all have the same answer. Turn PerlFreshRestart off ;) -dave /*================== www.urth.org we await the New Sun ==================*/ ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users === From: Ken Miller <klm@shetlandsoftware.com> Subject: RE: [Mason] PerlFreshRestart is the culprit To: Dave Rolsky <autarch@urth.org>, Date: Thu, 18 Jul 2002 12:01:05 -0600 Out of curiosity, why would using PerlFreshRestart affect the construction of the Mason classes? Does it have something to do with how Class::Container works? I noticed that there are a *lot* of BEGIN blocks in the modules now that have to do with configuring class parameters and what-have-you. I would have expected problems to crop up only after a restart. But I never really understand how PerlFreshRestart worked anyways, so I'm sure there's some magic under the hood that was causing all the grief. Again, it's really a moot point. With previous version of Mason, I *always* used 'apachectl restart', and never had any problems. But, as I said above, doing a stop/start isn't a real big deal, especially on today's faster systems. Scratch another problem off the list. -klm. > -----Original Message----- > From: mason-users-admin@lists.sourceforge.net > [mailto:mason-users-admin@lists.sourceforge.net]On Behalf Of Dave Rolsky > Sent: Thursday, July 18, 2002 11:24 AM > To: Mason-Users > Subject: RE: [Mason] PerlFreshRestart is the culprit > > > [ ing back to list ... ] > > On Thu, 18 Jul 2002, Ken Miller wrote: > > > Yeah, that's what my problem was as well. > > Ok, I've added a bunch of FAQ items to the "UPGRADING ..." section that > basically all have the same answer. Turn PerlFreshRestart off ;) > > > -dave > > /*================== > www.urth.org > we await the New Sun > ==================*/ > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Mason-users mailing list > Mason-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mason-users > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users