Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-14591

Deployed JAR was undeployed when second instance of server failed to start

    Details

    • Type: Bug
    • Status: Plan (View Workflow)
    • Priority: Optional
    • Resolution: Unresolved
    • Affects Version/s: 4.5.0.Final
    • Fix Version/s: Backlog
    • Component/s: Core
    • Labels:
      None
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      I inadvertently tried to start Keycloak via the bin/standalone script when a server was already running.  This correctly failed with an "address already in use" error. However, this also resulted in 2 JARs that had been successfully deployed being un-deployed in the server that was running.  Re-starting the running server successfully deployed the JARs again.  The server that failed to start should not have resulted in un-deploying the JARs.  Stack trace follows:

       

       

      2020-06-24 12:59:20,991 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service org.wildfly.undertow.listener.default: org.jboss.msc.service\
      .StartException in service org.wildfly.undertow.listener.default: Address already in use /127.0.0.1:8080
       at org.wildfly.extension.undertow.ListenerService.start(ListenerService.java:204)
       at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1736)
       at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1698)
       at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1556)
       at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
       at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
       at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
       at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1364)
       at java.lang.Thread.run(Thread.java:748)
      2020-06-24 12:59:21,153 INFO [org.keycloak.subsystem.server.extension.KeycloakProviderDeploymentProcessor] (MSC service thread 1-2) Undeploying Keycloak provider: my-keyclo\
      ak-spi-all.jar
      2020-06-24 12:59:21,164 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0028: Stopped deployment my-keycloak-spi-all.jar (runtime-name: my-keycloak-spi-all.jar) in 59ms
      2020-06-24 12:59:21,177 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0027: Starting deployment of "my-keycloak-spi-all.jar" (runtime-name: "my-keycloak-spi-all.jar")
      2020-06-24 12:59:21,181 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.unit."my-keycloak-spi-all.jar".STRUCT\
      URE: org.jboss.msc.service.StartException in service jboss.deployment.unit."my-keycloak-spi-all.jar".STRUCTURE: WFLYSRV0153: Failed to process phase STRUCTURE of deployment \
      "my-keycloak-spi-all.jar"
       at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:150)
       at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1736)
       at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1698)
       at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1556)
       at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
       at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
       at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
       at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
       at java.lang.Thread.run(Thread.java:748)
      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYSRV0160: Failed to mount deployment content
       at org.jboss.as.server.deployment.module.DeploymentRootMountProcessor.deploy(DeploymentRootMountProcessor.java:95)
       at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:143)
       ... 8 more
      Caused by: java.io.IOException: VFS000015: Could not create directory for original name 'content' after 10 attempts
       at org.jboss.vfs.TempFileProvider.createTempDir(TempFileProvider.java:142)
       at org.jboss.vfs.VFS.mountZip(VFS.java:384)
       at org.jboss.vfs.VFS.mountZip(VFS.java:410)
       at org.jboss.as.server.deployment.DeploymentMountProvider$Factory$ServerDeploymentRepositoryImpl.mountDeploymentContent(DeploymentMountProvider.java:106)
       at org.jboss.as.server.deployment.module.DeploymentRootMountProcessor.deploy(DeploymentRootMountProcessor.java:91)
       ... 9 more
      

       

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                blevine218 Brian Levine
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: