question

amit82ocp_172818 avatar image
amit82ocp_172818 asked Cedrick Lunven commented

Unable to access web UI of OpsCenter running on GCP from a browser

Hello All,

I have installed, opscenter 6.7.7 on GCP linux however when i am trying to open console with http://ip address:8888 , it is not opening console on web browser.

Do i need to change anything in GCP machine?


Regards,

Amit

opscenternetworkfirewall
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered Cedrick Lunven commented

@amit82ocp_172818 It sounds like a networking issue. From the server command line, try running curl to browse to OpsCenter web UI:

$ curl -L http:opscenter_ip:8888

If that works, it most likely means there is no network connectivity between your laptop/PC and the server where OpsCenter is running. Check that there is no firewall blocking the access. If so, make sure that all the necessary ports are open. See the OpsCenter ports reference page for a list of ports required by OpsCenter. Cheers!

5 comments Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

amit82ocp_172818 avatar image amit82ocp_172818 commented ·

Hello @Erick Ramirez,

I am getting below error while using the curl with hostname and port.

Pasted my hosts file output also for your reference.

[cassandra@node3 ~]$ curl -L http:10.128.0.4:8888

curl: (6) Could not resolve host: http:10.128.0.4; Unknown error

[cassandra@node3 ~]$ curl -L http:169.254.169.254:8888

curl: (6) Could not resolve host: http:169.254.169.254; Unknown error


Regards,

Amit


0 Likes 0 ·
Cedrick Lunven avatar image Cedrick Lunven ♦ amit82ocp_172818 commented ·

Glad to hear this has now been fixed with the firewall policy. Just for you to know this command failed because the curl command should be the slashes http://169.254.169.254:8888 instead of http:169.254.169.254:8888. Enjoy.

0 Likes 0 ·
amit82ocp_172818 avatar image amit82ocp_172818 commented ·

Here the hosts file details.

[cassandra@node3 ~]$ cat /etc/hosts

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4

::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

10.128.0.4 node3.us-central1-a.c.training-261005.internal node3 # Added by Google

169.254.169.254 metadata.google.internal # Added by Google


0 Likes 0 ·
amit82ocp_172818 avatar image amit82ocp_172818 commented ·

Hello All,


Please note that issue has been resolved, by enabling firewall rule for port 8888 and for my instance public ip address.

Thanks for all help here.


Regards,

Amit

0 Likes 0 ·
Erick Ramirez avatar image Erick Ramirez ♦♦ amit82ocp_172818 commented ·

Good to hear that you got it working. Cheers!

0 Likes 0 ·