Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

"Downloading and Running the script" not working #45

Open
kyughost opened this issue Sep 20, 2018 · 1 comment
Open

"Downloading and Running the script" not working #45

kyughost opened this issue Sep 20, 2018 · 1 comment

Comments

@kyughost
Copy link

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
Reading 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
sudo: upate-locale: command not found
erpnext@server:$ LC_ALL en_US.UTF-8
-su: LC_ALL: command not found
erpnext@server:
$ ENV LC_ALL en_US.UTF-8
-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.log
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
16.04).
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 can
be 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 can
be 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`

@1kidvidiot
Copy link

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
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 151.101.52.133...

  • TCP_NODELAY set
  • Connected to raw.githubusercontent.com (151.101.52.133) port 443 (#0)
  • ALPN, offering h2
  • ALPN, offering http/1.1
  • Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@strength
  • successfully set certificate verify locations:
  • CAfile: /etc/ssl/certs/ca-certificates.crt
    CApath: /etc/ssl/certs
  • TLSv1.2 (OUT), TLS header, Certificate Status (22):
    } [5 bytes data]
  • TLSv1.2 (OUT), TLS handshake, Client hello (1):
    } [512 bytes data]
  • TLSv1.2 (IN), TLS handshake, Server hello (2):
    { [108 bytes data]
  • TLSv1.2 (IN), TLS handshake, Certificate (11):
    { [3182 bytes data]
  • TLSv1.2 (IN), TLS handshake, Server key exchange (12):
    { [333 bytes data]
  • TLSv1.2 (IN), TLS handshake, Server finished (14):
    { [4 bytes data]
  • TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
    } [70 bytes data]
  • TLSv1.2 (OUT), TLS change cipher, Client hello (1):
    } [1 bytes data]
  • TLSv1.2 (OUT), TLS handshake, Finished (20):
    } [16 bytes data]
  • TLSv1.2 (IN), TLS change cipher, Client hello (1):
    { [1 bytes data]
  • TLSv1.2 (IN), TLS handshake, Finished (20):
    { [16 bytes data]
  • SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
  • ALPN, server accepted to use http/1.1
  • Server certificate:
  • subject: C=US; ST=California; L=San Francisco; O=GitHub, Inc.; CN=www.github.com
  • start date: Mar 23 00:00:00 2017 GMT
  • expire date: May 13 12:00:00 2020 GMT
  • subjectAltName: host "raw.githubusercontent.com" matched cert's "*.githubusercontent.com"
  • issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert SHA2 High Assurance Server CA
  • SSL certificate verify ok.
    } [5 bytes data]

GET /frappe/bench/master/playbooks/install.py HTTP/1.1
Host: raw.githubusercontent.com
User-Agent: curl/7.52.1
Accept: /

{ [5 bytes data]
< HTTP/1.1 200 OK
< Content-Security-Policy: default-src 'none'; style-src 'unsafe-inline'; sandbox
< Strict-Transport-Security: max-age=31536000
< X-Content-Type-Options: nosniff
< X-Frame-Options: deny
< X-XSS-Protection: 1; mode=block
< ETag: "8eacb407470011543a9718f280f0362971c54b29"
< Content-Type: text/plain; charset=utf-8
< Cache-Control: max-age=300
< X-Geo-Block-List:
< X-GitHub-Request-Id: 8F30:8FD3:A7C23B:B078C9:5BE09A03
< Content-Length: 13203
< Accept-Ranges: bytes
< Date: Mon, 05 Nov 2018 19:32:37 GMT
< Via: 1.1 varnish
< Connection: keep-alive
< X-Served-By: cache-sea1038-SEA
< X-Cache: HIT
< X-Cache-Hits: 1
< X-Timer: S1541446358.581319,VS0,VE1
< Vary: Authorization,Accept-Encoding
< Access-Control-Allow-Origin: *
< X-Fastly-Request-ID: e35278821cfae5fe81691b2dc6d81f6a1d779daa
< Expires: Mon, 05 Nov 2018 19:37:37 GMT
< Source-Age: 210
<
{ [1919 bytes data]

-o install.py

[sudo] password for erpnext:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13203 100 13203 0 0 30105 0 --:--:-- --:--:-- --:--:-- 30143
erpnext@ERPnext:$ sudo curl "https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py" -o install.py % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13203 100 13203 0 0 45272 0 --:--:-- --:--:-- --:--:-- 45371
erpnext@ERPnext:
$ sudo curl "https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py" -o install.py % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13203 100 13203 0 0 79994 0 --:--:-- --:--:-- --:--:-- 80506
erpnext@ERPnext:~$ curl -v "https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py" -o install.py % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 151.101.52.133...

  • TCP_NODELAY set
  • Connected to raw.githubusercontent.com (151.101.52.133) port 443 (#0)
  • ALPN, offering h2
  • ALPN, offering http/1.1
  • Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@strength
  • successfully set certificate verify locations:
  • CAfile: /etc/ssl/certs/ca-certificates.crt
    CApath: /etc/ssl/certs
  • TLSv1.2 (OUT), TLS header, Certificate Status (22):
    } [5 bytes data]
  • TLSv1.2 (OUT), TLS handshake, Client hello (1):
    } [512 bytes data]
  • TLSv1.2 (IN), TLS handshake, Server hello (2):
    { [108 bytes data]
  • TLSv1.2 (IN), TLS handshake, Certificate (11):
    { [3182 bytes data]
  • TLSv1.2 (IN), TLS handshake, Server key exchange (12):
    { [333 bytes data]
  • TLSv1.2 (IN), TLS handshake, Server finished (14):
    { [4 bytes data]
  • TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
    } [70 bytes data]
  • TLSv1.2 (OUT), TLS change cipher, Client hello (1):
    } [1 bytes data]
  • TLSv1.2 (OUT), TLS handshake, Finished (20):
    } [16 bytes data]
  • TLSv1.2 (IN), TLS change cipher, Client hello (1):
    { [1 bytes data]
  • TLSv1.2 (IN), TLS handshake, Finished (20):
    { [16 bytes data]
  • SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
  • ALPN, server accepted to use http/1.1
  • Server certificate:
  • subject: C=US; ST=California; L=San Francisco; O=GitHub, Inc.; CN=www.github.com
  • start date: Mar 23 00:00:00 2017 GMT
  • expire date: May 13 12:00:00 2020 GMT
  • subjectAltName: host "raw.githubusercontent.com" matched cert's "*.githubusercontent.com"
  • issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert SHA2 High Assurance Server CA
  • SSL certificate verify ok.
    } [5 bytes data]

GET /frappe/bench/master/playbooks/install.py HTTP/1.1
Host: raw.githubusercontent.com
User-Agent: curl/7.52.1
Accept: /

{ [5 bytes data]
< HTTP/1.1 200 OK
< Content-Security-Policy: default-src 'none'; style-src 'unsafe-inline'; sandbox
< Strict-Transport-Security: max-age=31536000
< X-Content-Type-Options: nosniff
< X-Frame-Options: deny
< X-XSS-Protection: 1; mode=block
< ETag: "8eacb407470011543a9718f280f0362971c54b29"
< Content-Type: text/plain; charset=utf-8
< Cache-Control: max-age=300
< X-Geo-Block-List:
< X-GitHub-Request-Id: 6D6C:8FD3:A8867A:B14928:5BE09F80
< Content-Length: 13203
< Accept-Ranges: bytes
< Date: Mon, 05 Nov 2018 19:53:41 GMT
< Via: 1.1 varnish
< Connection: keep-alive
< X-Served-By: cache-sea1022-SEA
< X-Cache: HIT
< X-Cache-Hits: 3
< X-Timer: S1541447622.686794,VS0,VE0
< Vary: Authorization,Accept-Encoding
< Access-Control-Allow-Origin: *
< X-Fastly-Request-ID: e34667d01cb383a1c10c3dbac499855e866e0bac
< Expires: Mon, 05 Nov 2018 19:58:41 GMT
< Source-Age: 68
<
{ [1920 bytes data]

  • Curl_http_done: called premature == 0
    100 13203 100 13203 0 0 56062 0 --:--:-- --:--:-- --:--:-- 56182
  • Connection #0 to host raw.githubusercontent.com left intact

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants