I have not tried it on bare metal or a cloud server yet. I did all tests on QEMU/KVM virtual machines: 2CPUs, 70GB disk, 3072GB memory. It’s a bash script, not Python.
I have run the scripts over and over again, continuously refining to minimize warnings, and I’ve put in environment tests to check if everything is where it’s expected to be.
The final Setup Wizard runs without flaws…
I believe there were two frequent sources of error in installation efforts:
Confusion about when to install as root and when not to.
Confusion about when to use Python 2 and when to use Python 3.
In this installer Python 2 is never used or even installed.
I use "sudo -A" wherever root privilege is necessary, so you’ll need to set that up. Instructions are found in the first of the five scripts.
Please give them a try and reply here with comments.
Thank you for your contribution. If I can make a suggestion for future versions. Prior to installation, there needs to be a check to determine if all requirements are satisfied (for example Ansible is running).
I noticed a lot of frustration due to crashed installed, when most of the time, the issue lies in the operating environment and not ErpNext itself.
You need to log out and back in again after the 2nd one.
You need to reboot after the 3rd one.
The 4th must complete, and be left running, while you run the 5th one.
Something in the 5th one causes the ‘bench’ (started by the 4th one) to fail. So, just before the end of the 5th one you have to go back to the terminal that was running the 4th one and restart ‘bench’.
I don’t know the reasons for those “gotcha’s” and don’t intend to investigate. What’s there is good enough for my needs. If you can make it better, please do.
I do recommend * * * AS STRONGLY AS POSSIBLE * * * ==> run it in a virtual machine that permits snapshots. KVM, Virtual Box, VmWare … wuddevr.
When you’ve run the 1st script … SNAPSHOT.
When you’ve run the 2nd script … SNAPSHOT.
When you’ve run the Wizard … SNAPSHOT.
When you notice a typo in the Company name and can’t spend a day trying to figure out where and how to fix it …REVERT SNAPSHOT.
I don’t know about that, but I tried to optimize it to do everything from initial install all the way through, so it can be mostly automated.
Unfortunately some of the bench commands basically require user input, like --root-password doesn’t seem to work. I haven’t gotten around to trying to fix that. I think my next todo around ERPNext will be trying to get it to run under nixOS, and probably skipping over bench as much as possible.
this script sounds great. I did try to use but did not succeed. Maybe would be great if the passwords/other user inputs could be setup at the beginning with constant and comments. So it makes it easy for common user like me to understand whole concept.
I am not programmer or system admin usually on trial-error basis end up getting things working. However this ERPNext is quite a complex to to install. I do think it is a great system however the time I spending to configure and still not giving the confidence that has been done properly. I would like to spend more time with the actual system to migrate DB, learn and understand, the configuration is throwing me back…
I have changed the password for
cat <<EOF | mysql -uroot
create user bench@localhost identified by ‘passowrd???’;
GRANT all privileges on . to ‘bench’@‘localhost’ IDENTIFIED BY ‘password’ WITH GRANT OPTION;
GRANT all privileges on . to ‘bench’@‘127.%.%.%’ IDENTIFIED BY ‘password’ WITH GRANT OPTION;
GRANT all privileges on . to ‘root’@‘localhost’ IDENTIFIED BY ‘password’ WITH GRANT OPTION;
GRANT all privileges on . to ‘root’@‘127.%.%.%’ IDENTIFIED BY ‘password’ WITH GRANT OPTION;
bench new-site --db-password password test.site
I prepared clean install Ubuntu server 20.04 did update/upgrade command and restart after I ran below command:
sudo bash ubuntu2004-erpnext.sh
However end up with few errors:
ERROR: /opt/bench/frappe-bench/apps/frappe is not a valid editable requirement.It should either be a path to a local project or a VCS URL (beginning with svn+ git+, hg+, or bzr+).
[Errno 2] No such file or directory: ‘bench’
ERROR: There was a problem while creating /opt/bench/frappe-bench
Do you want to rollback these changes? [Y/n]:
I think angelfish and MartinHBramwell did a good job I wish i could get around your files to make this work.