Dockerized a java spring boot app and deployed docker image to web app but the app is not accessible through Azure URL

Anup 1 Reputation point
2020-03-02T16:16:03.53+00:00

Dockerized a java spring boot app and deployed docker image to web app but the app is not accessible.

I'm using Azure DevOps pipeline and created below steps.

Generated jar file using maven
Built a docker image from a Dockerfile
Pushed the docker image to ACR(tagged with build ID)
Created a linux web app and selected docker image from above step
ENV Accept_EULA is Y and container_start_time is 1800
The application is starting however it not accessible and displays below error in logs.

Container myapp_0_de5443dd for site myapp-backend-dev did not start within expected time limit. Elapsed time = 230.2631665 sec
Container myapp_0_de5443dd didn't respond to HTTP pings on port: 7300, failing site start. See container logs for debugging.
home/LogFiles/webssh/pm2.log (https://myapp.scm.azurewebsites.net/api/vfs/LogFiles/webssh/pm2.log)Host: undefinedwebssh2 Login: user=root from=127.0.0.1 host=undefined port=2222 sessionID=undefined allowreplay=undefinedHeaders: {"connection":"close","accept":"text/html, application/xhtml+xml, application/xml; q=0.9, /; q=0.8","accept-encoding":"br, gzip, deflate","accept-language":"en-gb","cookie":"ARRAffinity=0d7eaa93ccf04e2494816f0f168f4e2170cd80b95a36687e39877b2728981272","host":"127.0.0.1:3000","max-forwards":"10","referer":"https://myapp.scm.azurewebsites.net/","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.2 Safari/605.1.15","x-client-ip":"111.11.111.111","x-client-port":"57208","x-waws-unencoded-url":"/webssh/host","client-ip":"111.11.111.111:57208","x-arr-log-id":"SOMETHING-ee62-48cf-813a-724c9acb0ca0","disguised-host":"myapp.scm.azurewebsites.net","x-site-deployment-id":"myapp","was-default-hostname":"myapp.scm.azurewebsites.net","x-original-url":"/webssh/host","x-ms-client-principal-name":"EMAIL@something .onmicrosoft.com","x-ms-client-display-name":"SOME NAME","x-forwarded-for":"111.11.111.111:57208","x-arr-ssl":"2048|256|C=US, S=Washington, L=Redmond, O=Microsoft Corporation, OU=Microsoft IT, CN=Microsoft IT TLS CA 5|CN=*.azurewebsites.net","x-forwarded-proto":"https","x-appservice-proto":"https"}Host from file: 172.16.1.2DEBUG: Local ident: 'SSH-2.0-ssh2js0.1.16'on.error - Error: connect ECONNREFUSED 172.16.1.2:2222Status_WatchFile :: Error Error: ENOENT: no such file or directory, open '/appsvctmp/status.txt'

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,963 questions
{count} votes