[
https://issues.apache.org/jira/browse/KNOX-3167?focusedWorklogId=973934&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-973934
]
ASF GitHub Bot logged work on KNOX-3167:
----------------------------------------
Author: ASF GitHub Bot
Created on: 09/Jul/25 07:59
Start Date: 09/Jul/25 07:59
Worklog Time Spent: 10m
Work Description: smolnar82 opened a new pull request, #1058:
URL: https://github.com/apache/knox/pull/1058
## What changes were proposed in this pull request?
Upgraded the following dependencies:
- NodeJS to `v16.x`: this was necessary because this is the first Node
version that supports ARM64
- `frontend-maven-plugin` to `1.15`: without this upgrade the plugin tried
to download the x64 artifact
- JNA to `5.9.0`: after Knox was built and redeployed, the Knox Home page
was buggy due to the incompatible UnixCLibrary loading on ARM64 so that I'd to
upgrade to a version where it's supported
## How was this patch tested?
Confirmed Knox is built:
```
smolnar $ mvn -DskipTests -Dcheckstyle.skip=true -Dfindbugs.skip=true
-Dpmd.skip=true -Drat.skip -Dspotbugs.skip=true -Dforbiddenapis.skip=true
-Ppackage clean install
...
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 02:48 min
[INFO] Finished at: 2025-07-09T09:41:33+02:00
[INFO]
------------------------------------------------------------------------
```
Did a smoke test on the Knox UIs and they seem to work properly:
<img width="1712" alt="image"
src="https://github.com/user-attachments/assets/f8a39cc1-70b6-4299-a37f-33a0348679f9"
/>
<img width="1712" alt="image"
src="https://github.com/user-attachments/assets/72ef0600-f701-474c-bf70-07ffd619ad15"
/>
<img width="1710" alt="image"
src="https://github.com/user-attachments/assets/1f52f6c8-a160-4983-9853-d277ae2324c8"
/>
I also confirmed that there were no errors in the logs.
Issue Time Tracking
-------------------
Worklog Id: (was: 973934)
Remaining Estimate: 0h
Time Spent: 10m
> UI builds won't work with ARM64
> -------------------------------
>
> Key: KNOX-3167
> URL: https://issues.apache.org/jira/browse/KNOX-3167
> Project: Apache Knox
> Issue Type: Bug
> Components: AdminUI, TokenGenerationUI, TokenManagementUI
> Affects Versions: 1.5.0, 1.6.0
> Reporter: Sandor Molnar
> Assignee: Sandor Molnar
> Priority: Major
> Fix For: 2.0.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Trying to build Knox on a machine with ARM64 CPU ends up in the following
> failure:
> {code}
> INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 6.909 s
> [INFO] Finished at: 2025-07-09T08:42:01+02:00
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> com.github.eirslett:frontend-maven-plugin:1.15.1:npm (npm install) on project
> gateway-admin-ui: Failed to run task: 'npm install' failed.
> java.io.IOException: Cannot run program
> "/Users/smolnar/projects/knox/gateway-admin-ui/target/node/node" (in
> directory "/Users/smolnar/projects/knox/gateway-admin-ui"): error=86, Bad CPU
> type in executable -> [Help 1]
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)