Trying on press app setting servers...for example proxy clicking setup server its is installing and

Please help me because i am pissed that i cant get it properly working…so what i did…i used hetzner, create few servers and app…example press server to run press app and also use cloudfalre…

Basically when i got my press app, i try installs ervers on it to maybe later create bench and sites and what not.

I try create server and then i click prepare server which works as i am using ubuntu 22, on 24 ansible was unreachable. Anyway its starts installing and fails after 40 sec giving me error after certificates were succesful that Task Setup Agent Nginx failed…
i tryied creating my certificates, removing corrupted ones as press corrupts them and nothing…

on any server if fails with error task setup agent nginx…it completes all task before that one.

error is like this Output
{“command”: “sudo systemctl reload nginx”, “directory”: “/home/frappe/agent”, “start”: “2025-05-26 13:23:48.977975”, “status”: “Running”, “output”: “”}
{“command”: “sudo systemctl reload nginx”, “directory”: “/home/frappe/agent”, “start”: “2025-05-26 13:23:48.977975”, “status”: “Failure”, “output”: “Job for nginx.service failed.\nSee "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.”, “traceback”: “Traceback (most recent call last):\n File "/home/frappe/agent/repo/agent/base.py", line 59, in execute\n output, returncode = self.run_subprocess(\n File "/home/frappe/agent/repo/agent/base.py", line 110, in run_subprocess\n raise subprocess.CalledProcessError(returncode, command, output=output)\nsubprocess.CalledProcessError: Command ‘sudo systemctl reload nginx’ returned non-zero exit status 1.\n”, “returncode”: 1, “duration”: “0:00:00.037006”, “end”: “2025-05-26 13:23:49.014981”}
output
Error
Traceback (most recent call last):
File “/home/frappe/agent/repo/agent/base.py”, line 59, in execute
output, returncode = self.run_subprocess(
File “/home/frappe/agent/repo/agent/base.py”, line 110, in run_subprocess
raise subprocess.CalledProcessError(returncode, command, output=output)
subprocess.CalledProcessError: Command ‘sudo systemctl reload nginx’ returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/home/frappe/agent/env/bin/agent”, line 33, in
sys.exit(load_entry_point(‘agent’, ‘console_scripts’, ‘agent’)())
File “/home/frappe/agent/env/lib/python3.10/site-packages/click/core.py”, line 1130, in call
return self.main(*args, **kwargs)
File “/home/frappe/agent/env/lib/python3.10/site-packages/click/core.py”, line 1055, in main
rv = self.invoke(ctx)
File “/home/frappe/agent/env/lib/python3.10/site-packages/click/core.py”, line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/agent/env/lib/python3.10/site-packages/click/core.py”, line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/agent/env/lib/python3.10/site-packages/click/core.py”, line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/frappe/agent/env/lib/python3.10/site-packages/click/core.py”, line 760, in invoke
return __callback(*args, **kwargs)
File “/home/frappe/agent/repo/agent/cli.py”, line 129, in nginx
Server().setup_nginx()
File “/home/frappe/agent/repo/agent/server.py”, line 461, in setup_nginx
self._reload_nginx()
File “/home/frappe/agent/repo/agent/server.py”, line 793, in _reload_nginx
return self.execute(“sudo systemctl reload nginx”)
File “/home/frappe/agent/repo/agent/server.py”, line 399, in execute
return super().execute(
File “/home/frappe/agent/repo/agent/base.py”, line 75, in execute
raise AgentException(self.data) from e
agent.exceptions.AgentException: {‘command’: ‘sudo systemctl reload nginx’, ‘directory’: ‘/home/frappe/agent’, ‘start’: datetime.datetime(2025, 5, 26, 13, 23, 48, 977975), ‘status’: ‘Failure’, ‘output’: ‘Job for nginx.service failed.\nSee “systemctl status nginx.service” and “journalctl -xeu nginx.service” for details.’, ‘traceback’: ‘Traceback (most recent call last):\n File “/home/frappe/agent/repo/agent/base.py”, line 59, in execute\n output, returncode = self.run_subprocess(\n File “/home/frappe/agent/repo/agent/base.py”, line 110, in run_subprocess\n raise subprocess.CalledProcessError(returncode, command, output=output)\nsubprocess.CalledProcessError: Command 'sudo systemctl reload nginx' returned non-zero exit status 1.\n’, ‘returncode’: 1, ‘duration’: datetime.timedelta(microseconds=37006), ‘end’: datetime.datetime(2025, 5, 26, 13, 23, 49, 14981)}
error
Exception
non-zero return code
exception
Result
{
“changed”: true,
“rc”: 1,
“cmd”: [
“/home/frappe/agent/env/bin/agent”,
“setup”,
“nginx”
],
“start”: “2025-05-26 13:23:48.599715”,
“end”: “2025-05-26 13:23:49.051250”,
“delta”: “0:00:00.451535”,
“invocation”: {
“module_args”: {
“chdir”: “/home/frappe/agent”,
“_raw_params”: “/home/frappe/agent/env/bin/agent setup nginx”,
“warn”: true,
“_uses_shell”: false,
“stdin_add_newline”: true,
“strip_empty_ends”: true,
“argv”: null,
“executable”: null,
“creates”: null,
“removes”: null,
“stdin”: null
}
},
“_ansible_no_log”: false
}

idk what else to do…anyone know why it keeps failing on that exact task? should i have created sll certificates or cloudfalre or what should i try?