Eshoponcontainers: can not show login page on mvc site

Created on 26 Aug 2017  路  16Comments  路  Source: dotnet-architecture/eShopOnContainers

just click log in , go to http://localhost:5100/Account/SignIn, then get this
login-err

Most helpful comment

I have same problem and solved it by reading followed text in the question area

eventually, +1 VS2017 on Win10, Docker 17.06.1:After the first compile and startup, I was struggling for a while with this error (also mentioned a few times before, but with no apparent solution):IDX10803: Unable to obtain configuration from: 'http://10.0.75.1:5105/.well-known/openid-configuration'.Investigating this, I found that the request for this address worked from a local browser, but not from another container. Looking into the firewall rules of the ps-script gave no results, but disabling the vpnkit block rules (probably installed by Docker CE) solved the problem!(I am not quite sure if the rules applied by this project was intended to fix this or not, and/or if my system is any different from any default system with Docker CE, but maybe anyone can confirm. Sorry for spamming this topic, but it is apparently the only hit for "IDX10803")EDIT: Just realized how obvious this is: Upon first start-up of the project, you'll get a default firewall-prompt by windows, asking to allow vpnkit to access network resources. If you're in a domain network, the default is to allow for domain network, and to block for public profile. However, from inside the docker containers, the request appears to be on public profile, so these rules will cause some trouble

All 16 comments

@infofromca Things to try:

  1. Did you open the firewall ports as specified in the setup intructions?: Se section about the firewall rules. You can do it manually or running the PowerShell Script:
    https://github.com/dotnet-architecture/eShopOnContainers/wiki/02.-Setting-eShopOnContainers-in-a-Visual-Studio-2017-environment
  1. Is the Identity.API project container up and running when you do a "docker ps" from command line?

Also, try deleting all the old Docker images from eShopOnContainers registered in your local Docker and re-deploy.
You can do it by running this PowerShell Script:
https://github.com/dotnet-architecture/eShopOnContainers/blob/netcore2/cli-windows/delete-vs-and-eshop-images.ps1
It might be because any older Docker image was not updated.

I have the same problem. I'm on branch netcore2. I have done both things that you mentioned above. Image identity.api:dev is up and running.

The DEV branch is already NET Core 2. A brand-new for clone should work for you. Make sure you delete older images, just in case.

The DEV branch is already NET Core 2. A brand-new git clone should work for you. Make sure you delete older images, just in case.

I have same problem and solved it by reading followed text in the question area

eventually, +1 VS2017 on Win10, Docker 17.06.1:After the first compile and startup, I was struggling for a while with this error (also mentioned a few times before, but with no apparent solution):IDX10803: Unable to obtain configuration from: 'http://10.0.75.1:5105/.well-known/openid-configuration'.Investigating this, I found that the request for this address worked from a local browser, but not from another container. Looking into the firewall rules of the ps-script gave no results, but disabling the vpnkit block rules (probably installed by Docker CE) solved the problem!(I am not quite sure if the rules applied by this project was intended to fix this or not, and/or if my system is any different from any default system with Docker CE, but maybe anyone can confirm. Sorry for spamming this topic, but it is apparently the only hit for "IDX10803")EDIT: Just realized how obvious this is: Upon first start-up of the project, you'll get a default firewall-prompt by windows, asking to allow vpnkit to access network resources. If you're in a domain network, the default is to allow for domain network, and to block for public profile. However, from inside the docker containers, the request appears to be on public profile, so these rules will cause some trouble

Great.
I want to confirm what @huangmaoyixxx wrote above. When I disabled the firewall rule vpnkit for TCP it worked.

Hi! I added a reference to @huangmaoyixxx comment in the FAQ section, to help other people!

Thanks!

Closing this issue.

Hi!
How did you disable the firewall rule for vpnkit? Or could you help with a link to the FAQ section where a solution to this error is described?

Thanks!

  1. Open Windows Firewall
  2. Go to Advanced settings
  3. Click on Inbound Rules
  4. Find vpnkit and disable rule
    (I don't know if it break something else. So be cautious when doing this.)

I also wish to confirm that it works. Thanks!

huangmaoyixxx
Thanks! It helps me too!

Added a reference here from the setup pages on Windows.

Login page error is resolved by a workaround, use docker-compose up and when the services are up navigate to
http://docker.for.win.localhost:5100/ for webmvc and
http://docker.for.win.localhost:5104/ for webspa

I am able to solve the login issue by navigating to login from this
http://docker.for.win.localhost:5100/

Was this page helpful?
0 / 5 - 0 ratings