Giter VIP home page Giter VIP logo

Comments (7)

inercia avatar inercia commented on August 25, 2024

Hi @garrett. Thanks for reporting this problem. I think I know what happened: the dependency on the dateutil library was missing. I've added it in this commit in the FlatHub repo. The package should be rebuilt in the next hour or so. Please let me know if that fixes your problem.

from k3x.

garrett avatar garrett commented on August 25, 2024

Indeed, I think that fixes the problem. However, there's a new problem:

GI search path:
[PRE-MAIN]  [search-path] - /usr/lib/x86_64-linux-gnu/girepository-1.0
[PRE-MAIN]  [search-path] - /app/lib/girepository-1.0
[PRE-MAIN]  [search-path] - /app/lib/girepository-1.0
[PRE-MAIN] Current LD_LIBRARY_PATH: /app/lib:/app/lib/x86_64-linux-gnu:/lib64:/lib:/usr/lib64:/usr/lib:/usr/local/lib
2020-08-13 09:44:44,832 [MainThread  ] [DEBUG]  [MAIN] Creating settings manager...
2020-08-13 09:44:44,842 [MainThread  ] [DEBUG]  Creating settings in delayed mode...
2020-08-13 09:44:44,843 [MainThread  ] [INFO ]  Changing loglevel to 20
2020-08-13 09:44:44,843 [MainThread  ] [INFO ]  [MAIN] Using icon /home/garrett/.var/app/com.github.inercia.k3x/cache/icons/app.svg
2020-08-13 09:44:44,843 [MainThread  ] [INFO ]  [MAIN] Starting appindicator.Indicator
2020-08-13 09:44:44,872 [MainThread  ] [INFO ]  Creating/recreating docker client with DOCKER_HOST=unix:///var/run/docker.sock
2020-08-13 09:44:44,973 [MainThread  ] [ERROR]  Could not connect to Docker at
unix:///var/run/docker.sock:
('Connection aborted.', PermissionError(13, 'Permission denied'))

(k3x:2): Gtk-CRITICAL **: 09:44:45.003: gtk_entry_set_text: assertion 'text != NULL' failed
Traceback (most recent call last):
  File "/app/bin/k3x", line 62, in <module>
    sys.exit(main.main(VERSION))
  File "/app/share/k3x/k3x/main.py", line 139, in main
    _indicator = Indicator(version=version)  # NOTE: assign for keeping the object alive
  File "/app/share/k3x/k3x/main.py", line 113, in __init__
    self._keybinder = Keybindings(self._settings, self._shortcuts)
  File "/app/share/k3x/k3x/keybindings.py", line 85, in __init__
    self._keybinder = SystemHotkey(check_queue_interval=0.01)
  File "/app/lib/python3.7/site-packages/system_hotkey/system_hotkey.py", line 614, in __init__
    self.conn = xcffib.connect()
  File "/app/lib/python3.7/site-packages/xcffib/__init__.py", line 527, in __init__
    self.invalid()
  File "/app/lib/python3.7/site-packages/xcffib/__init__.py", line 559, in invalid
    raise ConnectionException(err)
xcffib.ConnectionException: Connection closed, error during parsing display string.

Perhaps we should close this and open a new issue though?

I do happen to have Docker installed as an overlay on my Silverblue system, but that's because I do development on Cockpit and have a bunch of things as overlay packages on my work system. (I work as much as I can in a toolbox container and in Flatpaks too, but some things need to be RPM overlays directly on the system if I don't want to have to build and run a VM for everything.)

Since this issue seems to be fixed, but there are other issues, I've opened more issues and am closing this one:

  1. When there's an error like this, it should open a window with the error instead of "doing nothing" if you run the app from the UI. #14
  2. Does k3x work with podman? #15
  3. Can k3x work on Silverblue? #16

from k3x.

smazurov avatar smazurov commented on August 25, 2024

Im running into the same issue (2nd one) and running non-silverblue Fedora 32. I thought it was due to moby-engine instead of docker, but I got docker working (aka docker ps returns containers), and still facing the issue.

k3d create cluster command works.

from k3x.

garrett avatar garrett commented on August 25, 2024

@smazurov: I think the issue is related to cgroups v2 and Docker (Moby) not supporting it properly. Can you run a Docker container on your system with sudo docker run -it alpine cat /etc/os-release ?

It should show things like PRETTY_NAME="Alpine Linux v3.12" and such if it works. Alpine is super-lightweight and a different distro, hence my suggestion on trying it.

If it doesn't work, is it related to cgroups v2? You'd probably see a similar error message as the third one in this comment on the Silverblue issue: #16 (comment)

The best solution would probably be to support podman (#15) and forget about Docker cgroups v2 support.

from k3x.

inercia avatar inercia commented on August 25, 2024

@smazurov if k3d create cluster command works, could you try running k3x in a terminal with flatpak run --user com.github.inercia.k3x and get the debug logs? I would like to take a look at the logs for debugging the issue.

from k3x.

smazurov avatar smazurov commented on August 25, 2024

Error log is in the second message in this thread. My docker works and I enabled old cgroups

from k3x.

smazurov avatar smazurov commented on August 25, 2024

Here's the log:

$ flatpak run --user com.github.inercia.k3x 
GI search path:
[PRE-MAIN]  [search-path] - /usr/lib/x86_64-linux-gnu/girepository-1.0
[PRE-MAIN]  [search-path] - /app/lib/girepository-1.0
[PRE-MAIN]  [search-path] - /app/lib/girepository-1.0
[PRE-MAIN] Current LD_LIBRARY_PATH: /app/lib:/app/lib/x86_64-linux-gnu:/lib64:/lib:/usr/lib64:/usr/lib:/usr/local/lib
2020-08-20 16:03:57,497 [MainThread  ] [DEBUG]  [MAIN] Creating settings manager...
2020-08-20 16:03:57,502 [MainThread  ] [DEBUG]  Creating settings in delayed mode...
2020-08-20 16:03:57,503 [MainThread  ] [INFO ]  Changing loglevel to 20
2020-08-20 16:03:57,503 [MainThread  ] [INFO ]  [MAIN] Using icon /home/stepan/.var/app/com.github.inercia.k3x/cache/icons/app.svg
2020-08-20 16:03:57,503 [MainThread  ] [INFO ]  [MAIN] Starting appindicator.Indicator
2020-08-20 16:03:57,520 [MainThread  ] [INFO ]  Creating/recreating docker client with DOCKER_HOST=unix:///var/run/docker.sock

(k3x:2): Gtk-CRITICAL **: 16:03:57.645: gtk_entry_set_text: assertion 'text != NULL' failed
Traceback (most recent call last):
  File "/app/bin/k3x", line 62, in <module>
    sys.exit(main.main(VERSION))
  File "/app/share/k3x/k3x/main.py", line 139, in main
    _indicator = Indicator(version=version)  # NOTE: assign for keeping the object alive
  File "/app/share/k3x/k3x/main.py", line 113, in __init__
    self._keybinder = Keybindings(self._settings, self._shortcuts)
  File "/app/share/k3x/k3x/keybindings.py", line 85, in __init__
    self._keybinder = SystemHotkey(check_queue_interval=0.01)
  File "/app/lib/python3.7/site-packages/system_hotkey/system_hotkey.py", line 614, in __init__
    self.conn = xcffib.connect()
  File "/app/lib/python3.7/site-packages/xcffib/__init__.py", line 527, in __init__
    self.invalid()
  File "/app/lib/python3.7/site-packages/xcffib/__init__.py", line 559, in invalid
    raise ConnectionException(err)
xcffib.ConnectionException: Connection closed, error during parsing display string.

from k3x.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.