reimagined / resolve-cloud-cli

ReSolve Cloud Service command line interface
6 stars 2 forks source link

An error occured after a reSolve application was deployed with the 13 version of the resolve-cloud package. #86

Closed Matosov closed 3 years ago

Matosov commented 4 years ago

The following error occured locally:

aleksei.matosov@Matosov-MacBook App % yarn resolve-cloud deploy --events=e.txt
yarn run v1.22.4 $ /Users/aleksei.matosov/Projects/Saturn2/App/node_modules/.bin/resolve-cloud deploy --events=e.txt WARN New version 0.14.0 of the package available. Its highly recommended to upgrade. 16:44:36 start deploying the "saturn2" application to the cloud 16:44:37 ERROR unexpected deployment state "error" with error: "none" 16:45:29 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. aleksei.matosov@Matosov-MacBook App %

The following error was displayed in the admin.resolve.sh:

Error: Event store id is required at Context.get eventStoreId [as eventStoreId] (/var/task/lib/createContext.js:184:19) at getConstants (/var/task/lib/resources/appLambda.js:19:234) at Object.create (/var/task/lib/resources/appLambda.js:299:135) at saveResourceState (/var/task/lib/lifecycle/allocate.js:9:44) at Promise.all.parallelResources.map.resourceFactory (/var/task/lib/lifecycle/allocate.js:23:68) at Array.map () at Object.allocate (/var/task/lib/lifecycle/allocate.js:23:45) at process._tickCallback (internal/process/next_tick.js:68:7) Error: The application lambda is not found at Object.build (/var/task/lib/lifecycle/build.js:94:15) at process._tickCallback (internal/process/next_tick.js:68:7)

timbset commented 3 years ago

Now event store is splitted from deployment. You need to create it first and then use event store id for the new deployment. CLI with version less then 0.14.0 cannot do it because of BC in cloud infrastructure. You can see the warning that offers to you to update. This is the only solution of the problem.