Comments (7)
Hey @nbtrieu, from the information provided, this issue appears to be similar to #13335. was the project previously or currently being pulled into a folder that sync with cloud storage like iCloud or OneDrive?
Could you download the #current-cloud-backend.zip
archive from the S3 deployment bucket on the console(the bucket name ends with -deployment
and contains the name of the project) and check if the artifact contains any duplicate files?
from amplify-cli.
Hello @ykethan, thank you for your response! The project is being pulled into a folder that syncs with iCloud (although upload is still pending); should I disable syncing?
I have also downloaded the #current-cloud-backend.zip
archive from the S3 deployment bucket and checked that it contains duplicate cli.json files (cli.json
, cli 2.json
, cli 3.json
). Could this be related to the missing amplify-meta.json
file in any way?
from amplify-cli.
Hey @nbtrieu, before making any changes do you observe the amplify-meta.json
in the #current-cloud-backend.zip
?
if file is present, you can download the #current-cloud-backend.zip
archive, unzip, carefully remove duplicate files, re-zip, and re-upload. do ensure when re-zipping the folder this does not created a nested folder in the zip.
then in new directory outside the existing project directory run amplify pull --appId <app-id> --envName <env-name>
to check for a successful pull.
from amplify-cli.
Wait sorry so by "new directory outside the existing project directory" do you mean a new and empty directory?
Also when the modified #current-cloud-backend.zip
is re-uploaded, will the previous archive be automatically overwritten?
from amplify-cli.
@nbtrieu yes, for testing purposes create a new directory outside the existing path that may not be connected to a cloud backup service such as iCloud/OneDrive.
I would recommend keeping a copy of the #current-cloud-backend.zip
locally before re-uploading the new version of #current-cloud-backend.zip
containing the removed duplicated files. The re-upload should override the existing zip or you can deleted it in the s3 bucket and upload the new zip.
from amplify-cli.
Thank you for the clarification, I did as you said but now I cannot pull the backend at all...
from amplify-cli.
@nbtrieu can add the --debug
and rerun the pull.
how the does the new zip structure look like, do ensure when re-zipping the folder this does not created a nested #current-cloud-backend
folder in the zip. this commonly happens when we try to right click the folder and zip it.
on the terminal you can also do
cd #current-cloud-backend/
zip -r "../#current-cloud-backend.zip" *
from amplify-cli.
Related Issues (20)
- A Python Lambda runtime version HOT 5
- Install Amplify CLI on Windows : next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate. HOT 5
- Amplify init error: "We are unable to process your request" HOT 3
- No export named apiXXXXXXXiGraphQLAPIIdOutput:GetAtt:TodoTable:StreamArn found HOT 1
- Creating API models - is not authorized to perform: apigateway:GET HOT 7
- Feature request to reference multiple categories of same type in custom CDK created by amplify add custom HOT 3
- Migration to new account HOT 6
- Amplify application is not working properly with Chrome set as default browser but it works on the mozilla firefox browser HOT 1
- environment not setting up when switching amplify environments or "amplify pull" HOT 2
- Unauthorized tagging operation HOT 14
- When using the export command, a Lambda function with Python 3.7 is automatically generated. HOT 5
- Got gql "Syntax Error" after amplify pull, cannot compile or push any schema changes or roll back HOT 2
- Deleting rest api methods HOT 3
- Amplify push fails after adding a function HOT 4
- Function amplify.state files should be displayed in IDE HOT 1
- ENOENT: no such file or directory, stat .../#current-cloud-backend/<lambda-layer-path>/.../node_gyp_bins/python3 HOT 2
- Cannot add new environment with deleted lambda-layer HOT 4
- Amplify Angular Error export 'ApiAction' (imported as 'ApiAction') was not found in '@aws-amplify/core' HOT 3
- Error when run "amplify init" HOT 1
- Failed to pull the backend CLI 12.12.0 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amplify-cli.