Installing without root acces?

Hi,

(i’m a newbie, and not a trained techie guy, just reading and learning)

I have a server managed by Cloudways on Digital Ocean.

Running:
python -V

Python 2.7.9

curl -V

curl 7.38.0 (x86_64-pc-linux-gnu) libcurl/7.38.0 OpenSSL/1.0.1t zlib/1.2.8 libidn/1.29 libssh2/1.4.3 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smtp > smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API SPNEGO NTLM NTLM_WB SSL libz TLS-SRP

mysql -V

mysql Ver 15.1 Distrib 10.0.28-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2

nginx -v

nginx version: nginx/1.10.1

redis-server --version

Redis server v=3.2.5 sha=00000000:0 malloc=jemalloc-4.0.3 bits=64 build=474f5462991a0e92

node --version

v6.9.1

Apparently I won’t be able to have sudo access (https://support.cloudways.com/why-cant-i-have-root-access-to-my-server/)

I followed the steps, but can’t run install.py cause i don’t have sudo privileges.

python install.py --user my_user --production --verbose
[sudo] password for my_user:
my_user is not in the sudoers file.  This incident will be reported.
Traceback (most recent call last):
  File "install.py", line 351, in 
    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 219, in run_os_command
    returncode = subprocess.check_call(command, shell=True)
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'sudo apt-get update' returned non-zero exit status 1

Are there any chance to install frappe/ERPNext without root access?

When using the manual install:

$ pip install -e bench-repo/
Obtaining file:///home/85944-67116.cloudwaysapps.com/swmntyztwd/public_html/bench-repo
  Running setup.py (path:/home/85944-67116.cloudwaysapps.com/swmntyztwd/public_html/bench-repo/setup.py) egg_info for package from file:///home/85944-67116.cloudwaysapps.com/swmntyztwd/public_html/bench-repo

Downloading/unpacking Click (from bench==4.1.0)
  Downloading click-6.6-py2.py3-none-any.whl (71kB): 71kB downloaded
Downloading/unpacking jinja2 (from bench==4.1.0)
  Downloading Jinja2-2.8-py2.py3-none-any.whl (263kB): 263kB downloaded
Downloading/unpacking virtualenv (from bench==4.1.0)
  Downloading virtualenv-15.1.0-py2.py3-none-any.whl (1.8MB): 1.8MB downloaded
Requirement already satisfied (use --upgrade to upgrade): requests in /usr/lib/python2.7/dist-packages (from bench==4.1.0)
Downloading/unpacking honcho (from bench==4.1.0)
  Downloading honcho-0.7.1-py2.py3-none-any.whl
Downloading/unpacking psutil (from bench==4.1.0)
  Downloading psutil-5.0.0.zip (374kB): 374kB downloaded
  Running setup.py (path:/tmp/pip-build-JMbUB5/psutil/setup.py) egg_info for package psutil

    warning: no previously-included files matching '*' found under directory 'docs/_build'
Downloading/unpacking python-crontab (from bench==4.1.0)
  Downloading python-crontab-2.1.1.tar.gz
  Running setup.py (path:/tmp/pip-build-JMbUB5/python-crontab/setup.py) egg_info for package python-crontab
    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'release'
      warnings.warn(msg)

Downloading/unpacking semantic-version (from bench==4.1.0)
  Downloading semantic_version-2.6.0.tar.gz
  Running setup.py (path:/tmp/pip-build-JMbUB5/semantic-version/setup.py) egg_info for package semantic-version

    no previously-included directories found matching 'docs'
    no previously-included directories found matching 'tests'
    warning: no previously-included files matching '.py[cod]' found anywhere in distribution
    warning: no previously-included files matching '__pycache__' found anywhere in distribution
    warning: no previously-included files found matching 'Makefile'
    warning: no previously-included files found matching 'tox.ini'
    warning: no previously-included files found matching '.flake8'
Downloading/unpacking GitPython==0.3.2.rc1 (from bench==4.1.0)
  Downloading GitPython-0.3.2.RC1.tar.gz (313kB): 313kB downloaded
  Running setup.py (path:/tmp/pip-build-JMbUB5/GitPython/setup.py) egg_info for package GitPython

    warning: no files found matching 'README'
Downloading/unpacking MarkupSafe (from jinja2->bench==4.1.0)
  Downloading MarkupSafe-0.23.tar.gz
  Running setup.py (path:/tmp/pip-build-JMbUB5/MarkupSafe/setup.py) egg_info for package MarkupSafe

Downloading/unpacking python-dateutil (from python-crontab->bench==4.1.0)
  Downloading python_dateutil-2.6.0-py2.py3-none-any.whl (194kB): 194kB downloaded
Downloading/unpacking gitdb>=0.5.1 (from GitPython==0.3.2.rc1->bench==4.1.0)
  Downloading gitdb-0.6.4.tar.gz (400kB): 400kB downloaded
  Running setup.py (path:/tmp/pip-build-JMbUB5/gitdb/setup.py) egg_info for package gitdb

Requirement already satisfied (use --upgrade to upgrade): six>=1.5 in /usr/lib/python2.7/dist-packages (from python-dateutil->python-crontab->bench==4.1.0)
Downloading/unpacking smmap>=0.8.5 (from gitdb>=0.5.1->GitPython==0.3.2.rc1->bench==4.1.0)
  Downloading smmap-0.9.0.tar.gz
  Running setup.py (path:/tmp/pip-build-JMbUB5/smmap/setup.py) egg_info for package smmap

Installing collected packages: Click, jinja2, virtualenv, honcho, psutil, python-crontab, semantic-version, GitPython, bench, MarkupSafe, python-dateutil, gitdb, smmap
Cleaning up...
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 295, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1436, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 672, in install
    self.move_wheel_files(self.source_dir, root=root)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 902, in move_wheel_files
    pycompile=self.pycompile,
  File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 214, in move_wheel_files
    clobber(source, lib_dir, True)
  File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 204, in clobber
    os.makedirs(destdir)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/click-6.6.dist-info'

Storing debug log for failure in /home/master/.pip/pip.log

Hi @benjaroa

Did you try command using sudo?

As I said:

Apparently I won’t be able to have sudo access (https://support.cloudways.com/why-cant-i-have-root-access-to-my-server/)

I’m wondering if it’s there a way to install frappe/ERPNext without root acces…

Hi @benjaroa,

You can install the setup without root access, but there is some package which requires permission of the current user. Can you check using virtual environment, it may resolve your issue.

Hi @rohit_w,

Thanks for your kind answers but I still can’t run ERPNext. I checked the documentation, but can’t run the first step: $ pip install virtualenv.

:sweat: