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

Bad Request returned for all web access #66

Closed
F13 opened this issue Jan 4, 2019 · 4 comments
Closed

Bad Request returned for all web access #66

F13 opened this issue Jan 4, 2019 · 4 comments
Assignees

Comments

@F13
Copy link

F13 commented Jan 4, 2019

Hi, I'm trying to set up scantron and am having issues. I believe everything installed correctly and the master and agent are talking to each other. However, when I attempt to connect to the master's IP address, no matter what URL I use, I am greeted with a Bad Request (400) response.

Where might I go looking for log files to diagnose the issue here?

Thanks!

@derpadoo
Copy link
Contributor

derpadoo commented Jan 7, 2019

Hi @F13 - an HTTP 400 is usually because the IPs/domains in Django's ALLOWED_HOSTS are not correct. Check /home/scantron/master/config/settings/production.py file and ensure the IP and/or domain being used are populated correctly. They should be populated automatically by Ansible, but that may break if you customized some stuff.

capture

To answer your question though, the README.md should help you out: https://github.com/rackerlabs/scantron#master-troubleshooting

@derpadoo derpadoo self-assigned this Jan 7, 2019
@derpadoo
Copy link
Contributor

derpadoo commented Jan 7, 2019

Then restart uwsgi...systemctl restart uwsgi

@F13
Copy link
Author

F13 commented Jan 7, 2019

Thanks, that got me through. I am setting this up under Google Cloud and had to add the public IP of the host (which the host is generally unaware of) in order to connect. It might be worth mentioning this caveat somewhere in the setup instructions.

Thanks for the help!

@derpadoo
Copy link
Contributor

derpadoo commented Jan 7, 2019

Thanks for the tip...I haven't deployed on GCP yet. Added issue #67

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

No branches or pull requests

2 participants