Open elhananjair opened 5 days ago
EDIT: After a while, I tried the same deployment using Podman and it is working fine, I could install hrms and helpdesk. This issue seems to be happening on docker only.
I don't use docker for deployment. I cannot replicate it under my k8s environment.
I don't use docker for deployment. I cannot replicate it under my k8s environment.
mm, I am not 100% sure but maybe SELinux is causing an issue with the building process, there is a message pop-up when I start the docker build command. It was working fine last week though without a problem. But gladly since Podman worked for me now I think I should shift to Podman or Kubernetes.
Try following command from backend container.
ls -1 apps > sites/apps.txt
After that try install app again.
ls -1 apps > sites/apps.txt
I executed sudo docker exec -ti liyumfi_backend_1 /bin/bash
to backend service and executed the command you have suggested, checking apps.txt it contains only erpnext and frappe therefore I added hrms.
Then I tried installing hrms (bench --site erp install-app hrms
) and still the same error occurred.
checking apps.txt it contains only erpnext and frappe
It means you don't have hrms in the image.
checking apps.txt it contains only erpnext and frappe
It means you don't have hrms in the image.
The problem is that it doesn't include HRMS while building a custom image. As I attached a video while building the image, it will show an error and skip HRMS and the helpdesk.
Description of the issue
Greetings I recently tried to build a custom image to install custom apps (HRMS, helpdesk) everything worked fine. I was experiencing docker on Fedora 41 KDE since I had problems with Podman. The first time I tried a week ago, things were fine and I could install both hrms and helpdesk after starting the containers.
But starting from recent changes to this git or maybe frappe repo, I am getting an error while building the image, although the build process ended fine I couldn't install hrms and helpdesk while installing erpnext just works fine.
Context information (for bug reports)
I am on Fedora Workstation 41 using Docker version 27.3.1, build ce12230
Steps to reproduce the issue
Then generated base64 string
export APPS_JSON_BASE64=$(base64 -w 0 apps.json)
Building the image
cp example.env .env
and I edited the following parametersCreated new compose file
Starting the containers
docker compose --project-name testerp-f ./docker-compose.yml up -d
Creating site
sudo docker compose --project-name testerp exec backend bench new-site erp --mariadb-root-password 123 --admin-password 123123
Installing apps
sudo docker compose -f ./docker-compose.yml --project-name testerp exec backend bench --site erp install-app erpnext
sudo docker compose -f ./docker-compose.yml --project-name testerp exec backend bench --site erp install-app hrms
sudo docker compose -f ./docker-compose.yml --project-name testerp exec backend bench --site erp install-app helpdesk
Observed result
erpnext installed fine helpdesk and hrms didn't installed
Expected result
both hrms and helpdesk applications should have installed without problem
Stacktrace / full error message if available
Additional resources on errors
https://github.com/user-attachments/assets/47fc842a-bf75-4db5-be4e-49b732cda14a