Installing ERPNext in Ubuntu

June 24, 2015 3.8k views
DigitalOcean Ubuntu

I've been trying to install ERPNext in my Ubuntu Droplet, but every time I try it it send me some errors, for me it's kind of weird because if I install it in my real computer (local) It installs without problem. The errors I get are:

Adding ubuntu mariadb repo
Installing packages for Ubuntu. This might take time...
Installing wkhtmltopdf

  • Stopping MariaDB database server mysqld [ OK ]
  • Starting MariaDB database server mysqld [ OK ]
  • Checking for corrupt, not cleanly closed and upgrade needing tables. Adding frappe user Installing frappe-bench Already using interpreter /usr/bin/python /home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning /home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning /home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning Cloning into 'frappe'... /home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning Exception: Traceback (most recent call last): File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/basecommand.py", line 223, in main status = self.run(options, args) File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/commands/install.py", line 291, in run wb.build(autobuilding=True) File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/wheel.py", line 705, in build self.requirementset.preparefiles(self.finder) File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/req/reqset.py", line 317, in preparefiles functools.partial(self.preparefile, finder)) File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/req/reqset.py", line 304, in _walkreqtoinstall morereqs = handler(reqtoinstall) File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/req/reqset.py", line 469, in preparefile session=self.session) File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py", line 825, in unpackurl session, File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py", line 673, in unpackhttpurl frompath, contenttype = _downloadhttpurl(link, session, tempdir) File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py", line 886, in downloadhttpurl _downloadurl(resp, link, contentfile) File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py", line 621, in _downloadurl for chunk in progressindicator(respread(4096), 4096): File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py", line 586, in respread decodecontent=False): File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/response.py", line 307, in stream data = self.read(amt=amt, decodecontent=decodecontent) File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/response.py", line 243, in read data = self.fp.read(amt) File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/cachecontrol/filewrapper.py", line 54, in read self.callback(self.buf.getvalue()) File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/cachecontrol/controller.py", line 224, in cacheresponse self.serializer.dumps(request, response, body=body), File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/cachecontrol/serialize.py", line 81, in dumps ).encode("utf8"), MemoryError

installing frappe
Error: None
Traceback (most recent call last):
File "/usr/local/bin/bench", line 9, in <module>
loadentrypoint('bench==0.1', 'consolescripts', 'bench')()
File "/home/frappe/bench-repo/bench/cli.py", line 56, in cli
bench()
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 664, in _
call__
return self.main(args, *kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 644, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 991, in invoke
return processresult(subctx.command.invoke(subctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 837, in invoke
return ctx.invoke(self.callback, *ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 464, in invoke
return callback(
args, **kwargs)
File "/home/frappe/bench-repo/bench/cli.py", line 161, in init
noautoupdate=noautoupdate, frappepath=frappepath, frappebranch=frappebranch)
File "/home/frappe/bench-repo/bench/utils.py", line 64, in init
getapp('frappe', frappepath, branch=frappebranch, bench=path, buildassetfiles=False)
File "/home/frappe/bench-repo/bench/app.py", line 54, in get
app
installapp(app, bench=bench)
File "/home/frappe/bench-repo/bench/app.py", line 78, in install
app
findlinks=findlinks))
File "/home/frappe/bench-repo/bench/utils.py", line 79, in execcmd
subprocess.check
call(cmd, cwd=cwd, shell=True)
File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'frappe-bench/env/bin/pip install -q -e frappe-bench/apps/frappe' returned non-zero exit status 2

Someone have an idea of what's happening ?

2 comments
  • create swap space and rerun the command. follow this is instructions.

    by Justin Ellingwood
    Swap space can be used as an "overflow" area for your system when you run out of RAM. The operating system can store data that would normally be kept in RAM on the hard drive in a specially formatted file. In this guide, we'll demonstrate how to create and use one of these files in Ubuntu 14.04.
  • It works !
    Finally, I suppose that the error was a memory error.

    Thanks!

1 Answer

I keep getting these errors when starting bench.

Cent OS 7 on Digital Ocean

21:22:56 system | web.1 started (pid=24170)
21:22:56 system | workerbeat.1 started (pid=24172)
21:22:56 system | rediscache.1 started (pid=24175)
21:22:56 redis
cache.1 | [24175] 02 Jun 21:22:56.609 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
21:22:56 rediscache.1 | [24175] 02 Jun 21:22:56.609 # Redis can't set maximum open files to 10032 because of OS error: Operation not permitted.
21:22:56 redis
cache.1 | [24175] 02 Jun 21:22:56.609 # Current maximum open files is 1024. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
21:22:56 rediscache.1 | [24175] 02 Jun 21:22:56.609 # Creating Server TCP listening socket 127.0.0.1:13000: bind: Address already in use
21:22:56 system | redis
cache.1 stopped (rc=1)
21:22:56 system | socketio.1 started (pid=24174)
21:22:56 system | asyncworker.1 started (pid=24171)
21:22:56 system | watch.1 started (pid=24173)
21:22:56 system | redis
queue.1 started (pid=24176)
21:22:56 redisqueue.1 | [24176] 02 Jun 21:22:56.602 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
21:22:56 redis
queue.1 | [24176] 02 Jun 21:22:56.602 # Redis can't set maximum open files to 10032 because of OS error: Operation not permitted.
21:22:56 redisqueue.1 | [24176] 02 Jun 21:22:56.602 # Current maximum open files is 1024. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
21:22:56 redis
queue.1 | [24176] 02 Jun 21:22:56.602 # Creating Server TCP listening socket 127.0.0.1:11000: bind: Address already in use
21:22:56 system | redisqueue.1 stopped (rc=1)
21:22:56 system | redis
socketio.1 started (pid=24177)
21:22:56 redissocketio.1 | [24177] 02 Jun 21:22:56.606 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
21:22:56 redis
socketio.1 | [24177] 02 Jun 21:22:56.606 # Redis can't set maximum open files to 10032 because of OS error: Operation not permitted.
21:22:56 redissocketio.1 | [24177] 02 Jun 21:22:56.606 # Current maximum open files is 1024. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
21:22:56 redis
socketio.1 | [24177] 02 Jun 21:22:56.607 # Creating Server TCP listening socket 127.0.0.1:12000: bind: Address already in use
21:22:56 system | redissocketio.1 stopped (rc=1)
21:22:56 system | longjob
worker.1 started (pid=24179)
21:22:56 system | worker.1 started (pid=24178)
21:22:56 system | sending SIGTERM to workerbeat.1 (pid 24172)
21:22:56 system | sending SIGTERM to watch.1 (pid 24173)
21:22:56 system | sending SIGTERM to web.1 (pid 24170)
21:22:56 system | sending SIGTERM to asyncworker.1 (pid 24171)
21:22:56 system | sending SIGTERM to socketio.1 (pid 24174)
21:22:56 system | sending SIGTERM to worker.1 (pid 24178)
21:22:56 system | sending SIGTERM to longjob
worker.1 (pid 24179)
21:22:56 system | worker.1 stopped (rc=-15)
21:22:56 system | longjobworker.1 stopped (rc=-15)
21:22:56 system | workerbeat.1 stopped (rc=-15)
21:22:56 system | watch.1 stopped (rc=-15)
21:22:56 system | async
worker.1 stopped (rc=-15)
21:22:56 system | web.1 stopped (rc=-15)
21:22:56 system | socketio.1 stopped (rc=143)

Have another answer? Share your knowledge.