Code Monkey home page Code Monkey logo

Comments (9)

BretFisher avatar BretFisher commented on May 17, 2024 10

The .net worker is flaky on resolving redis and/or db. Try the java worker, which has the code in this repo but I don't think docker made an image for. I have one built at bretfisher/examplevotingapp_worker:java so just replace your worker image with that and it should work better

from example-voting-app.

BretFisher avatar BretFisher commented on May 17, 2024

I tested this on Docker Desktop, and at first, the worker will crash because the db and redis aren't in DNS yet, but after a few minutes, it found DNS for db and redis and worked. Maybe you needed to wait a bit longer?

from example-voting-app.

rob2k40 avatar rob2k40 commented on May 17, 2024

@BretFisher Still facing this issue, not able to find bretfisher/examplevotingapp_worker:java in Hub. Used your image bretfisher/examplevotingapp_worker, but it's still crashing for last 10 minutes. Tried multiple things like deleting all pods and services and starting DB before worker, but still facing issue.
Please assist.

from example-voting-app.

BretFisher avatar BretFisher commented on May 17, 2024

The java tag still exists on hub: https://hub.docker.com/r/bretfisher/examplevotingapp_worker/tags

from example-voting-app.

rob2k40 avatar rob2k40 commented on May 17, 2024

Thank you so much @BretFisher for your valuable time.
I tried your image and had earlier tried Java image of bgrissin/examplevotingapp_worker_java.
All my services are up and running properly, but when I go to services and ingress --> Voting app service --> It opens the Interface to cast votes. Upon casting the vote, it gives below error:

500 Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

Sorry to bother you again but it would be great if you could help last time.

from example-voting-app.

rob2k40 avatar rob2k40 commented on May 17, 2024

@BretFisher Able to resolve 500 Internal server error by following this sequence:
voting pod + service --> redis pod + service --> postgres pod + service --> worker --> result pod + service
But now, voting page is accepting the request, but result page is not getting refreshed and showing 50-50 only.
Anything I could do differently?

from example-voting-app.

rob2k40 avatar rob2k40 commented on May 17, 2024

@BretFisher I used your vote, worker and result images also and used same sequence as earlier.
Both voting and result pages are opening and voting page is accepting the request, but result page is not getting refreshed and showing 50-50 only.

from example-voting-app.

murugan425 avatar murugan425 commented on May 17, 2024

@BretFisher - same issue is still open, result page doesn't reflects the voting correctly. 50-50 always. Any assistance could be helpful.

from example-voting-app.

BretFisher avatar BretFisher commented on May 17, 2024

We're sorry for the late response. Linux images have been refreshed, cleaned up, and are now multi-platform. If you're still having issues with the latest images, feel free to reopen this ticket.

from example-voting-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.