[freeside-users] Accessing a socket fails in SelfService.pm

Roderick Anderson raanders42 at gmail.com
Sat Oct 28 09:28:30 PDT 2017


Warning:  It has been 5+ years since I have done this stuff for a living.

The thing that jumps out at me is permissions.  Make sure the directory 
where the socket is being created is writable by the freeside user not 
just the user apache is running as.


Rod
-- 

On 10/27/2017 03:27 PM, Ernie Dunbar wrote:
> Hi everyone.
> 
> I'm trying to set up the Freeside Selfservice web pages in Freeside 4.2. 
> After trying to complete the installation process described in 
> http://www.freeside.biz/mediawiki/index.php/Freeside:3:Documentation:Self-Service_Installation, 
> I get the following error in my Apache error logs:
> 
> [Fri Oct 27 11:32:42.273282 2017] [cgi:error] [pid 843] [client 
> 172.103.224.36:54540] AH01215: connect to 
> /usr/local/freeside/selfservice_socket: Connection refused at 
> /usr/local/share/perl/5.20.2/FS/SelfService.pm line 199., referer: 
> https://freeside-dev.lightspeed.ca/FS-SelfService/cgi/
> 
> When I attempt to connect to this socket using the Linux `socat` 
> command, I get much the same error:
> 
> socat - UNIX-CONNECT:/usr/local/freeside/selfservice_socket
> 2017/10/27 15:23:59 socat[1784] E connect(5, AF=1 
> "/usr/local/freeside/selfservice_socket", 40): Connection refused
> 
> I've read that you can't go and create a Unix socket by touching a file. 
> Evidently, the CGI script is supposed to do the creating. But nuking 
> that file and leaving the directory it sits in writable for the Apache 
> server just breaks it thusly:
> 
> [Fri Oct 27 15:26:54.642004 2017] [cgi:error] [pid 845] [client 
> 172.103.224.36:60186] AH01215: connect to 
> /usr/local/freeside/selfservice_socket: No such file or directory at 
> /usr/local/share/perl/5.20.2/FS/SelfService.pm line 199., referer: 
> https://freeside-dev.lightspeed.ca/FS-SelfService/cgi/
> 
> So... what's wrong here?
> 
> 
> 
> _______________________________________________
> freeside-users mailing list
> freeside-users at freeside.biz
> http://freeside.biz/cgi-bin/mailman/listinfo/freeside-users
> 


More information about the freeside-users mailing list