question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Voter does not seems to be working as the result app only shows the same results over and over again

See original GitHub issue

** PLEASE ONLY USE THIS ISSUE TRACKER TO SUBMIT ISSUES WITH THE EXAMPLE VOTING APP **

  • If you have a bug working with Docker itself, not related to these labs, please file the bug on the Docker repo *
  • If you would like general support figuring out how to do something with Docker, please use the Docker Slack channel. If you’re not on that channel, sign up for the Docker Community and you’ll get an invite. *
  • Or go to the Docker Forums *

Please provide the following information so we can assess the issue you’re having

After all of the components are deployed, when testing the voter application, it loads, when you vote, nothing happens. If you check the results app, it always shows the same results 50% cat and 50% dogs.

Steps to reproduce the issue, if relevant: 1. $ minikube start 😄 minikube v1.9.0 on Darwin 10.15.3 ✨ Using the hyperkit driver based on user configuration 🔥 Creating hyperkit VM (CPUs=6, Memory=8096MB, Disk=20000MB) … 🐳 Preparing Kubernetes v1.18.0 on Docker 19.03.8 … 🌟 Enabling addons: default-storageclass, storage-provisioner 🏄 Done! kubectl is now configured to use “minikube”

git clone https://github.com/dockersamples/example-voting-app

$ kubectl create namespace vote

$ kubectl create -f k8s-specifications/ --namespace=vote

$ kubectl get pods --namespace=vote NAME READY STATUS RESTARTS AGE db-6789fcc76c-ssk7n 1/1 Running 0 49s redis-554668f9bf-s6vx7 1/1 Running 0 49s result-79bf6bc748-l89mw 1/1 Running 0 49s vote-7478984bfb-mwgbp 1/1 Running 0 49s worker-dd46d7584-kwk2s 1/1 Running 0 49s

Describe the results you received: Everything seems to work as expected

Describe the results you expected: I expected that every time I load the vote page and vote, that vote gets recorded and whenever I access the results page it will show me the correct amount of votes for either dogs or cats

Additional information you deem important (e.g. issue happens only occasionally):

Output of docker version:

Docker version 19.03.8, build afacb8b```

**Output of `docker info`:**

$ docker info Client: Debug Mode: false

Server: ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? errors pretty printing info


**Additional environment details (AWS, Docker for Mac, Docker for Windows, VirtualBox, physical, etc.):**

MacOS using hyperkit

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
eliezerreiscommented, Apr 6, 2020

Swarm and Kubernetes deployments are not going to work because images from docker hub are not updated as predicted on this pull request. In this case, you have to build the images by yourself and change the stacks and k8s-specifications to use your own images.

0reactions
BretFishercommented, Jan 11, 2023

This example works for us, so could you please give us enough information to recreate your issue from scratch?

Are you using the latest commit of this repo? Which commands are you running to start it? Did you pull the latest images first? What are the logs of your apps showing while you click dog/cat?

Read more comments on GitHub >

github_iconTop Results From Across the Web

App does not show up in search results.
1) How long has the app been in the store? If it's a new app, it can take a day or two for...
Read more >
Title 52- Voting and Elections- Subtitle I and II
(1) All citizens of the United States who are otherwise qualified by law to vote at any election by the people in any...
Read more >
All Frequently Asked Questions for Elections | Tennessee ...
Frequently Asked Questions for this Division. Absentee Voting. Can I hand deliver my ballot to the election office?
Read more >
Voter Registration Deadlines - Vote.org
Online: 15 days before Election Day. If the voter registration deadline has passed, you can still conditionally register to vote and cast a...
Read more >
Arizona.Vote
While the recounts are in progress, elections officials may not publicly release ... Register to Vote ... Statewide canvass of 2022 General Election...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found