kimchi-project / kimchi

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

Exception in thread KimchiLibvirtEventLoop #963

Closed rafaelsoaresbr closed 8 years ago

rafaelsoaresbr commented 8 years ago

Trying to get kimchi running on Arch Linux (VBox Machine):

uname -a

Linux arch-vbox 4.6.2-1-ARCH #1 SMP PREEMPT Wed Jun 8 08:40:59 CEST 2016 x86_64 GNU/Linux

I'm geting the following errors when starting wok up:

# systemctl start wokd
# systemctl status wokd

● wokd.service - Wok - Webserver Originated from Kimchi Loaded: loaded (/usr/lib/systemd/system/wokd.service; disabled; vendor preset: disabled) Drop-In: /etc/systemd/system/wokd.service.d └─ginger.conf, kimchi.conf Active: failed (Result: exit-code) since Dom 2016-06-19 11:15:00 AMT; 1min 31s ago Process: 857 ExecStop=/bin/kill -TERM $MAINPID (code=exited, status=1/FAILURE) Process: 618 ExecStart=/usr/bin/wokd (code=exited, status=1/FAILURE) Main PID: 618 (code=exited, status=1/FAILURE) Tasks: 2 (limit: 512) CGroup: /system.slice/wokd.service ├─701 nginx: master process nginx -c /etc/nginx/conf.d/wok.con └─702 nginx: worker process

Jun 19 11:14:59 arch-vbox wokd[618]: Exception in thread KimchiLibvirtEventLoop (most likely raised during interpreter shutdown): Jun 19 11:14:59 arch-vbox wokd[618]: Traceback (most recent call last): Jun 19 11:14:59 arch-vbox wokd[618]: File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner Jun 19 11:14:59 arch-vbox wokd[618]: File "/usr/lib/python2.7/site-packages/cherrypy/process/plugins.py", line 519, in run Jun 19 11:14:59 arch-vbox wokd[618]: <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'sleep' Jun 19 11:15:00 arch-vbox systemd[1]: wokd.service: Main process exited, code=exited, status=1/FAILURE Jun 19 11:15:00 arch-vbox kill[857]: kill: argumentos insuficientes Jun 19 11:15:00 arch-vbox systemd[1]: wokd.service: Control process exited, code=exited status=1 Jun 19 11:15:00 arch-vbox systemd[1]: wokd.service: Unit entered failed state. Jun 19 11:15:00 arch-vbox systemd[1]: wokd.service: Failed with result 'exit-code'.

pvital commented 8 years ago

Hi @rafaelsoaresbr

Nice you are trying to run Wok and Kimchi in Arch Linux. I have never saw any try on this distro. Could you provide us more info about your environment: distro version, libvirt version, wok and kimchi version, how did you installed wok and kimchi.

Also, can you pastebin the output of the command "/usr/bin/wokd --environment=dev" or the content of the /var/log/wok/wok-error.log file ? This command will prompt any error on console (the same content you'll find on error log).

rafaelsoaresbr commented 8 years ago

Thanks for quick reply, I'm trying to package kimchi-project on AUR: https://github.com/rafaelsoaresbr/wok-git https://github.com/rafaelsoaresbr/ginger-base-git https://github.com/rafaelsoaresbr/ginger-git https://github.com/rafaelsoaresbr/kimchi-git

uname -a

Linux arch-vbox 4.6.2-1-ARCH #1 SMP PREEMPT Wed Jun 8 08:40:59 CEST 2016 x86_64 GNU/Linux

libvirtd --version

libvirtd (libvirt) 1.3.5

WoK, Ginger, Kimchi and Ginger-base built from source with this command:

PYTHON=/usr/bin/python2 ./autogen.sh --system && make
make install
sudo systemctl start wokd
sudo systemctl status wokd

�� wokd.service - Wok - Webserver Originated from Kimchi Loaded: loaded (/usr/lib/systemd/system/wokd.service; disabled; vendor preset: disabled) Drop-In: /etc/systemd/system/wokd.service.d ������ginger.conf, kimchi.conf Active: active (running) since Sun 2016-06-19 17:18:58 AMT; 2s ago Main PID: 582 (python2) Tasks: 5 (limit: 512) CGroup: /system.slice/wokd.service ������582 python2 /usr/bin/wokd ������675 nginx: master process nginx -c /etc/nginx/conf.d/wok.con ������676 nginx: worker process

Jun 19 17:18:58 arch-vbox systemd[1]: Started Wok - Webserver Originated from Kimchi.

sudo /usr/bin/wokd --environment=dev

nginx: [emerg] bind() to 0.0.0.0:8001 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:8000 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:8001 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:8000 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:8001 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:8000 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:8001 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:8000 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:8001 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:8000 failed (98: Address already in use) nginx: [emerg] still could not bind() * Ginger Base: Running capabilities tests * System Report Tool ...: False System Update Tool ...: False GGBREPOS0014E: GGBREPOS0014E Repo Management Tool .: None * Ginger Base: Capabilities tests completed * GGBREPOS0014E: GGBREPOS0014E GGBREPOS0014E: GGBREPOS0014E libvirt: QEMU Driver error : Domain not found: no domain with matching name 'FEATURETEST_VM' libvirt: Storage Driver error : Storage pool not found: no storage pool with matching name 'FEATURETEST_POOL'

* Kimchi: Running feature tests * Service Libvirtd running ...: True libvirt: error : Cannot find '' in path: No such file or directory Cannot find '' in path: No such file or directory NFS Target Probe support ...: False Fibre Channel Host support .: True Kernel VFIO support ........: True Network Manager running ....: False libvirt: Capabilities Utils error : invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm Memory Hotplug support .....: False * Kimchi: Feature tests completed *

libvirt: Capabilities Utils error : invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm Traceback (most recent call last): File "/usr/bin/wokd", line 106, in sys.exit(main(sys.argv[1:])) File "/usr/bin/wokd", line 103, in main wok.server.main(options) File "/usr/lib/python2.7/site-packages/wok/server.py", line 250, in main srv = Server(options) File "/usr/lib/python2.7/site-packages/wok/server.py", line 182, in init self._load_plugins(options) File "/usr/lib/python2.7/site-packages/wok/server.py", line 203, in _load_plugins plugin_app = import_class(plugin_class)(options) File "/usr/lib/python2.7/site-packages/wok/plugins/kimchi/root.py", line 51, in init self.model = kimchiModel.Model() File "/usr/lib/python2.7/site-packages/wok/plugins/kimchi/model/model.py", line 71, in init models.append(instance(kargs)) File "/usr/lib/python2.7/site-packages/wok/plugins/kimchi/model/storagevolumes.py", line 553, in init self.storagevolume = StorageVolumeModel(kargs) File "/usr/lib/python2.7/site-packages/wok/plugins/kimchi/model/storagevolumes.py", line 279, in init self.libvirt_user = UserTests().probe_user() File "/usr/lib/python2.7/site-packages/wok/plugins/kimchi/kvmusertests.py", line 59, in probe_user dom = conn.createXML(xml, flags=f) File "/usr/lib/python2.7/site-packages/libvirt.py", line 3727, in createXML if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self) libvirt.libvirtError: invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm

cat /var/log/wok/wok-error.log

* Ginger Base: Running capabilities tests * System Report Tool ...: False System Update Tool ...: False GGBREPOS0014E: GGBREPOS0014E Repo Management Tool .: None * Ginger Base: Capabilities tests completed * GGBREPOS0014E: GGBREPOS0014E GGBREPOS0014E: GGBREPOS0014E

* Kimchi: Running feature tests * Service Libvirtd running ...: True Cannot find '' in path: No such file or directory NFS Target Probe support ...: False Fibre Channel Host support .: True Kernel VFIO support ........: True Network Manager running ....: False Memory Hotplug support .....: False * Kimchi: Feature tests completed *

I can upload the packages if you need.

pvital commented 8 years ago

@rafaelsoaresbr looks like you are facing the same issue reported in #813. Can you check the solution provided there and reply here with a solution for ArchLinux?

rafaelsoaresbr commented 8 years ago

@pvital Ok, I've been installing kimchi on a real machine, if necessary I'll be back here. Please take a look at #964