Try ERPNext Buy Support Partners Foundation

Easy Installation Issue . Failed to download key (Mariadb)

Bench Installation error using easy install in fresh Ubuntu desktop 16.04

sudo python install.py --production --user <user_name>

I tried installing it on 18.04 as well. I got the same issue.

Please suggest if I am missing something.

TASK [mariadb : Add repo key] **************************************************
    task path: /tmp/.bench/playbooks/roles/mariadb/tasks/ubuntu-xenial_bionic.yml:6
    <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-1576129774.2241068-148558779867233 `" && echo ansible-tmp-1576129774.2241068-148558779867233="` echo /root/.ansible/tmp/ansible-tmp-1576129774.2241068-148558779867233 `" ) && sleep 0'
    Using module file /usr/local/lib/python3.5/dist-packages/ansible/modules/packaging/os/apt_key.py
    <127.0.0.1> PUT /home/user/.ansible/tmp/ansible-local-32675erqssd18/tmpfhco2o4f TO /root/.ansible/tmp/ansible-tmp-1576129774.2241068-148558779867233/AnsiballZ_apt_key.py
    <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1576129774.2241068-148558779867233/ /root/.ansible/tmp/ansible-tmp-1576129774.2241068-148558779867233/AnsiballZ_apt_key.py && sleep 0'
    <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1576129774.2241068-148558779867233/AnsiballZ_apt_key.py && sleep 0'
    <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1576129774.2241068-148558779867233/ > /dev/null 2>&1 && sleep 0'
    fatal: [localhost]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "data": null,
            "file": null,
            "id": "C74CD1D8",
            "key": null,
            "keyring": null,
            "keyserver": null,
            "state": "present",
            "url": "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xF1656F24C74CD1D8",
            "validate_certs": true
        }
    },
    "msg": "Failed to download key at http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xF1656F24C74CD1D8: Request failed: <urlopen error timed out>"
    }

    PLAY RECAP *********************************************************************
    localhost                  : ok=11   changed=3    unreachable=0    failed=1    skipped=13   rescued=0    ignored=0   

    Traceback (most recent call last):
      File "install.py", line 413, in <module>
    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 541, 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=user']' returned non-zero exit status 2

Just do it again. It is an internet download issue.

 sudo python install.py --production --user <user_name>  --mysql-root-password <mysql_password> --mariadb-version 10.3 --admin-password <admin_password>

You might like to do the one above so you don’t have to wait for the mysql and admin password prompts and also set the mariadb version to 10.3 instead of 10.2

Thank you for your response.

It was the issue with the download. keyserver.ubuntu.com was not responding to the request. I fixed by searching the key from keyserer.ubuntu.com, copied in the text file and then export the key.