Dear Team kindly provied me solution on ErpNEXT version 12 on Debian 9/10
I have installed fresh Ubuntu 18.0.4LTS
Ran the command apt-get update
Ran the command apt-get upgrade
Rebooted server
apt-get install python3-setuptools python3-minimal redis-server build-essential
created user netmanthan
sudo adduser netmanthan (Adding a new user netmanthan)
usermod -aG sudo netmanthan (giving proper permission)
su netmanthan (login as netmanthan user)
Download the installation script by running below command:
wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py 1
Then install the netmanthan by using this command
After that i am getting this below error:
fatal: [localhost]: FAILED! => {
“changed”: true,
“cmd”: [
“bench”,
“init”,
“/home/netmanthan/frappe-bench”,
“–frappe-path”,
“https://github.com/frappe/frappe”,
“–frappe-branch”,
“version-12”,
“–python”,
“python3”
],
“delta”: “0:00:00.383112”,
“end”: “2019-07-31 21:20:27.493717”,
“invocation”: {
“module_args”: {
“_raw_params”: “bench init /home/netmanthan/frappe-bench --frappe-path GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript --frappe-branch version-12 --python python3”,
“_uses_shell”: false,
“argv”: null,
“chdir”: null,
“creates”: “/home/netmanthan/frappe-bench”,
“executable”: null,
“removes”: null,
“stdin”: null,
“stdin_add_newline”: true,
“strip_empty_ends”: true,
“warn”: true
}
},
“msg”: “non-zero return code”,
“rc”: 1,
“start”: “2019-07-31 21:20:27.110605”,
“stderr”: “Traceback (most recent call last):\n File “/usr/local/bin/bench”, line 11, in \n load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()\n File “/home/netmanthan/.bench/bench/cli.py”, l ine 40, in cli\n bench_command()\n File “/usr/local/lib/python3.5/dist-packages/click/core.py”, line 764, in call\n return self.main(*args, **kwargs)\n File “/usr/local/lib/python3.5/dist-packages/click /core.py”, line 696, in main\n _verify_python3_env()\n File “/usr/local/lib/python3.5/dist-packages/click/_unicodefun.py”, line 124, in _verify_python3_env\n ’ mitigation steps.’ + extra\nRuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment. Consult Python 3 Support — Click Documentation (7.x) for mitigation steps.\n\nThis system supports the C .UTF-8 locale which is recommended.\nYou might be able to resolve your issue by exporting the\nfollowing environment variables:\n\n export LC_ALL=C.UTF-8\n export LANG=C.UTF-8”,
“stderr_lines”: [
“Traceback (most recent call last):”,
" File “/usr/local/bin/bench”, line 11, in “,
" load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()”,
" File “/home/netmanthan/.bench/bench/cli.py”, line 40, in cli",
" bench_command()“,
" File “/usr/local/lib/python3.5/dist-packages/click/core.py”, line 764, in call”,
" return self.main(*args, **kwargs)“,
" File “/usr/local/lib/python3.5/dist-packages/click/core.py”, line 696, in main”,
" _verify_python3_env()“,
" File “/usr/local/lib/python3.5/dist-packages/click/_unicodefun.py”, line 124, in _verify_python3_env”,
" ’ mitigation steps.’ + extra",
“RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment. Consult Python 3 Support — Click Documentation (7.x) for mitigation steps.”,
“”,
“This system supports the C.UTF-8 locale which is recommended.”,
“You might be able to resolve your issue by exporting the”,
“following environment variables:”,
“”,
" export LC_ALL=C.UTF-8",
" export LANG=C.UTF-8"
],
“stdout”: “”,
“stdout_lines”: []
}
PLAY RECAP **************************************************************************************************************************************************************************************************************
localhost : ok=64 changed=11 unreachable=0 failed=1 skipped=61 rescued=0 ignored=0
Traceback (most recent call last):
File “install.py”, line 413, in
install_bench(args)
File “install.py”, line 135, in install_bench
run_playbook(‘site.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 327, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’))
File “/usr/lib/python2.7/subprocess.py”, line 186, 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=netmanthan’]’ returned non-zero exit status 2
You have new mail in /var/mail/root
root@debian:~#