"Downloading and Running the script" not working #45
Comments
Hello - I have tried this install several times with fresh Debian 9.5 (stretch) and it will not curl the install scipt: I follow exactly and: erpnext@ERPnext:~$ curl -v "https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py" -o install.py
{ [5 bytes data]
[sudo] password for erpnext:
{ [5 bytes data]
Anny help appreciated - have bene trying to install erpnext on debian9 for weeks now and nothing works. I do not think erpnext actually works on Debian 9 |
Hi, I tried to read your guide but no matter what guide I follow it seems to have the same error. I'm running on a VPS.
Running this:
sudo python install.py --production --site [site name].[domain] --user erpnext \ --bench-name erpnext-prd --verbose 2>&1 | tee --append erpnext-install.log
Always top with this (No matter the operating system):
`erpnext@server:
$ sudo apt-get install -y locales locales-all$ sudo upate-localeReading package lists... Done
Building dependency tree
Reading state information... Done
locales is already the newest version (2.23-0ubuntu10).
The following NEW packages will be installed:
locales-all
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,216 kB of archives.
After this operation, 127 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 locales-all amd64 2.23-0ubuntu10 [3,216 kB]
Fetched 3,216 kB in 4s (744 kB/s)
Selecting previously unselected package locales-all.
(Reading database ... 44769 files and directories currently installed.)
Preparing to unpack .../locales-all_2.23-0ubuntu10_amd64.deb ...
Unpacking locales-all (2.23-0ubuntu10) ...
Setting up locales-all (2.23-0ubuntu10) ...
erpnext@server:
sudo: upate-locale: command not found
erpnext@server:
$ LC_ALL en_US.UTF-8$ ENV LC_ALL en_US.UTF-8-su: LC_ALL: command not found
erpnext@server:
-su: ENV: command not found
erpnext@server:
$ sudo python install.py --production --site server.kaishierp.com --user erpnext --bench-name erpnext-prd --verbose 2>&1 | tee --append erpnext-install.log16.04).Hit:1 http://ppa.launchpad.net/ansible/ansible/ubuntu xenial InRelease
Hit:2 http://archive.canonical.com/ubuntu xenial InRelease
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
Hit:4 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:5 https://deb.nodesource.com/node_8.x xenial InRelease
Get:6 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Fetched 216 kB in 2s (92.7 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
build-essential is already the newest version (12.1ubuntu2).
libffi-dev is already the newest version (3.2.1-4).
python-setuptools is already the newest version (20.7.0-1).
git is already the newest version (1:2.7.4-0ubuntu1.4).
libssl-dev is already the newest version (1.0.2g-1ubuntu4.13).
python-dev is already the newest version (2.7.12-1
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
The directory '/home/erpnext/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/erpnext/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already up-to-date: setuptools in /usr/local/lib/python2.7/dist-packages (40.4.1)
Requirement already up-to-date: urllib3 in /usr/local/lib/python2.7/dist-packages (1.23)
Requirement already up-to-date: requests in /usr/local/lib/python2.7/dist-packages (2.19.1)
Requirement already up-to-date: cryptography in /usr/local/lib/python2.7/dist-packages (2.3.1)
Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages (18.0)
Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in /usr/local/lib/python2.7/dist-packages (from requests) (2018.8.24)
Requirement already satisfied, skipping upgrade: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python2.7/dist-packages (from requests) (3.0.4)
Requirement already satisfied, skipping upgrade: idna<2.8,>=2.5 in /usr/local/lib/python2.7/dist-packages (from requests) (2.7)
Requirement already satisfied, skipping upgrade: enum34; python_version < "3" in /usr/local/lib/python2.7/dist-packages (from cryptography) (1.1.6)
Requirement already satisfied, skipping upgrade: asn1crypto>=0.21.0 in /usr/local/lib/python2.7/dist-packages (from cryptography) (0.24.0)
Requirement already satisfied, skipping upgrade: cffi!=1.11.3,>=1.7 in /usr/local/lib/python2.7/dist-packages (from cryptography) (1.11.5)
Requirement already satisfied, skipping upgrade: six>=1.4.1 in /usr/local/lib/python2.7/dist-packages (from cryptography) (1.11.0)
Requirement already satisfied, skipping upgrade: ipaddress; python_version < "3" in /usr/local/lib/python2.7/dist-packages (from cryptography) (1.0.22)
Requirement already satisfied, skipping upgrade: pycparser in /usr/local/lib/python2.7/dist-packages (from cffi!=1.11.3,>=1.7->cryptography) (2.19)
The directory '/home/erpnext/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/erpnext/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already up-to-date: urllib3 in /usr/local/lib/python2.7/dist-packages (1.23)
Requirement already up-to-date: requests in /usr/local/lib/python2.7/dist-packages (2.19.1)
Requirement already up-to-date: cryptography in /usr/local/lib/python2.7/dist-packages (2.3.1)
Requirement already up-to-date: ansible in /usr/local/lib/python2.7/dist-packages (2.6.4)
Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in /usr/local/lib/python2.7/dist-packages (from requests) (2018.8.24)
Requirement already satisfied, skipping upgrade: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python2.7/dist-packages (from requests) (3.0.4)
Requirement already satisfied, skipping upgrade: idna<2.8,>=2.5 in /usr/local/lib/python2.7/dist-packages (from requests) (2.7)
Requirement already satisfied, skipping upgrade: enum34; python_version < "3" in /usr/local/lib/python2.7/dist-packages (from cryptography) (1.1.6)
Requirement already satisfied, skipping upgrade: asn1crypto>=0.21.0 in /usr/local/lib/python2.7/dist-packages (from cryptography) (0.24.0)
Requirement already satisfied, skipping upgrade: cffi!=1.11.3,>=1.7 in /usr/local/lib/python2.7/dist-packages (from cryptography) (1.11.5)
Requirement already satisfied, skipping upgrade: six>=1.4.1 in /usr/local/lib/python2.7/dist-packages (from cryptography) (1.11.0)
Requirement already satisfied, skipping upgrade: ipaddress; python_version < "3" in /usr/local/lib/python2.7/dist-packages (from cryptography) (1.0.22)
Requirement already satisfied, skipping upgrade: jinja2 in /usr/local/lib/python2.7/dist-packages (from ansible) (2.10)
Requirement already satisfied, skipping upgrade: PyYAML in /usr/local/lib/python2.7/dist-packages (from ansible) (3.13)
Requirement already satisfied, skipping upgrade: paramiko in /usr/local/lib/python2.7/dist-packages (from ansible) (2.4.2)
Requirement already satisfied, skipping upgrade: setuptools in /usr/local/lib/python2.7/dist-packages (from ansible) (40.4.1)
Requirement already satisfied, skipping upgrade: pycparser in /usr/local/lib/python2.7/dist-packages (from cffi!=1.11.3,>=1.7->cryptography) (2.19)
Requirement already satisfied, skipping upgrade: MarkupSafe>=0.23 in /usr/local/lib/python2.7/dist-packages (from jinja2->ansible) (1.0)
Requirement already satisfied, skipping upgrade: pyasn1>=0.1.7 in /usr/local/lib/python2.7/dist-packages (from paramiko->ansible) (0.4.4)
Requirement already satisfied, skipping upgrade: bcrypt>=3.1.3 in /usr/local/lib/python2.7/dist-packages (from paramiko->ansible) (3.1.4)
Requirement already satisfied, skipping upgrade: pynacl>=1.0.1 in /usr/local/lib/python2.7/dist-packages (from paramiko->ansible) (1.2.1)
ansible-playbook 2.6.4
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/erpnext/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible
executable location = /usr/local/bin/ansible-playbook
python version = 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609]
Using /etc/ansible/ansible.cfg as config file
setting up inventory plugins
Parsed /etc/ansible/hosts inventory source with ini plugin
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost
does not match 'all'
Loading callback plugin default of type stdout, v2.0 from /usr/local/lib/python2.7/dist-packages/ansible/plugins/callback/default.pyc
PLAYBOOK: create_user.yml ******************************************************************************
1 plays in create_user.yml
PLAY [localhost] ***************************************************************************************
TASK [Gathering Facts] *********************************************************************************
task path: /tmp/.bench/playbooks/create_user.yml:3
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/sh -c 'echo ~root && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "
echo /root/.ansible/tmp/ansible-tmp-1537414472.63-246139789534493
" && echo ansible-tmp-1537414472.63-246139789534493="echo /root/.ansible/tmp/ansible-tmp-1537414472.63-246139789534493
" ) && sleep 0'Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/system/setup.py
<127.0.0.1> PUT /home/erpnext/.ansible/tmp/ansible-local-9267ux21eT/tmps8eTvx TO /root/.ansible/tmp/ansible-tmp-1537414472.63-246139789534493/setup.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1537414472.63-246139789534493/ /root/.ansible/tmp/ansible-tmp-1537414472.63-246139789534493/setup.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1537414472.63-246139789534493/setup.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1537414472.63-246139789534493/ > /dev/null 2>&1 && sleep 0'
ok: [localhost]
META: ran handlers
TASK [Create user] *************************************************************************************
task path: /tmp/.bench/playbooks/create_user.yml:5
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/sh -c 'echo ~root && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "
echo /root/.ansible/tmp/ansible-tmp-1537414473.29-29141326152827
" && echo ansible-tmp-1537414473.29-29141326152827="echo /root/.ansible/tmp/ansible-tmp-1537414473.29-29141326152827
" ) && sleep 0'Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/system/user.py
<127.0.0.1> PUT /home/erpnext/.ansible/tmp/ansible-local-9267ux21eT/tmpL2OJYO TO /root/.ansible/tmp/ansible-tmp-1537414473.29-29141326152827/user.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1537414473.29-29141326152827/ /root/.ansible/tmp/ansible-tmp-1537414473.29-29141326152827/user.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1537414473.29-29141326152827/user.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1537414473.29-29141326152827/ > /dev/null 2>&1 && sleep 0'
ok: [localhost] => {
"append": false,
"changed": false,
"comment": "",
"group": 1000,
"home": "/home/erpnext",
"invocation": {
"module_args": {
"append": false,
"comment": null,
"create_home": true,
"expires": null,
"force": false,
"generate_ssh_key": true,
"group": null,
"groups": null,
"hidden": null,
"home": null,
"local": null,
"login_class": null,
"move_home": false,
"name": "erpnext",
"non_unique": false,
"password": null,
"password_lock": null,
"remove": false,
"seuser": null,
"shell": null,
"skeleton": null,
"ssh_key_bits": 0,
"ssh_key_comment": "ansible-generated on server",
"ssh_key_file": null,
"ssh_key_passphrase": null,
"ssh_key_type": "rsa",
"state": "present",
"system": false,
"uid": null,
"update_password": "always"
}
},
"move_home": false,
"name": "erpnext",
"shell": "/bin/bash",
"ssh_fingerprint": "2048 SHA256:0btJDL1qckw/7gLUzHyBVjgniYVraBsyTZkIb3KoJEQ ansible-generated on server (RSA)",
"ssh_key_file": "/home/erpnext/.ssh/id_rsa",
"ssh_public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC99yaWTZ+ex6ZpbSahScI50WROAqP7Qz1r8CXOHXehkqGQWyb+a2erEOUSCvQUmmSCsZGcwdKoGzpTVGuGP40uAx4Mc9s4OHA2yR6usIDL6HosfUFOiUz++NHnlthq/vogCoK9GKJB003ZxqNHqCuDP6q8LenTXKFNxjAHzhotpDj79YQpP1a5+sbgWbKkTZViWDNr1SUk4hlN/qBWYkj6jzFCuvr11oiWU91J4FZHTMlPNFt2gyRffFlWr23oxGmcGl+NYgj8xrHplp5DeMqWOAO37hPRJmDp1FsG2K2oP6W8iV9zTdjpnCOB4dHthdAGE2VGWaaw/98Ei2qh87u3 ansible-generated on server",
"state": "present",
"uid": 1000
}
TASK [Set home folder perms] ***************************************************************************
task path: /tmp/.bench/playbooks/create_user.yml:10
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/sh -c 'echo ~root && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "
echo /root/.ansible/tmp/ansible-tmp-1537414473.69-30998914410357
" && echo ansible-tmp-1537414473.69-30998914410357="echo /root/.ansible/tmp/ansible-tmp-1537414473.69-30998914410357
" ) && sleep 0'Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/files/file.py
<127.0.0.1> PUT /home/erpnext/.ansible/tmp/ansible-local-9267ux21eT/tmpt7aqbh TO /root/.ansible/tmp/ansible-tmp-1537414473.69-30998914410357/file.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1537414473.69-30998914410357/ /root/.ansible/tmp/ansible-tmp-1537414473.69-30998914410357/file.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1537414473.69-30998914410357/file.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1537414473.69-30998914410357/ > /dev/null 2>&1 && sleep 0'
changed: [localhost] => {
"changed": true,
"diff": {
"after": {
"path": "/home/erpnext"
},
"before": {
"path": "/home/erpnext"
}
},
"gid": 1000,
"group": "erpnext",
"invocation": {
"module_args": {
"_diff_peek": null,
"_original_basename": null,
"attributes": null,
"backup": null,
"content": null,
"delimiter": null,
"directory_mode": null,
"follow": true,
"force": false,
"group": "erpnext",
"mode": "o+rx",
"owner": "erpnext",
"path": "/home/erpnext",
"recurse": true,
"regexp": null,
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": null,
"state": "directory",
"unsafe_writes": null
}
},
"mode": "0755",
"owner": "erpnext",
"path": "/home/erpnext",
"size": 4096,
"state": "directory",
"uid": 1000
}
TASK [Set /tmp/.bench folder perms] ********************************************************************
task path: /tmp/.bench/playbooks/create_user.yml:18
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/sh -c 'echo ~root && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "
echo /root/.ansible/tmp/ansible-tmp-1537414474.04-127180145307841
" && echo ansible-tmp-1537414474.04-127180145307841="echo /root/.ansible/tmp/ansible-tmp-1537414474.04-127180145307841
" ) && sleep 0'Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/files/file.py
<127.0.0.1> PUT /home/erpnext/.ansible/tmp/ansible-local-9267ux21eT/tmpfiYMld TO /root/.ansible/tmp/ansible-tmp-1537414474.04-127180145307841/file.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1537414474.04-127180145307841/ /root/.ansible/tmp/ansible-tmp-1537414474.04-127180145307841/file.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1537414474.04-127180145307841/file.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1537414474.04-127180145307841/ > /dev/null 2>&1 && sleep 0'
ok: [localhost] => {
"changed": false,
"diff": {
"after": {
"path": "/tmp/.bench"
},
"before": {
"path": "/tmp/.bench"
}
},
"gid": 1000,
"group": "erpnext",
"invocation": {
"module_args": {
"_diff_peek": null,
"_original_basename": null,
"attributes": null,
"backup": null,
"content": null,
"delimiter": null,
"directory_mode": null,
"follow": true,
"force": false,
"group": "erpnext",
"mode": null,
"owner": "erpnext",
"path": "/tmp/.bench",
"recurse": true,
"regexp": null,
"remote_src": null,
"selevel": null,
"serole": null,
"setype": null,
"seuser": null,
"src": null,
"state": "directory",
"unsafe_writes": null
}
},
"mode": "0755",
"owner": "erpnext",
"path": "/tmp/.bench",
"size": 4096,
"state": "directory",
"uid": 1000
}
TASK [Change default shell to bash] ********************************************************************
task path: /tmp/.bench/playbooks/create_user.yml:25
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/sh -c 'echo ~root && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "
echo /root/.ansible/tmp/ansible-tmp-1537414474.24-29539839171411
" && echo ansible-tmp-1537414474.24-29539839171411="echo /root/.ansible/tmp/ansible-tmp-1537414474.24-29539839171411
" ) && sleep 0'Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/commands/command.py
<127.0.0.1> PUT /home/erpnext/.ansible/tmp/ansible-local-9267ux21eT/tmppiDjgD TO /root/.ansible/tmp/ansible-tmp-1537414474.24-29539839171411/command.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1537414474.24-29539839171411/ /root/.ansible/tmp/ansible-tmp-1537414474.24-29539839171411/command.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1537414474.24-29539839171411/command.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1537414474.24-29539839171411/ > /dev/null 2>&1 && sleep 0'
changed: [localhost] => {
"changed": true,
"cmd": "chsh erpnext -s $(which bash)",
"delta": "0:00:00.009756",
"end": "2018-09-19 23:34:34.495754",
"invocation": {
"module_args": {
"_raw_params": "chsh erpnext -s $(which bash)",
"_uses_shell": true,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"warn": true
}
},
"rc": 0,
"start": "2018-09-19 23:34:34.485998",
"stderr": "",
"stderr_lines": [],
"stdout": "",
"stdout_lines": []
}
META: ran handlers
META: ran handlers
PLAY RECAP *********************************************************************************************
localhost : ok=5 changed=2 unreachable=0 failed=0
ansible-playbook 2.6.4
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/erpnext/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible
executable location = /usr/local/bin/ansible-playbook
python version = 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609]
Using /etc/ansible/ansible.cfg as config file
setting up inventory plugins
Parsed /etc/ansible/hosts inventory source with ini plugin
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost
does not match 'all'
statically imported: /tmp/.bench/playbooks/roles/mariadb/tasks/centos.yml
statically imported: /tmp/.bench/playbooks/roles/mariadb/tasks/ubuntu-trusty.yml
statically imported: /tmp/.bench/playbooks/roles/mariadb/tasks/ubuntu-xenial.yml
Loading callback plugin default of type stdout, v2.0 from /usr/local/lib/python2.7/dist-packages/ansible/plugins/callback/default.pyc
PLAYBOOK: site.yml *************************************************************************************
2 plays in site.yml
PLAY [localhost] ***************************************************************************************
TASK [Gathering Facts] *********************************************************************************
task path: /tmp/.bench/playbooks/site.yml:4
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/sh -c 'echo ~root && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "
echo /root/.ansible/tmp/ansible-tmp-1537414475.4-147263147256009
" && echo ansible-tmp-1537414475.4-147263147256009="echo /root/.ansible/tmp/ansible-tmp-1537414475.4-147263147256009
" ) && sleep 0'Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/system/setup.py
<127.0.0.1> PUT /home/erpnext/.ansible/tmp/ansible-local-9425dnSvQ1/tmpeFKeOn TO /root/.ansible/tmp/ansible-tmp-1537414475.4-147263147256009/setup.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1537414475.4-147263147256009/ /root/.ansible/tmp/ansible-tmp-1537414475.4-147263147256009/setup.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1537414475.4-147263147256009/setup.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1537414475.4-147263147256009/ > /dev/null 2>&1 && sleep 0'
ok: [localhost]
META: ran handlers
TASK [common : include_tasks] **************************************************************************
task path: /tmp/.bench/playbooks/roles/common/tasks/main.yml:4
included: /tmp/.bench/playbooks/roles/common/tasks/debian_family.yml for localhost
TASK [common : Install prerequisites using apt-get] ****************************************************
task path: /tmp/.bench/playbooks/roles/common/tasks/debian_family.yml:3
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/sh -c 'echo ~root && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "
echo /root/.ansible/tmp/ansible-tmp-1537414476.15-230397255216021
" && echo ansible-tmp-1537414476.15-230397255216021="echo /root/.ansible/tmp/ansible-tmp-1537414476.15-230397255216021
" ) && sleep 0'Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/packaging/os/apt.py
<127.0.0.1> PUT /home/erpnext/.ansible/tmp/ansible-local-9425dnSvQ1/tmpswVe0Z TO /root/.ansible/tmp/ansible-tmp-1537414476.15-230397255216021/apt.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1537414476.15-230397255216021/ /root/.ansible/tmp/ansible-tmp-1537414476.15-230397255216021/apt.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1537414476.15-230397255216021/apt.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1537414476.15-230397255216021/ > /dev/null 2>&1 && sleep 0'
ok: [localhost] => (item=[u'dnsmasq', u'fontconfig', u'git', u'htop', u'libcrypto++-dev', u'libfreetype6-dev', u'liblcms2-dev', u'libssl-dev', u'libwebp-dev', u'libxext6', u'libxrender1', u'libxslt1-dev', u'libxslt1.1', u'libffi-dev', u'ntp', u'postfix', u'python-dev', u'python3-dev', u'python-tk', u'screen', u'vim', u'xfonts-75dpi', u'xfonts-base', u'zlib1g-dev', u'apt-transport-https', u'libsasl2-dev', u'libldap2-dev', u'libcups2-dev']) => {
"cache_update_time": 1537412419,
"cache_updated": false,
"changed": false,
"invocation": {
"module_args": {
"allow_unauthenticated": false,
"autoclean": false,
"autoremove": false,
"cache_valid_time": 0,
"deb": null,
"default_release": null,
"dpkg_options": "force-confdef,force-confold",
"force": true,
"force_apt_get": false,
"install_recommends": null,
"name": [
"dnsmasq",
"fontconfig",
"git",
"htop",
"libcrypto++-dev",
"libfreetype6-dev",
"liblcms2-dev",
"libssl-dev",
"libwebp-dev",
"libxext6",
"libxrender1",
"libxslt1-dev",
"libxslt1.1",
"libffi-dev",
"ntp",
"postfix",
"python-dev",
"python3-dev",
"python-tk",
"screen",
"vim",
"xfonts-75dpi",
"xfonts-base",
"zlib1g-dev",
"apt-transport-https",
"libsasl2-dev",
"libldap2-dev",
"libcups2-dev"
],
"only_upgrade": false,
"package": [
"dnsmasq",
"fontconfig",
"git",
"htop",
"libcrypto++-dev",
"libfreetype6-dev",
"liblcms2-dev",
"libssl-dev",
"libwebp-dev",
"libxext6",
"libxrender1",
"libxslt1-dev",
"libxslt1.1",
"libffi-dev",
"ntp",
"postfix",
"python-dev",
"python3-dev",
"python-tk",
"screen",
"vim",
"xfonts-75dpi",
"xfonts-base",
"zlib1g-dev",
"apt-transport-https",
"libsasl2-dev",
"libldap2-dev",
"libcups2-dev"
],
"purge": false,
"state": "present",
"update_cache": null,
"upgrade": null
}
},
"item": [
"dnsmasq",
"fontconfig",
"git",
"htop",
"libcrypto++-dev",
"libfreetype6-dev",
"liblcms2-dev",
"libssl-dev",
"libwebp-dev",
"libxext6",
"libxrender1",
"libxslt1-dev",
"libxslt1.1",
"libffi-dev",
"ntp",
"postfix",
"python-dev",
"python3-dev",
"python-tk",
"screen",
"vim",
"xfonts-75dpi",
"xfonts-base",
"zlib1g-dev",
"apt-transport-https",
"libsasl2-dev",
"libldap2-dev",
"libcups2-dev"
]
}
TASK [common : include_tasks] **************************************************************************
task path: /tmp/.bench/playbooks/roles/common/tasks/debian_family.yml:37
skipping: [localhost] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [common : include_tasks] **************************************************************************
task path: /tmp/.bench/playbooks/roles/common/tasks/debian_family.yml:40
included: /tmp/.bench/playbooks/roles/common/tasks/ubuntu.yml for localhost
TASK [common : install pillow prerequisites for Ubuntu < 14.04] ****************************************
task path: /tmp/.bench/playbooks/roles/common/tasks/ubuntu.yml:3
[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using
result|version_compare
use
result is version_compare
. This feature will be removed in version 2.9. Deprecation warnings canbe disabled by setting deprecation_warnings=False in ansible.cfg.
skipping: [localhost] => (item=[]) => {
"changed": false,
"item": [],
"skip_reason": "Conditional result was False"
}
TASK [common : install pillow prerequisites for Ubuntu >= 14.04] ***************************************
task path: /tmp/.bench/playbooks/roles/common/tasks/ubuntu.yml:12
[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using
result|version_compare
use
result is version_compare
. This feature will be removed in version 2.9. Deprecation warnings canbe disabled by setting deprecation_warnings=False in ansible.cfg.
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/sh -c 'echo ~root && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "
echo /root/.ansible/tmp/ansible-tmp-1537414477.23-65867990542257
" && echo ansible-tmp-1537414477.23-65867990542257="echo /root/.ansible/tmp/ansible-tmp-1537414477.23-65867990542257
" ) && sleep 0'Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/packaging/os/apt.py
<127.0.0.1> PUT /home/erpnext/.ansible/tmp/ansible-local-9425dnSvQ1/tmp9EtDVJ TO /root/.ansible/tmp/ansible-tmp-1537414477.23-65867990542257/apt.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1537414477.23-65867990542257/ /root/.ansible/tmp/ansible-tmp-1537414477.23-65867990542257/apt.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1537414477.23-65867990542257/apt.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1537414477.23-65867990542257/ > /dev/null 2>&1 && sleep 0'
ok: [localhost] => (item=[u'libjpeg8-dev', u'libtiff5-dev', u'tcl8.6-dev', u'tk8.6-dev']) => {
"cache_update_time": 1537412419,
"cache_updated": false,
"changed": false,
"invocation": {
"module_args": {
"allow_unauthenticated": false,
"autoclean": false,
"autoremove": false,
"cache_valid_time": 0,
"deb": null,
"default_release": null,
"dpkg_options": "force-confdef,force-confold",
"force": true,
"force_apt_get": false,
"install_recommends": null,
"name": [
"libjpeg8-dev",
"libtiff5-dev",
"tcl8.6-dev",
"tk8.6-dev"
],
"only_upgrade": false,
"package": [
"libjpeg8-dev",
"libtiff5-dev",
"tcl8.6-dev",
"tk8.6-dev"
],
"purge": false,
"state": "present",
"update_cache": null,
"upgrade": null
}
},
"item": [
"libjpeg8-dev",
"libtiff5-dev",
"tcl8.6-dev",
"tk8.6-dev"
]
}
TASK [common : include_tasks] **************************************************************************
task path: /tmp/.bench/playbooks/roles/common/tasks/main.yml:7
skipping: [localhost] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [locale : Check current locale] *******************************************************************
task path: /tmp/.bench/playbooks/roles/locale/tasks/main.yml:2
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/sh -c 'echo ~root && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "
echo /root/.ansible/tmp/ansible-tmp-1537414478.04-151208729440254
" && echo ansible-tmp-1537414478.04-151208729440254="echo /root/.ansible/tmp/ansible-tmp-1537414478.04-151208729440254
" ) && sleep 0'Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/commands/command.py
<127.0.0.1> PUT /home/erpnext/.ansible/tmp/ansible-local-9425dnSvQ1/tmpAVYH3x TO /root/.ansible/tmp/ansible-tmp-1537414478.04-151208729440254/command.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1537414478.04-151208729440254/ /root/.ansible/tmp/ansible-tmp-1537414478.04-151208729440254/command.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1537414478.04-151208729440254/command.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1537414478.04-151208729440254/ > /dev/null 2>&1 && sleep 0'
fatal: [localhost]: FAILED! => {
"changed": true,
"cmd": "localectl",
"delta": "0:00:00.025482",
"end": "2018-09-19 23:34:38.320167",
"invocation": {
"module_args": {
"_raw_params": "localectl",
"_uses_shell": true,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"warn": true
}
},
"msg": "non-zero return code",
"rc": 1,
"start": "2018-09-19 23:34:38.294685",
"stderr": "Could not get properties: Connection timed out",
"stderr_lines": [
"Could not get properties: Connection timed out"
],
"stdout": "",
"stdout_lines": []
}
to retry, use: --limit @/tmp/.bench/playbooks/site.retry
PLAY RECAP *********************************************************************************************
localhost : ok=5 changed=0 unreachable=0 failed=1
Passwords saved at ~/passwords.txt
Traceback (most recent call last):
File "install.py", line 420, in
install_bench(args)
File "install.py", line 122, in install_bench
run_playbook('site.yml', sudo=True, extra_vars=extra_vars)
File "install.py", line 338, 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', 'site.yml', '-e', '@/tmp/extra_vars.json', '-vvvv', '--become', '--become-user=erpnext']' returned non-zero exit status 2`
The text was updated successfully, but these errors were encountered: