spheronFdn / beta-testing

🐛 Report all the bug found during beta testing
4 stars 3 forks source link

Deployment failing with first attempt but succeed with the second #58

Open ChmilevFA opened 2 years ago

ChmilevFA commented 2 years ago

Describe the bug

Once I'm trying to deploy my application the first attempt is failing with the error:

02:00:03 PM
error - Invalid project directory provided, no such directory: /app/defi-statements/frontend/or
02:00:03 PM
ERR! code ELIFECYCLE
02:00:03 PM
npm ERR! errno 1
02:00:03 PM
npm ERR!
02:00:03 PM
frontend@0.1.0 build: `next build "or" "next" "build"`
02:00:03 PM
npm ERR! Exit status 1
02:00:03 PM
npm ERR! Failed at the frontend@0.1.0 build script.
02:00:03 PM
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
02:00:03 PM
npm ERR! A complete log of this run can be found in:
02:00:03 PM
npm ERR! /home/node/.npm/_logs/2022-05-22T12_00_02_947Z-debug.log
02:00:03 PM
error Command failed with exit code 1.

image

But the second attempt with the same configs is successful. Failed build/deploy example: https://aqua.spheron.network/#/org/6283cbff3984e900150abde2/project/6283e85e3984e900150ac01e/deployments/628a25000544a20012d603c3 Green build/deploy example: https://aqua.spheron.network/#/org/6283cbff3984e900150abde2/project/6283e85e3984e900150ac01e/deployments/628a25d90544a20012d60423

Criticality

Critical. It makes problems to deploy.

To Reproduce

Steps to reproduce the behavior:

  1. Try to deploy the app from https://github.com/hackmoney-uf/defi-statements after new commit added to the master
  2. Use following config image
  3. First deploy attempt will fail
  4. If to trigger the same deploy second time - it's green

Expected behavior

Green deploy with the very first attempt

Desktop (please complete the following information):

Your Details

Discord: Fedor#0110