amazon-ec2 - mup deploy 超时错误,推送地址错误
问题描述
成功运行后,我正在尝试mup deploy
手动执行mup init
。但我在下面收到此错误消息 -
ubuntu@dev-ip-xxx-xx-xx-xx:~/myapp/spa/meteor-api/.deploy$ mup deploy
Building App Bundle Locally
Started TaskList: Pushing Meteor App
[1.2.3.4] - Pushing Meteor App Bundle to the Server
events.js:291
throw er; // Unhandled 'error' event
^
Error: Timed out while waiting for handshake
at Timeout._onTimeout (/usr/local/lib/node_modules/mup/node_modules/ssh2/lib/client.js:695:19)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
Emitted 'error' event on Client instance at:
at Timeout._onTimeout (/usr/local/lib/node_modules/mup/node_modules/ssh2/lib/client.js:697:14)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7) {
level: 'client-timeout'
}
我已经mup init
使用我的mup.js
文件运行了。我没有mup deploy
以相同的方式运行,因为它向我显示一条错误消息,说.deploy
不是流星应用程序。
现在你们有谁知道这里的问题是什么,为什么我会收到这个错误信息?
解决方案
该错误意味着mup
无法连接到您的 EC2 实例。确保在您的文件中包含正确的凭据(IP、用户名和 pem 文件路径)mup.js
。
您可以通过运行来测试它mup ssh one
推荐阅读
- docker - 从 Spring Boot 应用程序连接到本地 Bitnami Docker Kafka 时出错
- amazon-web-services - 如何在 AWS ElasticBeanstalk 上托管的 API 和 AWS Amplify 上的前端之间配置 CORS
- image - 从文件夹中的最新文件自动更新图像的网站
- c++ - 为什么在指向对象的迭代器上调用函数不允许我更改对象本身?
- c++ - 如何从 COM 模块中的函数返回字符串数组?
- php - 无法从终端触发 php -v
- c++ - 在智能指针 smart
o1 (new int() ) 不想允许 - c++ - 为什么 c++ 映射值不会为同一个键更新?
- asp.net-core-webapi - 如何更改 ASP.NET Core API 中的默认响应内容类型?
- sql - 不满足条件时,Postgresql case 语句返回空行