cabot-docker icon indicating copy to clipboard operation
cabot-docker copied to clipboard

Getting a 502 bad gateway error

Open surfacescan opened this issue 9 years ago • 9 comments

When accessing the http://server.address:8080/

Not sure if it is in the nginx.conf file?

surfacescan avatar May 26 '16 20:05 surfacescan

I see from docker-compose ps that the main cabot_app_1 has exited 1 -- so I guess I need to look into that first...

surfacescan avatar May 26 '16 20:05 surfacescan

Turns out I needed to comment out all the FIX_ME variables in cabot_env for the app_1 container to start properly! Makes sense ;)

surfacescan avatar May 26 '16 21:05 surfacescan

@surfacescan Just got into the same problem, thanks for the tip

erez-rabih avatar May 31 '16 07:05 erez-rabih

Maybe it is worth mentioning in the README so that others won't get into this problem

erez-rabih avatar May 31 '16 08:05 erez-rabih

@erez-rabih did you remove all the FIXME ? what if I don't want hipchat integration?

patovala avatar Jun 23 '16 22:06 patovala

@patovala I meant mentioning that you must change all the fix me comments on the file for the app to work.

erez-rabih avatar Jun 24 '16 09:06 erez-rabih

This one has bitten me too. I made a minor PR (https://github.com/shoonoise/cabot-docker/pull/41) that just tells you to edit cabot_env. This should be enough to get people going.

Yenthe666 avatar Dec 30 '16 13:12 Yenthe666

Hi guys, I'm installing this for the first time and I am having the above issue with the 502. I have changed the API information in the cabot_env file which I have added below:

# Hipchat integration
HIPCHAT_ALERT_ROOM=__FIX_ME__
HIPCHAT_API_KEY=__FIX_ME__

# Hostname of your Graphite server instance
GRAPHITE_API=Cabot
GRAPHITE_USER=username
GRAPHITE_PASS=password

# URL of calendar to synchronise rota with
CALENDAR_ICAL_URL=http://www.google.com/calendar/ical/example.ics

# Mail Settings
SES_HOST=__FIX_ME__
SES_USER=__FIX_ME__
SES_PASS=__FIX_ME__
SES_PORT=__FIX_ME__
CABOT_FROM_EMAIL=__FIX_ME__
# Default Mail-Backend is django_smtp_ssl.SSLEmailBackend
# only uncomment if you want simple SMTP without encryption
#SES_BACKEND=django.core.mail.backends.smtp.EmailBackend

# Jenkins integration
JENKINS_API=_FIX_ME__
JENKINS_USER=_FIX_ME__
JENKINS_PASS=_FIX_ME__

# Twilio integration for SMS and telephone alerts
TWILIO_ACCOUNT_SID=_FIX_ME__
TWILIO_AUTH_TOKEN=_FIX_ME__
TWILIO_OUTGOING_NUMBER=_FIX_ME__

I am only really looking to log into Cabot at the moment.

Is there anything else I need to do in order to get this to work?

I have also checked docker-compose ps which returns the following:

           Name                         Command               State                     Ports
--------------------------------------------------------------------------------------------------------------
cabotdocker_app_1            /bin/sh -c . /cabot/run.sh       Exit 1
cabotdocker_celerybroker_1   docker-entrypoint.sh redis ...   Up       6379/tcp
cabotdocker_db_1             /docker-entrypoint.sh postgres   Up       5432/tcp
cabotdocker_nginx_1          nginx -g daemon off;             Up       443/tcp, 80/tcp, 0.0.0.0:8080->8080/tcp
cabotdocker_smtp_1           entrypoint.sh tini -- exim ...   Up       25/tcp

This is a Linux VM with an IP of 192.168.1.14, so going to 192.168.1.14:8080 throws the 502.

Do I have to restart or reinit a script at all? Thanks in advance

dsgnr avatar Jan 24 '17 09:01 dsgnr

@dsgnr show your docker-compose logs app

shoonoise avatar Feb 15 '17 14:02 shoonoise