Skip to content

Error when starting bot on osx and ubuntu 16.04 #25

@michael-gracy

Description

@michael-gracy

15:11 $ npm start

slack-ooo-personal@1.8.1 start /Users/michael.gracy/source/github/slack-ooo-personal
node app.js

2017-11-16T23:11:11.853Z - info: Using the following configuration:
{ app:
{ message: '',
timebox: { start: 0, end: 0 },
reminder: 480,
respond: { dm: true, channel: false, bot: false, keywords: [] },
response:
{ dmprefix: 'Hello ${user}. I'm currently out of the office with message:\n\n',
channelprefix: 'Hello ${channel}. I'm currently out of the office with message:\n\n' },
announce: { channels: [], times: [] } },
slack: { token: '[ REDACTED ]', autoReconnect: true, autoMark: false } }
2017-11-16T23:11:11.858Z - info: Starting bot...
2017-11-16T23:11:11.860Z - info: ** No persistent storage method specified! Data may be lost when process shuts down.
2017-11-16T23:11:11.890Z - info: ** Setting up custom handlers for processing Slack messages
2017-11-16T23:11:12.902Z - info: ** API CALL: https://slack.com/api/rtm.start
2017-11-16T23:11:13.277Z - error: Error starting bot! invalid_auth
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! slack-ooo-personal@1.8.1 start: node app.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the slack-ooo-personal@1.8.1 start 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! /Users/michael.gracy/.npm/_logs/2017-11-16T23_11_13_287Z-debug.log

Debug log mentioned above:
0 info it worked if it ends with ok 1 verbose cli [ '/usr/local/Cellar/node/8.9.1/bin/node', 1 verbose cli '/usr/local/bin/npm', 1 verbose cli 'start' ] 2 info using npm@5.5.1 3 info using node@v8.9.1 4 verbose run-script [ 'prestart', 'start', 'poststart' ] 5 info lifecycle slack-ooo-personal@1.8.1~prestart: slack-ooo-personal@1.8.1 6 info lifecycle slack-ooo-personal@1.8.1~start: slack-ooo-personal@1.8.1 7 verbose lifecycle slack-ooo-personal@1.8.1~start: unsafe-perm in lifecycle true 8 verbose lifecycle slack-ooo-personal@1.8.1~start: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/michael.gracy/source/github/slack-ooo-personal/node_modules/.bin:/Users/michael.gracy/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/git/bin:/usr/local/go/bin:/usr/local/go 9 verbose lifecycle slack-ooo-personal@1.8.1~start: CWD: /Users/michael.gracy/source/github/slack-ooo-personal 10 silly lifecycle slack-ooo-personal@1.8.1~start: Args: [ '-c', 'node app.js' ] 11 silly lifecycle slack-ooo-personal@1.8.1~start: Returned: code: 1 signal: null 12 info lifecycle slack-ooo-personal@1.8.1~start: Failed to exec start script 13 verbose stack Error: slack-ooo-personal@1.8.1 start: node app.js13 verbose stack Exit status 1 13 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:280:16) 13 verbose stack at emitTwo (events.js:126:13) 13 verbose stack at EventEmitter.emit (events.js:214:7) 13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 13 verbose stack at emitTwo (events.js:126:13) 13 verbose stack at ChildProcess.emit (events.js:214:7) 13 verbose stack at maybeClose (internal/child_process.js:925:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) 14 verbose pkgid slack-ooo-personal@1.8.1 15 verbose cwd /Users/michael.gracy/source/github/slack-ooo-personal 16 verbose Darwin 16.7.0 17 verbose argv "/usr/local/Cellar/node/8.9.1/bin/node" "/usr/local/bin/npm" "start" 18 verbose node v8.9.1 19 verbose npm v5.5.1 20 error code ELIFECYCLE 21 error errno 1 22 error slack-ooo-personal@1.8.1 start:node app.js 22 error Exit status 1 23 error Failed at the slack-ooo-personal@1.8.1 start script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions