The OAM components such as Identity server and Access Server are running on ports 6034 and 6035 respectively in my environment. As everyone know that port 6021 will be used for Access Server in general. So, if you are using a different port and configured Access Server flush in Identity Server, then you may witness the error “localhost:6021: Connection refused” in your OAM machine.
To know more about configuring automatic Access Server flush in OAM, refer this post.
You can see the port 6021 in the ObAccessClient.xml.
All I changed is the parameter doAccessServerFlush to true present in the file baseddbparams.xml in the location IdentityServer/oblix/data/common and bounced the identity server. However that was not just enough to do Automatic Access Server flush.
Few additional steps required are:
1. Create a dummy Access Gate in OAM Access Console without specifying any port. Associate it with an access server.
2. Run the configureAccessGate command present in the location /identity/AccessServerSDK/oblix/tools/configureAccessGate pointing to point to the dummy Access gate created.
3. Check the port in ObAccessClient.xml. You should see actual Access Server port instead of 6021.
4. Restart identity server.
That’s it. You will not see the error “localhost:6021: Connection refused” anymore.
Helpful Docs:
Comments are closed.