MisterCalvin / supermicro-java-ikvm

A container for connecting to Supermicro Java based iKVM viewers via a web browser
MIT License
23 stars 6 forks source link

50-setup-ikvm.sh: terminated with error 1. #3

Open Knogle opened 5 months ago

Knogle commented 5 months ago

Hey, fine project you got here :)

Unfortunately i am not able to run the docker, using the docker-compose script. Maybe you can help out in this case :)

Thanks in advance!


 ✔ Network root_default            Created                                 0.1s 
 ✔ Volume "supermicro-java-ikvm"   Crea...                                 0.0s 
 ✔ Container supermicro-java-ikvm  Cre...                                  0.9s 
Attaching to supermicro-java-ikvm
supermicro-java-ikvm  | [init        ] container is starting...
supermicro-java-ikvm  | [cont-env    ] loading container environment variables...
supermicro-java-ikvm  | [cont-env    ] APP_NAME: loading...
supermicro-java-ikvm  | [cont-env    ] APP_VERSION: loading...
supermicro-java-ikvm  | [cont-env    ] DISPLAY: executing...
supermicro-java-ikvm  | [cont-env    ] DISPLAY: terminated successfully.
supermicro-java-ikvm  | [cont-env    ] DISPLAY: loading...
supermicro-java-ikvm  | [cont-env    ] DOCKER_IMAGE_PLATFORM: loading...
supermicro-java-ikvm  | [cont-env    ] DOCKER_IMAGE_VERSION: loading...
supermicro-java-ikvm  | [cont-env    ] GTK2_RC_FILES: executing...
supermicro-java-ikvm  | [cont-env    ] GTK2_RC_FILES: terminated successfully.
supermicro-java-ikvm  | [cont-env    ] GTK2_RC_FILES: loading...
supermicro-java-ikvm  | [cont-env    ] GTK_THEME: executing...
supermicro-java-ikvm  | [cont-env    ] GTK_THEME: terminated successfully.
supermicro-java-ikvm  | [cont-env    ] GTK_THEME: loading...
supermicro-java-ikvm  | [cont-env    ] HOME: loading...
supermicro-java-ikvm  | [cont-env    ] JAVA_OPTS: loading...
supermicro-java-ikvm  | [cont-env    ] QT_STYLE_OVERRIDE: executing...
supermicro-java-ikvm  | [cont-env    ] QT_STYLE_OVERRIDE: terminated successfully.
supermicro-java-ikvm  | [cont-env    ] QT_STYLE_OVERRIDE: loading...
supermicro-java-ikvm  | [cont-env    ] TAKE_CONFIG_OWNERSHIP: loading...
supermicro-java-ikvm  | [cont-env    ] XDG_CACHE_HOME: loading...
supermicro-java-ikvm  | [cont-env    ] XDG_CONFIG_HOME: loading...
supermicro-java-ikvm  | [cont-env    ] XDG_DATA_HOME: loading...
supermicro-java-ikvm  | [cont-env    ] XDG_RUNTIME_DIR: loading...
supermicro-java-ikvm  | [cont-env    ] XDG_STATE_HOME: loading...
supermicro-java-ikvm  | [cont-env    ] container environment variables initialized.
supermicro-java-ikvm  | [cont-secrets] loading container secrets...
supermicro-java-ikvm  | [cont-secrets] container secrets loaded.
supermicro-java-ikvm  | [cont-init   ] executing container initialization scripts...
supermicro-java-ikvm  | [cont-init   ] 10-certs.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 10-certs.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 10-check-app-niceness.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 10-check-app-niceness.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 10-clean-logmonitor-states.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 10-clean-logmonitor-states.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 10-clean-tmp-dir.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 10-clean-tmp-dir.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 10-fontconfig-cache-dir.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 10-fontconfig-cache-dir.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 10-init-users.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 10-init-users.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 10-nginx.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 10-nginx.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 10-openbox.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 10-openbox.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 10-pkgs-mirror.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 10-pkgs-mirror.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 10-set-tmp-dir-perms.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 10-set-tmp-dir-perms.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 10-vnc-password.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 10-vnc-password.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 10-web-data.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 10-web-data.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 10-x11-unix.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 10-x11-unix.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 10-xdg-runtime-dir.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 10-xdg-runtime-dir.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 15-cjk-font.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 15-cjk-font.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 15-install-pkgs.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 15-install-pkgs.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 50-setup-ikvm.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 50-setup-ikvm.sh: terminated with error 1.
supermicro-java-ikvm exited with code 1
MisterCalvin commented 5 months ago

Can you give me the details for your Supermicro hardware you're trying to connect to? (Motherboard, BMC model, BMC firmware, motherboard firmware)

Also set the environment variable CONTAINER_DEBUG=1 and post the log output

Knogle commented 5 months ago

Hey :) I'd like to use a Supermicro X9SCM-F. With Winbond 450 BMC. Currently i can't even get the docker running, that's my issue, because during creation it fails. I'll try with CONTAINER_DEBUG=1.

MisterCalvin commented 5 months ago

From your original logs, the container is failing at 50-setup-ikvm.sh, which is the KVM wrapper responsible for your grabbing all of the necessary files / login details for our KVM session inside the container. With CONTAINER_DEBUG=1 set I will have a better idea as to why it is failing.

Knogle commented 5 months ago

Hey, i hope you are doing fine! Something might be of interest. I am using this version. SMT_X9_364 for the BMC. Also the Supermicro IPMI View doesn't work with that. Do you want to give it a try maybe, so you can check it out as well?

MisterCalvin commented 5 months ago

Are your Docker host and Supermicro IPMI on the same network? Or is there a firewall with restrictive rules in-between them? If this is the case you may need to create an allow rule for TCP port 5900 and TCP port 623 (if you need virtual media) to your Supermicro host.

I also published a debug image, will you try running ghcr.io/mistercalvin/supermicro-java-ikvm:x86-1.0.1_debug and posting the log output? Please check the logs before posting as they may contain sensitive information.

robsonek commented 5 months ago

I have the same issue on MacBook Pro M1

2024-05-07 22:21:52 [cont-init   ] 10-xdg-runtime-dir.sh: terminated successfully.
2024-05-07 22:21:52 [cont-init   ] 15-cjk-font.sh: executing...
2024-05-07 22:21:52 [cont-init   ] 15-cjk-font.sh: terminated successfully.
2024-05-07 22:21:52 [cont-init   ] 15-install-pkgs.sh: executing...
2024-05-07 22:21:52 [cont-init   ] 15-install-pkgs.sh: terminated successfully.
2024-05-07 22:21:52 [cont-init   ] 50-setup-ikvm.sh: executing...
2024-05-07 22:21:53 [cont-init   ] 50-setup-ikvm.sh: terminated with error 1.
robsonek commented 5 months ago

ok, I have solution for this error. You need to update IPMI firmware to newest version. Tested on X9SCL-F

trulow commented 4 months ago

@robsonek How did you update the IPMI to the newest version for the docker container?

robsonek commented 3 months ago

@robsonek How did you update the IPMI to the newest version for the docker container?

Just download it from https://www.supermicro.com/support/resources/bios_ipmi.php?type=BMC and upload it to your Motherboard using e.g. FreeDos