Skip to content
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

Still cannot deploy to aws beanstalk with error #25

Closed
aotol opened this issue Mar 3, 2020 · 1 comment
Closed

Still cannot deploy to aws beanstalk with error #25

aotol opened this issue Mar 3, 2020 · 1 comment

Comments

@aotol
Copy link

aotol commented Mar 3, 2020

Hi there,

I raised issue #24 earlier and I have tried both solution mentioned in:
lovell/sharp#373 (comment)
and
nodejs/node-gyp#414 (comment)

However, I am still not able to deploy safari push notification into aws beanstalk with the following error message. I noticed that this time the error is a bit changed. I didn't include my build or node_modules directory in my zip file when uploading.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! safari-push-notifications@0.4.0 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the safari-push-notifications@0.4.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/ec2-user/.npm/_logs/2020-03-03T00_47_26_563Z-debug.log
Not using a reverse proxy
Running npm install: /opt/elasticbeanstalk/node-install/node-v12.16.1-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 more details.
UTC 2020/03/03 00:47:26 cannot find application npm debug log at /tmp/deployment/application/npm-debug.log

Traceback (most recent call last):
File "/opt/elasticbeanstalk/containerfiles/ebnode.py", line 695, in
main()
File "/opt/elasticbeanstalk/containerfiles/ebnode.py", line 677, in main
node_version_manager.run_npm_install(options.app_path)
File "/opt/elasticbeanstalk/containerfiles/ebnode.py", line 136, in run_npm_install
self.npm_install(bin_path, self.config_manager.get_container_config('app_staging_dir'))
File "/opt/elasticbeanstalk/containerfiles/ebnode.py", line 180, in npm_install
raise e
subprocess.CalledProcessError: Command '['/opt/elasticbeanstalk/node-install/node-v12.16.1-linux-x64/bin/npm', '--production', 'install']' returned non-zero exit status 1 (Executor::NonZeroExitStatus)

[2020-03-03T00:47:26.586Z] ERROR [13572] : Command CMD-ConfigDeploy failed!

@aotol
Copy link
Author

aotol commented Mar 5, 2020

The problem is resolved with this workaround:
nodejs/node-gyp#414 (comment)

@kobim kobim closed this as completed Mar 6, 2020
@MySiteApp MySiteApp locked as off-topic and limited conversation to collaborators Mar 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants