Web app running Docker container (Java 8, spring framework 2.2.5) suddenly won´t start

Ramon Bezanilla 41 Reputation points
2023-08-04T07:00:56.05+00:00

Hi, I have been running several containerized (Docker) Java Spring Boot applications on web apps in Azure for the last two years. Unfortunately, since yesterday all the app services we had running are failing to start. Nothing has been changed from our side and the images being pulled were working successfully until now.

All the appplications are running on Java JDK 8 and Spring Boot 2.2.5. I guess this may be the problem due to sudden lack of support for these old versions but there is nothing indicating so. I have checked the logs but they are not helping much:

2023-08-04T00:09:07.915Z INFO - Pulling image: myregistry.azurecr.io/api:1.5.1

2023-08-04T00:09:08.199Z INFO - 1.5.1 Pulling from api

2023-08-04T00:09:08.228Z INFO - Digest: sha256:e0e6fc4d21ea22c3376a97b9a634b9daa820a125344a66b1b1f28a31e1888320

2023-08-04T00:09:08.229Z INFO - Status: Image is up to date for myregistry.azurecr.io/api:1.5.1

2023-08-04T00:09:08.261Z INFO - Pull Image successful, Time taken: 0 Minutes and 0 Seconds

2023-08-04T00:09:08.281Z INFO - Starting container for site

2023-08-04T00:09:08.282Z INFO - docker run -d -p 2750:8080 --name myservice_0_d291348d -e WEBSITE_SITE_NAME=myservice -e WEBSITE_AUTH_ENABLED=False -e PORT=8080 -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=myService.azurewebsites.net -e WEBSITE_INSTANCE_ID=e7c83bb0215cc3248ecdd0f2f2b3b257b1322cda3ae12b86578cee23aca9d322 -e HTTP_LOGGING_ENABLED=1 -e WEBSITE_USE_DIAGNOSTIC_SERVER=False myregistry.azurecr.io/api:1.5.1

2023-08-04T00:09:14.905Z INFO - Initiating warmup request to container myService_0_d291348d for site myService

2023-08-04T00:09:30.349Z ERROR - Container myService_0_d291348d for site myService has exited, failing site start

2023-08-04T00:09:30.409Z ERROR - Container myService_0_d291348d didn't respond to HTTP pings on port: 8080, failing site start. See container logs for debugging.

2023-08-04T00:09:30.412Z INFO - Stopping site myService because it failed during startup.

2023-08-04T00:04:11.040119393Z # A fatal error has been detected by the Java Runtime Environment:

2023-08-04T00:04:11.040127093Z #

2023-08-04T00:04:11.040139793Z # SIGSEGV (0xb) at pc=0x000077cf6b970adb, pid=1, tid=0x000077cf6640fb10

2023-08-04T00:04:11.040144894Z #

2023-08-04T00:04:11.040148594Z # JRE version: OpenJDK Runtime Environment (8.0_212-b04) (build 1.8.0_212-b04)

2023-08-04T00:04:11.040152594Z # Java VM: OpenJDK 64-Bit Server VM (25.212-b04 mixed mode linux-amd64 compressed oops)

2023-08-04T00:04:11.040156494Z # Derivative: IcedTea 3.12.0

2023-08-04T00:04:11.040160394Z # Distribution: Custom build (Sat May 4 17:33:35 UTC 2019)

2023-08-04T00:04:11.040164294Z # Problematic frame:

2023-08-04T00:04:11.040168094Z # J 411 C2 java.lang.String.equals(Ljava/lang/Object;)Z (81 bytes) @ 0x000077cf6b970adb [0x000077cf6b970aa0+0x3b]

2023-08-04T00:04:11.040171894Z #

2023-08-04T00:04:11.040175594Z # Core dump written. Default location: //core or core.1

2023-08-04T00:04:11.040179194Z #

2023-08-04T00:04:11.040182694Z # An error report file with more information is saved as:

2023-08-04T00:04:11.040186394Z # /tmp/hs_err_pid1.log

2023-08-04T00:04:11.137488773Z #

2023-08-04T00:04:11.137552473Z # If you would like to submit a bug report, please include

2023-08-04T00:04:11.137558973Z # instructions on how to reproduce the bug and visit:

2023-08-04T00:04:11.137574873Z # https://icedtea.classpath.org/bugzilla

2023-08-04T00:04:11.137578373Z #

Could you please help me? Many of my core services are now stopped... :(

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
419 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,758 questions
{count} votes

Accepted answer
  1. VenkateshDodda-MSFT 20,696 Reputation points Microsoft Employee
    2023-08-07T08:10:59.1133333+00:00

    Issue: Web app running Docker container (Java 8, spring framework 2.2.5) suddenly won´t start. 

    Resolution:  Instances change required. This was possible by scale up and down of the app service plan which forced a change of the instances bringing up the webapp to running state.

    Please feel free to Accept an Answer for the benefit of community.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.