I am reconfiguring API Portal to use new certificates and SSL. I ran config_portal.sh and received an error: "Verifying ports opened: FAIL". I looked in catalina.out, but see nothing useful. What steps should I take next?
Are the port currently in use? (#netstat -tnap | grep 80)I would recommend Manual method when sh config_portal.sh failsAPI Portal is ready to receive messages when the listen port 37080 is available:netstat -tnapYou should see output similar to the following, with a list of the ports available:
tcp 0 0 :::80 :::* LISTEN 28239/httpd tcp 0 0 :::37080 :::* LISTEN 28541/java tcp 0 0 :::443 :::* LISTEN 28239/httpd
1. Ensure that the keys that you have copied and pasted into the /opt/Deployments/lrs/server/conf/keys/ folder has the permission of 640 and ownership should be root:portalusers
2. Look in the catalina.out if there are errors mentioned as follows
Caused by: com.thelevel.repository.DocumentNotFound: DOCUMENT_NOT_FOUNDThen follow this Techinical SolutionRegardsSeenu Mathew
Caused by: com.thelevel.repository.DocumentNotFound: DOCUMENT_NOT_FOUND
The script throws that error if the API Portal isn't listening on 443, 80, and 37080. You can run this command and should see the 3 lines of output like so:
netstat -tnpl | grep "\(:80\|:37080\|:443\)"tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2792/httpdtcp 0 0 0.0.0.0:37080 0.0.0.0:* LISTEN 3317/javatcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 2792/httpd
If all 3 of those ports aren't listening, then ensure that the following services are running:
service apiportal status
service httpd status
If either of those services is stopped, start the service and try again.
Has any of the replies answered your question? Do you still have the error?
Thanks for the suggestions. Sorry for the slow response, but I was out of the office for a couple days. I tried all the suggestions, but I continue to get the same errors. More information about the environment. The environment that is not working has a single portal server and a single Gateway. We are using SHA2 certificates. I have tried to configure the portal to use only SSL, not HTTP. When I open Portal using HTTPS, the browser tells me that the connection is insecure and it is using a certificate issued to localhost.localdomain.
Our production and stage environments each have a single portal server and two gateway servers. They are configured the same way, and work correctly.
When I run netstat -tnpl | grep "\(:80\|:37080\|:443\)", I see
tcp 0 0 0.0.0.0:37080 0.0.0.0:* LISTEN 29510/javatcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 28463/httpd
I thought the problem could be related to not seeing port 80. However, stage environment, which is working correctly, does not show port 80.
Do you have other ideas?
At this stage, I would suggest a new case be open with CA support.
Contact CA Support - CA Technologies
Please upload the catalina.log into the case.
Retrieving data ...