Skip to content
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

[Bug]: When re-open Bottles from external disk mount [Errno 1] Operation not permitted: #3739

Open
vuongtuha opened this issue Jan 31, 2025 · 0 comments

Comments

@vuongtuha
Copy link

Describe the bug

As my understand, Bottles was indexing bottle dir from my external disk. But the mount point from system and mount point in bottle settings are not the same. So I got stuck at this error

Image

I couldnot start Bottles normally after restart PC. Error log dialog blocked screen and I only can close it. Bottles stuck at Starting up... and cannot load Continue Offline itself. I only can reverse update packages, so there's only one opt reinstalling Bottles

To Reproduce

Context about what did i do:
Bottles app installed from Flathub stable repo for system wide user
There're 2 mount points related: /bottle for my 1st ever bottle, stayed on root disk
/media/phuogmai/Genhome/steam/poe/ for my 2nd created bottle on Jan 29 ( this's what i got from file manager)
both dir was added to file permission for Bottles by Flatseal app
I was intended 2nd bottle on external disk (ED) for storage game only. It booted, loaded and is playable for me for 6 hours
On the next day, i unplugged ED and didnt use PC. Then I used it again. ED dont automatic mount on my boot time. I mounted it by command, and it's on btrfs single pool format.
At the 1st time I reopen Bottles app, 2nd bottle didnt appear. I tried to import bottle.yml file for it. Nothing appear. I thought that should restart app. Close Bottles app. Re-open it. Then i got stuck in this case. Maybe i did sth wrong way. Anyway remove app in Flatpak, also data, and reinstall app would be fine to me

Package

Flatpak from Flathub

Distribution

Debian Sid

Debugging Information

Official Package: true
Version: '51.18'
DE/WM: gnome
Display:
    X.org: true
    X.org (port): :0
    Wayland: true
Graphics:
    vendors:
        nvidia:
            vendor: nvidia
            envs:
                __NV_PRIME_RENDER_OFFLOAD: '1'
                __GLX_VENDOR_LIBRARY_NAME: nvidia
                __VK_LAYER_NV_optimus: NVIDIA_only
            icd: /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/nvidia_icd.json
            nvngx_path: null
    prime:
        integrated: null
        discrete: null
Kernel:
    Type: Linux
    Version: 6.12.11-x64v3-xanmod1
Disk:
    Total: 16528887808
    Free: 16528703488
RAM:
    MemTotal: 30.8GiB
    MemAvailable: 13.9GiB
Bottles_envs: null

Troubleshooting Logs

flatpak run com.usebottles.bottles                                                                       12:38:09
F: Not sharing "/usr/share/icons" with sandbox: Path "/usr" is reserved by Flatpak

(process:2): Gtk-WARNING **: 12:40:44.065: Locale not supported by C library.
	Using the fallback 'C' locale.

(process:2): Adwaita-WARNING **: 12:40:44.701: Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported. Please use AdwStyleManager:color-scheme instead.
12:40:44 (INFO) Launching with URI: None 
12:40:44 (INFO) [Activate] request received. 
12:40:45 (INFO) Bottles Started! 
12:40:48 (ERROR) Could not get index for dependencies repository 
12:40:48 (INFO) Performing Bottles checks… 
12:40:48 (INFO) Dxvks found:
	- dxvk-gplasync-v2.5.2-1
	- dxvk-2.4
	- dxvk-2.5.2
 
12:40:48 (INFO) Vkd3ds found:
	- vkd3d-proton-2.12
	- vkd3d-proton-2.14
 
12:40:48 (INFO) Nvapis found:
	- dxvk-nvapi-v0.7.1
	- dxvk-nvapi-v0.8.0
 
12:40:48 (INFO) Latencyflexs found:
	- latencyflex-v0.1.1
 
12:40:48 (INFO) Runners found:
	- lutris-ge-lol-p8-12
	- wine-ge-proton8-26
	- kron4ek-wine-9.20-amd64
	- ge-proton9-22
	- ge-proton9-16
	- sys-wine-9.0
 
12:40:48 (INFO) Temp directory cleaned successfully! 
12:40:48 (ERROR) Config file not exists 
Traceback (most recent call last):
  File "/app/share/bottles/bottles/backend/models/config.py", line 183, in load
    raise FileNotFoundError("Config file not exists")
FileNotFoundError: Config file not exists
12:40:48 (ERROR) Error while running async job: <function BottlesWindow.__on_start.<locals>.get_manager at 0x761983fb0fe0>
	Exception: [Errno 1] Operation not permitted: '/run/user/1000/doc/de675cef/steam'
 
  File "/app/share/bottles/bottles/backend/utils/threading.py", line 62, in __target
    result = self.task_func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/share/bottles/bottles/frontend/windows/window.py", line 288, in get_manager
    mng = Manager(
          ^^^^^^^^
  File "/app/share/bottles/bottles/backend/utils/singleton.py", line 6, in __call__
    cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/share/bottles/bottles/backend/managers/manager.py", line 157, in __init__
    times.update(self.checks(install_latest=False, first_run=True).data)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/share/bottles/bottles/backend/managers/manager.py", line 211, in checks
    self.check_bottles()
  File "/app/share/bottles/bottles/backend/managers/manager.py", line 950, in check_bottles
    process_bottle(b)
  File "/app/share/bottles/bottles/backend/managers/manager.py", line 910, in process_bottle
    os.makedirs(p)
  File "<frozen os>", line 215, in makedirs
  File "<frozen os>", line 215, in makedirs
  File "<frozen os>", line 215, in makedirs
  File "<frozen os>", line 225, in makedirs
Traceback (most recent call last):
  File "/app/share/bottles/bottles/frontend/windows/window.py", line 217, in set_manager
    x for x in self.manager.runners_available if not x.startswith("sys-")
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'runners_available'
12:40:49 (INFO) Catalog installers loaded 
12:40:49 (INFO) No dependencies found! 
12:40:50 (INFO) Catalog components loaded

Additional context

<<bottle.yml>>
Arch: win64
CompatData: ''
Creation_Date: '2025-01-29 21:04:41.517881'
Custom_Path: true
DLL_Overrides: {}
DXVK: dxvk-2.5.2
Environment: Application
Environment_Variables: {}
External_Programs: {}
Installed_Dependencies:

  • arial32
  • times32
  • courie32
  • mono
  • gecko
    Language: sys
    LatencyFleX: latencyflex-v0.1.1
    NVAPI: dxvk-nvapi-v0.8.0
    Name: poe
    Parameters:
    custom_dpi: 96
    decorated: true
    discrete_gpu: false
    dxvk: true
    dxvk_nvapi: false
    fixme_logs: false
    fsr: false
    fsr_quality_mode: none
    fsr_sharpening_strength: 2
    fullscreen_capture: false
    gamemode: false
    gamescope: false
    gamescope_borderless: false
    gamescope_fps: 0
    gamescope_fps_no_focus: 0
    gamescope_fullscreen: true
    gamescope_game_height: 0
    gamescope_game_width: 0
    gamescope_scaling: false
    gamescope_window_height: 0
    gamescope_window_width: 0
    latencyflex: false
    mangohud: false
    mangohud_display_on_game_start: true
    mouse_warp: true
    obsvkc: false
    pulseaudio_latency: false
    renderer: gl
    sandbox: false
    sync: wine
    take_focus: false
    use_be_runtime: true
    use_eac_runtime: true
    use_runtime: false
    use_steam_runtime: false
    versioning_automatic: false
    versioning_compression: false
    versioning_exclusion_patterns: false
    virtual_desktop: false
    virtual_desktop_res: 1280x720
    vkbasalt: false
    vkd3d: true
    vmtouch: false
    vmtouch_cache_cwd: false
    Path: /run/user/1000/doc/de675cef/steam/poe/
    Runner: ge-proton9-22
    RunnerPath: ''
    Sandbox:
    share_net: false
    share_sound: false
    State: 0
    Uninstallers: {}
    Update_Date: '2025-01-29 21:04:41.517896'
    VKD3D: vkd3d-proton-2.14
    Versioning: false
    Versioning_Exclusion_Patterns: []
    Windows: win10
    WorkingDir: ''
    data: {}
    run_in_terminal: false
    session_arguments: ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant