You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ x ] Did you retain the logfile (path of logfile is shared while the script is run)? We definitely need the logfile to debug any easy install related issues.
Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome
Distro Information (Required)
Linux erp 5.10.0-14-amd64 #1 SMP Debian 5.10.113-1 (2022-04-29) x86_64 GNU/Linux
debian@erp:~$ cat easy-install.log
2023-01-16 05:59:07,390 - INFO - Running Production Setup
Additional context
debian@erp:~$ python3 easy-install.py --prod -s erp.toma.tech -n toma --email [email protected] -p
Setting Up Production Instance
Docker is not installed, Installing Docker...
Waiting Docker to start
Please refer to .example.env file in the frappe_docker folder to know which keys to set
Traceback (most recent call last):
File "/home/debian/easy-install.py", line 320, in <module>
setup_prod(args.project, args.sitename, args.email)
File "/home/debian/easy-install.py", line 223, in setup_prod
setup_prod(project, sitename, email) # Recursive
File "/home/debian/easy-install.py", line 125, in setup_prod
write_to_env(docker_repo_path, sitename, db_pass, admin_pass, email)
File "/home/debian/easy-install.py", line 80, in write_to_env
f"FRAPPE_VERSION={example_env['FRAPPE_VERSION']}\n", # Defaults to latest version of Frappe
KeyError: 'FRAPPE_VERSION'
The script references a file .example.env that does not exist.
I noticed this key is not present in example.env either (it was recently removed from the frappe-docker repo)
When I manually add in:
FRAPPE_VERSION=v14.22.1
I now get another missing env error:
Traceback (most recent call last):
File "/home/debian/easy-install.py", line 320, in <module>
setup_prod(args.project, args.sitename, args.email)
File "/home/debian/easy-install.py", line 135, in setup_prod
admin_pass = env["SITE_ADMIN_PASS"]
KeyError: 'SITE_ADMIN_PASS'
Possible Solution
Seems like the missing FRAPPE_VERSION caused the setup to create an empty .env; so after manually adding it to the example.env a new .env is not created rather the old empty env is attempting to be read.
I deleted the old .env and added FRAPPE_VERSION - and successive install now creates a proper .env but breaks failing to create a compose file as follows:
stat /home/debian/frappe_docker/overrides/compose.erpnext.yaml: no such file or directory
Generating Compose File failed
File "/usr/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/usr/bin/docker', 'compose', '--project-name', 'toma', '-f', 'compose.yaml', '-f', 'overrides/compose.mariadb.yaml', '-f', 'overrides/compose.redis.yaml', '-f', 'overrides/compose.erpnext.yaml', '-f', 'overrides/compose.https.yaml', '--env-file', '.env', 'config']' returned non-zero exit status 14.
Looks like frappe-docker/overrides/compose.erpnext.yaml is missing.
The text was updated successfully, but these errors were encountered:
Issue: Easy Install
Do the checklist before filing an issue:
Distro Information (Required)
Linux erp 5.10.0-14-amd64 #1 SMP Debian 5.10.113-1 (2022-04-29) x86_64 GNU/Linux
ID="generic"
VERSION="20220503-998"
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Command Run (Required)
python3 easy-install.py --prod -s erp.toma.tech -n toma --email [email protected] -p
Log File (Required)
Additional context
The script references a file .example.env that does not exist.
I noticed this key is not present in example.env either (it was recently removed from the frappe-docker repo)
When I manually add in:
I now get another missing env error:
Possible Solution
Seems like the missing FRAPPE_VERSION caused the setup to create an empty .env; so after manually adding it to the example.env a new .env is not created rather the old empty env is attempting to be read.
I deleted the old .env and added FRAPPE_VERSION - and successive install now creates a proper .env but breaks failing to create a compose file as follows:
Looks like
frappe-docker/overrides/compose.erpnext.yaml
is missing.The text was updated successfully, but these errors were encountered: