首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >AWS Amplify CLI:向云端推送资源时出错

AWS Amplify CLI:向云端推送资源时出错
EN

Stack Overflow用户
提问于 2021-02-20 09:26:10
回答 1查看 1.2K关注 0票数 2

我正在尝试使用amplify推送将lambda函数的一些更改上传到后端。我已经使用它好几次了,没有任何问题,但是突然间我得到了错误,并且无法将资源推送到云中

在完成以下操作后,会出现错误:

代码语言:javascript
复制
Successfully pulled backend environment dev from the cloud.

我收到了各种各样的错误信息。这是第一个:

代码语言:javascript
复制
Command failed with exit code 1: C:\Users\Name\go\bin\build-lambda-zip.exe -o H:\Documents\React 
JS\ihubdashboard\amplify\backend\function\testgo\dist\latest-build.zip H:\Documents\React 
JS\ihubdashboard\amplify\backend\function\testgo\bin\main
failed to compress file: open H:\Documents\React 
JS\ihubdashboard\amplify\backend\function\testgo\bin\main: The system cannot find the file specified.
An error occurred during the push operation: Command failed with exit code 1: 
C:\Users\Name\go\bin\build-lambda-zip.exe -o H:\Documents\React 
JS\ihubdashboard\amplify\backend\function\testgo\dist\latest-build.zip H:\Documents\React 
JS\ihubdashboard\amplify\backend\function\testgo\bin\main
failed to compress file: open H:\Documents\React 
JS\ihubdashboard\amplify\backend\function\testgo\bin\main: The system cannot find the file specified.

这是另一种情况:

代码语言:javascript
复制
Command failed with exit code 1: C:\Users\Name\go\bin\build-lambda-zip.exe -o H:\Documents\React 
JS\ihubdashboard\amplify\backend\function\completeregistration\dist\latest-build.zip 
H:\Documents\React JS\ihubdashboard\amplify\backend\function\completeregistration\bin\main
failed to compress file: open H:\Documents\React 
JS\ihubdashboard\amplify\backend\function\completeregistration\bin\main: The system cannot find the 
file specified.
An error occurred during the push operation: Command failed with exit code 1: 
C:\Users\Name\go\bin\build-lambda-zip.exe -o H:\Documents\React 
JS\ihubdashboard\amplify\backend\function\completeregistration\dist\latest-build.zip 
H:\Documents\React JS\ihubdashboard\amplify\backend\function\completeregistration\bin\main
failed to compress file: open H:\Documents\React 
JS\ihubdashboard\amplify\backend\function\completeregistration\bin\main: The system cannot find the 
file specified.

Command failed with exit code 1: go get -u github.com/aws/aws-lambda-go/cmd/build-lambda-zip
# cd C:\Users\Name\go\src\github.com\aws\aws-lambda-go; git pull --ff-only
fatal: Unable to create 'C:/Users/Name/go/src/github.com/aws/aws-lambda-go/.git/ORIG_HEAD.lock': File 
exists.

这是我收到的当前错误消息:

代码语言:javascript
复制
If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.
package github.com/aws/aws-lambda-go/cmd/build-lambda-zip: exit status 128
An error occurred during the push operation: Command failed with exit code 1: go get -u 
github.com/aws/aws-lambda-go/cmd/build-lambda-zip
# cd C:\Users\Name\go\src\github.com\aws\aws-lambda-go; git pull --ff-only
fatal: Unable to create 'C:/Users/Name/go/src/github.com/aws/aws-lambda-go/.git/ORIG_HEAD.lock': File 
exists.

If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.
package github.com/aws/aws-lambda-go/cmd/build-lambda-zip: exit status 128

有没有人有过这样的经历?或者知道该怎么做?

提前感谢

EN

回答 1

Stack Overflow用户

发布于 2021-02-23 04:04:01

原来是个bug --会被修复的。有关更多详细信息,请参阅以下内容:

https://github.com/aws-amplify/amplify-cli/issues/6679

https://github.com/aws-amplify/amplify-cli/issues/6693

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66287064

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档