kimchi-project / kimchi

An HTML5 management interface for KVM guests
https://github.com/kimchi-project/kimchi/releases/latest
Other
3.08k stars 365 forks source link

Ubuntu installation problems - wokd service not starting. #1289

Closed pallebone closed 4 years ago

pallebone commented 4 years ago

Tried my best to follow a guide on installing Kimchi but getting stuck starting the wokd service. Would anyone know what to do? Websoxketproxy is installed.

Output of

sudo systemctl -l status wokd.service

● wokd.service - Wok - Webserver Originated from Kimchi Loaded: loaded (/lib/systemd/system/wokd.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/wokd.service.d └─kimchi.conf Active: failed (Result: exit-code) since Fri 2019-12-13 20:28:41 EST; 17min ago Docs: https://github.com/kimchi-project/wok/wiki Process: 1122 ExecStart=/usr/bin/wokd (code=exited, status=1/FAILURE) Main PID: 1122 (code=exited, status=1/FAILURE)

Dec 13 20:28:40 Shinobi wokd[1122]: Traceback (most recent call last): Dec 13 20:28:40 Shinobi wokd[1122]: File "/usr/bin/wokd", line 30, in Dec 13 20:28:40 Shinobi wokd[1122]: import wok.server Dec 13 20:28:40 Shinobi wokd[1122]: File "/usr/lib/python2.7/dist-packages/wok/server.py", line 28, in Dec 13 20:28:40 Shinobi wokd[1122]: from wok import auth, config, websocket Dec 13 20:28:40 Shinobi wokd[1122]: File "/usr/lib/python2.7/dist-packages/wok/websocket.py", line 28, in Dec 13 20:28:40 Shinobi wokd[1122]: from websockify import WebSocketProxy Dec 13 20:28:40 Shinobi wokd[1122]: ImportError: No module named websockify Dec 13 20:28:41 Shinobi systemd[1]: wokd.service: Main process exited, code=exited, status=1/FAILURE Dec 13 20:28:41 Shinobi systemd[1]: wokd.service: Failed with result 'exit-code'. ~ BA458909-62F9-49C0-948F-DCDEF45FCC76

Desktop (please complete the following information):

aparajit0 commented 4 years ago

I'm having the same issue on Ubuntu Desktop 19.10.

Kiln707 commented 4 years ago

I had the same issue on Ubuntu 18.10. I worked around this by running sudo -H pip3 install websockify Wok is running for me

pallebone commented 4 years ago

Unfortunately for me running : sudo -H pip3 install websockify returned the following - Requirement already satisfied: websockify in /usr/lib/python3/dist-packages (0.8.0) So it is already installed but not able to be detected on 20.04.

P

Kiln707 commented 4 years ago

I'm sorry, I looked closer at what you posted with your problem and realized i made a mistake. It appears you are using version 2.5 release, which uses python2. The front page readme is updated as 3.0 uses python3.

In your case, try sudo -H pip install websockify

pallebone commented 4 years ago

Thank you, I can confirm this resolves the problem.

alinefm commented 4 years ago

I will close this issue as it was already solved.

Please, try to update to the latest version ans follow the instructions at https://github.com/kimchi-project/kimchi/releases/tag/3.0.0