【问题标题】:Cannot start Keycloak 19.0.2 on Azure无法在 Azure 上启动 Keycloak 19.0.2
【发布时间】:2022-10-20 20:44:22
【问题描述】:

我有一个托管在 Azure 上的 Linux VM。在这个 VM 上,我“安装”了 Keycloak 19.0.2 的独立版本。当我使用 SSH 连接到 VM 时,我可以简单地使用 bin/kc.sh start-dev 启动服务器。这工作没有任何问题。

现在我想在 VM 启动时自动启动 Keycloak 服务器。我用 Crontab 试过这个。这不起作用,因为 VM 在每次重新启动时都会重置 Crontab。

然后我尝试使用Custom Script for Linux 直接从 Azure 启动它。由于我无法设置它,我开始在 Azure 门户中使用 Run command 功能。当我运行命令sudo /home/my_user/keycloak/bin/kc.sh start-dev 时,我得到以下输出:

2022-09-14 14:19:32,839 INFO  [org.keycloak.quarkus.runtime.hostname.DefaultHostnameProvider] (main) Hostname settings: FrontEnd: <request>, Strict HTTPS: false, Path: <request>, Strict BackChannel: false, Admin: <request>, Port: -1, Proxied: false
2022-09-14 14:19:34,670 INFO  [org.keycloak.common.crypto.CryptoIntegration] (main) Detected crypto provider: org.keycloak.crypto.def.DefaultCryptoProvider
2022-09-14 14:19:36,475 WARN  [org.infinispan.CONFIG] (keycloak-cache-init) ISPN000569: Unable to persist Infinispan internal caches as no global state enabled
2022-09-14 14:19:36,483 WARN  [org.infinispan.PERSISTENCE] (keycloak-cache-init) ISPN000554: jboss-marshalling is deprecated and planned for removal
2022-09-14 14:19:36,553 INFO  [org.infinispan.CONTAINER] (keycloak-cache-init) ISPN000556: Starting user marshaller 'org.infinispan.jboss.marshalling.core.JBossUserMarshaller'
2022-09-14 14:19:37,251 INFO  [org.infinispan.CONTAINER] (keycloak-cache-init) ISPN000128: Infinispan version: Infinispan 'Triskaidekaphobia' 13.0.9.Final
2022-09-14 14:19:37,886 INFO  [org.keycloak.connections.infinispan.DefaultInfinispanConnectionProviderFactory] (main) Node name: node_884187, Site name: null
2022-09-14 14:19:41,657 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Failed to start server in (development) mode
2022-09-14 14:19:41,657 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Unable to start HTTP server
2022-09-14 14:19:41,658 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: io.quarkus.runtime.QuarkusBindException
2022-09-14 14:19:41,658 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) For more details run the same command passing the '--verbose' option. Also you can use '--help' to see the details about the usage of the particular command.

TLDR:当我通过 SSH 手动启动服务器时,服务器启动得非常好。当我尝试使用 Azure 门户 (Run command) 启动服务器时,它不起作用。

【问题讨论】:

    标签: azure keycloak


    【解决方案1】:

    我似乎有同样的问题:(

    【讨论】:

      猜你喜欢
      • 2022-10-14
      • 1970-01-01
      • 2020-10-05
      • 2022-10-06
      • 2016-08-12
      • 2023-03-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多