Comments (7)
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.
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:
- 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
- Does k3x work with podman? #15
- Can k3x work on Silverblue? #16
from k3x.
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.
@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.
@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.
Error log is in the second message in this thread. My docker works and I enabled old cgroups
from k3x.
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)
- Sometimes settings are not properly saved
- keybindings consume too much CPU HOT 1
- Display errors in a graphical way
- Podman support? HOT 5
- Fedora Silverblue support? HOT 11
- Check clusters are running when starting
- Settings: auto-stop non-current clusters.
- [Feature Request] REST API support ? HOT 1
- Traceback when running k3x from flatpak HOT 6
- Add dependencies to the contributing section in README.md
- Cannot use docker via a SSH URL
- `make generate` fails on xpybutil and system_hotkey
- `make build` fails after regenerating the pypi-dependencies.json HOT 8
- Usage without tray icon?
- Run this without flatpack? HOT 1
- Problems starting k3x HOT 1
- It is in the games section of Discover (flatpak front-end) HOT 2
- end-of-life of dependency org.gnome.Platform//3.36 HOT 1
- Support for Ubuntu 22.04.1 LTS (Jammy Jellyfish)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k3x.