I am new comer. Not able to figure how to get started with bench even after following various threads in this forum and elsewhere.
install.py run successfully. (had mariadb and other errors, but whtmltopdf errors but figured out somehow.)
Then tried bench new-site and bench start.
Bench starts has some issues in redis i guess. Following is the trace:
1 0:52:45 system | worker_long.1 started (pid=8856)
10:52:45 system | redis_socketio.1 started (pid=8854)
10:52:45 redis_socketio.1 | [8859] 15 Sep 10:52:45.752 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
10:52:45 redis_socketio.1 | .
10:52:45 redis_socketio.1 | .-__ ''-._ 10:52:45 redis_socketio.1 | _.-
.
. ‘’-._ Redis 2.8.4 (00000000/0) 64 bit
10:52:45 redis_socketio.1 | .- .-```. ```\/ _.,_ ''-._ 10:52:45 redis_socketio.1 | ( ' , .-` | `, ) Running in stand alone mode 10:52:45 redis_socketio.1 | |`-._`-...-` __...-.
-.|'_.-'| Port: 12000 10:52:45 redis_socketio.1 | |
-. ._ / _.-' | PID: 8859 10:52:45 redis_socketio.1 |
-._ -._
-./ .-’ .-’
10:52:45 redis_socketio.1 | |-._
-. -.__.-' _.-'_.-'| 10:52:45 redis_socketio.1 | |
-.-._ _.-'_.-' | http://redis.io 10:52:45 redis_socketio.1 |
-._ -._
-..-'.-’ .-’
10:52:45 redis_socketio.1 | |-._
-. -.__.-' _.-'_.-'| 10:52:45 redis_socketio.1 | |
-.-._ _.-'_.-' | 10:52:45 redis_socketio.1 |
-._ -._
-..-‘_.-’ _.-’
10:52:45 redis_socketio.1 | -._
-..-’ _.-’
10:52:45 redis_socketio.1 | -._ _.-' 10:52:45 redis_socketio.1 |
-..-’
10:52:45 redis_socketio.1 |
10:52:45 redis_socketio.1 | [8859] 15 Sep 10:52:45.753 # Server started, Redis version 2.8.4
10:52:45 redis_socketio.1 | [8859] 15 Sep 10:52:45.753 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add ‘vm.overcommit_memory = 1’ to /etc/sysctl.conf and then reboot or run the command ‘sysctl vm.overcommit_memory=1’ for this to take effect.
i tried
$bench new-site local
INFO:bench.utils:creating new site local
frappe app is not installed. Run the following command to install frappe
bench get-app https://github.com/frappe/frappe.git
/bin/sh: 1: /home/maverick/frappe-bench/env/bin/frappe: not found
Traceback (most recent call last):
File "/usr/local/bin/bench", line 11, in <module>
load_entry_point('bench', 'console_scripts', 'bench')()
File "/home/maverick/.bench/bench/cli.py", line 40, in cli
bench_command()
tried to install frappe app it says frappe already exists
maverick@falcon:~/frappe-bench$ bench get-app https://github.com/frappe/frappe.git
INFO:bench.app:getting app frappe
fatal: destination path 'frappe' already exists and is not an empty directory.
Traceback (most recent call last):
File "/usr/local/bin/bench", line 11, in <module>
load_entry_point('bench', 'console_scripts', 'bench')()
File "/home/maverick/.bench/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 _process_result(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/maverick/.bench/bench/commands/make.py", line 30, in get_app
get_app(git_url, branch=branch)
File "/home/maverick/.bench/bench/app.py", line 62, in get_app
cwd=os.path.join(bench_path, 'apps'))
File "/home/maverick/.bench/bench/utils.py", line 127, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: git clone https://github.com/frappe/frappe.git --origin upstream
somwhere in some forums i saw someone mentioning try bench update. Had issue of node.js version there, fixed that, but then even in vain landed with following error:
maverick@falcon:~/frappe-bench$ bench update --requirements
The directory '/home/maverick/.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/maverick/.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.
Requirement already satisfied (use --upgrade to upgrade): Pillow in ./env/lib/python2.7/site-packages
The directory '/home/maverick/.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/maverick/.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.
/home/maverick/frappe-bench/env/local/lib/python2.7/site-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
/home/maverick/frappe-bench/env/local/lib/python2.7/site-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
Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
/home/maverick/frappe-bench/env/local/lib/python2.7/site-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
/home/maverick/frappe-bench/env/local/lib/python2.7/site-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
Command "/home/maverick/frappe-bench/env/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-H2byyr/python-ldap/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-bbvSaI-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/maverick/frappe-bench/env/include/site/python2.7/python-ldap" failed with error code 1 in /tmp/pip-build-H2byyr/python-ldap/
Traceback (most recent call last):
File "/usr/local/bin/bench", line 11, in <module>
load_entry_point('bench', 'console_scripts', 'bench')()
File "/home/maverick/.bench/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 _process_result(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/maverick/.bench/bench/commands/update.py", line 60, in update
_update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
File "/home/maverick/.bench/bench/commands/update.py", line 79, in _update
update_requirements(bench_path=bench_path)
File "/home/maverick/.bench/bench/utils.py", line 375, in update_requirements
install_requirements(pip, req_file)
File "/home/maverick/.bench/bench/utils.py", line 379, in install_requirements
exec_cmd("{pip} install -q -r {req_file}".format(pip=pip, req_file=req_file))
File "/home/maverick/.bench/bench/utils.py", line 127, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: ./env/bin/pip install -q -r ./apps/frappe/requirements.txt
Checked python version. Its 2.7.6.
I think I am practically stuck with no ideas how to proceed ahead. A help would be most appreciative.
I am using Ubuntu 14.0.4
Thanks and regards,
Parth