I have below issues when trying to deploy ERPNext on ECS Fargate Cluster.
EFS Mount Hiding Container Files
-
I have a Docker image with pre-populated files under
/home/frappe/frappe-bench/sites. -
When I mount an EFS volume to this path in ECS, all existing files from the container disappear (EFS mount hides them).
-
I don’t want to manually copy files into EFS every time — is there a best practice to initialize EFS with the container files or another alternative?
Bench Config Updates Hang / Missing Keys
-
I use a configurator ECS task to update
common_site_config.jsonusingbench set-config. -
When I chain multiple commands in the same task:
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"
-
Only the first 3 keys get written; the last key (
redis_queue) is missing. -
The task sometimes hangs and doesn’t exit after finishing.
If this is not possible might have to deploy on EC2, without the features of the managed services.