Repository navigation
New Install Behind a Proxy - get somethingWentWrongDescription #36376
Unanswered
danyoung236
asked this question in
Q&A
Replies: 1 comment
|
Converted this to a discussion as this is almost certainly a configuration issue with Apache. I would recommend to read the reverse proxy and hostname configuration guides. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Before reporting an issue
Area
welcome/ui
Describe the bug
Hi, using Apache as a reverse proxy I am trying to access Keycloak via Docker.
Would appreciate any ideas how to get the instance going.
Version
26.0.7
Regression
Expected behavior
Admin console to load.
Actual behavior
UI Errors:
somethingWentWrongDescription
Debug:
keycloak_1 | 2025-01-13 06:57:23,968 FINE [jakarta.activation] (executor-thread-1) MimeTypeRegistry: can't load from file - /usr/lib/jvm/java-21-openjdk-21.0.5.0.11-2.el9.x86_64/conf/mime.types: java.io.FileNotFoundException: /usr/lib/jvm/java-21-openjdk-21.0.5.0.11-2.el9.x86_64/conf/mime.types (No such file or directory)
keycloak_1 | at java.base/java.io.FileInputStream.open0(Native Method)
keycloak_1 | at java.base/java.io.FileInputStream.open(FileInputStream.java:213)
keycloak_1 | at java.base/java.io.FileInputStream.(FileInputStream.java:152)
keycloak_1 | at java.base/java.io.FileReader.(FileReader.java:75)
keycloak_1 | at org.eclipse.angus.activation.MimeTypeFile.(MimeTypeFile.java:47)
keycloak_1 | at org.eclipse.angus.activation.MimeTypeRegistryProviderImpl.getByFileName(MimeTypeRegistryProviderImpl.java:28)
keycloak_1 | at jakarta.activation.MimetypesFileTypeMap.loadFile(MimetypesFileTypeMap.java:263)
keycloak_1 | at jakarta.activation.MimetypesFileTypeMap.(MimetypesFileTypeMap.java:120)
keycloak_1 | at org.keycloak.common.util.MimeTypeUtil.(MimeTypeUtil.java:28)
keycloak_1 | at org.keycloak.services.resources.ThemeResource.getResource(ThemeResource.java:86)
keycloak_1 | at org.keycloak.services.resources.ThemeResource$quarkusrestinvoker$getResource_808824b51c03e102b8d400a19f17c54968201e8a.invoke(Unknown Source)
keycloak_1 | at org.jboss.resteasy.reactive.server.handlers.InvocationHandler.handle(InvocationHandler.java:29)
keycloak_1 | at io.quarkus.resteasy.reactive.server.runtime.QuarkusResteasyReactiveRequestContext.invokeHandler(QuarkusResteasyReactiveRequestContext.java:141)
keycloak_1 | at org.jboss.resteasy.reactive.common.core.AbstractResteasyReactiveContext.run(AbstractResteasyReactiveContext.java:147)
keycloak_1 | at io.quarkus.vertx.core.runtime.VertxCoreRecorder$14.runWith(VertxCoreRecorder.java:635)
keycloak_1 | at org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2516)
keycloak_1 | at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2495)
keycloak_1 | at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1521)
How to Reproduce?
Docker-compose file:
version: '3'
services:
keycloak:
image: quay.io/keycloak/keycloak:26.0.7
hostname: keycloak
command: start-dev
environment:
- KC_BOOTSTRAP_ADMIN_USERNAME=admin
- KC_BOOTSTRAP_ADMIN_PASSWORD=admin
- PROXY_ADDRESS_FORWARDING=true
- KC_HOSTNAME=keycloak
- KC_LOG_LEVEL=DEBUG
Apache Virtual Host:
ProxyPass / http://keycloak:8080/
ProxyPassReverse / http://keycloak:8080/
RequestHeader set Host "%{HTTP_HOST}e"
RequestHeader set X-Real-IP "%{REMOTE_ADDR}e"
RequestHeader set X-Forwarded-For "%{PROXY_ADD_X_FORWARDED_FOR}e"
RequestHeader set X-Forwarded-Proto "https"
Anything else?
No response
All reactions