My Web Application is down

Matheus Souza Silva 96 Reputation points
2021-02-25T16:33:54.317+00:00

Hello everyone, I'm having a problem with the Azure Web Application. The problem is this ... After creating a Web Service that uses a Linux service plan to upload my front-end app that was developed in React.js, the following error started to appear after a day of testing ... when i click on my website link it loads for about 5 minutes (this time can vary up to 15 minutes), and an error appears - :( Application Error , together with a link for Azure Diagnostics. This link takes me to a screen where it shows me some errors and a table with errors 503 and 502.3, I'll put the image here in the post, I just don't know what to do, I started using azure a short time ago and this is my first contact with this type of error.

72139-image.png

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

Accepted answer
  1. Matheus Souza Silva 96 Reputation points
    2021-04-07T14:40:57.6+00:00

    Hi, sorry for not responding here anymore.

    A few days ago I resolved the problem, the issue was that I needed to do a simple configuration on Azure Portal, for those who are interested, here is the thread with more details on the resolution.

    Thanks everybody for your answers!

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Ryan Hill 25,141 Reputation points Microsoft Employee
    2021-02-26T15:57:12.197+00:00

    Hi @Matheus Souza Silva ,

    In reviewing your logs attachment, you did several different deployment types (ScmType: GitHub / zip deploy). App Service deployments will run npm install --production, see https://learn.microsoft.com/en-us/azure/app-service/configure-language-nodejs?pivots=platform-linux. So seeing 2021-02-26T13:26:47.878836198Z /bin/sh: 1: react-scripts: not found is an indicator that this did not occur. Check your deployment logs by visiting https://{your-app}.azurewebsites.net/api/deployments to see if your artifacts

    If you are deploying from GitHub (Actions), the yml should be configured to install the dependencies which should include react-scripts in your deployment artifacts folder.

    - name: npm install, build, and test  
      run: |  
        npm install  
        npm run build --if-present  
        npm run test --if-present  
      working-directory: my-app-folder # set to the folder with your app if it is not the root directory  
    

    Verify that my-app-folder contains your node modules and package.json.

    Regards,
    Ryan

    0 comments No comments