TotallyGatsby / DroneYard

AWS Batch based automation for OpenDroneMap.
GNU General Public License v3.0
13 stars 3 forks source link

Failed to deploy bootstrap stack Error #7

Open juansource opened 5 months ago

juansource commented 5 months ago

Hi there,

I'm running to an issue after cloning the repo and running the application for the first time. I ran the deployment commands from the readme. It attempts to deploy the bootstrap stack for the first time, and I run into this error. This is only an excerpt of the error, I've excluded the RequestID and Request Token info that comes afterwards.

drone-yard@0.9.0 deploy sst deploy --stage Prod

✖ Deploying bootstrap stack, this only needs to happen once Error: Failed to deploy bootstrap stack: { "MetadataQueue1954F5AD": "Eventual consistency check initiated", "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": "Resource handler returned message: \"The runtime parameter of nodejs14.x is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs20.x) while creating or updating functions. (Service: Lambda, Status Code: 400... ...CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F]. Rollback requested by user."

Any idea as to what may be going wrong? I did some searching and checked the sst.config.ts file, and it has runtime: 'nodejs16.x'. I tried changing that parameter to nodejs20, ran npm update/install, tried on a different device and OS (Both Windows and Mac), and I am still getting the same issue. Or perhaps is it a step that I missed? I did file searching and noticed that lots of the dependencies, specifically those related to AWS have references to nodejs14? So I am not sure if this is an isolated issue or if it pertains to a dependency/ies.

Thanks for reading!

TotallyGatsby commented 5 months ago

Odds are good that something needs to be updated, the repo was built back when nodejs14.x was the latest stable. I haven't needed to deploy a new version for years (as the version I have running is still running).

There's probably a lot of updates that are needed, I haven't had the chance to dive into what they are yet, and I'm not sure when I will.

axipiter commented 4 months ago

Hi,

@juansource I've been having the same problems. Turns out the version of the SST that is shipped with Droneyard uses some libraries that have since been deprecated on the AWS side.

Eventually, what worked for me was simply to update the SST to the latest version (v2.41.4 vs v2.0.1). To do this, I first updated the file package.json in the cloned DroneYard folder: "sst": "^2.41.4" and then ran the command npm install sst . As I type this, the deployment onto AWS is in progress.

@TotallyGatsby thank you very much for the Droneyard software. Looking forward to trying it out.