-
Notifications
You must be signed in to change notification settings - Fork 16
Description
Hi,
I'm trying to run hubot locally and configured it using gcp pub/sub adapter. I published my bot on hangout chat as well following this guide https://developers.google.com/hangouts/chat/how-tos/integrate-hubot
It shows up as green in chat (so I think it is connecting with my app), but I don't get any response back from the bot.
So, I tried getting logs from my docker container, where I'm running it. But, it doesn't contain any relevant information. This blocks me to do anything further. Any help is appreciated.
Here is my Dockerfile
FROM node:latest
ENV DEBIAN_FRONTEND=noninteractive \
HUBOT_NAME=myhubot \
HUBOT_OWNER=none \
HUBOT_DESCRIPTION=Hubot \
EXTERNAL_SCRIPTS="hubot-help,hubot-pugme" \
PORT=8080 \
EXPRESS_PORT=8081 \
IS_PUBSUB=true \
PUBSUB_PROJECT_ID='hubot-hangout-project' \
PUBSUB_SUBSCRIPTION_ID='testsub' \
GOOGLE_APPLICATION_CREDENTIALS='/home/hubot/cred/hubot-hangout-project-07a6200156ce.json'
RUN useradd hubot -m && \
npm install -g hubot coffeescript yo generator-hubot && \
npm install hubot-google-hangouts-chat
USER hubot
WORKDIR /home/hubot
RUN yo hubot --owner="${HUBOT_OWNER}" --name="${HUBOT_NAME}" --description="${HUBOT_DESCRIPTION}" --defaults && \
sed -i /heroku/d ./external-scripts.json && \
sed -i /redis-brain/d ./external-scripts.json && \
npm install hubot-scripts --save && \
node -e "console.log(JSON.stringify('$EXTERNAL_SCRIPTS'.split(',')))" > external-scripts.json && \
npm install $(node -e "console.log('$EXTERNAL_SCRIPTS'.split(',').join(' '))")
EXPOSE 8080 8081
VOLUME ["/home/hubot/scripts"]
CMD bin/hubot -n $HUBOT_NAME --adapter google-hangouts-chat
And here are my logs
audited 178 packages in 1.296s
found 0 vulnerabilitiesbody-parser deprecated undefined extended: provide extended option node_modules/hubot/src/robot.js:445:21
[Fri Dec 07 2018 15:31:43 GMT+0000 (Coordinated Universal Time)] INFO Connecting to Pub/Sub subscription - projects/hubot-hangout-project/subscriptions/testsub
[Fri Dec 07 2018 15:31:43 GMT+0000 (Coordinated Universal Time)] INFO Hangouts Chat adapter initialized successfully
[Fri Dec 07 2018 15:31:43 GMT+0000 (Coordinated Universal Time)] WARNING Loading scripts from hubot-scripts.json is deprecated and will be removed in 3.0 (github/hubot-scripts#1113) in favor of packages for each script.Your hubot-scripts.json is empty, so you just need to remove it.
(node:8) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead