Easy Install is definitely bugged on Ubuntu 18.04

I am using Ubuntu 18.04 also. I hit these errors. It has something to do with redis server responsible for socketio not being able to access PID file. Using bench commands, I am able to finish installation.

Personally, I think easy install is the safest way to install because there are many things that will be missed in manual installation. (I realized this after going over the installation code.

I use python 2.7 because that is what easy install expects.

I don’t do sudo apt update and upgrade because it creates problems during installation.

sudo apt install python-minimal is enough. Easy install does the rest.

When you hit this Error 111 thing, turn off supervisor, redis, and nginx. You do this by

 sudo service supervisor stop
 sudo service redis stop
 sudo service nginx stop

In another terminal, (Use another putty or ssh connection) start bench in develop mode

 sudo bench start

The output of this terminal will show you if redis goes through. (Sometimes there is the ENOSPC error to watch out for. You will also notice that redis may complain about not being able to set the required parameters. This can be repaired by using nano editor and putting in correct configuration files – which is more related to redis and not erpnext. If you need these, I can also share this with you.)

If you notice in the error message, you are already in the new-site portion. So, we continue the process by reinstall (assuming that the bench start messages does not have any errors.)

 sudo bench --site site1.local reinstall
 sudo bench --site site1.local install-app erpnext

at this point, you can access the installation using web browse (http://site1.local:8000)

  • of course you have to set your /etc/hosts to have 127.0.0.1 site1.local both on your Ubuntu server, and also on your client computer (assuming you may be using windows).

Then when you have setup erpnext using the web browser, you can stop the bench start terminal by using ctrl-c to get back to the prompt level.

Start the production mode.

 sudo supervisor supervisor start
 sudo supervisor redis start
 sudo supervisor nginx start
 sudo systemctl reload nginx
 
 bench restart

Often, Easy install does not go through because of OS settings. I am thankful that Frappe has Bench commands that can resolve the issues, if one knows what they do.

3 Likes