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

CapRover Worker is not appearing in the CapRover dashboard after a successful deployment #14

Closed
mohamedamer453 opened this issue Mar 26, 2023 · 5 comments
Assignees
Milestone

Comments

@mohamedamer453
Copy link
Contributor

mohamedamer453 commented Mar 26, 2023

Description

Caprover Worker is not appearing in the Caprover dashboard after a successful deployment through the caprover_worker.ts script.

After successfully deploying a working Caprover instance through the caprover_leader.ts script, i then navigated to the provided url and enabled https, then i navigated to the cluster tab and created a self hosted registry, after that from the leader vm i executed docker swarm join-token worker to get the swarm token, then i configured my worker with the provided token and leader ip and deployed it and it was deployed successfully. however the worker did not appear through the caprover interface in the cluster tab and only the master was available there.

image

Logs

Steps to reproduce

  • Configure and deploy a leader node from caprover_leader.ts.
  • Access the instance through the provided url after the deployment.
  • Enable https.
  • Create a self-hosted registry.
  • ssh to the leader vm and execute docker swarm join-token worker.
  • Configure the worker with the provided token and the leader ip in caprover_worker.ts.
  • Deploy the worker.

Environment

  • Network: Testnet.
  • Client Version: v2.0.0-rc12.
@ramezsaeed
Copy link
Contributor

Docs needed here

@rkhamis rkhamis transferred this issue from another repository Apr 13, 2023
@AhmedHanafy725 AhmedHanafy725 added this to the 2.1.0 milestone Apr 17, 2023
@xmonader
Copy link
Contributor

xmonader commented Jun 7, 2023

What is the status here? given that caprover been verified recently? @AhmedHanafy725 @mohamedamer453

@mohamedamer453
Copy link
Contributor Author

What is the status here? given that caprover been verified recently? @AhmedHanafy725 @mohamedamer453

I was using the old method to add the worker, The new method is working fine but about the docs i'm not sure i don't think there are caprover docs for the grid client scripts but it's the same flow as the one in the playground which is documented here.

One thing that might be updated is removing this line from the worker script since it's not needed in the new flow, but i'm not really sure if it will affect the deployment or not.

@AhmedHanafy725
Copy link
Contributor

I was using the old method to add the worker, The new method is working fine but about the docs i'm not sure i don't think there are caprover docs for the grid client scripts but it's the same flow as the one in the playground which is documented here.

it has docs here but seems it needs to be updated

One thing that might be updated is removing this line from the worker script since it's not needed in the new flow, but i'm not really sure if it will affect the deployment or not.

that's true, adding a worker with the token is not used anymore so this line should be removed.

@AhmedHanafy725 AhmedHanafy725 moved this to Accepted in 3.11.x Jun 7, 2023
@AlaaElattar AlaaElattar moved this from Accepted to In Progress in 3.11.x Aug 1, 2023
@AlaaElattar AlaaElattar moved this from In Progress to Verification in 3.11.x Aug 1, 2023
@mohamedamer453
Copy link
Contributor Author

Verified.

The docs were updated with info about each environment variable used and the code examples were also updated. and the worker token was removed from the example script and the example in the docs.

image

@github-project-automation github-project-automation bot moved this from Verification to Done in 3.11.x Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

No branches or pull requests

6 participants