IBM Support

HAWK console is not working ExecStart=/usr/bin/puma.ruby2.5 -C /usr/share/hawk/config/puma.rb (code=exited, status=1/FAILURE)

Troubleshooting


Problem

After new install HAWK interface is not working.

Symptom

Aug 15 17:58:20 TEST1 hawk-apiserver[38456]: 2021/08/15 17:58:20 http: TLS handshake error from 10.10.10.10:52596: EOF

Aug 15 18:00:45 TEST1 hawk-apiserver[38456]: 2021/08/15 18:00:45 http: TLS handshake error from 10.10.10.10:50509: remote error: tls: unknown certificate

2021-08-15T16:54:16.188528+03:00 test1 puma.ruby2.5[20959]: [20959] ! Unable to load application: Gem::ConflictError: Unable to activate sass-rails-5.1.0, because railties-5.1.4 conflicts with railties (>= 5.2.0)

Cause

The Package Hub repository is enabled, it is providing back ported packages, which are in conflict with the HA module dependencies.

Environment

SLES 15.2
HA-Extension
Package Hub Repository

Diagnosing The Problem

Check the hawk back end service:
 hawk-backend.service - HA Web Konsole Backend

   Loaded: loaded (/usr/lib/systemd/system/hawk-backend.service; static; vendor preset: disabled)

   Active: failed (Result: exit-code) since Sun 2021-08-15 17:43:46 +03; 1 day 4h ago

  Process: 38451 ExecStart=/usr/bin/puma.ruby2.5 -C /usr/share/hawk/config/puma.rb (code=exited, status=1/FAILURE)

 Main PID: 38451 (code=exited, status=1/FAILURE)

Aug 15 17:43:46 TEST1 puma.ruby2.5[38451]:         from /usr/lib64/ruby/gems/2.5.0/gems/puma-4.3.5/lib/puma/runner.rb:155:in `load_and_bind'

Aug 15 17:43:46 TEST1 puma.ruby2.5[38451]:         from /usr/lib64/ruby/gems/2.5.0/gems/puma-4.3.5/lib/puma/cluster.rb:413:in `run'

Aug 15 17:43:46 TEST1 puma.ruby2.5[38451]:         from /usr/lib64/ruby/gems/2.5.0/gems/puma-4.3.5/lib/puma/launcher.rb:172:in `run'

Aug 15 17:43:46 TEST1 puma.ruby2.5[38451]:         from /usr/lib64/ruby/gems/2.5.0/gems/puma-4.3.5/lib/puma/cli.rb:80:in `run'

Aug 15 17:43:46 TEST1 puma.ruby2.5[38451]:         from /usr/lib64/ruby/gems/2.5.0/gems/puma-4.3.5/bin/puma:10:in `<top (required)>'

Aug 15 17:43:46 TEST1 puma.ruby2.5[38451]:         from /usr/bin/puma.ruby2.5:23:in `load'

Aug 15 17:43:46 TEST1 puma.ruby2.5[38451]:         from /usr/bin/puma.ruby2.5:23:in `<main>'

Aug 15 17:43:46 TEST1 systemd[1]: hawk-backend.service: Main process exited, code=exited, status=1/FAILURE

Aug 15 17:43:46 TEST1 systemd[1]: hawk-backend.service: Unit entered failed state.

Aug 15 17:43:46 TEST1 systemd[1]: hawk-backend.service: Failed with result 'exit-code'.
Check the messages file for:
Aug 15 17:58:20 TEST1 hawk-apiserver[38456]: 2021/08/15 17:58:20 http: TLS handshake error from 10.10.10.10:52596: EOF

Aug 15 18:00:45 TEST1 hawk-apiserver[38456]: 2021/08/15 18:00:45 http: TLS handshake error from 10.10.10.10:50509: remote error: tls: unknown certificate

2021-08-15T16:54:16.188528+03:00 test1 puma.ruby2.5[20959]: [20959] ! Unable to load application: Gem::ConflictError: Unable to activate sass-rails-5.1.0, because railties-5.1.4 conflicts with railties (>= 5.2.0)

Check the packages for bp packages like:
ruby2.5-rubygem-railties-5.2        SUSE Linux Enterprise 15 SP2        5.2.3-bp152.3.13 <<< bp=backported
ruby2.5-rubygem-railties-5_1        SUSE Linux Enterprise 15            5.1.4-3.3.1

SUSE_Package_Hub_15_SP2_ppc64l

Resolving The Problem

1. Remove HAWK2
2. Remove the unwanted BP packages
3. Disable SUSE_Package_Hub_15_SP2_ppc64l repository
4. Install HAWK2
zypper remove hawk2
zypper remove ruby2.5-rubygem-railties-5.2-5.2.3-bp152.3.13.ppc64le ruby2.5-rubygem-sass-rails-5.1-5.1.0-bp152.1.9.ppc64le
zypper lr           # note SUSE_Package_Hub_15_SP2_ppc64l repo number
zypper mr -d 6 #disable repo number 6 as example swap with the one from the previous command
zypper ref
zypper in hawk2

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SGMV168","label":"IBM Support for SUSE Linux Enterprise Server"},"ARM Category":[{"code":"a8m0z0000001ey9AAA","label":"SUSE Linux Enterprise High Availability"}],"ARM Case Number":"TS006526222","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Document Information

Modified date:
18 August 2021

UID

ibm16482189