mmmaxwwwell / space-engineers-dedicated-docker-linux

Space Engineers Dedicated Server running in Docker for Linux
MIT License
177 stars 43 forks source link

Fixing mod download error and running build not working for me #55

Closed survaaki closed 6 months ago

survaaki commented 1 year ago

Hopefully this is just something simple, but I am having what seems some weird issue getting 'docker-compose build' to work. As per the suggested fix in https://github.com/mmmaxwwwell/space-engineers-dedicated-docker-linux/issues/48#issuecomment-1238333801 I was trying to build after modifying entrypoint-space_engineers.bash but it fails on "RUN mkdir -p ..." in line 10 of the Dockerfile. I simply can't see a reason for this?

   9 |     RUN runuser wine bash -c ./install-winetricks
  10 | >>> RUN \
  11 | >>>   mkdir -p /appdata/space-engineers/bin &&\
  12 | >>>   mkdir -p /appdata/space-engineers/config
  13 |     COPY entrypoint.bash /entrypoint.bash
--------------------
ERROR: failed to solve: failed to prepare qj3tgpqnlx07aox39967mrekz as ditrch5n9egap3x1eyoh2f8yq: invalid argument
ERROR: Service 'se-server' failed to build : Build failed

Anyone got a hint as to what I can do to fix this or what I am missing?

mmmaxwwwell commented 1 year ago

I bet the docker compose user doesn't have write permission to the bind mount paths

survaaki commented 1 year ago

I am running docker-compose as root? Also the error message is rather strange, no indication of a permission problem or anything I can relate to. Sounds like a syntax error the way it says "invalid argument" but the syntax is correct. I'll dig into it to find out if there is some special permission required. Strange that https://github.com/mmmaxwwwell/space-engineers-dedicated-docker-linux/issues/48#issuecomment-1238333801 didn't mention any issue when he ran it.

mmmaxwwwell commented 1 year ago

Try recursively opening up the permissions on the appdata folder in the repo's root, and see if it works.

mmmaxwwwell commented 6 months ago

closing due to inactivity, hope your issue is resolved, feel free to reopen

I pushed a new commit to the v2 branch to get around the mod download issue, please test