ERPNext with Ubuntu 18.04.3 Server

You should now be able to login as Administrator and let the Startup Wizard run to get your system configured.

BKM

3

Hello bkm, thank you for your big help.

:slight_smile:

I couldn’t have done it without you.

Can i use you tutorial with Debian 10 Buster to?

jannis

Actually the modifications made to the install process that caused so much grief and errors were made in order to make the Debian 10 installations work properly. :astonished:

So, the Easy Install method should work without anything special having to be done. Since it was originally made to work with Debian 10.

I have not personally tried the Debian 10 installs. I currently only use Ubuntu 16 and 18.

Good luck with your system!

BKM

Date, 2019-08-26

  • Posted on 2019-08-26
    With deb10+ERP12.0.8.ova for Virtualbox:

https://murgatroyd.za.net/?p=764

This tutorial will not work for me, but the vm works without problems.

########################

Date January 2, 2020:

This tutorial i don’t have testing.

Hello, i have a little problem.

How start i the setup wizard?

http://192.168.xxx.123/#login

Which “Email address” name, which “Password” must i use?

Hello,

Fresh Ubuntu 18.04.3 install and “Easy Install”:

https://pastebin.com/EPw1KQkR

But the same problem for me.

Solution, first Login:

Login: Administrator

Password: the same adminpassword as Ubuntu 18.04.3

Next Problem:
after logging in i get this message “‘ascii’ codec can’t decode byte 0xd0 in position 1801299: ordinal not in range(128)”

Error while running production mode for version 12

Open /etc/locale.gen in your favorite editor, and fine this line:

# en_US.UTF-8 UTF-8

and change it to this

en_US.UTF-8 UTF-8

Then run dpkg-reconfigure locales .

Finally, run update-locale LANG=en_US.UTF-8 , and restart your system. I would recommend running these instructions on a fresh install to guarantee that there will be no issues.

Fresh install on fresh VPS results in the following error using install script,

python install.py --production --version 11 --user USER
File "install.py", line 35
    print("Install script run at {0} on {1}\n\n".format(execution_time, execution_day), file=log_stream)

Lines 30-35 are,

	if not args.verbose:
		if not os.path.exists(tmp_log_folder):
			os.makedirs(tmp_log_folder)
		log_stream = open(log_path, 'w')
		log("Logs are saved under {0}".format(log_path), level=3)
		print("Install script run at {0} on {1}\n\n".format(execution_time, execution_day), file=log_stream)

Please advise, Thanks

The username is not going to be an email address for the first login. Instead just type in:

Administrator

For the password (if you do not remember what you typed in during the install) can be found in the install directory of your system. There will be a file called:

passwords.txt

This file records the passwsords you typed into the system during the install process. You will want to use the password for “Administrator” from this file.

On a linux system you can display the contents of a file with the ‘cat’ command like this:

cat /home/def_user/passwords.txt

Of course you replace “def_user” with whatever your linux username is in order to get to the file.

Hope this helps.

BKM

Thank you.

How can i get this background and icons with ERPNext 12?

f2e9f7cf8ca9288f8ca814bc00c42f6e4b2738c0_2_690x347

@ OnlineAlone

python install.py --production --version 11 --user USER

Why did you have choose ERPNext 11?

jannis

cause I prefer the iconic desktop which removed in v12
Please advise on script error above

Not in V12. You need to make custom app to make this or any other UI. Else move back to V11.

I’m trying to install v11 on fresh VPS but that error occurs,

File "install.py", line 35
    print("Install script run at {0} on {1}\n\n".format(execution_time, execution_day), file=log_stream)

please hint on the error causes.

well, the above error gone when used python3,

python3 install.py --production --version 11 --user USER

now, script stuck with the following,

Traceback (most recent call last):
  File "install.py", line 414, in <module>
    install_bench(args)
  File "install.py", line 230, in install_bench
    run_playbook('site.yml', sudo=True, extra_vars=extra_vars)
  File "install.py", line 351, in run_playbook
    success = subprocess.check_call(args, cwd=os.path.join(cwd, 'playbooks'), 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=USER']' returned non-zero exit status 2.

Please advise.

check the log file for your respective installation for more information. This traceback isn’t sufficient.

In the beginning of the installation, the path of the log file is shown. Its one under /tmp/logs/easy-install__*

Try with:

Hi @jannis, how long did it take? I am encountering same thing like your … seems stuck … do I need to wait?

Thanks!

root@ip-172-31-39-247:~# sudo python3 install.py --production --user tec
Logs are saved under /tmp/logs/easy-install__2020-08-11__07-03.log
Checking System Compatibility...
ubuntu 18 is compatible!
curl already installed!
wget already installed!
git already installed!
pip3 already installed!
ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.

We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.

bench 5.0.0 requires setuptools==40.8.0, but you'll have setuptools 49.3.1 which is incompatible.
 [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:
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.
[DEPRECATION WARNING]: evaluating [] as a bare variable, this behaviour will go
 away and you might need to add |bool to the expression in the future. Also see
 CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in
version 2.12. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
 [WARNING]: Consider using the file module with owner rather than running
'chown'.  If you need to use command because file 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=tec']' returned non-zero exit status 2.
root@ip-172-31-39-247:~#

Now What to do next step?

Anyone who can help
root@DESKTOP-GD56773:~# python install.py --develop --user frappe
It is recommended to run this script with Python 3
Do you still wish to continue? [Y/n]: y
Logs are saved under /tmp/logs/easy-install__2021-04-10__07-06.log
Checking System Compatibility…
debian 10 is detected
Install on debian 9 instead
curl already installed!
wget already installed!
git already installed!
pip3 already installed!
/usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes
/usr/lib/python3/dist-packages/secretstorage/util.py:19: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes
[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:
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’
Traceback (most recent call last):
File “install.py”, line 437, in
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 362, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’), stdout=log_stream, stderr=sys.stderr)
File “/usr/lib/python2.7/subprocess.py”, line 190, 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@DESKTOP-GD56773:~#

Hi there.

I just started to install ERPNext today in Ubuntu 18.04
But got stucked at this stage…

Anyone has solution for this?

Thanks…

Regards
Andrew

penta@Penta:/$ sudo -H python3 install.py --production --user frappe Logs are saved under /tmp/logs/easy-install__2021-04-13__08-39.log Checking System Compatibility… ubuntu 18 is compatible! curl already installed! wget already installed! git already installed! pip3 already installed! Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-dw3xlstl/cryptography/ Traceback (most recent call last): File “install.py”, line 436, in install_prerequisites() File “install.py”, line 143, in install_prerequisites ‘python3’: “sudo -H python3 -m pip install --upgrade setuptools cryptography ansible==2.8.5 pip” File “install.py”, line 118, in run_os_command returncode = subprocess.check_call(command, shell=True, 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 ‘sudo -H python3 -m pip install --upgrade setuptools cryptography ansible==2.8.5 pip’ returned non-zero exit status 1.

Sorry I rephrase again…

penta@Penta:/$ sudo -H python3 install.py --production --user frappe

Logs are saved under /tmp/logs/easy-install__2021-04-13__08-39.log
Checking System Compatibility… ubuntu 18 is compatible! curl already installed! wget already installed! git already installed! pip3 already installed! Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-dw3xlstl/cryptography/
Traceback (most recent call last): File “install.py”, line 436, in install_prerequisites() File “install.py”, line 143, in install_prerequisites ‘python3’: “sudo -H python3 -m pip install --upgrade setuptools cryptography ansible==2.8.5 pip”
File “install.py”, line 118, in run_os_command returncode = subprocess.check_call(command, shell=True, 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 ‘sudo -H python3 -m pip install --upgrade setuptools cryptography ansible==2.8.5 pip’ returned non-zero exit status 1.