Skip to content

[Bug]: Can't create new bottles #4405

@filson1

Description

@filson1

Describe the bug

Tried creating bottles based on sys-wine-11.0 and soda-9.0-1. Both will stop with error message "Unable to Create Bottle" after "Template found, applying...".

When restarting Bottles, this is shown:

[Errno 2] No such file or directory: '/home/USER/.var/app/com.usebottles.bottles/data/bottles/templates/83b27b67-0df5-48af-946d-70cb590db4b3'  File "/app/share/bottles/bottles/backend/utils/threading.py", line 73, in __target
    result = self.task_func(*args, **kwargs)

  File "/app/share/bottles/bottles/backend/managers/manager.py", line 1758, in create_bottle
    TemplateManager.unpack_template(template, config)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^

  File "/app/share/bottles/bottles/backend/managers/template.py", line 191, in unpack_template
    shutil.copytree(
    ~~~~~~~~~~~~~~~^
        _path,
        ^^^^^^
    ...<4 lines>...
        ignore_dangling_symlinks=True,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^

  File "/usr/lib/python3.13/shutil.py", line 591, in copytree
    with os.scandir(src) as itr:
         ~~~~~~~~~~^^^^^

True enough, the system does not have a folder named 83b27b67-0df5-48af-946d-70cb590db4b3. It has 2 other folders with similar uuid names.

Running Bottles v.62.0.
Existing bottles works ok.

To Reproduce

Create a bottle with type Application and either Wine 11.0 or Soda 9.0-1 runner in the default dir.
Watch it fail to complete the creation.

Package

Flatpak from Flathub

Distribution

Pop_OS

Debugging Information

Official Package: true
Version: '62.0'
DE/WM: pop
Display:
    X.org: true
    X.org (port): :1
    Wayland: false
Graphics:
    vendors:
        amd:
            vendor: amd
            envs:
                DRI_PRIME: '1'
            icd: /usr/share/vulkan/icd.d/radeon_icd.x86_64.json:/usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/radeon_icd.x86_64.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/radeon_icd.i686.json
    prime:
        integrated: null
        discrete: null
Kernel:
    Type: Linux
    Version: 6.17.9-76061709-generic
Disk:
    Total: 32429117440
    Free: 32428953600
RAM:
    MemTotal: 60.4GiB
    MemAvailable: 48.9GiB
Bottles_envs: null

Troubleshooting Logs

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions