question

BellaBelgarokova-1656 avatar image
0 Votes"
BellaBelgarokova-1656 asked ajkuma-MSFT commented

Deployment issue

Hello,

I am trying to deploy an app using Web App service using images from Azure Container Registry, but there is no luck. Locally the app runs with no problem. Would appreciate your help.

Thanks/Bella

 2020-06-24T19:05:57.912Z INFO  - Logging is not enabled for this container.
 Please use https://aka.ms/linux-diagnostics to enable logging to see container logs here.
 2020-06-24T19:06:03.362Z INFO  - Started multi-container app
 2020-06-24T19:06:03.366Z INFO  - Initiating warmup request to container auth-service_server_1_e8849487 for site auth-service
 2020-06-24T19:06:03.388Z INFO  - Container auth-service_server_1_e8849487 for site auth-service initialized successfully and is ready to serve requests.
 2020-06-24T19:06:08.389Z ERROR - Container for auth-service_client_1_e8849487 site auth-service is unhealthy, Stopping site.
 2020-06-24T19:06:08.389Z INFO  - Stopping site auth-service because it is not healthy.
 2020-06-24T19:06:10.600Z INFO  - Starting multi-container app, configuration = 
 version: "2"
 services:
     server:
         container_name: server
         restart: always
         image: authserviceapp.azurecr.io/auth-service_server
         build: ./server
         command: npm run start
         ports:
             - "8080:8080"
     client:
         container_name: client
         restart: always
         image: authserviceapp.azurecr.io/auth-service_client
         build: ./client
         command: npm start
         depends_on: 
             - server
         ports:
             - "3000:3000"
         tty: true
 2020-06-24T19:06:11.189Z INFO  - Pulling image: authserviceapp.azurecr.io/auth-service_server
 2020-06-24T19:06:11.417Z INFO  - latest Pulling from auth-service_server
 2020-06-24T19:06:11.419Z INFO  -  Digest: sha256:dfde60252190dbc951c12efb5291b795f3d1c524d01ad07d65f2af5c22630c50
 2020-06-24T19:06:11.420Z INFO  -  Status: Image is up to date for authserviceapp.azurecr.io/auth-service_server:latest
 2020-06-24T19:06:11.422Z INFO  - Pull Image successful, Time taken: 0 Minutes and 0 Seconds
 2020-06-24T19:06:11.433Z INFO  - Starting container for site
 2020-06-24T19:06:11.434Z INFO  - docker run -d -p 3253:8080 --name auth-service_server_0_078e8109 -e WEBSITES_ENABLE_APP_SERVICE_STORAGE=false -e WEBSITE_SITE_NAME=auth-service -e WEBSITE_AUTH_ENABLED=False -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=auth-service.azurewebsites.net -e WEBSITE_INSTANCE_ID=8f346eed0b0dd242e6aeb51a140f37828ece5bc67d8bdb79787ed0375aa2aa98 authserviceapp.azurecr.io/auth-service_server npm run start 


azure-webapps-developmentazure-container-registry
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ajkuma-MSFT avatar image
0 Votes"
ajkuma-MSFT answered ajkuma-MSFT commented

Welcome to Microsoft Q&A! Thanks for posting this question.

Be sure that your application is listening on the port provided by the PORT environment variable: process.env.PORT.

Only port 80 and 8080 is accessible (exposed ports). When your application fails to start, you can check the Docker logs in the LogFiles directory. To log the stdout and stderr from your container, you need to enable Application Logging under App Service Logs. The setting takes effect immediately. App Service detects the change and restarts the container automatically.

Based on the application framework, kindly you could startup command is configured - https://docs.microsoft.com/azure/app-service/containers/app-service-linux-faq#built-in-images

You can also always inspect the log files from the browser at https://<app-name>.scm.azurewebsites.net/api/logs/docker and leverage App Service diagnostics to fetch more details on the issue. To access App Service diagnostics, navigate to your App Service app in the Azure portal. In the left navigation, click on Diagnose and solve problems- From there, run the “Availability & Performance” & “Diagnostic Tools” for investigation.

Kindly let us know if this helps or you need further assistance, we would more than happy to assist you.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Just checking in to see if the above post helped answer your question. Kindly let us know if you have any further questions on this specific topic, we would be more than happy to assist you.
To benefit the community find the right answers, please do mark the post which was helpful by clicking on ‘Accept Answer’ & ‘Up-Vote’.

0 Votes 0 ·