-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Microservices eBook & Samples updated to .NET Core 2.2 #26
Comments
Working fine for me on docker compose, but failing on a local kubernetes deployment. The containers for both the webmvc and webspa will not run. I don't think they have to run on docker-compose but kubernetes will not keep the pods alive if the program exits. Here's the error being thrown in the kubernetes log from webspa:
All other pods are running. Webstatus is reachable but is reporting all services as unhealthy. Update: If you'd like to fix this, the problem is that you have incorrect URL strings in your Startup.cs. You're referencing strings with "HC" at the end, e.g. "PurchaseUrlHC" when those aren't defined in your config file. |
@wdhastings We're looking into this right now. I will keep you posted. |
@nishanil Thank you. I noticed that the basket service is also not working on kubernetes even though the service is up and reports healthy. It does work on docker-compose. I haven't had a chance to troubleshoot it, but I'll look later if you don't get to it. |
@wdhastings It looks like our CI systems did not push newer images to Docker Hub. Can you check now? |
Where is the ePub version ? |
@nishanil All seems good now, at least on Edge. Chrome is giving me a security violation trying to load jquery:
|
@nishanil I spoke too soon. I'm still getting a 500 error trying to add to the cart, even on Edge. The error returned is:
The webstatus service is reporting all services as healthy. I'm sorry I don't have more time to investigate right now. |
@fabricioveronez eReader formats will be available soon. |
@fabricioveronez eReader formats are now available https://aka.ms/microservicesebookmobi |
did you get a fix on this? |
@nishanil replace localhost by docker.for.win.localhost. This value is set in /src/.env |
I am using linux container. Will this solution work there too? right now my .env settings are:- |
@nishanil In my .env file, here is an excerpt applying for linux: So, docker.for.linux.localhost seems appropriate. |
I am sorry i should have been more clear. I am running solution on windows machine but using linux container instead of windows. Your inputs pleaase |
It was my case,too: running linux container on a window host. In your browser, change http://localhost to http://docker.for.win.localhost. It did the trick for me. |
so i did changes in .env file as your suggested. Also in identityDB i changed the urls to dowcker.for.win.localhost. Running the solution now. Will keep you posted. In the meantime, could you please guide me how to ensure that any code changes are reflected quickly in each deployed service? Right now if i even make text changes in website, i have to rerun the entire source code to verify my changes. |
I tried the changes. I made the changes in .env and database and open login page(on chrome) from url http://host.docker.internal:5100/ but after clicking submit shows the following error and hence not able to login:- Refused to load the script 'http://localhost/identity/lib/jquery/jquery.js' because it violates the following Content Security Policy directive: "script-src 'unsafe-inline'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback. On Ie the website is not opening |
🎉We just published the v2.2 of the Microservices eBook.🎉
The new version covers the built-in health checks feature that was released in ASP .NET Core 2.2 and other updates from .NET Core 2.2.
Download: https://aka.ms/microservicesebook ✔
The Reference Sample https://github.com/dotnet-architecture/eshopOnContainers is also updated.
Do check them out and let us know your feedback!
Thank You!
The text was updated successfully, but these errors were encountered: