Getting Resource failedto error. 404 not found

Hey guys. Suddenly out of the blue my erpnext started throwing 404 not found erro while building assets.
I have tried bench build, migrate, update, restart. I have even stopped and started the supervisor processes multiple time and even did sudo reboot a couple of times on my server but still no luck.
I am running
bench version 5.2
erpnext version 15

I have even checked for error logs in my site folder and my nginx folder but there seems to be no error .

I even tried to run it on development server but it loads once and only on google chrome incognito browser and than i won’t open again and I would always get a logo in the middle of the screen and get these error and some other error like.

frappe.template is not a function, frappe.after ajax is not a function, cint is undefined.

I switched it back to production server and know I am getting this and its not redirecting me to app either after I login

Please help me find a solution. I would like to resolve this issue rather than install a new instance because I have a lot of data and multiple apps integrated on the erp.


Is the permission on the erpnext folder correct?

Yes the folder has permission to read or write. Ihave been using it for about 3 months and everything was running very smoothly the error just occured 2 days ago.

Same problem here. Did you find a solution? Mine started after I tried to update but did not manage to (missing hrm)