您的AWS弹性豆柄部署失败:-断断续续-没有真正的明显原因
步骤1:检查明显的日志
/var/log/eb-activity.log
Running npm install: /opt/elasticbeanstalk/node-install/node-v6.10.0-linux-x64/bin/npm
Setting npm config jobs to 1
npm config jobs set to 1
Running npm with --production flag
Failed to run npm install. Snapshot logs for m
我的项目已经运行了两年,没有任何问题。但是今天早上,它变成了返回错误。 sudo: npm: command not found 这是我的.ebextensions文件,我正在使用Amazon Linux2。 option_settings:
- namespace: aws:elasticbeanstalk:application:environment
option_name: COMPOSER_HOME
value: /root
# Point the app root to the public/ folder.
- namespace: aws:ela
我刚刚部署了我的第一个网络应用到ElasticBean秸秆,但当我试图访问它时,我得到了"502坏网关“错误。在日志中,我看到了这个错误。
npm ERR! Please include the following file with any support request:
npm ERR! /var/app/current/npm-debug.log
npm ERR! Linux 4.14.33-51.37.amzn1.x86_64
npm ERR! argv "/opt/elasticbeanstalk/node-install/node-v6.13.1-linu
我在部署一个应用程序时遇到了问题,该应用程序使用的是托管在Github上的公共NPM模块的略微修改的版本。我派生了存储库并进行了更改,然后提交并成功安装。该模块在开发和运行生产构建时都可以在本地工作。
问题是当我使用eb deploy <environment name>将应用程序部署到Elastic Beanstalk时。我知道问题出在这个模块上,因为如果我从package.json中删除它,我就可以成功地进行部署。
请参阅下面的错误日志:
npm ERR! A complete log of this run can be found in:
npm ERR!
我正试图将我的NodeJS应用上传到亚马逊AWS的ElasticBean秸秆中。但是,当npm安装被执行时,它会产生一些被拒绝的权限,因此它无法运行该应用程序。这是日志
Application update failed at 2018-10-02T15:18:14Z with exit status 1 and error: Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/50npm.sh failed.
+ /opt/elasticbeanstalk/containerfiles/ebnode.py --action npm-install
我是亚马逊网络服务的新手,我正在尝试在他们的弹性豆茎上设置一个node.js应用程序。我设置了实例并上传/部署了站点,但是当运行状况“正常”时,node.js日志显示重复了大约30次:
npm ERR! enoent ENOENT: no such file or directory, open '/var/app/current/package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not bei
我在将一些代码部署到我的环境中时遇到了问题。
Creating application version archive "app-aa68e-170213_103330".
Uploading PAS-API/app-aa68e-170213_103330.zip to S3. This may take a while.
Upload Complete.
INFO: Environment update is starting.
INFO: Deploying new version to instance(s).
当我在Heroku上部署我的应用程序时,它工作得很好。当我把它推到AWS elastic beanstalk上时,它会给我一个页面,上面写着Cannot Get /。 日志如下所示: -------------------------------------
/var/log/nodejs/nodejs.log
-------------------------------------
> react-express-starter@0.1.0 dev /var/app/current
> run-p server start
sh: run-p: command not f
我正在弹性豆茎上部署NestJs应用程序,部署成功后,应用程序没有启动,并在启动脚本时显示错误,但当我登录Amazon Linux 2 ec2实例并运行节点dist/main时,它开始运行,否则不会使用npm start。
日志:
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/opt/elasticbeanstalk/node-install/node-v12.19.0-linux-x64/bin/node',
1 verbose cli '/bin/npm',
1