Matoking / protontricks

A wrapper that does winetricks things for Proton enabled games, requires Winetricks.
GNU General Public License v3.0
1.61k stars 34 forks source link

Protontricks failed to just open. #167

Closed Desertwolf89 closed 1 year ago

Desertwolf89 commented 1 year ago

I get this error and I'm not sure how to fix it.

Protontricks was closed due to the following error:

Traceback (most recent call last):

File "/app/lib/python3.9/site-packages/protontricks/cli/util.py", line 148, in wrapper

return cli_func(self, *args, **kwargs)

File "/app/lib/python3.9/site-packages/protontricks/cli/main.py", line 228, in main

steam_apps = get_steam_apps(

File "/app/lib/python3.9/site-packages/protontricks/steam.py", line 1145, in get_steam_apps

steam_app = SteamApp.from_appmanifest(

File "/app/lib/python3.9/site-packages/protontricks/steam.py", line 189, in from_appmanifest

content = path.read_text(encoding="utf-8")

File "/usr/lib/python3.9/pathlib.py", line 1266, in read_text

with self.open(mode='r', encoding=encoding, errors=errors) as f:

File "/usr/lib/python3.9/pathlib.py", line 1252, in open

return io.open(self, mode, buffering, encoding, errors, newline,

File "/usr/lib/python3.9/pathlib.py", line 1120, in _opener

return self._accessor.open(self, flags, mode)

OSError: [Errno 117] Structure needs cleaning: '/run/media/mmcblk0p1/steamapps/appmanifest_1968730.acf'

=============

Please include this entire error message when making a bug report.

Log messages:

Running inside Flatpak sandbox, version 1.12.4.

Found Steam directory at /home/deck/.local/share/Steam

Using Steam directory at /home/deck/.local/share/Steam. You can also define Steam directory manually using $STEAM_DIR

Using default Steam Runtime at /home/deck/.local/share/Steam/ubuntu12_32/steam-runtime

WINETRICKS environment variable is not available. Searching from $PATH.

Found 2 Steam library folders

Desertwolf89 commented 1 year ago

I clean installed steam and the error still pops up. Didn't wipe the sd card though. Any advice?

Matoking commented 1 year ago

According to a Google search, it would indicate data corruption on your SD card:

https://unix.stackexchange.com/questions/330742/cannot-remove-file-structure-needs-cleaning

One option would be to reformat the SD card, though that would obviously erase any data.

Another option would be to attempt file system repair which might solve the issue, though there's no official function in the Steam Deck as far as I know. So, backup your data if you attempt this method. You can follow these instructions on Reddit:

For me, most of my SD card problems were due to bad superblocks.

  1. Switch to desktop mode, start konsole and run lsblk
  2. You should see mmcblk0p1. If you do
  3. run fsck.ext4 /dev/mmcblk0p1 and type y for all questions
  4. run sync just to be sure all operations have been finished
  5. remove and re-insert the SD card

It should hopefully work now. It did for me at least.

If fsck.ext4 warns about the file system being mounted, try the following:

  1. Open "KDE Partition Manager"
  2. Select the SD card
  3. In the list of partitions, right-click /dev/mmcblk0p1 and select "Unmount"

You should hopefully now be able to run fsck.ext4.

Matoking commented 1 year ago

Closing due to inactivity.