Test instance: "Address already in use: make_sock: could not bind to address"
- Article Type: General
- Product: Aleph
- Product Version: 20, 21, 22, 23
Description:
It's important for us, that both versions (18 and 20) of aleph opac co-exist and are running at the same time.
I did a server restart and apache on ver18test did not come up. I used util w/3.start servers/6 http to bring it up but when I tried the same for aleph20test I got the following error message:
(125)Address already in use: make_sock: could not bind to address [::]:80
(125)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
I logged in as root and killed all the apache processes then tried again:same error message
Can I have the steps in fixing this?
Resolution:
The aleph_start ALEPH_SUB_PORT is the same in both your v18 and your v20 instances ("1"):
aleph18.abc.org-18(1):
setenv ALEPH_SUB_PORT 1
setenv WWW_SERVER_PORT 499${ALEPH_SUB_PORT}
setenv PC_SERVER_PORT 699${ALEPH_SUB_PORT}
setenv Z39_GATE_PORT 799${ALEPH_SUB_PORT}
setenv HTTPD_PORT 8991
setenv PDS_PORT 8991
setenv Z39_SERVER_PORT 999${ALEPH_SUB_PORT}
setenv SIP2_SERVER_PORT 533${ALEPH_SUB_PORT}
setenv SLNP_SERVER_PORT 544${ALEPH_SUB_PORT}
setenv OCLC_SERVER_PORT 577${ALEPH_SUB_PORT}
setenv NCIP_SERVER_PORT 599${ALEPH_SUB_PORT}
setenv ILL_SERVER_PORT 900${ALEPH_SUB_PORT}
aleph18(a20_1):
setenv ALEPH_SUB_PORT 1
setenv WWW_SERVER_PORT 499${ALEPH_SUB_PORT}
setenv PC_SERVER_PORT 699${ALEPH_SUB_PORT}
setenv Z39_GATE_PORT 799${ALEPH_SUB_PORT}
setenv HTTPD_PORT 8991
setenv PDS_PORT 8991
setenv Z39_SERVER_PORT 999${ALEPH_SUB_PORT}
setenv SIP2_SERVER_PORT 533${ALEPH_SUB_PORT}
setenv SLNP_SERVER_PORT 544${ALEPH_SUB_PORT}
setenv OCLC_SERVER_PORT 577${ALEPH_SUB_PORT}
setenv NCIP_SERVER_PORT 599${ALEPH_SUB_PORT}
setenv ILL_SERVER_PORT 900${ALEPH_SUB_PORT}
so the v20 servers are trying to start on the same ports as the v18 servers.
**You need to change the v20 ALEPH_SUB_PORT to "2".** And change the v20 "8991"s to "8992"s.
(As described in KB 8192-392, this might be done using the utml mechanism.)
And then do "source aleph_start" to make the changes take effect.
- Article last edited: 10/8/2013