Here are my logs:
Yes, as expected, AWS couldnāt find a package.json.
You can find this information in var/log/eb-engine.log
.
Could you try install using this:
If youād prefer you can build the ZIP yourself using:
git clone https://github.com/dblythy/parse-server-example
cd parse-server-example
git checkout AWS-Fixes
zip Parse-Server.zip ./ -r -x "**.git**"
Your eb-engine.log should look something like this after a successful install:
2021/03/25 21:52:39.724522 [INFO]
> [email protected] install /var/app/staging/node_modules/kerberos
> prebuild-install || node-gyp rebuild
> [email protected] postinstall /var/app/staging/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
e[96mThank you for using core-js (e[94m https://github.com/zloirock/core-js e[96m) for polyfilling JavaScript standard library!e[0m
e[96mThe project needs your help! Please consider supporting of core-js on Open Collective or Patreon: e[0m
e[96m>e[94m https://opencollective.com/core-js e[0m
e[96m>e[94m https://www.patreon.com/zloirock e[0m
e[96mAlso, the author of core-js (e[94m https://github.com/zloirock e[96m) is looking for a good job -)e[0m
> [email protected] postinstall /var/app/staging/node_modules/core-js-pure
> node -e "try{require('./postinstall')}catch(e){}"
> @apollo/[email protected] postinstall /var/app/staging/node_modules/@apollo/protobufjs
> node scripts/postinstall
> [email protected] postinstall /var/app/staging/node_modules/parse-server
> node -p 'require("./postinstall.js")()'
1111111111
1111111111111111
1111111111111111111111
11111111111111111111111111
111111111111111 11111111
1111111111111 111111
1111111111111 111111111 111111
111111111111 11111111111 111111
1111111111111 11111111111 111111
1111111111111 1111111111 111111
1111111111111111111111111 1111111
11111111 11111111
111111 1111111111111111111
11111 11111 111111111111111111
11111 11111111111111111
111111 111111111111111111
11111111111111111111111111
1111111111111111111111
111111111111111111
11111111111
Thanks for installing parse š
Please consider donating to our open collective
to help us maintain this package.
š https://opencollective.com/parse-server
added 558 packages from 593 contributors and audited 1046 packages in 45.217s
35 packages are looking for funding
run `npm fund` for details
found 2 vulnerabilities (1 low, 1 high)
run `npm audit fix` to fix them, or `npm audit` for details
2021/03/25 21:52:39.724986 [INFO] Running command /bin/sh -c npm --production rebuild
2021/03/25 21:52:45.296790 [INFO]
> [email protected] install /var/app/staging/node_modules/kerberos
> prebuild-install || node-gyp rebuild
> [email protected] postinstall /var/app/staging/node_modules/core-js-pure
> node -e "try{require('./postinstall')}catch(e){}"
> [email protected] postinstall /var/app/staging/node_modules/parse-server
> node -p 'require("./postinstall.js")()'
1111111111
1111111111111111
1111111111111111111111
11111111111111111111111111
111111111111111 11111111
1111111111111 111111
1111111111111 111111111 111111
111111111111 11111111111 111111
1111111111111 11111111111 111111
1111111111111 1111111111 111111
1111111111111111111111111 1111111
11111111 11111111
111111 1111111111111111111
11111 11111 111111111111111111
11111 11111111111111111
111111 111111111111111111
11111111111111111111111111
1111111111111111111111
111111111111111111
11111111111
Thanks for installing parse š
Please consider donating to our open collective
to help us maintain this package.
š https://opencollective.com/parse-server
> [email protected] postinstall /var/app/staging/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
> @apollo/[email protected] postinstall /var/app/staging/node_modules/@apollo/protobufjs
> node scripts/postinstall
[email protected] /var/app/staging/node_modules/express
[email protected] /var/app/staging/node_modules/accepts
[email protected] /var/app/staging/node_modules/mime-types
[email protected] /var/app/staging/node_modules/mime-db
[email protected] /var/app/staging/node_modules/negotiator
[email protected] /var/app/staging/node_modules/array-flatten
[email protected] /var/app/staging/node_modules/body-parser
[email protected] /var/app/staging/node_modules/bytes
[email protected] /var/app/staging/node_modules/content-type
[email protected] /var/app/staging/node_modules/debug
[email protected] /var/app/staging/node_modules/ms
[email protected] /var/app/staging/node_modules/depd
[email protected] /var/app/staging/node_modules/http-errors
[email protected] /var/app/staging/node_modules/inherits
[email protected] /var/app/staging/node_modules/setprototypeof
[email protected] /var/app/staging/node_modules/statuses
[email protected] /var/app/staging/node_modules/toidentifier
[email protected] /var/app/staging/node_modules/iconv-lite
[email protected] /var/app/staging/node_modules/safer-buffer
[email protected] /var/app/staging/node_modules/on-finished
[email protected] /var/app/staging/node_modules/ee-first
[email protected] /var/app/staging/node_modules/qs
[email protected] /var/app/staging/node_modules/raw-body
[email protected] /var/app/staging/node_modules/unpipe
[email protected] /var/app/staging/node_modules/type-is
[email protected] /var/app/staging/node_modules/media-typer
[email protected] /var/app/staging/node_modules/content-disposition
[email protected] /var/app/staging/node_modules/safe-buffer
[email protected] /var/app/staging/node_modules/cookie
[email protected] /var/app/staging/node_modules/cookie-signature
[email protected] /var/app/staging/node_modules/encodeurl
[email protected] /var/app/staging/node_modules/escape-html
[email protected] /var/app/staging/node_modules/etag
[email protected] /var/app/staging/node_modules/finalhandler
[email protected] /var/app/staging/node_modules/parseurl
[email protected] /var/app/staging/node_modules/fresh
[email protected] /var/app/staging/node_modules/merge-descriptors
[email protected] /var/app/staging/node_modules/methods
[email protected] /var/app/staging/node_modules/path-to-regexp
[email protected] /var/app/staging/node_modules/proxy-addr
[email protected] /var/app/staging/node_modules/forwarded
[email protected] /var/app/staging/node_modules/ipaddr.js
[email protected] /var/app/staging/node_modules/range-parser
[email protected] /var/app/staging/node_modules/send
[email protected] /var/app/staging/node_modules/destroy
[email protected] /var/app/staging/node_modules/mime
[email protected] /var/app/staging/node_modules/send/node_modules/ms
[email protected] /var/app/staging/node_modules/serve-static
[email protected] /var/app/staging/node_modules/utils-merge
[email protected] /var/app/staging/node_modules/vary
[email protected] /var/app/staging/node_modules/kerberos
[email protected] /var/app/staging/node_modules/bindings
[email protected] /var/app/staging/node_modules/file-uri-to-path
[email protected] /var/app/staging/node_modules/nan
[email protected] /var/app/staging/node_modules/prebuild-install
[email protected] /var/app/staging/node_modules/detect-libc
[email protected] /var/app/staging/node_modules/expand-template
[email protected] /var/app/staging/node_modules/github-from-package
[email protected] /var/app/staging/node_modules/minimist
[email protected] /var/app/staging/node_modules/mkdirp
[email protected] /var/app/staging/node_modules/napi-build-utils
[email protected] /var/app/staging/node_modules/node-abi
[email protected] /var/app/staging/node_modules/semver
[email protected] /var/app/staging/node_modules/noop-logger
[email protected] /var/app/staging/node_modules/npmlog
[email protected] /var/app/staging/node_modules/are-we-there-yet
[email protected] /var/app/staging/node_modules/delegates
[email protected] /var/app/staging/node_modules/readable-stream
[email protected] /var/app/staging/node_modules/core-util-is
[email protected] /var/app/staging/node_modules/isarray
[email protected] /var/app/staging/node_modules/process-nextick-args
[email protected] /var/app/staging/node_modules/string_decoder
[email protected] /var/app/staging/node_modules/util-deprecate
[email protected] /var/app/staging/node_modules/console-control-strings
[email protected] /var/app/staging/node_modules/gauge
[email protected] /var/app/staging/node_modules/aproba
[email protected] /var/app/staging/node_modules/has-unicode
[email protected] /var/app/staging/node_modules/object-assign
[email protected] /var/app/staging/node_modules/signal-exit
[email protected] /var/app/staging/node_modules/string-width
[email protected] /var/app/staging/node_modules/code-point-at
[email protected] /var/app/staging/node_modules/is-fullwidth-code-point
[email protected] /var/app/staging/node_modules/number-is-nan
[email protected] /var/app/staging/node_modules/strip-ansi
[email protected] /var/app/staging/node_modules/ansi-regex
[email protected] /var/app/staging/node_modules/wide-align
[email protected] /var/app/staging/node_modules/set-blocking
[email protected] /var/app/staging/node_modules/os-homedir
[email protected] /var/app/staging/node_modules/pump
[email protected] /var/app/staging/node_modules/end-of-stream
[email protected] /var/app/staging/node_modules/once
[email protected] /var/app/staging/node_modules/wrappy
[email protected] /var/app/staging/node_modules/rc
[email protected] /var/app/staging/node_modules/deep-extend
[email protected] /var/app/staging/node_modules/ini
[email protected] /var/app/staging/node_modules/strip-json-comments
[email protected] /var/app/staging/node_modules/simple-get
[email protected] /var/app/staging/node_modules/decompress-response
[email protected] /var/app/staging/node_modules/mimic-response
[email protected] /var/app/staging/node_modules/simple-concat
[email protected] /var/app/staging/node_modules/tar-fs
[email protected] /var/app/staging/node_modules/chownr
[email protected] /var/app/staging/node_modules/tar-fs/node_modules/pump
[email protected] /var/app/staging/node_modules/tar-stream
[email protected] /var/app/staging/node_modules/bl
[email protected] /var/app/staging/node_modules/buffer-alloc
[email protected] /var/app/staging/node_modules/buffer-alloc-unsafe
[email protected] /var/app/staging/node_modules/buffer-fill
[email protected] /var/app/staging/node_modules/fs-constants
[email protected] /var/app/staging/node_modules/to-buffer
[email protected] /var/app/staging/node_modules/xtend
[email protected] /var/app/staging/node_modules/tunnel-agent
[email protected] /var/app/staging/node_modules/which-pm-runs
[email protected] /var/app/staging/node_modules/parse
@babel/[email protected] /var/app/staging/node_modules/@babel/runtime
[email protected] /var/app/staging/node_modules/regenerator-runtime
@babel/[email protected] /var/app/staging/node_modules/@babel/runtime-corejs3
[email protected] /var/app/staging/node_modules/core-js-pure
[email protected] /var/app/staging/node_modules/react-native-crypto-js
[email protected] /var/app/staging/node_modules/uuid
[email protected] /var/app/staging/node_modules/ws
[email protected] /var/app/staging/node_modules/xmlhttprequest
[email protected] /var/app/staging/node_modules/parse-server
@apollographql/[email protected] /var/app/staging/node_modules/@apollographql/graphql-playground-html
[email protected] /var/app/staging/node_modules/xss
[email protected] /var/app/staging/node_modules/xss/node_modules/commander
[email protected] /var/app/staging/node_modules/cssfilter
@graphql-tools/[email protected] /var/app/staging/node_modules/@graphql-tools/links
@graphql-tools/[email protected] /var/app/staging/node_modules/@graphql-tools/links/node_modules/@graphql-tools/utils
@ardatan/[email protected] /var/app/staging/node_modules/@ardatan/aggregate-error
[email protected] /var/app/staging/node_modules/tslib
[email protected] /var/app/staging/node_modules/camel-case
[email protected] /var/app/staging/node_modules/pascal-case
[email protected] /var/app/staging/node_modules/no-case
[email protected] /var/app/staging/node_modules/lower-case
[email protected] /var/app/staging/node_modules/@graphql-tools/links/node_modules/@graphql-tools/utils/node_modules/tslib
[email protected] /var/app/staging/node_modules/apollo-link
[email protected] /var/app/staging/node_modules/apollo-utilities
@wry/[email protected] /var/app/staging/node_modules/@wry/equality
[email protected] /var/app/staging/node_modules/@wry/equality/node_modules/tslib
[email protected] /var/app/staging/node_modules/fast-json-stable-stringify
[email protected] /var/app/staging/node_modules/ts-invariant
[email protected] /var/app/staging/node_modules/ts-invariant/node_modules/tslib
[email protected] /var/app/staging/node_modules/apollo-utilities/node_modules/tslib
[email protected] /var/app/staging/node_modules/apollo-link/node_modules/tslib
[email protected] /var/app/staging/node_modules/zen-observable-ts
[email protected] /var/app/staging/node_modules/zen-observable-ts/node_modules/tslib
[email protected] /var/app/staging/node_modules/zen-observable
[email protected] /var/app/staging/node_modules/apollo-upload-client
@apollo/[email protected] /var/app/staging/node_modules/@apollo/client
@graphql-typed-document-node/[email protected] /var/app/staging/node_modules/@graphql-typed-document-node/core
@types/[email protected] /var/app/staging/node_modules/@types/zen-observable
@wry/[email protected] /var/app/staging/node_modules/@wry/context
[email protected] /var/app/staging/node_modules/@wry/context/node_modules/tslib
@wry/[email protected] /var/app/staging/node_modules/@apollo/client/node_modules/@wry/equality
[email protected] /var/app/staging/node_modules/@apollo/client/node_modules/@wry/equality/node_modules/tslib
[email protected] /var/app/staging/node_modules/graphql-tag
[email protected] /var/app/staging/node_modules/graphql-tag/node_modules/tslib
[email protected] /var/app/staging/node_modules/hoist-non-react-statics
[email protected] /var/app/staging/node_modules/react-is
[email protected] /var/app/staging/node_modules/optimism
@wry/[email protected] /var/app/staging/node_modules/@wry/trie
[email protected] /var/app/staging/node_modules/@wry/trie/node_modules/tslib
[email protected] /var/app/staging/node_modules/prop-types
[email protected] /var/app/staging/node_modules/loose-envify
[email protected] /var/app/staging/node_modules/js-tokens
[email protected] /var/app/staging/node_modules/symbol-observable
[email protected] /var/app/staging/node_modules/@apollo/client/node_modules/ts-invariant
[email protected] /var/app/staging/node_modules/@apollo/client/node_modules/ts-invariant/node_modules/tslib
[email protected] /var/app/staging/node_modules/@apollo/client/node_modules/tslib
[email protected] /var/app/staging/node_modules/extract-files
[email protected] /var/app/staging/node_modules/cross-fetch
[email protected] /var/app/staging/node_modules/node-fetch
[email protected] /var/app/staging/node_modules/form-data
[email protected] /var/app/staging/node_modules/asynckit
[email protected] /var/app/staging/node_modules/combined-stream
[email protected] /var/app/staging/node_modules/delayed-stream
[email protected] /var/app/staging/node_modules/is-promise
@graphql-tools/[email protected] /var/app/staging/node_modules/@graphql-tools/stitch
@graphql-tools/[email protected] /var/app/staging/node_modules/@graphql-tools/batch-delegate
@graphql-tools/[email protected] /var/app/staging/node_modules/@graphql-tools/delegate
@graphql-tools/[email protected] /var/app/staging/node_modules/@graphql-tools/schema
@graphql-tools/[email protected] /var/app/staging/node_modules/@graphql-tools/utils
[email protected] /var/app/staging/node_modules/@graphql-tools/utils/node_modules/camel-case
[email protected] /var/app/staging/node_modules/@graphql-tools/utils/node_modules/camel-case/node_modules/tslib
[email protected] /var/app/staging/node_modules/dataloader
@graphql-tools/[email protected] /var/app/staging/node_modules/@graphql-tools/merge
@graphql-tools/[email protected] /var/app/staging/node_modules/@graphql-tools/merge/node_modules/@graphql-tools/schema
@graphql-tools/[email protected] /var/app/staging/node_modules/@graphql-tools/merge/node_modules/@graphql-tools/utils
[email protected] /var/app/staging/node_modules/@graphql-tools/merge/node_modules/tslib
@graphql-tools/[email protected] /var/app/staging/node_modules/@graphql-tools/wrap
@parse/[email protected] /var/app/staging/node_modules/@parse/fs-files-adapter
@parse/[email protected] /var/app/staging/node_modules/@parse/push-adapter
@parse/[email protected] /var/app/staging/node_modules/@parse/node-apn
[email protected] /var/app/staging/node_modules/@parse/node-apn/node_modules/debug
[email protected] /var/app/staging/node_modules/@parse/node-apn/node_modules/jsonwebtoken
[email protected] /var/app/staging/node_modules/jws
[email protected] /var/app/staging/node_modules/jwa
[email protected] /var/app/staging/node_modules/buffer-equal-constant-time
[email protected] /var/app/staging/node_modules/ecdsa-sig-formatter
[email protected] /var/app/staging/node_modules/lodash.includes
[email protected] /var/app/staging/node_modules/lodash.isboolean
[email protected] /var/app/staging/node_modules/lodash.isinteger
[email protected] /var/app/staging/node_modules/lodash.isnumber
[email protected] /var/app/staging/node_modules/lodash.isplainobject
[email protected] /var/app/staging/node_modules/lodash.isstring
[email protected] /var/app/staging/node_modules/lodash.once
[email protected] /var/app/staging/node_modules/node-forge
[email protected] /var/app/staging/node_modules/verror
[email protected] /var/app/staging/node_modules/assert-plus
[email protected] /var/app/staging/node_modules/extsprintf
@parse/[email protected] /var/app/staging/node_modules/@parse/node-gcm
This code does not work. Let me find the logs.
Feel free to upload them again and Iāll look through
This version does not work.
2021/03/25 22:07:58.570520 [INFO] Starting...
2021/03/25 22:07:58.570576 [INFO] Starting EBPlatform-PlatformEngine
2021/03/25 22:07:58.570656 [INFO] reading event message file
2021/03/25 22:07:58.570788 [INFO] no eb envtier info file found, skip loading env tier info.
2021/03/25 22:07:58.570872 [INFO] Engine received EB command userdata-exec
2021/03/25 22:07:58.577844 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-get-metadata -s arn:aws-cn:cloudformation:cn-northwest-1:141349518755:stack/awseb-e-zvmddiperh-stack/6f8a21e0-8db6-11eb-90fa-02a6c4af50fc -r AWSEBAutoScalingGroup --region cn-northwest-1
2021/03/25 22:07:59.213008 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-get-metadata -s arn:aws-cn:cloudformation:cn-northwest-1:141349518755:stack/awseb-e-zvmddiperh-stack/6f8a21e0-8db6-11eb-90fa-02a6c4af50fc -r AWSEBBeanstalkMetadata --region cn-northwest-1
2021/03/25 22:07:59.843742 [INFO] This is a workflow controlled instance.
2021/03/25 22:07:59.843824 [INFO] Engine command: (env-launch)
2021/03/25 22:07:59.844064 [INFO] Executing instruction: SyncClock
2021/03/25 22:07:59.844069 [INFO] Starting SyncClock
2021/03/25 22:07:59.844079 [INFO] Running command /bin/sh -c /usr/bin/chronyc tracking
2021/03/25 22:07:59.850913 [INFO] Reference ID : A9FEA97B (169.254.169.123)
Stratum : 4
Ref time (UTC) : Thu Mar 25 22:07:59 2021
System time : 0.264815062 seconds slow of NTP time
Last offset : -0.000051369 seconds
RMS offset : 0.000051369 seconds
Frequency : 1.847 ppm fast
Residual freq : -20.606 ppm
Skew : 14.804 ppm
Root delay : 0.000247297 seconds
Root dispersion : 0.000360081 seconds
Update interval : 2.0 seconds
Leap status : Normal
2021/03/25 22:07:59.850935 [INFO] Running command /bin/sh -c /usr/bin/chronyc -a makestep
2021/03/25 22:08:00.118289 [INFO] 200 OK
2021/03/25 22:08:00.118322 [INFO] Skipping Configure OS
2021/03/25 22:08:00.118328 [INFO] Skipping LockGUID
2021/03/25 22:08:00.118332 [INFO] Skipping GenerateEBBanner
2021/03/25 22:08:00.118337 [INFO] Skipping Install Process Manager
2021/03/25 22:08:00.118341 [INFO] Skipping install proxy
2021/03/25 22:08:00.118345 [INFO] Skipping installhealthd
2021/03/25 22:08:00.118349 [INFO] Skipping Install Log Streaming Manager
2021/03/25 22:08:00.118353 [INFO] Skipping install X-Ray
2021/03/25 22:08:00.118357 [INFO] Skipping install Third Party License
2021/03/25 22:08:00.118361 [INFO] Skipping install httpd
2021/03/25 22:08:00.118366 [INFO] Instance has NOT been bootstrapped
2021/03/25 22:08:00.118369 [INFO] Executing instruction: installSqsd
2021/03/25 22:08:00.118374 [INFO] This is a web server environment instance, skip install sqsd daemon ā¦
2021/03/25 22:08:00.118379 [INFO] Instance has NOT been bootstrapped
2021/03/25 22:08:00.118384 [INFO] Executing instruction: bootstraphealthd
2021/03/25 22:08:00.118388 [INFO] this is an enhanced health env ā¦
2021/03/25 22:08:00.118399 [INFO] Running command /bin/sh -c id -u apache
2021/03/25 22:08:00.120687 [INFO] 48
2021/03/25 22:08:00.120701 [INFO] bootstrap healthdā¦
2021/03/25 22:08:00.120710 [INFO] Running command /bin/sh -c /usr/bin/id -u healthd || /usr/sbin/useradd --user-group healthd -s /sbin/nologin --create-home
2021/03/25 22:08:00.150990 [INFO] bootstrap healthdā¦
2021/03/25 22:08:00.151017 [INFO] Running command /bin/sh -c /usr/bin/id -u healthd || /usr/sbin/useradd --user-group healthd -s /sbin/nologin --create-home
2021/03/25 22:08:00.153597 [INFO] 1001
2021/03/25 22:08:00.153867 [INFO] Instance has NOT been bootstrapped
2021/03/25 22:08:00.153872 [INFO] Executing instruction: GetSetupProxyLog
2021/03/25 22:08:00.153935 [INFO] Skipping Install yum packages
2021/03/25 22:08:00.153943 [INFO] Skipping Install default nodejs
2021/03/25 22:08:00.153949 [INFO] Skipping MarkBaked
2021/03/25 22:08:00.153954 [INFO] Instance has NOT been bootstrapped
2021/03/25 22:08:00.153956 [INFO] Executing instruction: TuneSystemSettings
2021/03/25 22:08:00.153959 [INFO] Starting TuneSystemSettings
2021/03/25 22:08:00.153962 [INFO] Instance has NOT been bootstrapped
2021/03/25 22:08:00.154651 [INFO] Executing instruction: GetSetupLogRotate
2021/03/25 22:08:00.154660 [INFO] Initialize LogRotate files and directories
2021/03/25 22:08:00.169684 [INFO] Instance has NOT been bootstrapped
2021/03/25 22:08:00.169693 [INFO] Executing instruction: BootstrapCFNHup
2021/03/25 22:08:00.169695 [INFO] Bootstrap cfn-hup
2021/03/25 22:08:00.171103 [INFO] Copying file /opt/elasticbeanstalk/config/private/aws-eb-command-handler.conf to /etc/cfn/hooks.d/aws-eb-command-handler.conf
2021/03/25 22:08:00.172576 [INFO] Executing instruction: StartCFNHup
2021/03/25 22:08:00.172584 [INFO] Start cfn-hup
2021/03/25 22:08:00.172597 [INFO] Running command /bin/sh -c systemctl is-active cfn-hup.service
2021/03/25 22:08:00.175878 [INFO] Running command /bin/sh -c systemctl is-active cfn-hup.service
2021/03/25 22:08:00.179551 [INFO] Running command /bin/sh -c systemctl show -p PartOf cfn-hup.service
2021/03/25 22:08:00.190250 [INFO] Running command /bin/sh -c systemctl daemon-reload
2021/03/25 22:08:00.245663 [INFO] Running command /bin/sh -c systemctl reset-failed
2021/03/25 22:08:00.249704 [INFO] Running command /bin/sh -c systemctl is-enabled aws-eb.target
2021/03/25 22:08:00.253278 [INFO] Running command /bin/sh -c systemctl enable aws-eb.target
2021/03/25 22:08:00.298204 [INFO] Running command /bin/sh -c systemctl start aws-eb.target
2021/03/25 22:08:00.302164 [INFO] Running command /bin/sh -c systemctl enable cfn-hup.service
2021/03/25 22:08:00.350094 [INFO] Running command /bin/sh -c systemctl show -p PartOf cfn-hup.service
2021/03/25 22:08:00.354939 [INFO] Running command /bin/sh -c systemctl is-active cfn-hup.service
2021/03/25 22:08:00.358021 [INFO] Running command /bin/sh -c systemctl start cfn-hup.service
2021/03/25 22:08:00.392049 [INFO] Instance has NOT been bootstrapped
2021/03/25 22:08:00.392065 [INFO] Executing instruction: SetupPublishLogCronjob
2021/03/25 22:08:00.392070 [INFO] Setup publish logs cron jobā¦
2021/03/25 22:08:00.392075 [INFO] Copying file /opt/elasticbeanstalk/config/private/logtasks/cron/publishlogs to /etc/cron.d/publishlogs
2021/03/25 22:08:00.393817 [INFO] Instance has NOT been bootstrapped
2021/03/25 22:08:00.393825 [INFO] Executing instruction: MarkBootstrapped
2021/03/25 22:08:00.393829 [INFO] Starting MarkBootstrapped
2021/03/25 22:08:00.393834 [INFO] Instance has NOT been bootstrapped
2021/03/25 22:08:00.393889 [INFO] Marked instance as Bootstrapped
2021/03/25 22:08:00.393895 [INFO] Executing instruction: Save CFN Stack Info
2021/03/25 22:08:00.393954 [INFO] Starting SwitchCFNStack
2021/03/25 22:08:00.393960 [INFO] Executing cleanup logic
2021/03/25 22:08:00.393965 [INFO] Platform Engine finished execution on command: env-launch
2021/03/25 22:08:45.011898 [INFO] Startingā¦
2021/03/25 22:08:45.011947 [INFO] Starting EBPlatform-PlatformEngine
2021/03/25 22:08:45.011965 [INFO] reading event message file
2021/03/25 22:08:45.012086 [INFO] no eb envtier info file found, skip loading env tier info.
2021/03/25 22:08:45.012161 [INFO] Engine received EB command cfn-hup-exec
2021/03/25 22:08:45.090367 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-get-metadata -s arn:aws-cn:cloudformation:cn-northwest-1:141349518755:stack/awseb-e-zvmddiperh-stack/6f8a21e0-8db6-11eb-90fa-02a6c4af50fc -r AWSEBAutoScalingGroup --region cn-northwest-1
2021/03/25 22:08:45.490787 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-get-metadata -s arn:aws-cn:cloudformation:cn-northwest-1:141349518755:stack/awseb-e-zvmddiperh-stack/6f8a21e0-8db6-11eb-90fa-02a6c4af50fc -r AWSEBBeanstalkMetadata --region cn-northwest-1
2021/03/25 22:08:45.889193 [INFO] checking whether command app-deploy is applicable to this instanceā¦
2021/03/25 22:08:45.889206 [INFO] this command is applicable to the instance, thus instance should execute command
2021/03/25 22:08:45.889210 [INFO] Engine command: (app-deploy)
2021/03/25 22:08:45.889214 [INFO] Downloading EB Applicationā¦
2021/03/25 22:08:45.889218 [INFO] Region: cn-northwest-1
2021/03/25 22:08:45.889221 [INFO] envID: e-zvmddiperh
2021/03/25 22:08:45.889224 [INFO] envBucket: elasticbeanstalk-cn-northwest-1-141349518755
2021/03/25 22:08:45.889234 [INFO] Using manifest file name from command request
2021/03/25 22:08:45.889242 [INFO] Unable to get version manifest file.
2021/03/25 22:08:45.889245 [INFO] Downloading latest manifest available.
2021/03/25 22:08:45.889247 [INFO] Download latest app version manifest
2021/03/25 22:08:45.889331 [INFO] resources/environments/e-zvmddiperh/_runtime/versions/manifest
2021/03/25 22:08:45.927062 [INFO] latestManifest key *: resources/environments/e-zvmddiperh/_runtime/versions/manifest_1616710025481
2021/03/25 22:08:45.927220 [INFO] Downloading: bucket: elasticbeanstalk-cn-northwest-1-141349518755, object: /resources/environments/e-zvmddiperh/_runtime/versions/manifest_1616710025481
2021/03/25 22:08:45.940262 [INFO] Download successful131bytes downloaded
2021/03/25 22:08:45.940333 [INFO] Trying to read and parse version manifestā¦
2021/03/25 22:08:45.940396 [INFO] Downloading: bucket: elasticbeanstalk-cn-northwest-1-141349518755, object: /resources/environments/e-zvmddiperh/_runtime/_versions/phonecall3/phonecall3-source
2021/03/25 22:08:45.950906 [INFO] Download successful28770bytes downloaded
2021/03/25 22:08:45.951174 [INFO] Executing instruction: ElectLeader
2021/03/25 22:08:45.951182 [INFO] Running leader election for instance i-05c983667f1f33b0bā¦
2021/03/25 22:08:45.951187 [INFO] Calling the cfn-elect-cmd-leader to elect the command leader.
2021/03/25 22:08:45.951198 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-elect-cmd-leader --stack arn:aws-cn:cloudformation:cn-northwest-1:141349518755:stack/awseb-e-zvmddiperh-stack/6f8a21e0-8db6-11eb-90fa-02a6c4af50fc --command-name ElasticBeanstalkCommand-AWSEBAutoScalingGroup --invocation-id 8850544a-d845-4c84-bb82-8cbe2b793720 --listener-id i-05c983667f1f33b0b --region cn-northwest-1
2021/03/25 22:08:46.344065 [INFO] Instance is Leader.
2021/03/25 22:08:46.344137 [INFO] Executing instruction: stopSqsd
2021/03/25 22:08:46.344143 [INFO] This is a web server environment instance, skip stop sqsd daemon ā¦
2021/03/25 22:08:46.344147 [INFO] Executing instruction: PreBuildEbExtension
2021/03/25 22:08:46.344150 [INFO] Starting executing the config set Infra-EmbeddedPreBuild.
2021/03/25 22:08:46.344165 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-init -s arn:aws-cn:cloudformation:cn-northwest-1:141349518755:stack/awseb-e-zvmddiperh-stack/6f8a21e0-8db6-11eb-90fa-02a6c4af50fc -r AWSEBAutoScalingGroup --region cn-northwest-1 --configsets Infra-EmbeddedPreBuild
2021/03/25 22:08:46.768768 [INFO] Finished executing the config set Infra-EmbeddedPreBuild.
2021/03/25 22:08:46.768792 [INFO] Executing instruction: StageApplication
2021/03/25 22:08:46.768928 [INFO] extracting /opt/elasticbeanstalk/deployment/app_source_bundle to /var/app/staging/
2021/03/25 22:08:46.768947 [INFO] Running command /bin/sh -c /usr/bin/unzip -q -o /opt/elasticbeanstalk/deployment/app_source_bundle -d /var/app/staging/
2021/03/25 22:08:46.773287 [INFO] finished extracting /opt/elasticbeanstalk/deployment/app_source_bundle to /var/app/staging/ successfully
2021/03/25 22:08:46.773954 [INFO] Executing instruction: RunAppDeployPreBuildHooks
2021/03/25 22:08:46.773970 [INFO] The dir .platform/hooks/prebuild/ does not exist in the application. Skipping this stepā¦
2021/03/25 22:08:46.773974 [INFO] Executing instruction: Install customer specified node.js version
2021/03/25 22:08:46.773977 [INFO] installing specified nodejs versionā¦
2021/03/25 22:08:46.774098 [INFO] validate the node.js version specified by customerā¦
2021/03/25 22:08:46.774597 [INFO] installing node-v14.9.0-linux-x64.tar.gz
2021/03/25 22:08:46.774625 [INFO] Downloading file with path: /tmp/node-v14.9.0-linux-x64.tar.gz
2021/03/25 22:08:46.774654 [INFO] URL: https://elasticbeanstalk-platform-assets-cn-northwest-1.s3.cn-northwest-1.amazonaws.com.cn/stalks/eb_nodejs14_amazon_linux_2_1.0.818.0_20210225042829/lib/node-v14.9.0-linux-x64.tar.gz
2021/03/25 22:08:47.117668 [INFO] Finished download file from https://elasticbeanstalk-platform-assets-cn-northwest-1.s3.cn-northwest-1.amazonaws.com.cn/stalks/eb_nodejs14_amazon_linux_2_1.0.818.0_20210225042829/lib/node-v14.9.0-linux-x64.tar.gz
2021/03/25 22:08:47.117805 [INFO] extracting /tmp/node-v14.9.0-linux-x64.tar.gz to /opt/elasticbeanstalk/node-install
2021/03/25 22:08:47.117834 [INFO] Running command /bin/sh -c /usr/bin/tar -xzf /tmp/node-v14.9.0-linux-x64.tar.gz -C /opt/elasticbeanstalk/node-install
2021/03/25 22:08:48.178037 [INFO] finished extracting /tmp/node-v14.9.0-linux-x64.tar.gz to /opt/elasticbeanstalk/node-install successfully
2021/03/25 22:08:48.183709 [INFO] create soft link from /opt/elasticbeanstalk/node-install/node-v14.9.0-linux-x64/bin/node to /usr/bin/node
2021/03/25 22:08:48.185273 [INFO] create soft link from /opt/elasticbeanstalk/node-install/node-v14.9.0-linux-x64/bin/npx to /usr/bin/npx
2021/03/25 22:08:48.185335 [INFO] create soft link from /opt/elasticbeanstalk/node-install/node-v14.9.0-linux-x64/bin/npm to /usr/bin/npm
2021/03/25 22:08:48.185356 [INFO] Executing instruction: Use NPM to install dependencies
2021/03/25 22:08:48.185369 [INFO] use npm to install dependencies
2021/03/25 22:08:48.185438 [INFO] Running command /bin/sh -c npm config set jobs 1
2021/03/25 22:08:48.426444 [INFO] Running command /bin/sh -c npm --production install
2021/03/25 22:09:50.898579 [INFO]
[email protected] install /var/app/staging/node_modules/kerberos
prebuild-install || node-gyp rebuild
2021/03/25 22:09:50.900886 [ERROR] An error occurred during execution of command [app-deploy] - [Use NPM to install dependencies]. Stop running the command. Error: Command /bin/sh -c npm --production install failed with error exit status 244. Stderr:npm WARN deprecated [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated [email protected]: No longer maintained
npm WARN deprecated [email protected]: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410
npm WARN deprecated [email protected]: request has been deprecated, see Requestās Past, Present and Future Ā· Issue #3142 Ā· request/request Ā· GitHub
npm WARN deprecated [email protected]: request has been deprecated, see Requestās Past, Present and Future Ā· Issue #3142 Ā· request/request Ā· GitHub
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
2021/03/25 22:09:50.900906 [INFO] Executing cleanup logic
2021/03/25 22:09:50.909623 [INFO] CommandService Response: {āstatusā:āFAILUREā,āapi_versionā:ā1.0ā,āresultsā:[{āstatusā:āFAILUREā,āmsgā:āEngine execution has encountered an error.ā,āreturncodeā:1,āeventsā:[{āmsgā:āInstance deployment: ānpmā failed to install dependencies that you defined in āpackage.jsonā. For details, see āeb-engine.logā. The deployment failed.ā,ātimestampā:1616710190,āseverityā:āERRORā},{āmsgā:āInstance deployment failed. For details, see āeb-engine.logā.ā,ātimestampā:1616710190,āseverityā:āERRORā}]}]}
2021/03/25 22:09:50.913968 [INFO] Platform Engine finished execution on command: app-deploy
2021/03/25 22:16:39.688532 [INFO] Startingā¦
2021/03/25 22:16:39.688578 [INFO] Starting EBPlatform-PlatformEngine
2021/03/25 22:16:39.689040 [INFO] reading event message file
2021/03/25 22:16:39.689661 [INFO] no eb envtier info file found, skip loading env tier info.
2021/03/25 22:16:39.689736 [INFO] Engine received EB command cfn-hup-exec
2021/03/25 22:16:39.785657 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-get-metadata -s arn:aws-cn:cloudformation:cn-northwest-1:141349518755:stack/awseb-e-zvmddiperh-stack/6f8a21e0-8db6-11eb-90fa-02a6c4af50fc -r AWSEBAutoScalingGroup --region cn-northwest-1
2021/03/25 22:16:40.497092 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-get-metadata -s arn:aws-cn:cloudformation:cn-northwest-1:141349518755:stack/awseb-e-zvmddiperh-stack/6f8a21e0-8db6-11eb-90fa-02a6c4af50fc -r AWSEBBeanstalkMetadata --region cn-northwest-1
2021/03/25 22:16:40.846095 [INFO] checking whether command bundle-log is applicable to this instanceā¦
2021/03/25 22:16:40.846112 [INFO] this command is applicable to the instance, thus instance should execute command
2021/03/25 22:16:40.846115 [INFO] Engine command: (bundle-log)
2021/03/25 22:16:40.847126 [INFO] Executing instruction: GetBundleLogs
2021/03/25 22:16:40.847131 [INFO] Bundle Logsā¦
What is the difference of this approach? Also, what is wrong with the github zipped code?
Could you upload your full logs via wetransfer again and Iāll look through
Nothing, just wasnāt sure if you were ok with downloading the file via wetransfer.
Iām not sure why the GitHub ZIP doesnāt work out of the box. Itās something weāll need to look at, and I appreciate your help in trying to get to the bottom of this so that hopefully future developers donāt run into these issues.
No problem. I just really hope to fix this problem.
Here is the complete log. Because last version did not deploy successfully, I think the log is also not complete. But you can definitely see the problems.
EB Cli tool does not work for Beanstalk China region. In the China region, one can only upload the code via the web. That is why I only tried to upload the code via the web. But I donāt think using cli tool to deploy will make much difference.
Strange, I just deployed using the ZIP I created with no issues. Could you try:
- Create a NodeJS with AWSā sample code
- Wait for environment to deploy
- Upload and deploy the ZIP
I just tried again. It looks like your last version is working now.
What did you change in the code?
I just changed the node engine, and added a .npmrc file.
You should be good to work through the Parse config now.
Hi, I found another problem. I just changed the environmental variable DATABASE_URI. Then, beanstalk restarted and it stopped working. So, any change in the environmental variable will fail the Beanstalk instance.
Here is my complete log.
I can see the problem is still ānpm installā failed to install modules.
Do you know how to fix this?
Also, could you upload your code to github so that I can see exactly what you changed?
Thanks
Have a look at web.stdout, this file will be the Parse instance logs. I assume the Parse Server cannot connect to the db.
From my last log files, I see the problem is that ānpm installā failed to install some modules. Where did you see my problem is the db connection issue? But, let me check my db configuration again.
I checked my db settings again.
The RDS db works locally.
Moreover, if you look the timeline of my log files, you can see eb-engine.log has latest lines while web.stdout.log does not have latest lines.
This means eb-engine started while parse server did not even start.
So, I am 100% sure your package.json file still has some problems. Beanstalk cannot install some modules in packae.json.
I attached my latest logs. Could you fix this problem? Thanks
So, basically, your latest code works for initial setup, but it will fail if environmental variable changes.