Skip to content
This repository has been archived by the owner on Nov 24, 2018. It is now read-only.

Unable to start Chrome: Error occured in serverless-plugin-chrome wrapper when trying to ensure Chrome for default() handler. { functions: [ 'run' ], flags: [] } #472

Open
chrislink14 opened this issue Oct 5, 2018 · 2 comments

Comments

@chrislink14
Copy link

This is a Bug Report

Description

No matter what I attempt, I have rebuilt this project from scratch several times and re-deployed the project a couple times. I deleted the api gateway and built everything again as well.

This is the return result from the gateway /version:
{"chromeless":"1.5.2","serverlessChromeless":"1.3.0"}

This is the cloud-watch results I receive back from trying to call the lambda function:
START RequestId: 5cb10558-c8de-11e8-83dd-9d04c8806d7b Version: $LATEST
2018-10-05T20:36:39.906Z 5cb10558-c8de-11e8-83dd-9d04c8806d7b @serverless-chrome/lambda: Spawning headless shell
2018-10-05T20:36:39.919Z 5cb10558-c8de-11e8-83dd-9d04c8806d7b @serverless-chrome/lambda: ChromeLauncher No debugging port found on port 9222, launching a new Chrome.
2018-10-05T20:36:39.924Z 5cb10558-c8de-11e8-83dd-9d04c8806d7b @serverless-chrome/lambda: Launcher Chrome running with pid 450 on port 9222.
2018-10-05T20:36:39.924Z 5cb10558-c8de-11e8-83dd-9d04c8806d7b @serverless-chrome/lambda: Waiting for Chrome 0
2018-10-05T20:36:40.426Z 5cb10558-c8de-11e8-83dd-9d04c8806d7b @serverless-chrome/lambda: Waiting for Chrome 1
2018-10-05T20:36:40.927Z 5cb10558-c8de-11e8-83dd-9d04c8806d7b @serverless-chrome/lambda: Waiting for Chrome 2
2018-10-05T20:36:41.428Z 5cb10558-c8de-11e8-83dd-9d04c8806d7b @serverless-chrome/lambda: Waiting for Chrome 3
2018-10-05T20:36:41.930Z 5cb10558-c8de-11e8-83dd-9d04c8806d7b @serverless-chrome/lambda: Waiting for Chrome 4
2018-10-05T20:36:42.431Z 5cb10558-c8de-11e8-83dd-9d04c8806d7b @serverless-chrome/lambda: Waiting for Chrome 5
2018-10-05T20:36:42.932Z 5cb10558-c8de-11e8-83dd-9d04c8806d7b @serverless-chrome/lambda: Waiting for Chrome 6
2018-10-05T20:36:43.440Z 5cb10558-c8de-11e8-83dd-9d04c8806d7b @serverless-chrome/lambda: Waiting for Chrome 7
2018-10-05T20:36:43.941Z 5cb10558-c8de-11e8-83dd-9d04c8806d7b @serverless-chrome/lambda: Waiting for Chrome 8
2018-10-05T20:36:44.443Z 5cb10558-c8de-11e8-83dd-9d04c8806d7b @serverless-chrome/lambda: Waiting for Chrome 9
2018-10-05T20:36:44.944Z 5cb10558-c8de-11e8-83dd-9d04c8806d7b @serverless-chrome/lambda: Waiting for Chrome 10
2018-10-05T20:36:44.946Z 5cb10558-c8de-11e8-83dd-9d04c8806d7b @serverless-chrome/lambda: Error trying to spawn chrome: { Error: connect ECONNREFUSED 127.0.0.1:9222
at Object.exports._errnoException (util.js:1018:11)
at exports._exceptionWithHostPort (util.js:1041:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1086:14)
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 9222 }
2018-10-05T20:36:44.946Z 5cb10558-c8de-11e8-83dd-9d04c8806d7b @serverless-chrome/lambda: stdout log:
2018-10-05T20:36:44.946Z 5cb10558-c8de-11e8-83dd-9d04c8806d7b @serverless-chrome/lambda: stderr log: [1005/203639.928320:WARNING:resource_bundle.cc(358)] locale_file_path.empty() for locale
prctl(PR_SET_NO_NEW_PRIVS) failed
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 84: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 84: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 93: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 93: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 102: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 102: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 33: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 33: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 33: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 33: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 33: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 33: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 33: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 33: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 33: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 33: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 33: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 33: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 33: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 33: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 33: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 33: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 33: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 33: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 59: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 59: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 59: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 59: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 59: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 59: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 59: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 59: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 59: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 59: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 59: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 59: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 59: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 59: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 59: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 59: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 59: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 59: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 59: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 68: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 68: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 79: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 79: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 79: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 88: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 23: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 23: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 23: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 23: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 23: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 23: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 23: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 23: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 39: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 39: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 39: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 39: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 39: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 39: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 39: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 39: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 39: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 56: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 56: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 56: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 56: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 56: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 56: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 56: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 56: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 56: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 56: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 66: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 66: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 66: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 75: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 75: Having multiple in isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/fonts.conf", line 82: unknown element "blank"
[1005/203640.056110:ERROR:gpu_process_transport_factory.cc(1007)] Lost UI shared context.
[1005/203640.056288:VERBOSE1:webrtc_internals.cc(121)] Could not get the download directory.
[1005/203640.060202:VERBOSE1:proxy_resolution_service.cc(1016)] PAC support disabled because there is no system implementation

DevTools listening on ws://127.0.0.1:9222/devtools/browser/b35452a6-7aca-4c60-bf53-eda493bb4e4b
Received signal 11 SEGV_MAPERR 000000000000
#0 0x000003b7633c
#1 0x000003b75ea1
#2 0x7f5ecc53a5a0
#3 0x7f5ecaff18f1 __strlen_sse2_pminub
#4 0x000004810bf8
#5 0x000004810728
#6 0x000004897c58
#7 0x000003b07079
#8 0x000003b06262
#9 0x000003b06727
#10 0x000003b87529
#11 0x000003b1f245
#12 0x000003613a64
#13 0x000003613823
#14 0x000003616052
#15 0x000003b9857f
#16 0x000003ab132e
#17 0x000004bfefcb
#18 0x000003aa9d31
#19 0x000003b9745d
#20 0x000003b974e8
#21 0x000003aea99a
#22 0x7f5ecaeadc05 __libc_start_main
#23 0x00000242402a _start
r8: 0000000000000000 r9: 00001dbb8f3df738 r10: 00007f5ecafc1790 r11: 00007f5ecb00fa50
r12: 00007fffc2ba7e20 r13: 00001dbb8f312c00 r14: 00001dbb8f312f88 r15: 00001dbb8f2148c0
di: 0000000000000000 si: 0000000000000000 bp: 00007fffc2ba7f80 bx: 0000000000000000
dx: 0000000006affc10 ax: 0000000000000000 cx: 0000000000000000 sp: 00007fffc2ba7cf8
ip: 00007f5ecaff18f1 efl: 0000000000010283 cgf: 002b000000000033 erf: 0000000000000004
trp: 000000000000000e msk: 0000000000000000 cr2: 0000000000000000
[end of stack trace]
Calling _exit(1). Core file will not be generated.

2018-10-05T20:36:44.947Z 5cb10558-c8de-11e8-83dd-9d04c8806d7b Error occured in serverless-plugin-chrome wrapper when trying to ensure Chrome for default() handler. { functions: [ 'run' ], flags: [] } Error: Unable to start Chrome. If you have the DEBUG env variable set,there will be more in the logs.
at /var/task/node_modules/@serverless-chrome/lambda/dist/bundle.cjs.js:376:13
at throw (native)
at step (/var/task/node_modules/@serverless-chrome/lambda/dist/bundle.cjs.js:311:193)
at /var/task/node_modules/@serverless-chrome/lambda/dist/bundle.cjs.js:311:404
at process._tickDomainCallback (internal/process/next_tick.js:135:7)
2018-10-05T20:36:44.947Z 5cb10558-c8de-11e8-83dd-9d04c8806d7b
{
"errorMessage": "Unable to start Chrome. If you have the DEBUG env variable set,there will be more in the logs.",
"errorType": "Error",
"stackTrace": [
"/var/task/node_modules/@serverless-chrome/lambda/dist/bundle.cjs.js:376:13",
"throw (native)",
"step (/var/task/node_modules/@serverless-chrome/lambda/dist/bundle.cjs.js:311:193)",
"/var/task/node_modules/@serverless-chrome/lambda/dist/bundle.cjs.js:311:404",
"process._tickDomainCallback (internal/process/next_tick.js:135:7)"
]
}

END RequestId: 5cb10558-c8de-11e8-83dd-9d04c8806d7b
REPORT RequestId: 5cb10558-c8de-11e8-83dd-9d04c8806d7b Duration: 5042.30 ms Billed Duration: 5100 ms Memory Size: 1536 MB Max Memory Used: 243 MB

@NikolaiT
Copy link

Having the same issue.

@hdtk7897
Copy link

I face the same problem, and become fixed when I downgrade the serverless-chrome/lambda to 1.0.0-38 according to following.

adieuadieu/serverless-chrome#97

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants