Getting issues with Deploy Candidate in Press setup

Hi guys, I have successfully setup all the 3 servers n1, m1 and f1 according to this documentation, but after adding the app, and deploy candidate, it keeps failing at the Install Apps - Frappe stage.

Here is the error I keep seeing:

bench init --python /usr/bin/python3.11 --no-backups --frappe-path file:///home/frappe/context/apps/frappe frappe-bench
Setting Up Environment
$ /usr/bin/python3.11 -m venv env
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade pip
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet wheel
Getting frappe
$ git clone file:///home/frappe/context/apps/frappe  --depth 1 --origin upstream
Cloning into 'frappe'...
fatal: detected dubious ownership in repository at '/home/frappe/context/apps/frappe/.git'
To add an exception for this directory, call:

	git config --global --add safe.directory /home/frappe/context/apps/frappe/.git
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
subprocess.CalledProcessError: Command 'git clone file:///home/frappe/context/apps/frappe  --depth 1 --origin upstream' returned non-zero exit status 128.

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

Traceback (most recent call last):
  File "/home/frappe/.local/lib/python3.11/site-packages/bench/commands/make.py", line 75, in init
    init(
  File "/home/frappe/.local/lib/python3.11/site-packages/bench/utils/render.py", line 105, in wrapper_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
  File "/home/frappe/.local/lib/python3.11/site-packages/bench/utils/system.py", line 87, in init
    get_app(
  File "/home/frappe/.local/lib/python3.11/site-packages/bench/app.py", line 770, in get_app
    app.get()
  File "/home/frappe/.local/lib/python3.11/site-packages/bench/utils/render.py", line 126, in wrapper_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
  File "/home/frappe/.local/lib/python3.11/site-packages/bench/app.py", line 203, in get
    self.bench.run(
  File "/home/frappe/.local/lib/python3.11/site-packages/bench/bench.py", line 48, in run
    return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/frappe/.local/lib/python3.11/site-packages/bench/utils/__init__.py", line 178, in exec_cmd
    raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: git clone file:///home/frappe/context/apps/frappe  --depth 1 --origin upstream

ERROR: There was a problem while creating frappe-bench
Do you want to rollback these changes? [y/N]: Aborted!
INFO: A newer version of bench is available: 5.22.6 → 5.23.0
process "/bin/sh -c bench init --python /usr/bin/python${PYTHON_VERSION} --no-backups --frappe-path file:///home/frappe/context/apps/frappe frappe-bench `#stage-apps-frappe`" did not complete successfully: exit code: 1
------
[stage-0 20/27] RUN --mount=type=cache,sharing=locked,target=/home/frappe/.cache,uid=1000,gid=1000 --mount=type=bind,source=apps/frappe,target=/home/frappe/context/apps/frappe bench init --python /usr/bin/python3.11 --no-backups --frappe-path file:///home/frappe/context/apps/frappe frappe-bench `#stage-apps-frappe`:
File "/home/frappe/.local/lib/python3.11/site-packages/bench/bench.py", line 48, in run
return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/frappe/.local/lib/python3.11/site-packages/bench/utils/__init__.py", line 178, in exec_cmd
raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: git clone file:///home/frappe/context/apps/frappe  --depth 1 --origin upstream
10.55
ERROR: There was a problem while creating frappe-bench
Do you want to rollback these changes? [y/N]: Aborted!
INFO: A newer version of bench is available: 5.22.6 → 5.23.0
------
failed to solve: process "/bin/sh -c bench init --python /usr/bin/python${PYTHON_VERSION} --no-backups --frappe-path file:///home/frappe/context/apps/frappe frappe-bench `#stage-apps-frappe`" did not complete successfully: exit code: 1

I have done everything over the last few days, nothing works.

Context: All the 3 servers are running Ubuntu 20.04 on Google Cloud.

I would really appreciate some guidance from the community