threefoldtech / tfgrid-sdk-ts

Apache License 2.0
4 stars 8 forks source link

Can't add new node to caprover cluster #1768

Closed A-Harby closed 10 months ago

A-Harby commented 10 months ago

Description

Every time I try to add a node to the caprover, I get this error. image I did everything: enabled https, activated Docker Registry Configuration, updated Caprover, and deployed a worker from the playground. I also tried on all the networks and got the same result.

Steps to reproduce

  1. Deploy a caprover master and worker.
  2. Open the Caprover dashboard, log in, and enable HTTP, then docker registry.
  3. In the cluster page, under the node tab, add work IP to the new node IP address and add your shh key.
  4. Click on join cluster.
AhmedHanafy725 commented 10 months ago

I could add work to the cluster without any issues.

image

Please make sure you are adding the private sshkey (not the public one) while adding the node. Also, the sshkey should be of type RSA as mentioned on the caprover dashboard

image

A-Harby commented 10 months ago

I was able to successfully add the node and see it on the Caprover dashboard using the Alternative method. image

But the Caprover instructions were outdated, which caused the issue from the start. image

So the documents need to be updated with the latest changes.

ramezsaeed commented 10 months ago

where did u you get this docs link, this is outdated docs for a year now. please update the new docs in the testsuite if still use the old one.

A-Harby commented 10 months ago

I got it from the dashboard itself. https://manual.grid.tf/playground/caprover_admin.html#step-5-add-nodes-to-caprover image image

xmonader commented 10 months ago

@0oM4R please make sure things are linked properly

0oM4R commented 10 months ago

adding node in the mentioned way was failing randomly With different erros, I was able to reproduce this one Screenshot from 2023-12-27 17-03-48 and after refresh the page node appeared on the cluster normally

i suggest to recommend the Alternative method in the docs,

also sometimes I wasn't able to access the admin panel without VPN

0oM4R commented 10 months ago

Work completed: Updated caprover documentation

Screenshot from 2023-12-27 18-26-56 Screenshot from 2023-12-27 18-25-35

https://github.com/threefoldtech/info_grid/pull/347

A-Harby commented 10 months ago

Verified, Devnet 7f4d8ea.

The documents have been updated with the new add-worker steps. https://manual.grid.tf/playground/caprover_worker.html image image image