Trouble installing ERPNext

Hey, guys

I’m trying to install ERPNext on my virtual machine, but it won’t install…
I’m using OVHcloud service (https://us.ovhcloud.com/)
and I’m following this tutorial https://github.com/frappe/bench
I’m using ubuntu 20.04 (tried other versions as well)
It usually bugs when giving one of the very first commands

$ apt install python3-minimal build-essential python3-setuptools

I’m trying the Easy Install Script manner

Could you guys help me? I’m not very experienced… Thanks!

Hi, can you post what kind of errors are you getting? So we can help, that command should throw no errors, If you are running as root.

@Lucas_CN, from frappe repository:

The Easy Install script should get you going with a Frappe/ERPNext setup with minimal manual intervention and effort. Since there are a lot of configurations being automatically setup, we recommend executing this script on a fresh server.

Note: This script works only on GNU/Linux based server distributions, and has been designed and tested to work on Ubuntu 16.04+, CentOS 7+, and Debian-based systems.

I could not make it work on ubuntu 20.4 on OVH myself. But it is working well on 16.04.

Easy install script hasn’t worked for me on 20.04. Try the hitch hikers guide :slight_smile:

I tried two different versions of ubuntu, 16.04 and 20.04, and got two different errors.

After giving the command
sudo python3 install.py --production

For version 16.04, I got

Logs are saved under /tmp/logs/easy-install__2020-06-13__18-51.log
Checking System Compatibility...
ubuntu 16 is compatible!
Bench's CLI needs these to be defined!
Run the following commands in shell:
export LC_ALL=C.UTF-8

For version 20.04, I got

Logs are saved under /tmp/logs/easy-install__2020-06-13__17-04.log
Traceback (most recent call last):
  File "install.py", line 436, in <module>
    check_distribution_compatibility()
  File "install.py", line 78, in check_distribution_compatibility
    dist_name, dist_version = get_distribution_info()
  File "install.py", line 100, in get_distribution_info
    current_dist = platform.dist()
AttributeError: module 'platform' has no attribute 'dist'

And for both cases, the installation just stops, nothing happens


@Toto-tyou, please, look what I got when trying version 16.04 :point_up_2:

Run the command export LC_ALL=C.UTF-8 and run the script again. In Ubuntu 18.04, 20.04 is not supported yet.

ok, It worked, it started installing!
lets hope it wont bug again!

Javier, It didn’t work… :sob:
I’ll summarize everything I did

  1. Formatted the server and installed ubuntu 18.04
  2. $ sudo su
  3. $ apt update
  4. $ apt upgrade
  5. $ apt install python3-minimal build-essential python3-setuptools
  6. $ wget https://raw.githubusercontent.com/frappe/bench/develop/install.py
  7. $ python3 install.py --production
  8. $ export LC_ALL=C.UTF-8
  9. $ python3 install.py --production
  10. Entered passwords

The commands were put into the terminal using PuTTY exactly as listed above

The console output after 9. was:

    root@vps:/home/ubuntu# python3 install.py --production
    Logs are saved under /tmp/logs/easy-install__2020-06-13__20-34.log
    Checking System Compatibility...
    ubuntu 18 is compatible!
    curl already installed!
    wget already installed!
    git already installed!
    Installing pip3...
    pip3 installed!

     [WARNING]: No inventory was parsed, only implicit localhost is available     [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not
    match 'all'
    Input MySQL and Frappe Administrator passwords:
    Please enter mysql root password:
    Re-enter mysql root password:
    Please enter the default Administrator user password:
    Re-enter Administrator password:
    Passwords saved at ~/passwords.txt
     [WARNING]: No inventory was parsed, only implicit localhost is available
     [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not
    match 'all'
     [WARNING]: Could not find aptitude. Using apt-get instead
     [WARNING]: Consider using the get_url or uri module rather than running 'curl'.  If you need to use command because
    get_url or uri is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in
    ansible.cfg to get rid of this message.
    Traceback (most recent call last):
      File "install.py", line 440, in <module>
        install_bench(args)
      File "install.py", line 241, in install_bench
        run_playbook('site.yml', sudo=True, extra_vars=extra_vars)
      File "install.py", line 365, in run_playbook
        success = subprocess.check_call(args, cwd=playbooks_folder, stdout=log_stream, stderr=sys.stderr)
      File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['ansible-playbook', '-c', 'local', 'site.yml', '-vvvv', '-e', '@/tmp/extra_vars.json', '--become', '--become-user=frappe']' returned non-zero exit status 2.
    root@vps:/home/ubuntu#

Theoretically, after all this, when I put the server’s IP on my browser, I was supposed to see something, right? The browser says “this address cannot be reached”

Do you know what is going on??