ludusavi icon indicating copy to clipboard operation
ludusavi copied to clipboard

Unable to restore files from backup without existing files present (No such file or directory)

Open RoseIlanga opened this issue 1 year ago • 4 comments

Ludusavi version

v0.27.0

Operating system

Linux

Installation method

Standalone

Description

When selecting a game to restore (in this case, Warhammer: Vermintide 2), the restore operation is able to create the directories leading up to the configuration files, but fails to restore the files themselves. If I copy the files into the directory manually first and then run restore, it works fine.

Logs

[2024-11-29T10:37:29.868Z] ERROR [ludusavi::path] [Warhammer: Vermintide 2] unable to copy: ./drive-0/home/[...]/.local/share/Steam/steamapps/compatdata/552500/pfx/drive_c/users/steamuser/AppData/Roaming/fatshark/Vermintide 2/launcher.config -> /home/[...]/.local/share/Steam/steamapps/compatdata/552500/pfx/drive_c/users/steamuser/AppData/Roaming/fatshark/Vermintide 2/launcher.config | No such file or directory (os error 2)

[2024-11-29T10:37:29.869Z] ERROR [ludusavi::path] [Warhammer: Vermintide 2] unable to copy: ./drive-0/home/[...]/.local/share/Steam/steamapps/compatdata/552500/pfx/drive_c/users/steamuser/AppData/Roaming/fatshark/Vermintide 2/user_settings.config -> /home/[...]/.local/share/Steam/steamapps/compatdata/552500/pfx/drive_c/users/steamuser/AppData/Roaming/fatshark/Vermintide 2/user_settings.config | No such file or directory (os error 2)

[2024-11-29T10:37:29.869Z] ERROR [ludusavi::path] [Warhammer: Vermintide 2] unable to copy: ./drive-0/home/[...]/.local/share/Steam/steamapps/compatdata/552500/pfx/drive_c/users/steamuser/AppData/Roaming/fatshark/Vermintide 2/save_data.sav -> /home/[...]/.local/share/Steam/steamapps/compatdata/552500/pfx/drive_c/users/steamuser/AppData/Roaming/fatshark/Vermintide 2/save_data.sav | No such file or directory (os error 2)

RoseIlanga avatar Nov 29 '24 11:11 RoseIlanga

Okay, small update. I tried this with V Rising and it seemed to restore everything fine without me having to manually copy files over. So I don't know what's different about Warhammer: Vermintide 2. I can test with other games later and see if any others are affected.

RoseIlanga avatar Dec 02 '24 03:12 RoseIlanga

ludusavi_rCURRENT.log

Just today, I tried restoring Warframe files. Even more strangely, a lot of the files already existed, but it still gave the "No such file or directory" error when trying to restore.

RoseIlanga avatar Dec 06 '24 11:12 RoseIlanga

Hi! Thanks for the detailed report. Unfortunately, I'm not really sure what could cause this, especially since you're using the standalone version and not Flatpak (which has more restrictive permissions).

Do the folders/files for Warhammer and V Rising have any different permissions?

mtkennerly avatar Dec 17 '24 02:12 mtkennerly

They both seem to have the same permissions (and owner):

Owner: rwx Group: r-x Others: r-x

Same with Warframe and New World, which have also had this issue.

RoseIlanga avatar Dec 18 '24 13:12 RoseIlanga