Comments on How to install ERPNext on Ubuntu 18.04 LTS

ERPNext is a free, open-source, modern and easy-to-use business management software used by thousands of companies across the world. In this tutorial, we will learn how to install and configure ERPNext on Ubuntu 18.04 LTS server.

8 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Bibaschko

thanks for the guide - unfortunately I have an issue with sudo mysql -u root -p

=> mysql: unknown variable 'pid-file=/var/run/mysqld/mysqld.pid'

What's worng?

thx

By: yaoming.shm

error when running bench init erpnext

 

erpnext@shm-erp:/opt/erpnext$ bench init erpnext

Traceback (most recent call last):

  File "/usr/local/bin/bench", line 9, in <module>

    load_entry_point('bench', 'console_scripts', 'bench')()

  File "/opt/erpnext/bench-repo/bench/cli.py", line 40, in cli

    bench_command()

  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 764, in __call__

    return self.main(*args, **kwargs)

  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 717, in main

    rv = self.invoke(ctx)

  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1137, in invoke

    return _process_result(sub_ctx.command.invoke(sub_ctx))

  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 956, in invoke

    return ctx.invoke(self.callback, **ctx.params)

  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 555, in invoke

    return callback(*args, **kwargs)

  File "/opt/erpnext/bench-repo/bench/commands/make.py", line 31, in init

    python               = python)

  File "/opt/erpnext/bench-repo/bench/utils.py", line 52, in init

    raise ValueError('Bench Instance {path} already exists.'.format(path = path))

ValueError: Bench Instance erpnext already exists.

 

By: J

You will get the following error:

mysql: unknown variable 'pid-file=/var/run/mysqld/mysqld.pid'

You need to remove the line: "default-character-set = utf8mb4"

and put the rest of text in the basic section of the config

 

By: ksk

[ubuntu 18.04]

I have the same error.

 

By: ksk

I had the following problem: I'm looking for a solution.

erpnext@erpnext:/opt/erpnext$ bench init erpnext

INFO:bench.utils:virtualenv -q env -p /usr/bin/python3

Traceback (most recent call last):

  File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 24, in <module>

    import distutils.spawn

ModuleNotFoundError: No module named 'distutils.spawn'

Traceback (most recent call last):

  File "/usr/local/bin/bench", line 11, in <module>

    load_entry_point('bench', 'console_scripts', 'bench')()

  File "/opt/erpnext/bench-repo/bench/cli.py", line 40, in cli

    bench_command()

  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 764, in __call__

    return self.main(*args, **kwargs)

  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 717, in main

    rv = self.invoke(ctx)

  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1137, in invoke

    return _process_result(sub_ctx.command.invoke(sub_ctx))

  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 956, in invoke

    return ctx.invoke(self.callback, **ctx.params)

  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 555, in invoke

    return callback(*args, **kwargs)

  File "/opt/erpnext/bench-repo/bench/commands/make.py", line 31, in init

    python               = python)

  File "/opt/erpnext/bench-repo/bench/utils.py", line 65, in init

    setup_env(bench_path=path, python = python)

  File "/opt/erpnext/bench-repo/bench/utils.py", line 178, in setup_env

    exec_cmd('virtualenv -q {} -p {}'.format('env', python), cwd=bench_path)

  File "/opt/erpnext/bench-repo/bench/utils.py", line 161, in exec_cmd

    raise CommandFailedError(cmd)

bench.utils.CommandFailedError: virtualenv -q env -p /usr/bin/python3

erpnext@erpnext:/opt/erpnext$ python3 -V

Python 3.6.7

erpnext@erpnext:/opt/erpnext$ 

By: awwad

When i run this line:

bench new-site node1.example.com

Output :

Usage: bench [OPTIONS] COMMAND [ARGS]...Try "bench --help" for help.Error: No such command "new-site".

By: msnambiar

erpnext@erpnext:/opt/erpnext$ bench init erpnext

WARN: Command not being executed in bench directory

INFO:bench.utils:virtualenv -q env -p /usr/bin/python3

Traceback (most recent call last):

  File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 22, in

    import distutils.spawn

ModuleNotFoundError: No module named 'distutils.spawn'

ERROR: There was a problem while creating erpnext

Do you want to rollback these changes? [Y/n]: y

Rolling back Bench "erpnext"

erpnext@erpnext:/opt/erpnext$ sudo getfacl /opt/erpnext/

getfacl: Removing leading '/' from absolute path names

# file: opt/erpnext/

# owner: erpnext

# group: root

user::rwx

group::r-x

other::r-x

By: felix

This is one of the 50 Step-by-step installs I tried. didn't work for me.