You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "snaman-ic (via GitHub)" <gi...@apache.org> on 2025/11/05 02:10:57 UTC

[I] arm64 Docker image for 4.14.0 has a fatal JavaScript error: "Cannot set properties of undefined (setting 'Activity')" [camel-karavan]

snaman-ic opened a new issue, #1559:
URL: https://github.com/apache/camel-karavan/issues/1559

   ### Describe the bug
   
   I am unable to get the Karavan UI to load when using the official `arm64` Docker image for version `4.14.0` on a Windows ARM64 (Snapdragon X) laptop running WSL2.
   
   **Symptoms:**
   *   The Karavan container starts successfully and the backend appears to be running correctly.
   *   When accessing the UI in a browser at `http://localhost:9080`, all HTML, CSS, and JS assets are served with a `200 OK` status.
   *   However, the page remains blank, and the browser's developer console shows a fatal JavaScript error:
       ```
       Uncaught TypeError: Cannot set properties of undefined (setting 'Activity')
           at $y (vendor-react-C1wtmXWL.js:17:4566)
           at Bc (vendor-react-C1wtmXWL.js:17:7678)
           at Wk (vendor-other-BCglBVzV.js:36:52)
           at Kk (vendor-other-BCglBVzV.js:36:867)
           at vendor-other-BCglBVzV.js:36:891
       ```
   
   **Environment:**
   *   **Host OS:** Windows 11 ARM64 (Snapdragon X)
   *   **Docker Environment:** Docker Engine running in WSL2 (Ubuntu)
   *   **Docker Engine Architecture:** `aarch64` (native ARM64)
   
   **Troubleshooting Steps Taken:**
   I have confirmed this is not an environment or configuration issue. We have successfully:
   1.  Fixed an `exec format error` in the `:latest` tag.
   2.  Fixed an `UnsupportedClassVersionError` in the `4.14.0` tag by repackaging the application with a Java 21 JRE.
   3.  Resolved all backend configuration requirements (`KARAVAN_GIT_REPOSITORY`, `QUARKUS_OIDC_AUTH_SERVER_URL`, `KARAVAN_AUTH=disabled`, etc.).
   4.  The backend is now fully operational and serves all frontend assets correctly.
   
   This appears to be a bug in the frontend build of the `4.14.0` release. Could you please investigate? Thank you.
   
   ### Steps to reproduce the behavior
   
   The final blocking issue is this specific JavaScript error, which points to a bug in the pre-compiled frontend code for the `4.14.0` `arm64` release.
   
   **My `dockerfile`:**
   ```dockerfile
   # Stage 1: Use the 4.14.0 image as a builder
   FROM ghcr.io/apache/camel-karavan:4.14.0 AS builder
   
   # Stage 2: Create the final image with a correct JRE
   FROM eclipse-temurin:21-jre
   ENV JAVA_OPTS="-Dquarkus.http.host=0.0.0.0"
   WORKDIR /opt/app/
   COPY --from=builder /opt/app/karavan.jar .
   CMD ["java", "-jar", "karavan.jar"]
   ```
   
   **My `docker-compose.yaml`:**
   ```yaml
   services:
     karavan:
       build: .
       container_name: karavan.immunochain.com
       platform: linux/arm64 
       ports:
         - "9080:8080"
       environment:
         - QUARKUS_OIDC_AUTH_SERVER_URL=http://localhost:9080/
         - KARAVAN_AUTH=disabled
         - QUARKUS_HTTP_ROOT_PATH=/
         - KARAVAN_GIT_REPOSITORY=/karavan/git 
       volumes:
         - /var/run/docker.sock:/var/run/docker.sock
         - ../karavan-git-repo:/karavan/git```
   
   ### Variant
   
   Web Application
   
   ### Container Management (if applicable)
   
   None
   
   ### Operating System (if applicable)
   
   Windows
   
   ### Version
   
   4.14.0
   
   ### Relevant log output
   
   ```shell
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] arm64 Docker image for 4.14.0 has a fatal JavaScript error: "Cannot set properties of undefined (setting 'Activity')" [camel-karavan]

Posted by "mgubaidullin (via GitHub)" <gi...@apache.org>.
mgubaidullin commented on issue #1559:
URL: https://github.com/apache/camel-karavan/issues/1559#issuecomment-3498000155

   Please use released version
   https://github.com/apache/camel-karavan/releases


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] arm64 Docker image for 4.14.0 has a fatal JavaScript error: "Cannot set properties of undefined (setting 'Activity')" [camel-karavan]

Posted by "mgubaidullin (via GitHub)" <gi...@apache.org>.
mgubaidullin closed issue #1559: arm64 Docker image for 4.14.0 has a fatal JavaScript error: "Cannot set properties of undefined (setting 'Activity')"
URL: https://github.com/apache/camel-karavan/issues/1559


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org