Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-15261

basic docker install instructions, console login Not Authorized

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Minor Minor
    • None
    • 14.0.19.Final
    • Docker
    • None
    • Hide
      The fact that the server logs that it is listening on {{0.0.0.0}} means that is binding to all available interfaces, but you should not use that address to connect to it, but the container IP instead. Use something like {{docker inspect container-name |grep IPAddress}} to get the actual address.
      Show
      The fact that the server logs that it is listening on {{0.0.0.0}} means that is binding to all available interfaces, but you should not use that address to connect to it, but the container IP instead. Use something like {{docker inspect container-name |grep IPAddress}} to get the actual address.

      Just starting setting up external Infinispan caching for our Keycloak instances. I followed the instructions on this page using this command `docker run -it -p 11222:11222 -e USER="admin" -e PASS="password" quay.io/infinispan/server:14.0`.

       

      The server starts and log looks good as it states it's listening on 0.0.0.0:11222 as expected.

      However when I enter this in my local browser (chrome Version 118.0.5993.88) I get redirected to `http://0.0.0.0:11222/console/welcome` as expected. The image dialog button text is *Open the console*. Clicking this does nothing. Inspecting with debugger, I see this error regardless of what I select. Here's the error when clicking `Open console`
      ```
      GET http://0.0.0.0:11222/rest/v2/server net::ERR_ABORTED 401 (Unauthorized) authService.ts:152
      ```

      ```
      Request URL:
      http://0.0.0.0:11222/rest/v2/server
      Request Method:
      GET
      Status Code:
      401 Unauthorized
      Remote Address:
      0.0.0.0:11222
      Referrer Policy:
      strict-origin-when-cross-origin
      ```

       

            Unassigned Unassigned
            paulbruno paul bruno (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: