Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPMI Access on SuperMicro - nojava-ipmi-kvm #27

Open
mcaselani opened this issue Jul 2, 2024 · 8 comments
Open

IPMI Access on SuperMicro - nojava-ipmi-kvm #27

mcaselani opened this issue Jul 2, 2024 · 8 comments

Comments

@mcaselani
Copy link

Hello There!

Im trying to use nojava to access and ipmi endpoint, but while accessing the provided url he almost immediately shuts down de novnc screen and shots a button to reconnect. When i try to do that, the process repeat over and over, i can see vnc trying to connect to something before throwing me back to reconnect button.

Providing a full run with --debug would help ?

its seems to be a problem with javaws or x11vnc, but im not so sure.

@Jeff-liaojinfu
Copy link

Jeff-liaojinfu commented Jul 2, 2024 via email

@IngoMeyer441
Copy link
Member

Yes, a run with debug output would be helpful. I guess it is some kind of misconfiguration of API endpoints.

@mcaselani
Copy link
Author

mcaselani commented Jul 3, 2024

Hi @IngoMeyer441 , thank you for your reply.

Attached the log file output to this quote.

nojava-debug-output.txt

File .nojava-ipmi-kvmrc.yaml content:

templates:
  ikvm-supermicro:
    skip_login: False
    login_user: <some_user>
    login_endpoint: cgi/login.cgi
    allow_insecure_ssl: true
    user_login_attribute_name: name
    password_login_attribute_name: pwd
    send_post_data_as_json: False
    session_cookie_key: SID
    download_endpoint: cgi/url_redirect.cgi?url_name=ikvm&url_type=jwsk
    java_version: 8u91
    format_jnlp: False
hosts:
  <some_host>:
    based_on: ikvm-supermicro
    full_hostname: <some_host>.fqdn

@IngoMeyer441
Copy link
Member

Thanks for the log output. Your configuration seems to be ok (the jnlp file can be downloaded and executed by javaws), but javaws quits with a segmentation fault:

2024-07-03 16:08:49,413 DEBG 'javaws' stdout output:
SIGSEGV (0xb) at pc=0x00007ffffe3d73cd, pid=390, tid=140737370728192

For whatever reason, this even kills the X server and this terminates your VNC session.

Did you already try other Java versions? Available ones are: 7u51, 7u79, 7u181, 8u91, 8u242. If these do not work, you have a good chance, that the original Oracle Java implementation works instead. For licensing reasons, this project does not deliver any Oracle Java runtimes, but you can build an image with Oracle Java yourself quite easily: https://github.com/sciapp/nojava-ipmi-kvm?tab=readme-ov-file#using-oracle-java.

@mcaselani
Copy link
Author

Hey There,

To be honest, i tried this version present in the file and the 7u181 only. I will make some new tests while trying any other version and if i cant get it working, i will try building my own image with Oracle as mentioned.

Will update this thread ASAP with any news. Thank you so much.

@mcaselani
Copy link
Author

Hey there,

new Update, tried every single Java Version listed here, all of them im getting the same result. I notice that i only have one docker image:

sciapp/nojava-ipmi-kvm v0.9.2-openjdk-8

I thought changing the runtime version would download a new version instead of using the same ... Im wrong ? while waiting for your reply, im gonna try building up my own oracle java image.

Thank you!

@Jeff-liaojinfu
Copy link

Jeff-liaojinfu commented Jul 18, 2024 via email

@IngoMeyer441
Copy link
Member

I thought changing the runtime version would download a new version instead of using the same ... Im wrong?

No, you are right, you should see different Docker images. The debug log should contain which image was actually used. Could you check this?

while waiting for your reply, im gonna try building up my own oracle java image.

Oracle Java should have the best compatibility. However, we also use OpenJDK with SuperMicro and had only few issues so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants