Open rajamuppidi opened 4 months ago
hi there, I am experiencing a similar issue - Any assistance please?
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:
logs:/home/frappe/frappe-bench/logs
configurator: image: 89neuron/erpnext_hrms_payments:v15 deploy: restart_policy: condition: none entrypoint:
command:
ls -1 apps > sites/apps.txt; bench set-config -g db_host $$DB_HOST; bench set-config -gp db_port $$DB_PORT; bench set-config -g redis_cache "redis://$$REDIS_CACHE"; bench set-config -g redis_queue "redis://$$REDIS_QUEUE"; bench set-config -g redis_socketio "redis://$$REDIS_QUEUE"; bench set-config -gp socketio_port $$SOCKETIO_PORT; environment: DB_HOST: db DB_PORT: "3306" REDIS_CACHE: redis-cache:6379 REDIS_QUEUE: redis-queue:6379 SOCKETIO_PORT: "9000" volumes:
logs:/home/frappe/frappe-bench/logs
create-site: image: 89neuron/erpnext_hrms_payments:v15 deploy: restart_policy: condition: none volumes:
wait-for-it -t 120 db:3306; wait-for-it -t 120 redis-cache:6379; wait-for-it -t 120 redis-queue:6379; export start=
date +%s
; until [[ -ngrep -hs ^ sites/common_site_config.json | jq -r ".db_host // empty"
]] && \ [[ -ngrep -hs ^ sites/common_site_config.json | jq -r ".redis_cache // empty"
]] && \ [[ -ngrep -hs ^ sites/common_site_config.json | jq -r ".redis_queue // empty"
]]; do echo "Waiting for sites/common_site_config.json to be created"; sleep 5; if ((date +%s
-start > 120 )); then echo "could not find sites/common_site_config.json with required keys"; exit 1 fi done; echo "sites/common_site_config.json found"; bench new-site --no-mariadb-socket --admin-password=admin --db-root-password=admin --install-app erpnext --set-default frontend; bench --site frontend install-app hrms; bench --site frontend install-app payments;
db: image: mariadb:11.2 healthcheck: test: mysqladmin ping -h localhost --password=admin interval: 1s retries: 15 deploy: restart_policy: condition: on-failure command:
db-data:/var/lib/mysql
frontend: image: 89neuron/erpnext_hrms_payments:v15 deploy: restart_policy: condition: on-failure command:
nginx-entrypoint.sh
environment: BACKEND: backend:8000 FRAPPE_SITE_NAME_HEADER: frontend SOCKETIO: websocket:9000 UPSTREAM_REAL_IP_ADDRESS: 127.0.0.1 UPSTREAM_REAL_IP_HEADER: X-Forwarded-For UPSTREAM_REAL_IP_RECURSIVE: "off" PROXY_READ_TIMEOUT: 120 CLIENT_MAX_BODY_SIZE: 50m volumes:
"8080:8080"
queue-long: image: 89neuron/erpnext_hrms_payments:v15 deploy: restart_policy: condition: on-failure command:
logs:/home/frappe/frappe-bench/logs
queue-short:
image: 89neuron/erpnext_hrms_payments:v15
deploy:
restart_policy:
condition: on-failure
depends_on: ["backend"]
command:
logs:/home/frappe/frappe-bench/logs
redis-queue: image: redis:6.2-alpine deploy: restart_policy: condition: on-failure volumes:
redis-queue-data:/data
redis-cache: image: redis:6.2-alpine deploy: restart_policy: condition: on-failure volumes:
redis-cache-data:/data
scheduler:
image: 89neuron/erpnext_hrms_payments:v15
deploy:
restart_policy:
condition: on-failure
depends_on: ["backend"]
command:
logs:/home/frappe/frappe-bench/logs
websocket: image: 89neuron/erpnext_hrms_payments:v15 deploy: restart_policy: condition: on-failure command:
volumes: db-data: redis-queue-data: redis-cache-data: sites: logs:
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
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
Any update for this issue?
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.
I have installed the docker app using.
version: "3"
services: backend: image: frappe/erpnext:v15.14.6 deploy: restart_policy: condition: on-failure volumes:
logs:/home/frappe/frappe-bench/logs
configurator: image: frappe/erpnext:v15.14.6 deploy: restart_policy: condition: none entrypoint:
add redis_socketio for backward compatibility
command:
logs:/home/frappe/frappe-bench/logs
create-site: image: frappe/erpnext:v15.14.6 deploy: restart_policy: condition: none volumes:
db: image: mariadb:10.6 healthcheck: test: mysqladmin ping -h localhost --password=admin interval: 1s retries: 15 deploy: restart_policy: condition: on-failure command:
db-data:/var/lib/mysql
frontend: image: frappe/erpnext:v15.14.6 depends_on:
"8080:8080"
queue-long: image: frappe/erpnext:v15.14.6 deploy: restart_policy: condition: on-failure command:
logs:/home/frappe/frappe-bench/logs
queue-short: image: frappe/erpnext:v15.14.6 deploy: restart_policy: condition: on-failure command:
logs:/home/frappe/frappe-bench/logs
redis-queue: image: redis:6.2-alpine deploy: restart_policy: condition: on-failure volumes:
redis-queue-data:/data
redis-cache: image: redis:6.2-alpine deploy: restart_policy: condition: on-failure volumes:
redis-cache-data:/data
scheduler: image: frappe/erpnext:v15.14.6 deploy: restart_policy: condition: on-failure command:
logs:/home/frappe/frappe-bench/logs
websocket: image: frappe/erpnext:v15.14.6 deploy: restart_policy: condition: on-failure command:
volumes: db-data: redis-queue-data: redis-cache-data: sites: logs:
bench get-app hrms
bench --site frontend install-app hrms
Module
HR
Version
ERPNext Version: v15.14.6
Installation method
docker
Relevant log output / Stack trace / Full Error Message.