-
-
Notifications
You must be signed in to change notification settings - Fork 295
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
isWritable
check requires that the root directory be deletable ("/palworld is not writable")
#358
Comments
Very interesting. What are you running the NFS server on? When I had made the write check it assumed Linux permissions. Not sure how it works for more advance permissions like AppArmor or SELinux. I agree it shouldn't need the ability to delete the directory. Checking if a child directory or file is writable wouldn't give the result we want. I suppose we could try to create a temporary file inside palworld directory. I'm not sure how we would be more explicit as it sounds like you are using a different permissions set than base Linux. I'll check if there's another way to check if it's writable. |
I also geht the same error. But even setting the root directory and the one above to chmod 777 doesn't change anything. Still getting the "/palworld is not writable" eventhough "/palworld/backup/" is being created. Not using NFS though. |
Also getting the same issue. |
What distro are you running? Could you try to use #381 ? That PR changes how we check the permissions of the directory so it might fix your issue. Unfortunately I have not been able to reproduce the issue so I am not able to test the solution. |
Will report back after running the above mentioned changes. Edit2: Was a long day, did not use the Dockerfile for the build as a mistake. Seems to work fine now. |
We are on
I have difficulties building the #381 (I think because of the outdated versions) But I will try further. Just can't update everything immediately because of other services running. |
Sorry for replying to this closed ticket, but just want to share my finding in case it can help save someone else's time in the future. In my case,
This turns out to be due to seccomp. Disabling it for the container by adding |
Describe the bug
When I updated today, my server would not start with error "/palworld is not writable"
I root caused this to this script, which is checking not only for writability, but also for the ability to delete the directory.
I suppose due to some idiosyncracy of my Kubernetes setup (NFS based volume management via nfs-client-provisioner), my persistent volume claim root directories are not created to be deletable. Normally an application would not try to delete the whole PVC directory anyway, so this has historically not been a problem.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Palworld should not require the root palworld directory to be deletable ideally since there's no circumstance where that directory would need to be deleted.
Alternatively, the file writability check could be for some file within the palworld world directory
Alternatively (2), the error message could be more explicit about the required permissions.
I resolved this locally by manually updating the NFS directory to be deletable, but the kubernetes nfs-client-provisioner does not normally create the directory this way, so I'll have to do it manually for future palworld servers.
The text was updated successfully, but these errors were encountered: