example-voting-app icon indicating copy to clipboard operation
example-voting-app copied to clipboard

Worker pod is not working error code : CrashLoopBackoff

Open abi-save opened this issue 4 years ago • 5 comments

[**](url Screenshot 2020-07-18 at 3 12 03 PM ) 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

Description

Steps to reproduce the issue, if relevant: 1. 2. 3.

Describe the results you received:

Describe the results you expected:

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

Output of docker version:

19.03.12```

**Output of `docker info`:**

(paste your output here)


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

abi-save avatar Jul 18 '20 09:07 abi-save

[ image Screenshot 2020-07-18 at 4 06 40 PM

](url)

abi-save avatar Jul 18 '20 10:07 abi-save

Work pod error log

abi-save avatar Jul 18 '20 10:07 abi-save

Hi, if you work on cloud like aws, you should open port for redis and postgres.

mustyfdn avatar Jan 15 '21 19:01 mustyfdn

I'm having the exact same issue on my openstack based microk8s cluster (3 nodes running on Ubuntu focal).

I've checked the security groups and ports 3000-32xxx are allowed between nodes internally.

Also when creating the deployment initially I'm getting an error about the "vote" namespace already existing (after manually creating it as outlined inthe README.md file). I've also tried changing the port to 30001 because of this message:

$ kubectl create -f k8s-specifications/ deployment.apps/db created deployment.apps/redis created deployment.apps/result created deployment.apps/vote created deployment.apps/worker created Error from server (AlreadyExists): error when creating "k8s-specifications/db-service.yaml": services "db" already exists Error from server (AlreadyExists): error when creating "k8s-specifications/redis-service.yaml": services "redis" already exists Error from server (Invalid): error when creating "k8s-specifications/result-service.yaml": Service "result" is invalid: spec.ports[0].nodePort: Invalid value: 31001: provided port is already allocated Error from server (AlreadyExists): error when creating "k8s-specifications/vote-namespace.yml": namespaces "vote" already exists Error from server (AlreadyExists): error when creating "k8s-specifications/vote-service.yaml": services "vote" already exists

Cheers, Uwe

hoover67 avatar Apr 12 '21 13:04 hoover67

I managed to fix the issue by deleting an older "wordpress" deployment managed by helm which I'd forgotten about. :-)

hoover67 avatar Apr 12 '21 14:04 hoover67

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.

BretFisher avatar Dec 17 '22 03:12 BretFisher