502 error deploying django website

i’m trying to deploy my first app on serer
while trying to set all settings well but still get 502 error which cant be solved wiht all i did
have no exprience using ubuntu and used some instructions found in internet and AI

server bought from arvancloud and using the console provided in

anyone can help me whit that please?
i i’m doing is to adjust the nginx and gunicorn settings
some guys say those may be the problems

don’t know

Side note: Please do not post images of text information here. Copy/paste the text into the body of your post, surrounded by lines of three backticks. (A line of ```, then the text, then another line of ```.)

To assist you with this, we would need to see any error messages in the appropriate log files, and (probably) your nginx and gunicorn configuration files.

proxy_allow_ips: [‘127.0.0.1’, ‘::1’]
keyfile: None
certfile: None
ssl_version: 2
cert_reqs: 0
ca_certs: None
suppress_ragged_eofs: True
do_handshake_on_connect: False
ciphers: None
raw_paste_global_conf:
permit_obsolete_folding: False
strip_header_spaces: False
permit_unconventional_http_method: False
permit_unconventional_http_version: False
casefold_http_method: False
forwarder_headers: [‘SCRIPT_NAME’, ‘PATH_INFO’]
header_map: drop
[2025-12-03 12:25:17 +0000] [75908] [INFO] Starting gunicorn 23.0.0
[2025-12-03 12:25:17 +0000] [75908] [DEBUG] Arbiter booted
[2025-12-03 12:25:17 +0000] [75908] [INFO] Listening at: unix:/var/www/tournamentgroup-project/gunicorn.sock (75908)
[2025-12-03 12:25:17 +0000] [75908] [INFO] Using worker: sync
[2025-12-03 12:25:17 +0000] [75909] [DEBUG] Booting worker with pid: 75909
[2025-12-03 12:25:17 +0000] [75910] [DEBUG] Booting worker with pid: 75910
[2025-12-03 12:25:17 +0000] [75911] [DEBUG] Booting worker with pid: 75911
[2025-12-03 12:25:17 +0000] [75908] [DEBUG] 3 workers
[2025-12-03 15:56:44 +0330] [75910] [DEBUG] GET /
[2025-12-03 15:56:44 +0330] [75909] [DEBUG] GET /form.html
[2025-12-03 15:56:47 +0330] [75910] [DEBUG] GET /upl.php
[2025-12-03 15:56:47 +0330] [75910] [DEBUG] GET /t4
[2025-12-03 15:56:49 +0330] [75910] [DEBUG] GET /geoip/
[2025-12-03 15:56:49 +0330] [75910] [DEBUG] GET /1.php
[2025-12-03 15:56:49 +0330] [75910] [DEBUG] GET /systemmbc/password.php
[2025-12-03 15:56:49 +0330] [75909] [DEBUG] GET /password.php
[2025-12-03 16:41:31 +0330] [75911] [DEBUG] GET /cgi-bin/luci/stok=/locale
[2025-12-03 16:41:31 +0330] [75911] [DEBUG] GET /
(venv) django@newtournament-proj:/var/www/tournamentgroup-project$

this is gunicorn log file

’’’
y_headers_hash_bucket_size: 64; ignoring proxy_headers_hash_bucket_size
Dec 02 17:00:29 newtournament-proj nginx[64518]: 2025/12/02 17:00:29 [warn] 64518#64518: could not build optimal proxy_headers_hash, you should increase either proxy_headers_hash_max_size: 512 or proxy_headers_hash_bucket_size: 64; ignoring proxy_headers_hash_bucket_size
Dec 02 17:00:29 newtournament-proj systemd[1]: Started nginx.service - A high performance web server and a reverse proxy server.
Dec 03 08:46:39 newtournament-proj systemd[1]: Stopping nginx.service - A high performance web server and a reverse proxy server…
Dec 03 08:46:39 newtournament-proj systemd[1]: nginx.service: Deactivated successfully.
Dec 03 08:46:39 newtournament-proj systemd[1]: Stopped nginx.service - A high performance web server and a reverse proxy server.
Dec 03 08:46:39 newtournament-proj systemd[1]: Starting nginx.service - A high performance web server and a reverse proxy server…
Dec 03 08:46:39 newtournament-proj nginx[73434]: 2025/12/03 08:46:39 [warn] 73434#73434: could not build optimal proxy_headers_hash, you should increase either proxy_headers_hash_max_size: 512 or proxy_headers_hash_bucket_size: 64; ignoring proxy_headers_hash_bucket_size
Dec 03 08:46:39 newtournament-proj systemd[1]: Started nginx.service - A high performance web server and a reverse proxy server.
Dec 03 12:25:23 newtournament-proj systemd[1]: Stopping nginx.service - A high performance web server and a reverse proxy server…
Dec 03 12:25:23 newtournament-proj systemd[1]: nginx.service: Deactivated successfully.
Dec 03 12:25:23 newtournament-proj systemd[1]: Stopped nginx.service - A high performance web server and a reverse proxy server.
’’’
and this one nginx logs

That’s a start, but the nginx log you’re posting here doesn’t appear to be a standard format nginx access.log or error.log, and what you have posted doesn’t include logs for any of the requests generating the 502 error.

We also still need to see the configuration files for your project for both nginx and gunicorn.