-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Steam prints "flock (FILE) LOCK_SH failed. errno = 38" errors for each the game that was moved to the external disk #10829
Comments
Hi @kisak-valve I had read that issue you mentioned, I think that issue is very similar to this.
I checked mounts $ grep /run/user /proc/$(pidof -s steam)/mounts
tmpfs /run/user/60331 tmpfs rw,nosuid,nodev,relatime,size=3255252k,nr_inodes=813813,mode=700,uid=60331,gid=60331,inode64 0 0
$ grep /doc /proc/$(pidof -s steam)/mounts
portal /run/flatpak/doc fuse.portal rw,nosuid,nodev,relatime,user_id=60331,group_id=60331 0 0 |
Today I noticed that /run/user/60331/doc is symbolic link refers to /run/flatpak/doc. Therefore, I now suspect XDG Desktop Portal wouldn't implement Current versions in my Arch Linux box:
|
I'm not sure whether it will be merged or not, I created a PR to xdg-desktop-portal repository to merge a patch that is to fix this issue. But, the patch would add only non-blocking operations of flock(2) because blocking ops could block entire xdg-document-portal filesystem. I have a question: Steam client might involve flock(2) with blocking operation? For now, Steam works well with an external drive. |
I also have this issue on Fedora 40, Gnome 46, steam version: 1718904662 Stream is installed via flatpak. I want to install a game on a separate SSD. I try to give the permission using flatsteal, using the filesystem section, as mentioned in the issue. Steam is able to write some folder and file in this directory, but as soon as i start to install the game, it give me the error. |
It wasn't clear what the workaround was in #9776 |
I personally could install my game with KDE, so I think it's a gnome specific issue |
I am having this exact same issue on Fedora 40 Sway edition. I hope your fix can eventually make its way downstream so I can download it on Fedora. |
Your system information
Please describe your issue in as much detail as possible:
My host have an external USB SSD that usually mounted on /run/media/lufia/games.
A few days ago, because my laptop's storage is almost full, I moved large games by
Steam > Settings > Storage
tool.After Steam client was restarted I noticed that Steam does not recognize the games I moved to external USB SSD; they are not installed.
Also Steam client can't install new game I bought to the external USB SSD.
Both these two cases above Steam client prints the same errors "flock (FILE) LOCK_SH failed. errno = 38"
(FILE) is such as:
Flatpak's permissions
I have tried
I have tried to get shared lock on the host directly, it worked:
I also tried to get shared lock within flatpak, it failed:
Steps for reproducing this issue:
The text was updated successfully, but these errors were encountered: