Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

Unhandled error, exits on timeouts #29

Open
baylej opened this issue Apr 6, 2017 · 0 comments
Open

Unhandled error, exits on timeouts #29

baylej opened this issue Apr 6, 2017 · 0 comments

Comments

@baylej
Copy link

baylej commented Apr 6, 2017

Hello,
gitter-irc-bot crashed on a timeout (to the gitter API I think).
Using latest from github (commit cdfcca3).

out/err output:

Apr 06 06:11:21 server npm[18137]: events.js:161
Apr 06 06:11:21 server npm[18137]: throw er; // Unhandled 'error' event
Apr 06 06:11:21 server npm[18137]: ^
Apr 06 06:11:21 server npm[18137]: Error: connect ETIMEDOUT 54.209.199.250:443
Apr 06 06:11:21 server npm[18137]: at Object.exports._errnoException (util.js:1028:11)
Apr 06 06:11:21 server npm[18137]: at exports._exceptionWithHostPort (util.js:1051:20)
Apr 06 06:11:21 server npm[18137]: at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)
Apr 06 06:11:21 server npm[18137]: npm ERR! Linux 4.1.0-sabayon
Apr 06 06:11:21 server npm[18137]: npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
Apr 06 06:11:21 server npm[18137]: npm ERR! node v7.6.0
Apr 06 06:11:21 server npm[18137]: npm ERR! npm  v4.1.2
Apr 06 06:11:21 server npm[18137]: npm ERR! code ELIFECYCLE
Apr 06 06:11:21 server npm[18137]: npm ERR! gitter-irc-bot@1.5.1 start: `./bin.js`
Apr 06 06:11:21 server npm[18137]: npm ERR! Exit status 1
Apr 06 06:11:21 server npm[18137]: npm ERR!
Apr 06 06:11:21 server npm[18137]: npm ERR! Failed at the gitter-irc-bot@1.5.1 start script './bin.js'.
Apr 06 06:11:21 server npm[18137]: npm ERR! Make sure you have the latest version of node.js and npm installed.
Apr 06 06:11:21 server npm[18137]: npm ERR! If you do, this is most likely a problem with the gitter-irc-bot package,
Apr 06 06:11:21 server npm[18137]: npm ERR! not with npm itself.
Apr 06 06:11:21 server npm[18137]: npm ERR! Tell the author that this fails on your system:
Apr 06 06:11:21 server npm[18137]: npm ERR!     ./bin.js
Apr 06 06:11:21 server npm[18137]: npm ERR! You can get information on how to open an issue for this project with:
Apr 06 06:11:21 server npm[18137]: npm ERR!     npm bugs gitter-irc-bot
Apr 06 06:11:21 server npm[18137]: npm ERR! Or if that isn't available, you can get their info via:
Apr 06 06:11:21 server npm[18137]: npm ERR!     npm owner ls gitter-irc-bot
Apr 06 06:11:21 server npm[18137]: npm ERR! There is likely additional logging output above.
Apr 06 06:11:21 server npm[18137]: npm WARN Local package.json exists, but node_modules missing, did you mean to install?
Apr 06 06:11:21 server npm[18137]: npm ERR! Please include the following file with any support request:
Apr 06 06:11:21 server npm[18137]: npm ERR!     /home/hide/node_modules/gitter-irc-bot/npm-debug.log

gitter-irc-bot/npm-debug.log contains:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
2 info using npm@4.1.2
3 info using node@v7.6.0
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle gitter-irc-bot@1.5.1~prestart: gitter-irc-bot@1.5.1
6 silly lifecycle gitter-irc-bot@1.5.1~prestart: no script for prestart, continuing
7 info lifecycle gitter-irc-bot@1.5.1~start: gitter-irc-bot@1.5.1
8 verbose lifecycle gitter-irc-bot@1.5.1~start: unsafe-perm in lifecycle true
9 verbose lifecycle gitter-irc-bot@1.5.1~start: PATH: /usr/lib64/node_modules/npm/bin/node-gyp-bin:/home/hide/node_modules/gitter-irc-bot/node_modules/.bin:/home/hide/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
10 verbose lifecycle gitter-irc-bot@1.5.1~start: CWD: /home/hide/node_modules/gitter-irc-bot
11 silly lifecycle gitter-irc-bot@1.5.1~start: Args: [ '-c', './bin.js' ]
12 silly lifecycle gitter-irc-bot@1.5.1~start: Returned: code: 1  signal: null
13 info lifecycle gitter-irc-bot@1.5.1~start: Failed to exec start script
14 verbose stack Error: gitter-irc-bot@1.5.1 start: `./bin.js`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (/usr/lib64/node_modules/npm/lib/utils/lifecycle.js:279:16)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at EventEmitter.emit (events.js:192:7)
14 verbose stack     at ChildProcess.<anonymous> (/usr/lib64/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at ChildProcess.emit (events.js:192:7)
14 verbose stack     at maybeClose (internal/child_process.js:890:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid gitter-irc-bot@1.5.1
16 verbose cwd /home/hide/node_modules/gitter-irc-bot
17 error Linux 4.1.0-sabayon
18 error argv "/usr/bin/node" "/usr/bin/npm" "start"
19 error node v7.6.0
20 error npm  v4.1.2
21 error code ELIFECYCLE
22 error gitter-irc-bot@1.5.1 start: `./bin.js`
22 error Exit status 1
23 error Failed at the gitter-irc-bot@1.5.1 start script './bin.js'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the gitter-irc-bot package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     ./bin.js
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs gitter-irc-bot
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls gitter-irc-bot
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

As a workaround I can tell systemd to restart the bot on exit failure, but I could miss some messages if a discussion is on-going!

Thanks.

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

1 participant