-
Notifications
You must be signed in to change notification settings - Fork 79
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
ConcurrentModificationException: Schema is currently being altered, please wait until that is complete. #3135
Comments
Hey,👋 thanks for raising this! I'm going to transfer this over to our data repository for better assistance 🙂 |
Hey @TimmyAA, Can you check your open terminals to see if you are running multiple sandbox instances? |
Hi @AnilMaktala, 2 terminals open, one running 'npx ampx sandbox' and other running 'quasar dev' |
@TimmyAA Thanks for checking. Do you have multiple stacks in your app? Also, what change in the |
Single stack.
The only thing that looked suspicious was this double trigger on a single save... [Sandbox] Watching for file changes... I may try not letting npx ampx sandbox watch for file changes and just run it after I change something in the stack |
Didn't work... added a new fields to a model while 'npx ampx sandbox' wasn't running. Then started it, same error. ...failed: ConcurrentModificationException: Schema is currently being altered, please wait until that is complete. |
Hey @TimmyAA, Interesting! Are you on Discord by any chance? |
Experiencing the same issue. Is there an update on this? |
No progress, but more information... Just data model additions are a problem. |
hi @TimmyAA, Thanks for additional detials. I am unable to reproduce the issue on my end. To rule out any sandbox-specific problems, could you please try running the sandbox with a new identifier and share the results? `npx ampx sandbox --identifier somename' |
Environment information
Describe the bug
This error keeps coming up in sandbox (from windows) when making minor changes, like adding a field to a data model...
...failed: ConcurrentModificationException: Schema is currently being altered, please wait until that is complete.
The CloudFormation stack in console indicates "UPDATE_COMPLETE"
The only workaround that I've found is to run the sandbox with the changes from Ubuntu, then once complete, start the sandbox again in Windows
I did notice that when I save resource.ts, There is a double trigger on the file...
[Sandbox] Watching for file changes...
File written: amplify_outputs.json
[Sandbox] Triggered due to a file update event: \amplify\data\resource.ts
[Sandbox] Triggered due to a file update event: \amplify\data\resource.ts
[Sandbox] Previous deployment is still in progress. Will queue for another deployment after this one finishes
...
Error: ❌ d295 failed: ConcurrentModificationException: Schema is currently being altered, please wait until that is complete.
Caused By: ❌ d295 failed: ConcurrentModificationException: Schema is currently being altered, please wait until that is complete.
Reproduction steps
Adding a field to a data model.
The text was updated successfully, but these errors were encountered: