protonscr

[Feature request] Print which file failed to write along with the write error

steamopen Steam clientDistro Family: Debian
ValveSoftware/steam-for-linux#10327 · opened 2023-12-29 by Djhg2000 · updated 2023-12-29 · 1 comments · github
DDjhg2000 2023-12-29 github

Your system information

  • Steam client version (build number or date): Latest Beta client as of 2023-12-29 16:13 CET
  • Distribution (e.g. Ubuntu): Debian Sid
  • Opted into Steam client beta?: Yes
  • Have you checked for system updates?: Yes
  • Steam Logs: (only relevant part attached below)
  • GPU: AMD

Please describe your issue in as much detail as possible:

I have a game that fails to complete its cloud sync (MudRunner), I can retry but it always fails. Looking at the console output I get this:

src/clientdll/remotestoragefilesynccontext.cpp (947) : Assertion Failed: Failed to write file after download (2)

src/clientdll/remotestoragefilesynccontext.cpp (947) : Assertion Failed: Failed to write file after download (2)

src/clientdll/remotestoragefilesynccontext.cpp (947) : Assertion Failed: Failed to write file after download (2)

src/clientdll/remotestoragefilesynccontext.cpp (947) : Assertion Failed: Failed to write file after download (2)

It's helpful to know it fails to write a file 4 times but I can't deduce which file it fails to write after downloading it. If I knew which file it was I could inspect the folder contents for permission issues or something like that, but now I'm stuck trying to guess which one it is. I would prefer something like this or similar:

src/clientdll/remotestoragefilesynccontext.cpp (947) : Assertion Failed: Failed to write file after download (2) (/home/djhg2000/Documents/MyGame/save.file)

src/clientdll/remotestoragefilesynccontext.cpp (947) : Assertion Failed: Failed to write file after download (2) (/home/djhg2000/Documents/MyGame/save.file)

src/clientdll/remotestoragefilesynccontext.cpp (947) : Assertion Failed: Failed to write file after download (2) (/home/djhg2000/Documents/MyGame/save.file)

src/clientdll/remotestoragefilesynccontext.cpp (947) : Assertion Failed: Failed to write file after download (2) (/home/djhg2000/Documents/MyGame/save.file)

Steps for reproducing this issue:

  1. Break cloud sync for a game somehow (maybe set the save game directory to read only?)
  2. Launch Steam from a console window
  3. Retry cloud sync manually
  4. See some lines of src/clientdll/remotestoragefilesynccontext.cpp (947) : Assertion Failed: Failed to write file after download (2) without any further information
Kkisak-valve maintainer 2023-12-29 github

Hello @Djhg2000, the finer details of cloud syncing can be found at ~/.steam/steam/logs/cloud_log.txt.

Nothing extracted yet.