bench icon indicating copy to clipboard operation
bench copied to clipboard

Easy Install

Open tjomtek opened this issue 4 years ago • 1 comments

Description of the issue

Error when using the easy install on a Clean VPS 18.04 ubuntu

Context information (for bug reports)

Initializing bench frappe-bench: Frappe Branch: version-12 ERPNext Branch: version-12 [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]: Updating cache and auto-installing missing dependency: python3-apt [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 498, in install_bench(args) File "install.py", line 279, in install_bench run_playbook('site.yml', sudo=True, extra_vars=extra_vars) File "install.py", line 414, in run_playbook success = subprocess.check_call(args, cwd=playbooks_folder, stdout=log_stream, stderr=sys.stderr) File "/usr/lib/python3.8/subprocess.py", line 364, 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=erpnxtadmin']' returned non-zero exit status 2.

Output of bench version Unknown Install Crashed (paste here)


## Steps to reproduce the issue

1.Spin a VPS with 18.04 Ubuntu
2.update and upgrade ubuntu
3.then - apt install python3-minimal build-essential python3-setuptools
4.adduser [frappe-user]
 5.usermod -aG sudo [frappe-user]
6.Switch to [frappe-user] (using su [frappe-user]) and start the setup
7.wget https://raw.githubusercontent.com/frappe/bench/develop/install.py
8.sudo python3 install.py --production --user [frappe-user] ... where frappe-user is the user i created in (4)

### Observed result
Install crashed
### Expected result
Successful Install v12
### Stacktrace / full error message

(paste here)


## Additional information

OS version / distribution, `Frappe` install method, etc.
ubuntu 18.04 TTY

tjomtek avatar May 04 '21 13:05 tjomtek

Check you log file and it will give the exact error. This is not a bug.

Or add --verbose parameter to step 8 and it will show the exact error. Fix that error and you'll be good to go.

rtdany10 avatar May 07 '21 09:05 rtdany10