Open mike391 opened 4 years ago
I ran into this problem as well. I was able to overcome it by creating the SSL certificates beforehand which passes this problem and yet another problem was to be had. I forgot what it was but I paused there.
I updated the README for you to review. https://github.com/dantheman213/docker-kimchi/commit/a9c7937aa58fa50ee923e86aa60800e39694ccea
However, I'm skeptical about using this software because it seems to have been abandoned or very rarely worked on. There's no maintenance ore reliability so even on a hobby server this may present a problem if you're concerned about stability and uptime.
Let me know if you find a resolution; you're welcome to submit a pull request.
I was able to create the SSL files but they didnt get me past the error, either way your changes are very helpful. I have a feeling it could be kimchi itself since its not maintained actively. I also opened a PR to add my docker-compose file to this project since I already made it and it might help others who want to attempt to resolve this.
Actually to expand on my last comment, it seems like it may be an issue with the image itself. It looks like we are depending on systemctl / systemd, however docker has a bunch of quirks with that: https://askubuntu.com/questions/813588/systemctl-failed-to-connect-to-bus-docker-ubuntu16-04-container
Something like this looked promising: https://github.com/gdraheim/docker-systemctl-replacement
Did you create the dhparam file? I thought I stopped having that issue after creating dhparam, keys, and certificates.
Hmm, ok so tested this again and actually I am getting similar errors but just not related to SSL creation anymore.
docker run --name kimchi \
-v /etc/passwd:/etc/passwd:ro \
-v /run:/run \
-v /sys/fs/cgroup:/sys/fs/cgroup:ro \
-v /etc/group:/etc/group:ro \
-v /etc/shadow:/etc/shadow:ro \
-v /var/run/libvirt/libvirt-sock:/var/run/libvirt/libvirt-sock \
-v /var/lib/libvirt:/var/lib/libvirt \
-v /etc/libvirt:/etc/libvirt \
-v /storage:/storage \
-v /etc/wok/ssl/dhparams.pem:/etc/wok/dhparams.pem:ro \
-v /etc/wok/ssl/wok.crt:/etc/wok/wok-cert.pem:ro \
-v /etc/wok/ssl/wok.key:/etc/wok/wok-key.pem:ro \
-v /etc/kimchi/ssl/kimchi.crt:/etc/kimchi/kimchi-cert.pem:ro \
-v /etc/kimchi/ssl/kimchi.key:/etc/kimchi/kimchi-key.pem:ro \
-p 8001:8001 \
--user 0:0 \
--privileged \
dantheman213/kimchi:latest
....
rc: 1 error: Failed to connect to bus: No data available
Failed to connect to bus: No data available
returned from cmd: service nginx status
Failed to connect to bus: No data available
Failed to connect to bus: No data available
Testing even after getting error:
root@ip-172-100-100-100:~# curl http://localhost:8001/
curl: (56) Recv failure: Connection reset by peer
root@ip-172-100-100-100:~# curl --insecure https://localhost:8001/
Yea, its very unfortunate. This seems to be the best webgui available at this point.
You said you had some ideas to play with? I'm pretty busy this week but take what I have see if you can push it further. The Dockerfile looks mostly good just missing some last few pieces.
In the meantime, if you're really good with React I can whip up a backend in Golang or NodeJS very quickly we can just create our own solution! :) For now I've been using Proxmox because it does VM management very well but the GUI is very ugly. I've been playing with KVM command-line and NOVNC and I think creating your own web GUI is actually not all that hard.
Yea I'll try a few more things this evening or tomorrow evening. I actually do know react though so Id be open to helping out :). Do you have discord or something?
On Wed, Apr 22, 2020 at 2:32 PM Dan notifications@github.com wrote:
You said you had some ideas to play with? I'm pretty busy this week but take what I have see if you can push it further. The Dockerfile looks mostly good just missing some last few pieces.
In the meantime, if you're really good with React I can whip up a backend in Golang or NodeJS very quickly we can just create our own solution! :) For now I've been using Proxmox because it does VM management very well but the GUI is very ugly. I've been playing with KVM command-line and NOVNC and I think creating your own web GUI is actually not all that hard.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dantheman213/docker-kimchi/issues/1#issuecomment-617954408, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXQ46I2AXZKCLCGGJD37TLRN4Z4DANCNFSM4MNR7K2A .
--
Added!
On Wed, Apr 22, 2020 at 4:22 PM Dan notifications@github.com wrote:
I don't have a Discord server but you can add me at s3gf4ul7#5697. Confirm you got that so I can delete this message.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dantheman213/docker-kimchi/issues/1#issuecomment-618019032, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXQ46OT6QIZ4I2XOVPD2JDRN5GZRANCNFSM4MNR7K2A .
--
Did anyone found the solutions??? I have also same error.
Had Failed to connect to bus: No data available
from a k8s pod calling host systemctl
, ended up need to set hostPID: true
for it. Maybe the docker container here also needs that set.
Im getting the following error:
Ive tried both the docker command you have on your github and also attempted to use docker-compose:
Not really sure whats up, any help would be appreciated :)