Deployment file config and no module found issue

HI,

I have 2 servers for ERPNext, One is an actual server (A) and the other one is for backup (B)

has 1 common instance(C) for ngnix, DB and file storage and main domain config.

where I have an issue with file configuration.

A Instance:

  • we created the dummy site as frontend and configured with C.

Issue:

  • Data import, birthday remainder and email notification we got error on fetch file.
    we got redirect URL site name as frontend, and search file in name of frontend folder.

Actual:
https://example.in/files/test.png

What is redirect URLs is:

https://frontend/files/test.png

Folder path:

frontend/private/files/test.png

We have file in this path in A instance.
but we got error like no module found

  • File is storing in all the Instance A, B and C with respective folder name (sitename is a folder name).

Scheduled job

  • We got error as No Module found. Which is worked previously.

this is structure,

scheduled_task
---- init.py
---- files.py

hooks.py

Version:

erpnext: 14
frappe: 14

Can any one know how to fix this? Why this act like this? Or this is not possible,

only one site and one db and file configuration is possible common site configuration is not possible.

Thank you in advance.