ERP source install error

for erp instillation I am trying two way but didn’t
############################
source install: in Ubuntu 14.04
apt-get update
wget https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh

sudo bash setup_frappe.sh --setup-production
################
Beta install: in Ubuntu 14.04
apt-get update
wget https://raw.githubusercontent.com/frappe/bench/develop/playbooks/install.py

sudo python install.py --production

I got this error please help

TASK [mariadb : Install MariaDB] ****************************************************************************************************************************
failed: [localhost] (item=[u’mariadb-server’, u’mariadb-client’, u’mariadb-common’, u’libmariadbclient18’, u’python-mysqldb’]) => {“cache_update_time”: 1516161005, “cache_updated”: false, “failed”: true, “item”: [“mariadb-server”, “mariadb-client”, “mariadb-common”, “libmariadbclient18”, “python-mysqldb”], “msg”: “‘/usr/bin/apt-get -y -o "Dpkg::Options::=–force-confdef" -o "Dpkg::Options::=–force-confold" install ‘mariadb-client’’ failed: E: Unable to correct problems, you have held broken packages.\n”, “rc”: 100, “stderr”: “E: Unable to correct problems, you have held broken packages.\n”, “stderr_lines”: [“E: Unable to correct problems, you have held broken packages.”], “stdout”: “Reading package lists…\nBuilding dependency tree…\nReading state information…\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n mariadb-client : Depends: mariadb-client-10.2 (>= 10.2.12+maria~trusty) but it is not going to be installed\n”, “stdout_lines”: [“Reading package lists…”, “Building dependency tree…”, “Reading state information…”, “Some packages could not be installed. This may mean that you have”, “requested an impossible situation or if you are using the unstable”, “distribution that some required packages have not yet been created”, “or been moved out of Incoming.”, “The following information may help to resolve the situation:”, “”, “The following packages have unmet dependencies:”, " mariadb-client : Depends: mariadb-client-10.2 (>= 10.2.12+maria~trusty) but it is not going to be installed"]}

Hi

I think you need to remove complete mariadb

can follow code, I notyet test

sudo apt-get purge mysql*

sudo apt-get autoremove

sudo apt-get autoclean

Could you give me a proper step to install erp next on ubuntu 16.4? I can’t from their link ,it always shoing error.

Hello, masud,

I think below link will help you. it’s manually installation steps.

Thanks

OK I am trying with it. All command will processed by root?

Hi ! in from bench-repo foldaer sudo python setup.py install does not proceed

All the steps for fresh installation.
check branch of bench-repo, its master or develop?
What type of error did you receive?
send traceback log.

root@ubuntu:~/ErpNext/ErpNext/bench-repo# sudo python setup.py install
sudo: python: command not found

Hello

Below is the Install Prerequisites:
=> Python 2.7.12 or above:-
=> MariaDB 10+
=> Nginx (for production)
=> Nodejs
=> Redis
=> wkhtmltopdf with patched Qt (for pdf generation)

Check your python version in the system.
Type python on your terminal screen and press enter and check the version of python.
For Example
root@ubuntu:~$ python
Thanks

You could install dependencies with bench too

$ sudo bench install [dependency]

Check out sudo bench install --help for what you can install.

root@ubuntu:~/ErpNext/ErpNext/bench-repo# python
Python 2.7.12 (default, Nov 20 2017, 18:23:56)
[GCC 5.4.0 20160609] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.

Lots of install issues lately…
https://jwrober.github.io/erpnext_admin_guide/i-u-b/install

2 Likes

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

Passwords saved at ~/passwords.txt
Traceback (most recent call last):
File “install.py”, line 388, in
install_bench(args)
File “install.py”, line 114, in install_bench
run_playbook(‘production/install.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 326, 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’, ‘-vvvv’, ‘–become’, ‘–become-user=erpnext’]’ returned non-zero exit status 2

now what can I do?

what is the error above the play recap? that bottom section can be ignored.

I’m not sure, but seems like a proxy issue. Can you try
ping -c3 us.archive.ubuntu.com
You should get something like

--- us.archive.ubuntu.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 347.013/392.758/426.787/33.604 ms

If you’re not getting this. It means it’s a proxy or firewall issue and your instance is not able to connect to us.archive.ubuntu.com


Try installing again on a fresh instance as root using these commands.

Ubuntu 16.04

cd ~
apt-get update
apt-get -y upgrade
apt-get install -y python-minimal build-essential python-setuptools
wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
sudo python install.py --production
2 Likes