dantheman213 / docker-kimchi

Kimchi/Wok running in a Docker container
2 stars 3 forks source link

Failed to connect to bus: no data available #1

Open mike391 opened 4 years ago

mike391 commented 4 years ago

Im getting the following error:

kimchi    | Generating DSA parameters, 2048 bit long prime
kimchi    | .............+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*
kimchi    | ..+.......+...............+..+..........+..............+.+...........+.........+..+......+.........+........................+....+...+....+.....................+...........+..........................+...............+...............................+...+.......+.+.+...+.......+.................+.....+.+......+......+......+.........+............................+....+..+......+.+....................+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*
kimchi    | rc: 1 error: Failed to connect to bus: No data available
kimchi    | Failed to connect to bus: No data available
kimchi    |  returned from cmd: service nginx status
kimchi    | Failed to connect to bus: No data available
kimchi    | Failed to connect to bus: No data available

Ive tried both the docker command you have on your github and also attempted to use docker-compose:

version: '3.1'
services:
  kimchi:
      container_name: kimchi
      image: dantheman213/kimchi:latest
      user: 0:0
      privileged: true
      restart: always
      ports:
        - 8001:8001
      volumes:
        - /srv/dev-disk-by-label-RAID/Docker/.config/kimchi/:/kimchi
        - /run/dbus/system_bus_socket:/run/dbus/system_bus_socket:ro
        - /etc/passwd:/etc/passwd:ro
        - /run:/run
        - /sys/fs/cgroup:/sys/fs/cgroup:ro
        - /etc/group:/etc/group:ro
        - /etc/shadow:/etc/shadow:ro
        - /var/run/libvirt/libvirt-sock:/var/run/libvirt/libvirt-sock
        - /var/lib/libvirt:/var/lib/libvirt
        - /etc/libvirt:/etc/libvirt
        - /srv/dev-disk-by-label-SSDSTORAGE/VM:/storage
      environment:
        PUID: 0
        GUID: 0
      network_mode: "bridge"

Not really sure whats up, any help would be appreciated :)

dantheman213 commented 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.

mike391 commented 4 years ago

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.

mike391 commented 4 years ago

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

dantheman213 commented 4 years ago

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/
mike391 commented 4 years ago

Yea, its very unfortunate. This seems to be the best webgui available at this point.

dantheman213 commented 4 years ago

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.

mike391 commented 4 years ago

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 .

--

mike391 commented 4 years ago

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 .

--

sneha2310 commented 2 years ago

Did anyone found the solutions??? I have also same error. image

Gentoli commented 1 year ago

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.