will it install the whole package or shall i add another commands?
thanks
fikru@fikru:~$ sudo python install.py --production
python: can’t open file ‘install.py’: [Errno 2] No such file or director
it brings this error
i f you can please tell me what i have to do from scratch?
thaks for your help
@Sachine_P1 Make sure to start from scratch (new system) and run the following commands (add the user option only if you’re running as root):
wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
sudo python install.py --production --user frappe
@vjFaLk thanks for your replay
but it brings tis error again
Hit http://et.archive.ubuntu.com trusty/main i386 Packages
Hit http://et.archive.ubuntu.com trusty/restricted i386 Packages
Hit http://et.archive.ubuntu.com trusty/universe i386 Packages
Hit http://et.archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://et.archive.ubuntu.com trusty/main Translation-en
Hit http://et.archive.ubuntu.com trusty/multiverse Translation-en
Hit http://et.archive.ubuntu.com trusty/restricted Translation-en
Hit http://et.archive.ubuntu.com trusty/universe Translation-en
Ign http://et.archive.ubuntu.com trusty/main Translation-en_US
Ign http://et.archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://et.archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://et.archive.ubuntu.com trusty/universe Translation-en_US
Fetched 4,665 kB in 47s (98.5 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
python-dev is already the newest version.
git is already the newest version.
libssl-dev is already the newest version.
python-setuptools is already the newest version.
The following NEW packages will be installed:
libffi-dev
0 upgraded, 1 newly installed, 0 to remove and 69 not upgraded.
Need to get 99.8 kB of archives.
After this operation, 323 kB of additional disk space will be used.
Get:1 http://et.archive.ubuntu.com/ubuntu/ trusty-updates/main libffi-dev amd64 3.1~rc1+r3.0.13-12ubuntu0.1 [99.8 kB]
Fetched 99.8 kB in 12s (8,067 B/s)
Selecting previously unselected package libffi-dev:amd64.
(Reading database ... 181505 files and directories currently installed.)
Preparing to unpack .../libffi-dev_3.1~rc1+r3.0.13-12ubuntu0.1_amd64.deb ...
Unpacking libffi-dev:amd64 (3.1~rc1+r3.0.13-12ubuntu0.1) ...
Processing triggers for doc-base (0.10.5) ...
Processing 1 added doc-base file...
Processing triggers for install-info (5.2.0.dfsg.1-2) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up libffi-dev:amd64 (3.1~rc1+r3.0.13-12ubuntu0.1) ...
The directory '/home/fikru/.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/fikru/.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.
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Collecting setuptools
Downloading setuptools-25.1.6-py2.py3-none-any.whl (442kB)
100% |████████████████████████████████| 450kB 560kB/s
Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages
Installing collected packages: setuptools
Found existing installation: setuptools 3.3
Uninstalling setuptools-3.3:
Successfully uninstalled setuptools-3.3
Successfully installed setuptools-25.1.6
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
The directory '/home/fikru/.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/fikru/.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.
Collecting ansible==2.0.2.0
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading ansible-2.0.2.0.tar.gz (1.5MB)
100% |████████████████████████████████| 1.5MB 173kB/s
Requirement already satisfied (use --upgrade to upgrade): paramiko in /usr/lib/python2.7/dist-packages (from ansible==2.0.2.0)
Requirement already satisfied (use --upgrade to upgrade): jinja2 in /usr/local/lib/python2.7/dist-packages (from ansible==2.0.2.0)
Collecting PyYAML (from ansible==2.0.2.0)
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/local/lib/python2.7/dist-packages (from ansible==2.0.2.0)
Requirement already satisfied (use --upgrade to upgrade): pycrypto>=2.6 in /usr/lib/python2.7/dist-packages (from ansible==2.0.2.0)
Requirement already satisfied (use --upgrade to upgrade): MarkupSafe in /usr/local/lib/python2.7/dist-packages (from jinja2->ansible==2.0.2.0)
Installing collected packages: PyYAML, ansible
Running setup.py install for ansible ... done
Successfully installed PyYAML-3.11 ansible-2.0.2.0
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Cloning into '/tmp/.bench'...
remote: Counting objects: 165, done.
remote: Compressing objects: 100% (146/146), done.
remote: Total 165 (delta 3), reused 97 (delta 1), pack-reused 0
Receiving objects: 100% (165/165), 7.05 MiB | 218.00 KiB/s, done.
Resolving deltas: 100% (3/3), done.
Checking connectivity... done.
[WARNING]: Host file not found: /etc/ansible/hosts
[WARNING]: provided hosts list is empty, only localhost is available
PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [Create user] *************************************************************
changed: [localhost]
TASK [Set home folder perms] ***************************************************
ok: [localhost]
TASK [Set home folder perms] ***************************************************
skipping: [localhost]
TASK [Set /tmp/.bench folder perms] ********************************************
changed: [localhost]
[WARNING]: Consider using file module with owner rather than running chown
PLAY RECAP *********************************************************************
localhost : ok=4 changed=2 unreachable=0 failed=0
Please enter mysql root password:
Re-enter mysql root password:
Please enter Administrator password:
Re-enter Administrator password:
[WARNING]: Host file not found: /etc/ansible/hosts
[WARNING]: provided hosts list is empty, only localhost is available
PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [install prequisites] *****************************************************
skipping: [localhost] => (item=cmake)
skipping: [localhost] => (item=redis)
skipping: [localhost] => (item=mariadb)
skipping: [localhost] => (item=nodejs)
TASK [cask installs] ***********************************************************
skipping: [localhost] => (item=wkhtmltopdf)
TASK [include] *****************************************************************
skipping: [localhost]
TASK [include] *****************************************************************
skipping: [localhost]
TASK [include] *****************************************************************
skipping: [localhost]
PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [install prequisites] *****************************************************
ok: [localhost] => (item=[u'build-essential', u'redis-server', u'software-properties-common', u'libxrender1', u'libxext6', u'xfonts-75dpi', u'xfonts-base', u'libjpeg8-dev', u'zlib1g-dev', u'libfreetype6-dev', u'liblcms2-dev', u'libwebp-dev', u'python-tk'])
TASK [install pillow prerequisites for Ubuntu < 14.04] *************************
skipping: [localhost] => (item=[])
TASK [install pillow prerequisites for Ubuntu >= 14.04] ************************
ok: [localhost] => (item=[u'libtiff5-dev', u'tcl8.6-dev', u'tk8.6-dev'])
TASK [Get nodejs 6.x bash script] **********************************************
changed: [localhost]
TASK [Run nodejs bash script] **************************************************
changed: [localhost]
TASK [Install nodejs 6.x] ******************************************************
ok: [localhost]
TASK [include] *****************************************************************
included: /tmp/.bench/playbooks/develop/includes/mariadb_ubuntu.yml for localhost
TASK [Add apt key for mariadb for Ubuntu < 16.04] ******************************
ok: [localhost]
TASK [Add apt key for mariadb for Ubuntu >= 16.04] *****************************
skipping: [localhost]
TASK [Add apt repository] ******************************************************
changed: [localhost]
TASK [Unattended package installation] *****************************************
changed: [localhost]
TASK [apt-get install] *********************************************************
failed: [localhost] (item=[u'mariadb-server', u'mariadb-client', u'mariadb-common', u'libmariadbclient-dev']) => {"cache_update_time": 1470990501, "cache_updated": true, "failed": true, "item": ["mariadb-server", "mariadb-client", "mariadb-common", "libmariadbclient-dev"], "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", "stderr": "E: Unable to correct problems, you have held broken packages.\n", "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.1 (= 10.1.16+maria-1~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.1 (= 10.1.16+maria-1~trusty) but it is not going to be installed"]}
to retry, use: --limit @production/install.retry
PLAY RECAP *********************************************************************
localhost : ok=13 changed=4 unreachable=0 failed=1
Traceback (most recent call last):
File "install.py", line 342, in <module>
install_bench(args)
File "install.py", line 111, in install_bench
run_playbook('production/install.yml', sudo=True, extra_vars=extra_vars)
File "install.py", line 292, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, 'playbooks'))
File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ansible-playbook', '-c', 'local', 'production/install.yml', '-e', '@/tmp/extra_vars.json', '--become', '--become-user=frappe']' returned non-zero exit status 2
what shall i do?
Hmm, seems there’s something wrong with apt-get. Did you start from scratch on a new system as I said? It’s possible the old installer might be causing issues.
ya i have installed ubuntu 14.04 fresh and then only install python 2.7 and mysql work bench then i directly write the command as you said
I think that might be the issue, by installing mysql work-bench, it may have caused a dependency problem, because we use mysql as well. Just install python 2.7 and run the commands.
Remove it just in case, and install 2.7
Just attempt installation with installer.
I mean, just run the commands to install ERPNext as you attempted above
Without installing the workbench.
I am also getting following error when I am running bench setup socketio
/bin/sh: 1: npm: not found
Traceback (most recent call last):
File "/usr/local/bin/bench", line 9, in
load_entry_point('bench', 'console_scripts', 'bench')()
File "/home/fikru/bench-repo/bench/cli.py", line 40, in cli
bench_command()
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 716, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1060, in invoke
return processresult(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/fikru/bench-repo/bench/commands/make.py", line 19, in init
verbose=verbose, clone_from=clone_from)
File "/home/fikru/bench-repo/bench/utils.py", line 64, in init
setup_socketio(bench_path=path)
File "/home/fikru/bench-repo/bench/utils.py", line 140, in setup_socketio
exec_cmd("npm install socket.io redis express superagent cookie", cwd=bench_path)
File "/home/fikru/bench-repo/bench/utils.py", line 130, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: npm install socket.io redis express superagent cookie
im getting error while installting,
im very new of ubuntu and erpnext
using ubuntu 14.04 VNC on VPS
fresh rebuild
used these commands
sudo apt-get install python-minimal
wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
sudo python install.py --production --user frappe
I have spent two days for install ERPNext (latest version) on Ubuntu 14 / 16 64bit many times but no success ( sudo python install.py --production --user frappe ) - I installed many times, no error occurred until the present
You don’t say what problem you are having.
As the code evolves installs can be a recurring problem, for example this episode
*SOLVED* Install.py now FAILS on Unbuntu 14.04, Debian 8, Centos 7. What happened? (also same on Ubuntu 16.04) *SOLVED*
This resource may help give you more perspective erpnext_admin_guide | ERPNext Administrators Guide