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

Error when I don't need any EXTERNAL_SCRIPTS #198

Open
dannyZhou opened this issue Feb 3, 2017 · 2 comments · May be fixed by #289
Open

Error when I don't need any EXTERNAL_SCRIPTS #198

dannyZhou opened this issue Feb 3, 2017 · 2 comments · May be fixed by #289

Comments

@dannyZhou
Copy link

Sometimes I don't need any EXTERNAL_SCRIPTS so I empty EXTERNAL_SCRIPTS when I set docker-compose.yml this is an example.

version: '2.1'
services:
  hubot:
    image: rocketchat/hubot-rocketchat:latest
    environment:
      - ROCKETCHAT_URL=${ROCKETCHAT_URL:-http://localhost:3000}
      - ROCKETCHAT_ROOM=${ROCKETCHAT_ROOM:-general}
      - ROCKETCHAT_USER=${ROCKETCHAT_USER:-bot}
      - ROCKETCHAT_PASSWORD=${ROCKETCHAT_PASSWORD:-botpassword}
      - BOT_NAME=${BOT_NAME:-bot}
      - EXTERNAL_SCRIPTS=
      - HUBOT_JENKINS_URL=${HUBOT_JENKINS_URL:-http://localhost:8090}
      - HUBOT_JENKINS_AUTH=${HUBOT_JENKINS_AUTH}
    volumes:
      - ./scripts:/home/hubot/scripts

I run docker-compose up

Error is:

hubot_1  | 
hubot_1  | Your hubot-scripts.json is empty, so you just need to remove it.
hubot_1  | [Fri Feb 03 2017 01:21:05 GMT+0000 (UTC)] ERROR Error loading scripts from npm package - AssertionError: missing path
hubot_1  |   at Module.require (module.js:363:3)
hubot_1  |   at require (module.js:384:17)
hubot_1  |   at Robot.loadExternalScripts (/home/hubot/node_modules/hubot/src/robot.coffee:401:11, <js>:272:27)
hubot_1  |   at /home/hubot/node_modules/hubot/bin/hubot:152:11, <js>:159:26
hubot_1  |   at fs.js:334:14
hubot_1  |   at FSReqWrap.oncomplete (fs.js:95:15)
hubot_1  | 
myhubot_hubot_1 exited with code 1

@rrLucho
Copy link

rrLucho commented Feb 8, 2018

Did you find a solution for this?

I'm running into the same issue

@agepilar
Copy link

agepilar commented Apr 24, 2020

I'm also running into the same issue. Is it possible to do simply something like
- EXTERNAL_SCRIPTS=false
or
- EXTERNAL_SCRIPTS=none
If starting docker-compose.yml without
- EXTERNAL_SCRIPTS=
hubot install automatically some hubot scripts like hubot-help etc.

Edit:
Seems like
- EXTERNAL_SCRIPTS=false
did the job

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

Successfully merging a pull request may close this issue.

3 participants