protonscr

SteamCMD missing file permissions that it has

steamopen SteamCMD
ValveSoftware/steam-for-linux#10979 · opened 2024-06-14 by mja00 · updated 2024-06-19 · 11 comments · github
Mmja00 2024-06-14 github

Your system information

  • Distribution (e.g. Ubuntu): Ubuntu
  • Opted into Steam client beta?: [Yes/No] No
  • Have you checked for system updates?: [Yes/No] Yes
  • Steam Logs: Ephemeral container
  • GPU: N/A

Please describe your issue in as much detail as possible:

When attempting to install a server through SteamCMD it fails with a ERROR! Failed to install app '105600' (Missing file permissions) error. I've check file permissions and SteamCMD has them. This worked perfectly fine yesterday but now no longer works.

Steps for reproducing this issue:

  1. Install a server with SteamCMD
  2. See it error out
LLord-Leonard 2024-06-17 github

getting this as well, any info?

Mmja00 2024-06-17 github

I ended up having to set a HOME env var to a folder it could write to. SteamCMD was attempting to write to the / folder which caused it to do //Steam/logs as its logs directory and failing.

Mmja00 2024-06-17 github

It seems in some recent update whatever code that writes the logs now fatally errors out if it can't actually write them.

Nnevesm 2024-06-17 github

I am facing the same issue:

ERROR! Failed to install app '730' (Missing file permissions)

I dont get it how you solved it

Mmja00 2024-06-17 github

It's possible you're having a different bug. When SteamCmd first runs it'll say something about redirecting errors to a directory. If that directory is one the running user cannot write to then it'll fail with missing permissions. I've got no clue why but it does.

Nnevesm 2024-06-17 github

Oh i see, i think mine is /root/Steam/logs
image

Mmja00 2024-06-17 github

Yeah it reads from the HOME environment variable to set the directory so it is changeable.

Nnevesm 2024-06-17 github

I'll try to give the necessary permissions to this folder, 1 sec

Nnevesm 2024-06-17 github

Not working yet, i think you should keep this issue open because this can crash other servers not only ours

Ddudleycodes 2024-06-17 github

Setting the HOME environment variable solved my problem using LacledesLAN/SteamCMD.

The problem only seemed to affect usage with no TTY attached.

RRic-F 2024-06-19 github

In my case for a Project Zomboid server running https://github.com/Danixu/project-zomboid-server-docker , to eliminate the file permissions problem on start I needed to update my Dockerfile like so:

ENV HOME "${HOMEDIR}"
ENV STEAMAPPID 380870
ENV STEAMAPP pz
ENV STEAMAPPDIR "${HOMEDIR}/${STEAMAPP}-dedicated"

The only line added was the top one where I re-used the HOMEDIR environment variable for HOME.

Nothing extracted yet.