Steve Scrimpshire Posted October 8, 2003 Report Share Posted October 8, 2003 Ok, I had some problems and had to reinstall 9.1, then I upgraded to 9.2rc2 through cooker and urpmi, just like I had done on my last install. Well, last install Popfile worked fine. I've never had any problems with it. Now, no matter which version of Popfile I try, I get one of these two errors trying to start it (it's random): Couldn't start the html HTTP interface because POPFile could not bind to theHTTP port 8080. This could be because there is another service using that port or because you do not have the right privileges on your system (On Unix systems this can happen if you are not root and the port you specified is less than 1024). Failed to start while starting the html module at popfile.pl line 344. or Couldn't start the pop3 proxy because POPFile could not bind to thelisten port 1110. This could be because there is another service using that port or because you do not have the right privileges on your system (On Unix systems this can happen if you are not root and the port you specified is less than 1024). Failed to start while starting the pop3 module at popfile.pl line 344. I'm starting it like this, as root: perl popfile.pl -port 1110 I have no clue. TIA Edit: I even found on RPMfind.net that there is a cooker RPM for it, so I installed it and did service popfile start and get the same random two errors, although less verbose. The only thing that shows up in any log is in /var/log/syslog: popfile succeeded Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted October 8, 2003 Author Report Share Posted October 8, 2003 I looooove PopFile. I hope someone can give me a theory as to why this doesn't work. netstat -rn shows nothing using either port. Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted October 9, 2003 Author Report Share Posted October 9, 2003 No one? Quote Link to comment Share on other sites More sharing options...
johnnyv Posted October 9, 2003 Report Share Posted October 9, 2003 Ok, I had some problems and had to reinstall 9.1, then I upgraded to 9.2rc2 through cooker and urpmi, just like I had done on my last install. Well, last install Popfile worked fine. I've never had any problems with it. Now, no matter which version of Popfile I try, I get one of these two errors trying to start it (it's random): Couldn't start the html HTTP interface because POPFile could not bind to theHTTP port 8080. This could be because there is another service using that port or because you do not have the right privileges on your system (On Unix systems this can happen if you are not root and the port you specified is less than 1024). Failed to start while starting the html module at popfile.pl line 344. or Couldn't start the pop3 proxy because POPFile could not bind to thelisten port 1110. This could be because there is another service using that port or because you do not have the right privileges on your system (On Unix systems this can happen if you are not root and the port you specified is less than 1024). Failed to start while starting the pop3 module at popfile.pl line 344. I'm starting it like this, as root: perl popfile.pl -port 1110 I have no clue. TIA Edit: I even found on RPMfind.net that there is a cooker RPM for it, so I installed it and did service popfile start and get the same random two errors, although less verbose. The only thing that shows up in any log is in /var/log/syslog: popfile succeeded isn't 8080 squids port eg proxy server port?. The etc/services file contains a listing of port addresses and what is normally on them. 1110 is not mentioned in mine, and 1110 isn't a reserved port anyway being over 1024. did you try telneting the port to see if something answers? Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted October 9, 2003 Author Report Share Posted October 9, 2003 Yup: [root@omarserenity omar]# telnet 127.0.0.1 1110 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host: Connection refused [root@omarserenity omar]# telnet 127.0.0.1 8080 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host: Connection refused [root@omarserenity omar]# service shorewall stop Loading /usr/share/shorewall/functions... Processing /etc/shorewall/params ... Processing /etc/shorewall/shorewall.conf... Clearing Shorewall...Processing /etc/shorewall/stop ... Processing /etc/shorewall/stopped ... done. [root@omarserenity omar]# telnet 127.0.0.1 8080 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host: Connection refused [root@omarserenity omar]# telnet 127.0.0.1 1110 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host: Connection refused Quote Link to comment Share on other sites More sharing options...
johnnyv Posted October 10, 2003 Report Share Posted October 10, 2003 I would try creating a php script that creates socket server on the port like so: #!/home/john/php/bin/php # location of php binary with socket support <?php // Set the ip and port we will listen on $address = '127.0.0.1'; $port = 1110; echo "Trying to create socket on: $address port: $portn"; // Create a TCP Stream socket $sock = socket_create(AF_INET, SOCK_STREAM, 0); // Bind the socket to an address/port socket_bind($sock, $address, $port) or die('Could not bind to addressn'); echo "Socket created successfullyn"; // Close the master sockets socket_close($sock); echo "Socket closed, byen"; ?> so i can create open a socket on 1110 tcp [john@administrator Desktop]$ ./socket.phpContent-type: text/html X-Powered-By: PHP/4.3.3 Trying to create socket on: 127.0.0.1 port: 1110 Socket created successfully Socket closed, bye [john@administrator Desktop]$ But if i try to open a socket thats in use i can't 10000 is webmin's [john@administrator Desktop]$ ./socket2.phpContent-type: text/html X-Powered-By: PHP/4.3.3 Trying to create socket on: 127.0.0.1 port: 10000 <br /> <b>Warning</b>: socket_bind() unable to bind address [98]: Address already in use in <b>/home/john/Desktop/socket2.php</b> on line <b>14</b><br /> Could not bind to addressn[john@administrator Desktop]$ Unfortuanately php in mandrake doesn't come with the socket functions enabled you could install the php src rpm and edit the spec file then rebuild it or just download the source file from php.net and build it and install it in another directory. I use my home directory for testing out new versions. ./configure --prefix="/home/john/php/" --enable-sockets make make install (as normal user) Your telnet results seem to show that there isn't any servers on those ports, maybe it is security related somehow rather than a resource conflict. Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted October 10, 2003 Author Report Share Posted October 10, 2003 [omar@omarserenity omar]$ /home/omar/php/bin/php socket.php Content-type: text/html X-Powered-By: PHP/4.3.3 Trying to create socket on: 127.0.0.1 port: 1110 Socket created successfully Socket closed, bye [omar@omarserenity omar]$ /home/omar/php/bin/php socket.php Content-type: text/html X-Powered-By: PHP/4.3.3 Trying to create socket on: 127.0.0.1 port: 8080 Socket created successfully Socket closed, bye So, can I assume that it is probably a problem with Perl, then, since the same POPfile worked correctly before? You think I'm missing a module? Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted October 10, 2003 Author Report Share Posted October 10, 2003 Hmmmm....all of a sudden it works, now. Go figure. Quote Link to comment Share on other sites More sharing options...
johnnyv Posted October 10, 2003 Report Share Posted October 10, 2003 Very odd! have you put shorewall back on and it still works? Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted October 10, 2003 Author Report Share Posted October 10, 2003 Yup. I urpmi'd perl-HTML-Clean and perl-HTML-Parser. Maybe the lack of one of those was the culprit. Also, I tested fetchyahoo and had to urpmi perl-IO-Socket-SSL and perl-Crypt-SSLeay. Maybe one of those was the culprit. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.