[freeside] Re: Connection refused [SignupClient.pm] line 189

ivan ivan at 420.am
Tue Jul 4 22:25:35 PDT 2000


On Wed, Jul 05, 2000 at 03:00:01PM +1000, Johannes Strydom wrote:
> ivan wrote:
> 
> > Hmm, I can't duplicate this problem here.
> >
> > Enable debugging at the top of fs_signup_server by setting $Debug = 1.
> >
> > If I had to guess, I'd have to say that the fs_signup_server and
> > fs_signupd processes weren't running when you submitted the form.
> >
> > On Wed, Jul 05, 2000 at 12:46:11PM +1000, Johannes Strydom wrote:
> > > Hi all,
> > >
> > > We're using the latest cvs freeside version with apache  version 1.3.9
> > >
> > > I've successfully added users to our shell machine through the "manual"
> > > interface. That left me with some joy.
> > > Now we're trying to get the signup server / client to work with not so
> > > much success.
> > > i've got the signup.cgi script in the /cgi-bin/ directory of our
> > > webserver . The server run as suEXEC user
> > > freeside. I'm also pretty confident that I've setup the external machine
> > > as per the signup.html (or maybe not)
> > > I've started the fs_signup_server with no problem, it sends the
> > > packages, pops etc to the external server's fs_signupd
> > > deamon which in turn ackowledges receipt of the info.
> > >
> > > Now I've loaded the signup.cgi script in my netscape browser and it
> > > looks great.
> > >
> > > I complete the signup form with all the required info and submit the
> > > form by clicking on the signup button.
> > >
> > > Now the problem starts, it just sits there and eventually times out with
> > > "The document contains no data"
> > > and in the web server's error log the attached log file
> > >
> > > Looking at the log it seems that there is some authentication problem
> > > and we just can't figure it out.
> > >
> > > Please help.
> >
> > > [Wed Jul  5 20:58:45 2000] signup.cgi: Use of uninitialized value in chop at /usr/local/lib/perl5/site_perl/5.6.0/FS/SignupClient.pm line 199.
> > > [Wed Jul  5 21:32:40 2000] signup.cgi: Use of uninitialized value in chop at /usr/local/lib/perl5/site_perl/5.6.0/FS/SignupClient.pm line 106.
> > > [Wed Jul  5 21:32:40 2000] signup.cgi: Use of uninitialized value in range (or flop) at /usr/local/lib/perl5/site_perl/5.6.0/FS/SignupClient.pm line 108.
> > > [Wed Jul  5 21:32:40 2000] signup.cgi: Use of uninitialized value in range (or flop) at /usr/local/lib/perl5/site_perl/5.6.0/FS/SignupClient.pm line 108.
> > > [Wed Jul  5 21:32:40 2000] signup.cgi: Use of uninitialized value in chop at /usr/local/lib/perl5/site_perl/5.6.0/FS/SignupClient.pm line 120.
> > > [Wed Jul  5 21:32:40 2000] signup.cgi: Use of uninitialized value in range (or flop) at /usr/local/lib/perl5/site_perl/5.6.0/FS/SignupClient.pm line 122.
> > > [Wed Jul  5 21:32:40 2000] signup.cgi: Use of uninitialized value in range (or flop) at /usr/local/lib/perl5/site_perl/5.6.0/FS/SignupClient.pm line 122.
> > > [Wed Jul  5 21:32:40 2000] signup.cgi: Use of uninitialized value in chop at /usr/local/lib/perl5/site_perl/5.6.0/FS/SignupClient.pm line 130.
> > > [Wed Jul  5 21:32:40 2000] signup.cgi: Use of uninitialized value in range (or flop) at /usr/local/lib/perl5/site_perl/5.6.0/FS/SignupClient.pm line 132.
> > > [Wed Jul  5 21:32:40 2000] signup.cgi: Use of uninitialized value in range (or flop) at /usr/local/lib/perl5/site_perl/5.6.0/FS/SignupClient.pm line 132.
> > > [Wed Jul  5 21:32:40 2000] signup.cgi: Use of uninitialized value in chop at /usr/local/lib/perl5/site_perl/5.6.0/FS/SignupClient.pm line 106.
> > > [Wed Jul  5 21:32:40 2000] signup.cgi: Use of uninitialized value in range (or flop) at /usr/local/lib/perl5/site_perl/5.6.0/FS/SignupClient.pm line 108.
> > > [Wed Jul  5 21:32:40 2000] signup.cgi: Use of uninitialized value in range (or flop) at /usr/local/lib/perl5/site_perl/5.6.0/FS/SignupClient.pm line 108.
> > > [Wed Jul  5 21:32:40 2000] signup.cgi: Use of uninitialized value in chop at /usr/local/lib/perl5/site_perl/5.6.0/FS/SignupClient.pm line 120.
> > > [Wed Jul  5 21:32:40 2000] signup.cgi: Use of uninitialized value in range (or flop) at /usr/local/lib/perl5/site_perl/5.6.0/FS/SignupClient.pm line 122.
> > > [Wed Jul  5 21:32:40 2000] signup.cgi: Use of uninitialized value in range (or flop) at /usr/local/lib/perl5/site_perl/5.6.0/FS/SignupClient.pm line 122.
> > > [Wed Jul  5 21:32:40 2000] signup.cgi: Use of uninitialized value in chop at /usr/local/lib/perl5/site_perl/5.6.0/FS/SignupClient.pm line 130.
> > > [Wed Jul  5 21:32:40 2000] signup.cgi: Use of uninitialized value in range (or flop) at /usr/local/lib/perl5/site_perl/5.6.0/FS/SignupClient.pm line 132.
> > > [Wed Jul  5 21:32:40 2000] signup.cgi: Use of uninitialized value in range (or flop) at /usr/local/lib/perl5/site_perl/5.6.0/FS/SignupClient.pm line 132.
> > > [Wed Jul  5 21:32:40 2000] signup.cgi: connect: Connection refused at /usr/local/lib/perl5/site_perl/5.6.0/FS/SignupClient.pm line 189.
> >
> > --
> > meow
> > _ivan
> 
> Ivan,
> Negative, the signup server is running and it actually adds the users to our shellmachine, but does not
> complete the transaction.
> 
> Here is the output from fs_signup_server and fs_signupd. Now from the last entry from fs_signupd
> it appears that there is some error passed to fs_signupd.

No, even if there is no error, that fact still needs to be passed over -
that's normal.  And these "errors" aren't really programmatic problems -
they're things like "Invalid credit card" or somesuch.

It looks like there's a problem while fs_signup_server is processing the
new customer ( `[fs_signup_server] Processing signup...' ), and for some
reason the results aren't sent to fs_signupd and back to the CGI process -
the expected next message `[fs_signup_server] Sending results...' is
missing.

That narrows it down to somewhere between those two statements in
fs_signup_server - 93 and 173 or thereabouts.  Add some print or warn
statements or use the debugger to find out where the process is stalling.

Sorry I couldn't be more help, but I'm unable to duplicate your problem. 
Good luck!

> 
> Regards,
> 
> [freeside at ns sbin]$ ./fs_signup_server daddio www.prosperitas.com.au 1 1
> [fs_signup_server] Connecting to www.prosperitas.com.au...
> [fs_signup_server] Sending locales...
> [fs_signup_server] Sending package definitions...
> [fs_signup_server] Sending POPs...
> [fs_signup_server] Entering main loop...
> [fs_signup_server] Reading (waiting for) signup data...
> [fs_signupd] Reading locales...
> [fs_signupd] Reading package definitions...
> [fs_signupd] Reading POPs...
> [fs_signupd] Creating /usr/local/freeside/fs_signupd_socket
> [fs_signupd] Entering main loop...
> [fs_signupd] sending signup info...
> [fs_signupd] reading customer signup...
> [fs_signupd] sending customer data to remote server...
> [fs_signupd] reading error from remote server...
> [fs_signup_server] Processing signup...
> 
> 

-- 
meow
_ivan



More information about the freeside-users mailing list