Install fails to install in production

Install fails

sudo python install.py --production --user frappe

TASK [Rename default nginx.conf to nginx.conf.old] *****************************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: [“mv”, “/etc/nginx/nginx.conf”, “/etc/nginx/nginx.conf.old”], “delta”: “0:00:00.021331”, “end”: “2017-05-12 15:34:06.549533”, “failed”: true, “rc”: 1, “start”: “2017-05-12 15:34:06.528202”, “stderr”: “mv: cannot stat ?/etc/nginx/nginx.conf?: No such file or directory”, “stdout”: “”, “stdout_lines”: [], “warnings”: []}

NO MORE HOSTS LEFT *************************************************************
to retry, use: --limit @production/install.retry

PLAY RECAP *********************************************************************
localhost : ok=7 changed=0 unreachable=0 failed=1

Traceback (most recent call last):
File “install.py”, line 351, in
install_bench(args)
File “install.py”, line 111, in install_bench
run_playbook(‘production/install.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 301, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’))
File “/usr/lib/python2.7/subprocess.py”, line 542, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘production/install.yml’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=frappe’]’ returned non-zero exit status 2

I tried doing what is said with no luck

I get a different error when trying on Ubuntu 16.06

TASK [apt-get install] *********************************************************
failed: [localhost] (item=[u’mariadb-server’, u’mariadb-client’, u’mariadb-common’, u’libmariadbclient-dev’]) => {“failed”: true, “item”: [“mariadb-server”, “mariadb-client”, “mariadb-common”, “libmariadbclient-dev”], “msg”: “No package matching ‘libmariadbclient-dev’ is available”}
to retry, use: --limit @production/install.retry

PLAY RECAP *********************************************************************
localhost : ok=13 changed=8 unreachable=0 failed=1

Traceback (most recent call last):
File “install.py”, line 351, in
install_bench(args)
File “install.py”, line 111, in install_bench
run_playbook(‘production/install.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 301, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’))
File “/usr/lib/python2.7/subprocess.py”, line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘production/install.yml’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=frappe’]’ returned non-zero exit status 2

Can you do a web-search on this?

I changed to a different server architecture type. I was on Scaleway.com trying to use an AMR64 processor type and then switched back to Digital Ocean and everything went smoothly.