a year ago
i always have this A server error occurred. Please contact the administrator. error whenever i set debug to False on the env here on railway and ive tried to fix the error i really do not know what am doing wrong ive set this debug to False on my local machine and it works perfectly was thinking its static files and third party app like jazzmin ive set the static files properly and also disabled the jazzmin but still it didnt work so please i need help
16 Replies
a year ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • about 1 year ago
a year ago
Hello,
Debug is true right now, but when I visit your site I get the following error -
Invalid HTTP_HOST header: 'acctmarket.com'. You may need to add 'acctmarket.com' to ALLOWED_HOSTS.Have you added this to your allowed hosts?
brody
Hello,Debug is true right now, but when I visit your site I get the following error -Invalid HTTP_HOST header: 'acctmarket.com'. You may need to add 'acctmarket.com' to ALLOWED_HOSTS.Have you added this to your allowed hosts?
a year ago
acctmarket.com is added to allowed host via environment variables
Also I added debug to True so that end-users can access the site
a year ago
Hello,
I still see the Invalid HTTP_HOST header: 'acctmarket.com'. You may need to add 'acctmarket.com' to ALLOWED_HOSTS. error when I visit your site, seems your setup around that configuration isn't quite right, please correct this error before we proceed on the debugging process, heck maybe even fixing that error will allow you to turn debug to false again.
brody
Hello,I still see the Invalid HTTP_HOST header: 'acctmarket.com'. You may need to add 'acctmarket.com' to ALLOWED_HOSTS. error when I visit your site, seems your setup around that configuration isn't quite right, please correct this error before we proceed on the debugging process, heck maybe even fixing that error will allow you to turn debug to false again.
a year ago
Greetings... ive included acctmarket.com to the allowed host and set the debug to False but the error still persists... am worried because when i set these things in my local machine it works fine without any errors so please i need to know what am doing wrong
brody
Please keep debug set to true while we are debugging this.
a year ago
Hello we have set debug true please debug this so we can set it back to false…debug True is not good for production.
a year ago
Hello,
Unfortunately I still get that same DisallowedHost error, please remedy that as that is likely the issue or blocking the real issue from appearing.
It also looks like you are using a development server? You need to be using Gunicorn instead of runserver.
brody
Hello, Unfortunately I still get that same DisallowedHost error, please remedy that as that is likely the issue or blocking the real issue from appearing.It also looks like you are using a development server? You need to be using Gunicorn instead of runserver.
a year ago
greetings... please i do not understand
brody
Hello, Unfortunately I still get that same DisallowedHost error, please remedy that as that is likely the issue or blocking the real issue from appearing.It also looks like you are using a development server? You need to be using Gunicorn instead of runserver.
a year ago
am on production server and gunicon is installed i also docarized this app, i have an entrypoint.sh files that runs the static files and server too it crashes the deployment and shows 502 bad gateway error when i run this gunicon command
exec /usr/local/bin/gunicorn config.asgi --bind 0.0.0.0:5000 --chdir=/app -k uvicorn.workers.UvicornWorker
a year ago
For the 502 bad gateway error please see our docs on the topic -
https://docs.railway.com/reference/errors/application-failed-to-respond
brody
For the 502 bad gateway error please see our docs on the topic -https://docs.railway.com/reference/errors/application-failed-to-respond
a year ago
Ok thanks ive gone through it please i need assistance ive set the port to 5000 which is what the production is running on please am confused on what next to do
brody
For the 502 bad gateway error please see our docs on the topic -https://docs.railway.com/reference/errors/application-failed-to-respond
a year ago
ive now set the app to run on gunicon and not with runserver but its still showing the Internal Server Error can you please help me look at it at your ends on the logs it shows error related to staticfiles but all these were set properly with whitenoise please can you help me go through and tell me what am missing
a year ago
Please set a PORT service variable to 5000
https://docs.railway.com/overview/the-basics#service-variables
brody
Please set a PORT service variable to 5000https://docs.railway.com/overview/the-basics#service-variables
a year ago
sire i have a PORT variable set to 5000 already
a year ago
Are you selling stolen logins to sites like Netflix, Spotify, Prime video, etc?
https://acctmarket.com/product/dd7eefc87a/
brody
Are you selling stolen logins to sites like Netflix, Spotify, Prime video, etc?https://acctmarket.com/product/dd7eefc87a/https://acctmarket.com/product/e5f5d82726/
a year ago
No, we do not sell stolen logins to any sites. All the accounts listed on our platform are acquired through legitimate means and comply with applicable laws and policies.
Status changed to Closed brody • about 1 year ago