node-daemon failing to stay up
I have most of the deployments for gitpod running on a k3s cluster being managed by Rancher 2.4. With the exception of the node-daemon deployment, where I get errors like below on all the nodes, after which they terminate:
node/kube-master-9273 not patched
Theia (version v0.4.0) became available BUT we've failed to mark the node (attempt 1/10)
node/kube-master-9273 not patched
Theia (version v0.4.0) became available BUT we've failed to mark the node (attempt 2/10)
node/kube-master-9273 not patched
Theia (version v0.4.0) became available BUT we've failed to mark the node (attempt 3/10)
node/kube-master-9273 not patched
Theia (version v0.4.0) became available BUT we've failed to mark the node (attempt 4/10)
node/kube-master-9273 not patched
Theia (version v0.4.0) became available BUT we've failed to mark the node (attempt 5/10)
node/kube-master-9273 patched
Theia (version v0.4.0) became available - we've marked the node
node/kube-master-9273 not patched
ws-sync became available - we've marked the node
Is anyone else seeing this?
Actually - the log above shows that one of the nodes actually made it - the other 2 (of 3) end up giving up after 10 attempts)
When I create a new gitpod, this is the error I get there:
Request startWorkspace failed with message: 13 INTERNAL: cannot resolve workspace image:
Error response from daemon: Get https://registry.gitpod.xxxxxx.xxx/v2/: remote error:
tls: internal error
Please file an issue if you think this is a bug.
Then I dug in deeper and noticed the node-daemon is restarting with the log messages posted above. The init and theia containers logs messages don't seem to have any errors.
I have also been testing on a k8s cluster created with RKE. I have been doing some testing and have installed and uninstalled a few times. One time I had the node-daemon pods up and running without errors and I could see the /var/gitpod directory had been created on all 3 nodes.
After an uninstall and a new install on the same cluster (to try and get the proxy to work), I am unable to get to the same completed stage with the node-daemon daemonset.
Tried this again on a new k3s cluster on a set of bare metal VMs.
Everything came up as it should to start with. I found I needed to change something on the setup, so I uninstalled (helm uninstall gitpod) and re-installed. Now I have the same node-daemon problem.
I had run the following on each of the node hosts before starting:
mkdir -p /var/gitpod/workspaces
mount --bind /var/gitpod/workspaces /var/gitpod/workspaces
mount --make-shared /sys/fs/cgroup
mount --make-shared /var/gitpod/workspaces
Not sure if this is correct, but picked up from various repos implementing with docker and k3s or k3d.
So - I am guessing something is failing on the scripts if some things have been installed already. Any ideas what that could be?
Looks like my installs are working now on k3s - at least all services are coming up, including the node-daemon. Even after uninstall and re-installs - as long as I remember to remove the labels added to the nodes before a re-install.
So I am guessing something has changed in the underlying implementation for this to be working now. Is that correct?
That is a bug that we have to get fixed but it is not a problem that prevents Gitpod from working. The problem is that the first time the helm chart is deployed, labels are set to nodes. Once these labels are set, they will stay. If Gitpod is uninstalled and redeployed, this problem occurs.
This issue would get users blocked and run away.
Need to get fixed asap~
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.