Missing /site_config.json

Hi everybody!

I’m trying to launch a demo instance of dockerized erpnext following this guide: GitHub - frappe/frappe_docker: Docker images for production and development setups of the Frappe framework and ERPNext.

When creating new site, I encounter the following persisting problem:
Updating customizations for Address
*** Scheduler is disabled ***
Traceback (most recent call last):
File “/home/frappe/frappe-bench/commands/new.py”, line 84, in
main()
File “/home/frappe/frappe-bench/commands/new.py”, line 54, in main
site_config = get_site_config(site_name)
File “/home/frappe/frappe-bench/commands/check_connection.py”, line 124, in get_site_config
with open(‘{site_name}/site_config.json’.format(site_name=site_name)) as site_config_file:
FileNotFoundError: [Errno 2] No such file or directory: ‘/site_config.json’

.env:
VERSION=version-12
MARIADB_HOST=mariadb
MYSQL_ROOT_PASSWORD=admin
SITES=demo

docker command:
docker run
-e “SITE_NAME=$SITE_NAME”
-e “DB_ROOT_USER=$DB_ROOT_USER”
-e “MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD”
-e “ADMIN_PASSWORD=$ADMIN_PASSWORD”
-e “INSTALL_APPS=erpnext”
-e “FORCE=1”
-v demo_sites-vol:/home/frappe/frappe-bench/sites
–network demo_default
frappe/erpnext-worker:version-12 new

Please advice, what am I doing wrong?

new site seems to work on v12

refer command from ./tests/docker-test.sh locally.

Works on linux

1 Like

Thanks! Studying docker-test.sh did help. I think, part of problem was using “version-12” instead of “v12”.

1 Like