We have a perl (v5.8.7) daemon, written using the CPAN module Daemon::Generic (v0.4), which is crashing daily. This daemon contantly checks for new entries to a table, and when it encounters them, will fork off a delivery process to run a GET or POST request using LWP::UserAgent (v2.033).

Normally, this works fine. However, last night, immediately before the crash, one of the delivery processes encountered the following error when trying to make a POST request:

500 Can't locate object method "configure" via package "Net::HTTP" Content-Type: text/plain Client-Date: Fri, 07 Nov 2008 03:26:27 GMT Client-Warning: Internal response 500 Can't locate object method "configure" via package "Net::HTTP"

This seems to indicate to me that the environment that the delivery processes are being created under is getting corrupted, which in turn takes down the entire daemon. Does this sound plausible? How could it happen? There is only one perl installation and one version of Net::HTTP on the machine. We are running on Ubuntu 6.06 LTS.

Our resident bestower of Perl wisdom is on vacation, so I humbly beg the Perl Monks for some sage advice in ridding my daemon of this demon!

Thanks alot!
Jim

In reply to Daemon problem: Can't locate object method "configure" via package "Net::HTTP" by jspath

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.