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]: Difficulty creating a Distrobox from the UI. #36

Open
michaelkornblum opened this issue Nov 10, 2022 · 4 comments
Open

[Bug]: Difficulty creating a Distrobox from the UI. #36

michaelkornblum opened this issue Nov 10, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@michaelkornblum
Copy link

Describe the bug

I tried installing a distrobox from the main UI, however when it tries to pull the image and create the instance, no progress seems to occur. In contrast, the application lists and manages distroboxes that were already created via command line run flawlessly. For example, I created a Distrobox via command line, using this command:

distrobox create --image fedora:37 --name fedora

and I have a fully functional Fedora distrobox, which shows up in Atoms. However, if I try to create the same distrobox from Atoms, I am unable to even enter the name of the image in Atom's text field to pull the correct image.

Now here's the weird part. when I ran the Atom flatpak from the command line, I received a prompt, not in the UI but from the command-line itself, asking if I wanted to pull the fedora 37 image. After confirming in the terminal that I wanted to pull the image, the image downloaded and the distrobox was created flawlessly.

To Reproduce

  1. Open Atoms from Desktop
  2. Create new Atom
  3. Name it Ubuntu-Impish
  4. Select Distrobox Container
  5. Choose Image ubuntu:20.04
  6. Wait, wait and wait.

Package

Flatpak from Flathub

Distribution

Garuda Linux

Display Protocol

Wayland

Additional context

No response

@michaelkornblum michaelkornblum added the bug Something isn't working label Nov 10, 2022
@tinfoil-hat-net
Copy link

Same experience with Flatpak and Linuxmint
I get stuck there when selecting Ubuntu from GUI:
Bildschirmfoto vom 2023-05-23 19-06-39

@mirkobrombin
Copy link
Member

mirkobrombin commented May 23, 2023

Re-try starting Atoms via terminal and give me the output please.

flatpak run pm.mirko.Atoms

@tinfoil-hat-net
Copy link

tinfoil-hat-net commented May 23, 2023

flatpak run pm.mirko.Atoms

Thanks, here:

anon@navi [22:40:44] [~] 
-> % flatpak run pm.mirko.Atoms                 
Atom configuration file not found with path: db0a8054-e40c-4ae6-9017-ec1307714332.atom
Atom configuration file not found with path: 26d831f1-8a8e-4850-b56b-0ba2a046f8d3.atom
Atom configuration file not found with path: 14d6ad2a-9ef6-485a-957a-17dae5a8dc41.atom
Atom configuration file not found with path: 955749d9-3ace-401f-a6e6-18f4377b7565.atom
Atom configuration file not found with path: 1eaea7ee-8092-4abc-99af-3daf4ef419db.atom
Atom configuration file not found with path: c1f3c22d-afb4-47cc-b70d-59dfd57cb83a.atom
Atom configuration file not found with path: 226bec59-4434-499b-8010-bc5f80a94279.atom
Error while running async job: <function AtomsNewAtomWindow.__on_btn_create_clicked.<locals>.create_atom at 0x7fbf9bb8f490>
Exception: HTTPSConnectionPool(host='uk.lxd.images.canonical.com', port=443): Max retries exceeded with url: /images/ubuntu/jammy/amd64/default (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fbf9bb996f0>: Failed to establish a new connection: [Errno -3] Temporärer Fehler bei der Namensauflösung'))
  File "/app/share/atoms/atoms/utils/threading.py", line 59, in __target
    result = self.task_func(*args, **kwargs)
  File "/app/share/atoms/atoms/windows/new_atom_window.py", line 120, in create_atom
    return self.window.manager.request_new_atom(
  File "/app/lib/python3.10/site-packages/atoms_core/atoms.py", line 94, in request_new_atom
    return Atom.new(
  File "/app/lib/python3.10/site-packages/atoms_core/entities/atom.py", line 160, in new
    image = AtomsImageUtils.get_image(
  File "/app/lib/python3.10/site-packages/atoms_core/utils/image.py", line 38, in get_image
    remote = distribution.get_remote(architecture, release)
  File "/app/lib/python3.10/site-packages/atoms_core/entities/distributions/ubuntu.py", line 43, in get_remote
    return "{0}/rootfs.tar.xz".format(self.__get_base_path(architecture, release))
  File "/app/lib/python3.10/site-packages/atoms_core/entities/distributions/ubuntu.py", line 39, in __get_base_path
    build = self._get_latest_remote_dir(base_url)
  File "/app/lib/python3.10/site-packages/atoms_core/entities/distribution.py", line 179, in _get_latest_remote_dir
    return self._get_remote_dirs(url)[0]
  File "/app/lib/python3.10/site-packages/atoms_core/entities/distribution.py", line 161, in _get_remote_dirs
    response = requests.get(url)
  File "/app/lib/python3.10/site-packages/requests/api.py", line 73, in get
    return request("get", url, params=params, **kwargs)
  File "/app/lib/python3.10/site-packages/requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
  File "/app/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
    resp = self.send(prep, **send_kwargs)
  File "/app/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
    r = adapter.send(request, **kwargs)
  File "/app/lib/python3.10/site-packages/requests/adapters.py", line 565, in send
    raise ConnectionError(e, request=request)

@mirkobrombin
Copy link
Member

The issue there is that uk.lxd.images.canonical.com is not loading for some reason, I should handle that exception

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants