[freeside] jobqueue not working

Stephen Bechard steve at destek.net
Thu May 2 03:55:30 PDT 2002


I had this same problem and found that it was related 
to the freeside-queued not running as the freeside user.
Try stopping and starting your freeside-queued.
Enjoy,
Steve

> Mario Zuppini wrote:
> 
> Everything is nearly working 100% except when I add a user, the username and passwords are getting added to
> the radcheck table in my icradius database, but the users are not getting added to the system.
> 
> Below I have selected teh job queue where im trying to get it going by clicking on *retry* and then i have the error
> below it.
> 
>                   root at 203.34.142.143 /usr/sbin/useradd -d
>  Net::SSH::ssh_cmd/home-clients/louie3600 -m -s /bin/false    Wed May 1      locked                    louie3600 at cybersol.com.au
>                   louie3600                                   17:47:02 2002  ( retry | remove )
> 
> The error im getting on 203.34.142.8 server is as follows..ssh debug log in auth.log
> 
> May  2 10:23:41 hq sshd[548]: debug1: Forked child 6109.
> May  2 10:23:41 hq sshd[6109]: Connection from 203.34.142.9 port 1039
> May  2 10:23:41 hq sshd[6109]: Did not receive identification string from 203.34.142.9
> May  2 10:23:41 hq sshd[6109]: debug1: Calling cleanup 0x8066dbc(0x0)
> 
> Now from what I can gather, it tries to execute that ssh_cmd as the freeside user to get to 203.34.142.143 as root, I have all
> the rsa keys done and i can manually ssh across via the freeside account to root account on 203.34.142.143 without any problem
> or password queries..
> 
> To test the Net::SSH module in perl as I thought this might of been the problem, I went and got the example from cpan
> to test the module to make sure it works and the arguments for it where correct in the jobqueue that you see above.
> The test perl file I used that works correctly and added the user was as follows..
> 
> #!/usr/bin/perl
> 
> use Net::SSH qw(sshopen2);
> use strict;
> 
>     my $user = "root";
>     my $host = "203.34.142.143";
>     my $cmd = "/usr/sbin/useradd -d /home-clients/cocacola11 -m -s /bin/false cocacola11";
> 
> sshopen2("$user\@$host", *READER, *WRITER, "$cmd") || die "ssh: $!";
> 
>     while (<READER>) {
>        chomp();
>        print "$_\n";
>      }
> 
> close(READER);
> close(WRITER);
> 
> -----------------------------
> that works 100% perfect and added the user, so I am unsure and have no idea why when i click RETRY on the jobqueue
> there that im getting that error in the auth.log for ssh..
> 
> Machine : i386
> OS : Debian 2.2
> Radius : IC-Radius 0.18.1
> Freeside v1.4.0pre11
> Perl v5.6.1
> Server version: Apache/1.3.23 (Unix) Debian GNU/Linux (apache is running as the freeside user)
> 
> 
> Thank You
> 
> Mario Zuppini
> Systems Administrator
> 
> Total Cybersolutions
> www.cybersol.com.au
> 
> PO BOX 2081
> Windsor QLD 4030
> Australia
> Phone : +617-3861-0882
> Fax: +617-3861-0884
> sysadmin at cybersol.com.au
> 
>



More information about the freeside-users mailing list