[freeside-devel] Issues setting up selfservice.
Corey Young
eric.c.f.young at gmail.com
Fri Apr 18 19:25:59 PDT 2014
Hello everyone I am having issue setting up the freeside selfservice api. I
have it installed on the same backend as the freeside installation and am
accessing it using php xmlrpc class.
I am getting this error.
[FreesideSelfService] XML-RPC communication error: connect to
/usr/local/freeside/selfservice_socket: Connection refused at
/usr/local/share/perl/5.14.2/FS/SelfService.pm line 153. (Server)
here is the code at that line.
from /usr/local/share/perl/5.14.2/
FS/SelfService.pm
sub simple_packet {
149 my $packet = shift;
150 warn "sending ". $packet->{_packet}. " to server"
151 if $DEBUG;
152 socket(SOCK, PF_UNIX, SOCK_STREAM, 0) or die "socket: $!";
153 connect(SOCK, sockaddr_un($socket)) or die "connect to $socket: $!";
154 nstore_fd($packet, \*SOCK) or die "can't send packet: $!";
155 SOCK->flush;
156
157 #shoudl trap: Magic number checking on storable file failed at
blib/lib/Storable.pm (autosplit into blib/lib/auto/Storable/fd_retrieve.al)
line 337, at /usr/local/share/p erl/5.6.1/FS/SelfService.pm line 71
158
159 #block until there is a message on socket
160 # my $w = new IO::Select;
161 # $w->add(\*SOCK);
162 # my @wait = $w->can_read;
163
164 warn "reading message from server"
165 if $DEBUG;
166
167 my $return = fd_retrieve(\*SOCK) or die "error reading result: $!";
168 die $return->{'_error'} if defined $return->{_error} &&
$return->{_error};
169
170 warn "returning message to client"
171 if $DEBUG;
172
173 $return;
174 }
the file permissions
/usr/local/freeside# ls -l
total 16
lrwxrwxrwx 1 root staff 9 Jan 16 2011 rt -> /opt/rt3/
-rw-r--r-- 1 freeside staff 391 Apr 18 19:45 selfservice.--help.log
-rw-r--r-- 1 freeside staff 0 Apr 18 19:45 selfservice.--help.writelock
-rw-r--r-- 1 freeside staff 471 Apr 18 19:45 selfservice.log
srw-rw---- 1 freeside staff 0 Apr 18 19:45 selfservice_socket
srwxr-xr-x 1 freeside staff 0 Apr 18 19:45 selfservice_socket.--help
-rw-r--r-- 1 freeside staff 5 Apr 18 19:45 selfservice_socket.--help.pid
-rw-r--r-- 1 freeside staff 5 Apr 18 19:45 selfservice_socket.pid
-rw-r--r-- 1 freeside staff 0 Apr 18 19:45 selfservice.writelock
Storable version 2.45 and Freeside version is 3.2
I am using the Alternative API Access noted here:
http://www.freeside.biz/mediawiki/index.php/Freeside:3:Documentation:Self-Service_Installation
any help would be appreciated, thank you in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://freeside.biz/pipermail/freeside-devel/attachments/20140418/4a4b091d/attachment.html>
More information about the freeside-devel
mailing list