Bottles icon indicating copy to clipboard operation
Bottles copied to clipboard

[Bug]: Bottles startup takes too long and missing directories.

Open Tesla-Tank opened this issue 1 year ago • 11 comments

Describe the bug

I installed Bottles using the flatpak (both using the software store and terminal) but every time the application launches it always fetches 3 packages at a slow speed. I even uninstall both bottles and flatpak entirely but this did not worked. The app still works, but when I tried to change the directory to another hard drive it doesn't show up in the file explorer (Other Locations does not work either). Whats worse is every time I close the app, I have to go through the setup process all over again. Thank you. What bottles shows: image Whats missing (media directory): image

To Reproduce

  1. Download Bottles using Software Store or Terminal.
  2. Open Bottles.
  3. Wait for Bottles to fetch the packages.
  4. Accept the additional packages needed and wait for the setup.

Package

Flatpak from Flathub

Distribution

Kubuntu 22.04

Health Check

Version: 2022.7.14-brescia-3
Display:
    X.org: true
    X.org (port): :99.0
    Wayland: false
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:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/nvidia_icd.json
    prime:
        integrated: null
        discrete: null
Kernel:
    Type: Linux
    Version: 5.15.0-43-generic
Distro:
    Name: GNOME
    Version: '"42 (Flatpak runtime)"'
Disk:
    Total: 33666932736
    Free: 33666777088
RAM:
    MemTotal: 62.7GiB
    MemAvailable: 54.9GiB
Tools and Libraries:
    cabextract: true
    p7zip: true
    patool: true
    glibc_min: '2.33'
    icoextract: true
    pefile: true
    markdown: true
    xdpyinfo: true
Bottles_envs: null

Display Protocol

X11

Display Backend used by Bottles

X11

Additional context

My only guess on whats causing this error is with the download status (Although I'm not too sure if this is the case but it shows that com.usebottles.bottles.Locale has 7.9kb/616.8kb downloaded) image

Tesla-Tank avatar Jul 24 '22 01:07 Tesla-Tank

Fetching repositories only download few kb from our repo. There should be a problem with your internet connection or reaching our server. We are already monitoring our infra and not noticing problems at all.

Post the output for ping repo.usebottles.com -c 5

mirkobrombin avatar Jul 24 '22 06:07 mirkobrombin

image Yeah that makes sense, I'll reboot my router to see if that fixes anything. Thanks again.

Tesla-Tank avatar Jul 24 '22 16:07 Tesla-Tank

Let me know

mirkobrombin avatar Jul 24 '22 16:07 mirkobrombin

Rebooting the router did not work and I switch to a wireless connection with no success. I did test the same command on my laptop with no issue, so it has to be the computer itself. I'm running out of ideas on how to fix this.

Tesla-Tank avatar Jul 24 '22 17:07 Tesla-Tank

Rebooting the router did not work and I switch to a wireless connection with no success. I did test the same command on my laptop with no issue, so it has to be the computer itself. I'm running out of ideas on how to fix this.

I have the same problem. I'll see if changing the DNS solves the problem

KajacC avatar Jul 24 '22 22:07 KajacC

I have the same problem. I'll see if changing the DNS solves the problem

I had a custom DNS (1.1.1.1) but my laptop had the same DNS configuration, so I doubt that's the issue.

Tesla-Tank avatar Jul 24 '22 23:07 Tesla-Tank

I have the same problem. I'll see if changing the DNS solves the problem

I had a custom DNS (1.1.1.1) but my laptop had the same DNS configuration, so I doubt that's the issue.

I tried to change the dns and nothing changed. bottles start very slowly.

Strange that in the previous version everything was good!

KajacC avatar Jul 25 '22 02:07 KajacC

I also tried booting into a live usb session of Kubuntu 22.04 and I'm still getting the same packet loss. I don't know what to do at this point.

Tesla-Tank avatar Jul 25 '22 22:07 Tesla-Tank

I tested with another internet connection, even slower than I have and had the same result!

It could be something related to the connection route. Since even that influences when you are on another continent!

KajacC avatar Jul 26 '22 14:07 KajacC

I have the same problem, at the time of writing of this, as it is described here as the "fetch # of 3 packages" takes a while to show up for bottles and downloading the packages also take a while for ~20-30kb packages. Pinging the repository server results in a 100% packet loss but accessing the server on a browser shows the entire repository. Bottles did not take a long time to start before. But it did eventually load.

TwoPizza9621536 avatar Jul 28 '22 18:07 TwoPizza9621536

So guys, doing tests here. I could see that in my case it is a problem with my internet provider. I went to test ping to servers in other countries and many gave packet loss!

I tried things like resetting the modem, changing DNS, disabling firewall's and nothing worked!

I partially solved the packet loss issue with a VPN. Now the bottles are flying. It's annoying to have to activate it all the time but it works!

I hope they implement something for bottles to work offline.

KajacC avatar Jul 29 '22 05:07 KajacC

You can use the FORCE_OFFLINE=1 environment variable to force it to work offline. Although I do admit that it would be better if it was automatic.

TheEvilSkeleton avatar Aug 17 '22 20:08 TheEvilSkeleton

FYI Bottles already enters offline mode when the connection takes long. It should probably be debugged and improved

mirkobrombin avatar Aug 17 '22 22:08 mirkobrombin

Sorry about the late comment but I recently updated to 2022.8.14-brescia and I'm no longer having the long startup time issue (although it still fetches the package during startup). I'm still having an issue with the missing directories though.

Tesla-Tank avatar Aug 19 '22 01:08 Tesla-Tank

About missing paths https://docs.usebottles.com/flatpak/expose-directories

mirkobrombin avatar Aug 21 '22 06:08 mirkobrombin