frappe / erpnext

Free and Open Source Enterprise Resource Planning (ERP)
https://erpnext.com
GNU General Public License v3.0
17.59k stars 6.72k forks source link

CSS Not loading after installing the ERPNEXT and HRMS #40054

Open rajamuppidi opened 4 months ago

rajamuppidi commented 4 months ago

Information about bug

I have installed the ERPNext using the docker in portainer everything worked well untill i installed the hrms app, it borken my assets and completely the css is not loading anymore.

Screenshot 2024-02-22 at 5 30 35 PM

I have installed the docker app using.

version: "3"

services: backend: image: frappe/erpnext:v15.14.6 deploy: restart_policy: condition: on-failure volumes:

volumes: db-data: redis-queue-data: redis-cache-data: sites: logs:

  1. Instlaled hrms in both frontend and backend docker containers using

bench get-app hrms bench --site frontend install-app hrms

  1. Tried solutions: bench update, bench migrate, also cleared the cache but nothing helped me.

Module

HR

Version

ERPNext Version: v15.14.6

Installation method

docker

Relevant log output / Stack trace / Full Error Message.

GET https://mywebsite/assets/frappe/dist/css/website.bundle.LE5Q23SD.css net::ERR_ABORTED 404 (Not Found)
login.bundle.JVC4CY5U.css:1 

GET https://mywebsite/assets/frappe/dist/css/login.bundle.JVC4CY5U.css net::ERR_ABORTED 404 (Not Found)
erpnext-web.bundle.ACUICUJY.css:1 

GET https://mywebsite/assets/erpnext/dist/css/erpnext-web.bundle.ACUICUJY.css net::ERR_ABORTED 404 (Not Found)

The resource https://mywebsite/assets/frappe/dist/css/login.bundle.JVC4CY5U.css was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
modydiop commented 4 months ago

hi there, I am experiencing a similar issue - Any assistance please?

sumeetahuja1974 commented 4 months ago

The bench command (bench get-app hrms bench --site frontend install-app hrm) seems to break the CSS references. I struggled with the same issue and then ended up with finding a yaml file which installs all of the components. Copy below in YAML file and it should install frappe, erpnext and hrms on your docker instance

version: "3"

services: backend: image: 89neuron/erpnext_hrms_payments:v15 deploy: restart_policy: condition: on-failure volumes:

volumes: db-data: redis-queue-data: redis-cache-data: sites: logs:

rajamuppidi commented 4 months ago

I did tried this, But i need additional apps like india-compliance , helpdesk and crm but when trying to install on top of this again the css issue comes into the play

sumeetahuja1974 commented 4 months ago

Yes i am also stuck with the same issue, the moment I install helpdesk everything breaks. Not sure how to fix it, there is a telegram group / discord group , you can post there for some help

johnrechcabatana commented 3 months ago

Any update for this issue?