ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

[Ubuntu Xenial] ERPNext Installation giving error

error

#1

i am trying to install then its giving this error

W: The repository 'http://ppa.launchpad.net/fossfreedom/byzanz/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/fossfreedom/byzanz/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-amd64/by-hash/SHA256/cc1bd9d29b056679fee61e972c99fb69104250eeee5d7e975055c808a3a43db0  Hash Sum mismatch
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/xenial-updates/universe/binary-amd64/by-hash/SHA256/0c365db4dd94ee0177c73c5680bcd6a7ab812edd30f1b1d9d2586d4463f71b7c  
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/xenial-updates/universe/binary-i386/by-hash/SHA256/df9b1c44f9865fa2e4aeafb400a6d9fa054f799f56e35dac110650721c8a2cd7  
E: Some index files failed to download. They have been ignored, or old ones used instead.
Traceback (most recent call last):
  File "install.py", line 425, in <module>
    install_bench(args)
  File "install.py", line 21, in install_bench
    'sudo yum install -y epel-release redhat-lsb-core git python-setuptools python-devel openssl-devel libffi-devel'
  File "install.py", line 234, in run_os_command
    returncode = subprocess.check_call(command, shell=True)
  File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'sudo apt-get update' returned non-zero exit status 100

#2

sudo yum install -y epel-release redhat-lsb-core git python-setuptools python-devel openssl-devel libffi-devel implies CentOS, but the command is failing on sudo apt-get update.
Which OS are you actually using?


#3

ubuntu


#4

Seems like a problem with Ubuntu servers or your script


#5

Issue you are facing is not related to bench auto installer, as its your system repos are not in good shape.

You should start with fresh server or remove your existing repos from source.list file and/or source.list.d directory so that apt-get update command will finish successfully, then you can give retry to bench auto installer.


#6

Thanks for Reply

i changed in my script now i am getting this error

TASK [nodejs : Install yarn] ******************************************************************************************************************
changed: [localhost]

TASK [swap : Create swap space] ***************************************************************************************************************
fatal: [localhost]: FAILED! => {“msg”: “The conditional check ‘production and not container’ failed. The error was: error while evaluating conditional (production and not container): ‘container’ is undefined\n\nThe error appears to have been in ‘/tmp/.bench/playbooks/roles/swap/tasks/main.yml’: line 1, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Create swap space\n ^ here\n”}

RUNNING HANDLER [mariadb : restart mysql] *****************************************************************************************************
to retry, use: --limit @/tmp/.bench/playbooks/site.retry

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

Traceback (most recent call last):
File “install.py”, line 417, 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’, ‘–become’, ‘–become-user=frappe’]’ returned non-zero exit status 2