-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AWS Amplify console fails to build: ✖ There was an error initializing your environment. #2318
Comments
Hi 👋, thanks for opening! While we look into this... If this issue is related to custom domains, be sure to check the custom domains troubleshooting guide to see if that helps. Also, there is a more general troubleshooting FAQ that may be helpful for other questions. Lastly, please make sure you've specified the |
Another note: I'm not sure if it's related, but here's some other troubleshooting that I've done.
|
I noticed a few errors back when this issue first started. This is from the deployment activity page: Most recent failure: FAILED | Command failed with exit code 7: /root/.amplify/bin/amplify push --yes - Fetching updates to backend environment: dev from the cloud. ✔ Successfully pulled backend environment dev from the cloud. - Uploading files... internal/process/per_thread.js:152 _memoryUsage(memValues); ^ Error: EMFILE: too many open files, uv_resident_set_memory at process.memoryUsage (internal/process/per_thread.js:152:5) at Object.getProcessInfo (/snapshot/node_modules/cfn-lint/node_modules/winston/lib/winston/exception.js:33:26) at Object.getAllInfo (/snapshot/node_modules/cfn-lint/node_modules/winston/lib/winston/exception.js:17:24) at Object._uncaughtException (/snapshot/node_modules/cfn-lint/node_modules/winston/lib/winston/logger.js:636:24) at process.emit (events.js:326:22) at process.emit (/snapshot/node_modules/source-map-support/source-map-support.js:495:21) at process._fatalException (internal/process/execution.js:165:25) { errno: -24, code: 'EMFILE', syscall: 'uv_resident_set_memory' } ⚠️ Amplify command hooks are disabled in the current execution environment. ⚠️ See https://docs.amplify.aws/cli/usage/command-hooks/ for more information. �[0m�[0m �[0m Current Environment: dev�[0m �[0m �[0m �[90m┌──────────�[39m�[90m┬───────────────�[39m�[90m┬───────────�[39m�[90m┬───────────────────┐�[39m �[90m│�[39m Category �[90m│�[39m Resource name �[90m│�[39m Operation �[90m│�[39m Provider plugin �[90m│�[39m �[90m├──────────�[39m�[90m┼───────────────�[39m�[90m┼───────────�[39m�[90m┼───────────────────┤�[39m �[90m│�[39m Api �[90m│�[39m altum �[90m│�[39m Update �[90m│�[39m awscloudformation �[90m│�[39m �[90m├──────────�[39m�[90m┼───────────────�[39m�[90m┼───────────�[39m�[90m┼───────────────────┤�[39m �[90m│�[39m Auth �[90m│�[39m altumfadb09ec �[90m│�[39m No Change �[90m│�[39m awscloudformation �[90m│�[39m �[90m└──────────�[39m�[90m┴───────────────�[39m�[90m┴───────────�[39m�[90m┴───────────────────┘�[39m �[32m�[39m �[32mGraphQL schema compiled successfully.�[39m �[32mEdit your schema at /tmp/amplify-ebcb6677-fa66-44d7-a2a4-93f123acf056/amplify/backend/api/altum/schema.graphql or place .graphql files in a directory at /tmp/amplify-ebcb6677-fa66-44d7-a2a4-93f123acf056/amplify/backend/api/altum/schema�[39m
-- | -- Command failed with exit code 7: /root/.amplify/bin/amplify push --yes - Fetching updates to backend environment: dev from the cloud. ✔ Successfully pulled backend environment dev from the cloud. - Uploading files... internal/process/per_thread.js:152 _memoryUsage(memValues); ^ Error: EMFILE: too many open files, uv_resident_set_memory at process.memoryUsage (internal/process/per_thread.js:152:5) at Object.getProcessInfo (/snapshot/node_modules/cfn-lint/node_modules/winston/lib/winston/exception.js:33:26) at Object.getAllInfo (/snapshot/node_modules/cfn-lint/node_modules/winston/lib/winston/exception.js:17:24) at Object._uncaughtException (/snapshot/node_modules/cfn-lint/node_modules/winston/lib/winston/logger.js:636:24) at process.emit (events.js:326:22) at process.emit (/snapshot/node_modules/source-map-support/source-map-support.js:495:21) at process._fatalException (internal/process/execution.js:165:25) { errno: -24, code: 'EMFILE', syscall: 'uv_resident_set_memory' } ⚠️ Amplify command hooks are disabled in the current execution environment. ⚠️ See https://docs.amplify.aws/cli/usage/command-hooks/ for more information. �[0m�[0m �[0m Current Environment: dev�[0m �[0m �[0m �[90m┌──────────�[39m�[90m┬───────────────�[39m�[90m┬───────────�[39m�[90m┬───────────────────┐�[39m �[90m│�[39m Category �[90m│�[39m Resource name �[90m│�[39m Operation �[90m│�[39m Provider plugin �[90m│�[39m �[90m├──────────�[39m�[90m┼───────────────�[39m�[90m┼───────────�[39m�[90m┼───────────────────┤�[39m �[90m│�[39m Api �[90m│�[39m altum �[90m│�[39m Update �[90m│�[39m awscloudformation �[90m│�[39m �[90m├──────────�[39m�[90m┼───────────────�[39m�[90m┼───────────�[39m�[90m┼───────────────────┤�[39m �[90m│�[39m Auth �[90m│�[39m altumfadb09ec �[90m│�[39m No Change �[90m│�[39m awscloudformation �[90m│�[39m �[90m└──────────�[39m�[90m┴───────────────�[39m�[90m┴───────────�[39m�[90m┴───────────────────┘�[39m �[32m�[39m �[32mGraphQL schema compiled successfully.�[39m �[32mEdit your schema at /tmp/amplify-99c958b4-4e6a-48e6-97a9-6628d21dc268/amplify/backend/api/altum/schema.graphql or place .graphql files in a directory at /tmp/amplify-99c958b4-4e6a-48e6-97a9-6628d21dc268/amplify/backend/api/altum/schema�[39m FAILED | Command failed with exit code 7: /root/.amplify/bin/amplify push --yes - Fetching updates to backend environment: dev from the cloud. ✔ Successfully pulled backend environment dev from the cloud. - Uploading files... ✖ An error occurred when pushing the resources to the cloud internal/process/per_thread.js:152 _memoryUsage(memValues); ^ Error: EMFILE: too many open files, uv_resident_set_memory at process.memoryUsage (internal/process/per_thread.js:152:5) at Object.getProcessInfo (/snapshot/node_modules/cfn-lint/node_modules/winston/lib/winston/exception.js:33:26) at Object.getAllInfo (/snapshot/node_modules/cfn-lint/node_modules/winston/lib/winston/exception.js:17:24) at Object._uncaughtException (/snapshot/node_modules/cfn-lint/node_modules/winston/lib/winston/logger.js:636:24) at process.emit (events.js:326:22) at process.emit (/snapshot/node_modules/source-map-support/source-map-support.js:495:21) at process._fatalException (internal/process/execution.js:165:25) { errno: -24, code: 'EMFILE', syscall: 'uv_resident_set_memory' } ⚠️ Amplify command hooks are disabled in the current execution environment. ⚠️ See https://docs.amplify.aws/cli/usage/command-hooks/ for more information. �[0m�[0m �[0m Current Environment: dev�[0m �[0m �[0m �[90m┌──────────�[39m�[90m┬───────────────�[39m�[90m┬───────────�[39m�[90m┬───────────────────┐�[39m �[90m│�[39m Category �[90m│�[39m Resource name �[90m│�[39m Operation �[90m│�[39m Provider plugin �[90m│�[39m �[90m├──────────�[39m�[90m┼───────────────�[39m�[90m┼───────────�[39m�[90m┼───────────────────┤�[39m �[90m│�[39m Api �[90m│�[39m altum �[90m│�[39m Update �[90m│�[39m awscloudformation �[90m│�[39m �[90m├──────────�[39m�[90m┼───────────────�[39m�[90m┼───────────�[39m�[90m┼───────────────────┤�[39m �[90m│�[39m Auth �[90m│�[39m altumfadb09ec �[90m│�[39m No Change �[90m│�[39m awscloudformation �[90m│�[39m �[90m└──────────�[39m�[90m┴───────────────�[39m�[90m┴───────────�[39m�[90m┴───────────────────┘�[39m �[32m�[39m �[32mGraphQL schema compiled successfully.�[39m �[32mEdit your schema at /tmp/amplify-e8239636-dc6a-447d-9eb6-663258ef42cd/amplify/backend/api/altum/schema.graphql or place .graphql files in a directory at /tmp/amplify-e8239636-dc6a-447d-9eb6-663258ef42cd/amplify/backend/api/altum/schema�[39m 🛑 getaddrinfo EBUSY amplify-altum-dev-113248-deployment.s3.amazonaws.com �[31mAn error occurred during the push operation: getaddrinfo EBUSY amplify-altum-dev-113248-deployment.s3.amazonaws.com�[39m
-- | -- Command failed with exit code 7: /root/.amplify/bin/amplify push --yes - Fetching updates to backend environment: dev from the cloud. ✔ Successfully pulled backend environment dev from the cloud. - Uploading files... internal/process/per_thread.js:152 _memoryUsage(memValues); ^ Error: EMFILE: too many open files, uv_resident_set_memory at process.memoryUsage (internal/process/per_thread.js:152:5) at Object.getProcessInfo (/snapshot/node_modules/cfn-lint/node_modules/winston/lib/winston/exception.js:33:26) at Object.getAllInfo (/snapshot/node_modules/cfn-lint/node_modules/winston/lib/winston/exception.js:17:24) at Object._uncaughtException (/snapshot/node_modules/cfn-lint/node_modules/winston/lib/winston/logger.js:636:24) at process.emit (events.js:326:22) at process.emit (/snapshot/node_modules/source-map-support/source-map-support.js:495:21) at process._fatalException (internal/process/execution.js:165:25) { errno: -24, code: 'EMFILE', syscall: 'uv_resident_set_memory' } ⚠️ Amplify command hooks are disabled in the current execution environment. ⚠️ See https://docs.amplify.aws/cli/usage/command-hooks/ for more information. �[0m�[0m �[0m Current Environment: dev�[0m �[0m �[0m �[90m┌──────────�[39m�[90m┬───────────────�[39m�[90m┬───────────�[39m�[90m┬───────────────────┐�[39m �[90m│�[39m Category �[90m│�[39m Resource name �[90m│�[39m Operation �[90m│�[39m Provider plugin �[90m│�[39m �[90m├──────────�[39m�[90m┼───────────────�[39m�[90m┼───────────�[39m�[90m┼───────────────────┤�[39m �[90m│�[39m Api �[90m│�[39m altum �[90m│�[39m Update �[90m│�[39m awscloudformation �[90m│�[39m �[90m├──────────�[39m�[90m┼───────────────�[39m�[90m┼───────────�[39m�[90m┼───────────────────┤�[39m �[90m│�[39m Auth �[90m│�[39m altumfadb09ec �[90m│�[39m No Change �[90m│�[39m awscloudformation �[90m│�[39m �[90m└──────────�[39m�[90m┴───────────────�[39m�[90m┴───────────�[39m�[90m┴───────────────────┘�[39m �[32m�[39m �[32mGraphQL schema compiled successfully.�[39m �[32mEdit your schema at /tmp/amplify-e61ef032-1583-4ec4-8d29-b99e8a26fb5d/amplify/backend/api/altum/schema.graphql or place .graphql files in a directory at /tmp/amplify-e61ef032-1583-4ec4-8d29-b99e8a26fb5d/amplify/backend/api/altum/schema�[39m These errors seemingly went away, but the backend is still not updating despite a successful deploy being shown. |
I am experiencing a similar situation.
|
Hi Donato and Park👋🏽, thanks for raising this and providing additional info. We're currently looking into this. |
How did people solve this? This is how my yml is should I change something. Used sveltekit and adapter-node to build and makes build folder in root of app. Have an amplify admin ui backend with auth enabled and one data table
also tried this based off one above and same thing
|
This is actually similar to a previous issue I had side stepped. For svelte-kit + adapter-static + vite + aws-amplify when running for example I was fine not updating the backend through the svelte-kit repo and moved on. Ive run npm run build with adapter-static and through the admin ui attempted to add my front end repository but got Some other things I've come across in my journey to use svelte-kit + vite + aws-amplify #1298 So if build locally This is project I'm trying to use https://github.com/24jr/agility Also trying to host in Vercel https://vercel.com/ which I believe is relevant because saw rich harris the svelte kit guy is working with them now to push svelte so was trying on there but not sure how to get aws-exports to not be gitignore and not be found or how that all works but i do see it says not to edit gitignore
|
Before opening, please confirm:
App Id
d39gw7seizrgo
Region
us-east-1
Amplify Console feature
Backend builds, Build settings, Manual deploys, Not applicable
Describe the bug
All backend builds are failing with the following error:
Expected behavior
Successful builds
Reproduction steps
This occurs only on a single backend environment (production). As far as I know, there is no different between any of the environments, but I'm also unsure how to troubleshoot this more.
Build Settings
Additional information
#1787
#1784
#1298
All of these issues suggest changing the version of the CLI. I've tried with the following versions from this page with no success:
The text was updated successfully, but these errors were encountered: