'read-only file system' messages in Kubernetes Gremlin deployments

Modified on Wed, 12 Mar at 2:25 PM

When deploying Gremlin to Kubernetes and not using the official helm chart, you may encounter errors indicating that a file under /sys/fs/cgroup (or potentially another location based on how you deploy)  has been mounted readonly:

level=error msg="unlinkat /sys/fs/cgroup/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-example.slice/cri-containerd-example.scope: read-only file system" 


You can verify whether this is mounted readonly (ro, in this output it is set to read/write rw) by examining the Daemonset and examining the path where the errors are occurring:

$ kubectl describe ds gremlin -n gremlin | grep /sys/fs/cgroup -A1
      /sys/fs/cgroup from cgroup-root (rw)

Due to how cgroup v2 is implemented, for successful deployment Gremlin needs /sys/fs/cgroup to be mounted rw as outlined in the associated helm chart update:

https://github.com/gremlin/helm/pull/70



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article