-
Notifications
You must be signed in to change notification settings - Fork 247
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
Operation not permitted [/opt/factorio/bin/x64/../../config/config.ini] #495
Comments
Can you share how you start the container? |
Sure. I have a systemd-service:
resulting in:
|
any update? |
We had pretty much the same problem. Up to version 1.1.101 everything was fine. But every version tested from 102 to 110 had the same error message. Even when setting up a new container without any save game. |
I got the same problem so I brushed my docker skills to understand what was happening. The problem is this PR added a user to the dockerfile. In particular this line where the ownership of IMO it is a mistake to deal with the user in the DOCKERFILE. That being said, the quickest way to fix your poblem is to change the uid/gid on your system to the one expected by the DOCKERFILE.
and fix the owernship of the something along the line of:
It fixed my problem, I hope it will fix yours also! |
But that PR you linked is from 2020. Why would that make problems when switching to version 1.1.100 (or 101)?
and that you have to permit that user. Which I double checked to do. The file or path mentioned in the error message Your statement might not be wrong, but I don't think it is related to this problem. Even though I can't test ist anymore myself, since we reinstalled our host server. |
You are right. Reading the quick start guide it is not super clear that is expected to create the user on the system with the given uid/gid. Personally, I missed that step.
That is a great question and unfortunately, we won't be able to know because we don't know what changed in the code of factorio. I took a peek and the changelog and didn't looks at anything related.
I /think/ you are confusing vm and containers. Docker/podman is using the user specified by the config/user when running the container. If the uid/gid does not match this is where you can enter in permission problems. If you want to get more familiar with that aspects of container, one easy experiment you can do is if you run as root and you start writing file in the mounted volume, those file will be owned by root on the host system.
If you feel you want to give it another try, happy to take a look if this solution does not solve the problem :) |
After a while my friend and me wanted to come back to factorio.
So i updated my server to 1.1.107 (stable) and got this:
0.000 Error Util.cpp:86: filesystem error: cannot make canonical path: Operation not permitted [/opt/factorio/bin/x64/../../config/config.ini]
I checked older versions and the server will run a container up to 1.1.100, updating to 1.1.101 or newer results in error stated above.
Any suggestions?
The text was updated successfully, but these errors were encountered: