EDIT UPDATE
The browser that was using to create posts did not work well in the edit mode and it has created improper use of dashes in some of my posts. I have since re-edited this post with a different browser to fix this issue. I will not be using the conflicting browser in the future. Thank you to @jannis for pointing out the errors.
*EDIT Update *
This post has been updated to reflect additional steps needed after the successful completion of the install. These steps are important in order to get to the login page and start the system AFTER the install.
Ok, as promised, here are the steps I used to get the installation to complete on my Ubuntu 18.10 VPS host:
On a fresh Ubuntu host do the following:
- Login as root and run the following commands:
apt-get update
apt-get upgrade
This will get the server up to the latest packages.
- While still logged in as root, create the use r name account that you want to use for installing the ERPNext system (in my case it was “def_user”). then add then to the sudo group so they can execute commands without having to login as root user. Use these commands:
adduser [def_user]
usermod -aG sudo [def_user]
- Then logout of the system and log back in as the new user
From there the following commands will get you a completed v12 install:
sudo -H apt-get install python3-minimal
sudo -H apt-get install python3-setuptools
sudo -H apt-get install build-essential
sudo -H apt-get install redis-server
wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
sudo -H python3 install.py --production --user [def_user]
At this point you will probably have encountered the error that ends with “exit status 2”
So do the following to complete the installation:
cd /tmp/.bench/playbooks/roles/nodejs/tasks
sudo mv main.yml main_yml.orig
cd ~
sudo apt-get install nodejs
sudo -H python3 install.py --production --user [def_user]
This time your installation should complete without errors.
However, you are not yet finished. The next steps will get your system ready to login for the first time:
sudo npm install -g yarn
cd frappe-bench
bench update
At this point you are probably still waiting for the bench update to complete. It takes a long time because it rebuilds just about everything in the process. Once the bench update is done, you can open a browser and login to the system as the Administrator and let the startup wizard finish setting up the database and configuring the system for you.
One additional note…
The Setup Wizard that runs during your first Administrator login, will sometimes take to long to complete and it may timeout. If that happens, do not be alarmed, just click on the “Retry” link in the timeout message and it should be able to finish it’s work and get you into the system to start your work.
Hope this helps someone else. I was stuck for a while today. This may only be necessary for a short while as we hope the original playbooks problems are fixed soon.
BKM