I get an error when I access http://127.0.0.1

Unable to access http://127.0.0.1 but able to get through when https://127.0.0.1:40000
What is my problem?

using when https://127.0.0.1:40000 am able to create a user but cant get access to web-ui/login

1 Like

There is a possibility of other services listening on the same http port.
You can try this:

  1. Stop your server
  2. Stop the services listening on port http
    net stop http
    [on windows elevated command prompt]
  3. Restart your server
2 Likes

If you setup the system as HTTPS you would need to use an HTTPS URL https://127.0.0.1 this is normally chosen in the setup script. I do not know if Let’s-Encrypt will let you obtain a HTTPS certificate for 127.0.0.1.

Can you share with us how you are launching the docker swarm? As a reminder that the docker swarm has the networking configuration in it.

many thanks @W_Brunette and @ADISKING1

I was unable to get through so I decided to uninstall everything. I destroyed the ubuntu 18.04 guest os I created on the oracle vm and finally destroyed the oracle vm. I started everything afresh.Created the vm and installed ubuntu 18.04 on the vm. Inside ubuntu 18.04 installed docker and continued with the setup sync endpoint as per the documentation .Now I am unable to acess http://127.0.0.1 nor https://127.0.0.1:40000
What is my mess this time.
Kindly help me sort this.

2 Likes

many thanks @W_Brunette and @ADISKING1

I was unable to get through so I decided to uninstall everything. I destroyed the ubuntu 18.04 guest os I created on the oracle vm and finally destroyed the oracle vm. I started everything afresh.Created the vm and installed ubuntu 18.04 on the vm. Inside ubuntu 18.04 installed docker and continued with the setup sync endpoint as per the documentation .Now I am unable to acess http://127.0.0.1 nor https://127.0.0.1:40000

1 Like

Many thanks @W_Brunette
Here is how I launch my swarm
sudo docker swam init --advertise-addr 192.168.56.1

1 Like

Why are you changing the advertise-addr? Do you have remote nodes that are trying to join?

First I suggest running our default setup and get that working before customizing. Check out the readme to get started

1 Like

Am still unable to get through even after restarting afresh
when I run
sudo docker ps nothing happens

sudo docker stack ls lists 7 serviceslists

Did you try following the example directions? Though select HTTP if you want to use 127.0.0.1 because you cannot get an HTTPS certificate for the localhost.

1 Like