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

Getting a 502 bad gateway error #37

Open
surfacescan opened this issue May 26, 2016 · 9 comments
Open

Getting a 502 bad gateway error #37

surfacescan opened this issue May 26, 2016 · 9 comments

Comments

@surfacescan
Copy link

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

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

@surfacescan
Copy link
Author

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
Copy link
Author

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 ;)

@erez-rabih
Copy link

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

@erez-rabih
Copy link

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

@patovala
Copy link

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

@erez-rabih
Copy link

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

@Yenthe666
Copy link
Contributor

Yenthe666 commented Dec 30, 2016

This one has bitten me too. I made a minor PR (#41) that just tells you to edit cabot_env. This should be enough to get people going.

@dsgnr
Copy link

dsgnr commented Jan 24, 2017

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

@shoonoise
Copy link
Owner

@dsgnr show your docker-compose logs app

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

6 participants