Skip to content
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

Error while setting up farmvibes on Azure VM #31

Closed
saqibzia-dev opened this issue Jan 27, 2023 · 3 comments
Closed

Error while setting up farmvibes on Azure VM #31

saqibzia-dev opened this issue Jan 27, 2023 · 3 comments
Assignees
Labels
FarmVibes.AI setup Issues encountered during cluster setup

Comments

@saqibzia-dev
Copy link

I am getting following error while setting up farmvibes on Azure VM.When I run this command " bash farmvibes-ai.sh setup" I get
"error: deployment "terravibes-worker" exceeded its progress deadline"

Here is the log:
Log:
Status: Downloaded newer image for mcr.microsoft.com/farmai/terravibes/cache:prod
mcr.microsoft.com/farmai/terravibes/cache:prod
Installing redis in the cluster...
statefulset.apps/redis-replicas scaled
Installing rabbitmq in the cluster...
secret/rabbitmq-connection-string created
component.dapr.io/control-pubsub created
component.dapr.io/statestore created
service/terravibes-rest-api created
deployment.apps/terravibes-rest-api created
deployment.apps/terravibes-orchestrator created
deployment.apps/terravibes-worker created
deployment.apps/terravibes-cache created
component.dapr.io/control-pubsub unchanged
component.dapr.io/statestore unchanged
service/terravibes-rest-api unchanged
deployment.apps/terravibes-rest-api unchanged
deployment.apps/terravibes-orchestrator unchanged
deployment.apps/terravibes-worker unchanged
deployment.apps/terravibes-cache unchanged
deployment.apps/terravibes-rest-api condition met
deployment "terravibes-rest-api" successfully rolled out
deployment.apps/terravibes-orchestrator condition met
deployment "terravibes-orchestrator" successfully rolled out
error: timed out waiting for the condition on deployments/terravibes-worker
Waiting for deployment "terravibes-worker" rollout to finish: 0 of 3 updated replicas are available...
error: deployment "terravibes-worker" exceeded its progress deadline
deployment.apps/terravibes-cache condition met
deployment "terravibes-cache" successfully rolled out

Success!

FarmVibes.AI REST API is running at http://192.168.49.2:30000

@renatolfc
Copy link
Contributor

Hello @saqibzia-dev, what is the output of ~/.config/farmvibes-ai/kubectl get pods? If all pods are running, you should be good to go.

Tuning the amount of time we should wait for deployments is a bit difficult. On the one hand, we could choose to not wait at all, and expect that eventually all pods would be running. If we did that, running workflows immediately after installation would potentially fail.

On the other hand, we could increase our timeout, but that would make installation take even longer.

In general, if the pods show as running, you should be alright.

@renatolfc renatolfc self-assigned this Jan 27, 2023
@saqibzia-dev
Copy link
Author

Hello @renatolfc Thanks for the quick response. When I execute "~/.config/farmvibes-ai/kubectl get pods". I get the following output. It seems like some terravibes workers are not running.
pods-error (1)

@renatolfc
Copy link
Contributor

Hello @saqibzia-dev.

We just merged a new set of changes that might solve the problem you are seeing.

Can you please try updating the repo and recreating the cluster?

Also, ~/.config/farmvibes-ai/kubectl logs terravibes-worker-855fcf6896-8rdsw should show some logs to help understand the problem.

Updating the code and recreating the cluster should be enough though.

@rafaspadilha rafaspadilha added the FarmVibes.AI setup Issues encountered during cluster setup label May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FarmVibes.AI setup Issues encountered during cluster setup
Projects
None yet
Development

No branches or pull requests

3 participants