Guys plz check the whole guide step by step. Then if there is still confusing then check the video. Avoid to do these kind of comments.
Still has warned that Redis cannot connect:
Anybody may share vm/ova file with successful installation
frappe/dist/css-rtl/
├─ desk.bundle.6EWVFX6E.css 542.76 Kb
├─ email.bundle.XAQJ76JT.css 4.02 Kb
├─ login.bundle.F3ZU5MHU.css 23.56 Kb
├─ print.bundle.A3BKRQGE.css 194.91 Kb
├─ print_format.bundle.QUMGMSBN.css 177.72 Kb
├─ report.bundle.ZY6ATXER.css 5.35 Kb
├─ web_form.bundle.VUSHZTFM.css 14.72 Kb
└─ website.bundle.C6JZHSHK.css 404.95 Kb
DONE Total Build Time: 23.259s
WARN Cannot connect to redis_cache to update assets_json
WARN Cannot connect to redis_cache to update assets_json
WARN Cannot connect to redis_cache to update assets_json
Done in 40.54s.
Traceback (most recent call last):
File “/opt/bench/bench-repo/bench/commands/make.py”, line 68, in init
init(
File “/opt/bench/bench-repo/bench/utils/render.py”, line 105, in wrapper_fn
return fn(*args, **kwargs)
File “/opt/bench/bench-repo/bench/utils/system.py”, line 107, in init
bench.setup.backups()
File “/opt/bench/bench-repo/bench/utils/render.py”, line 126, in wrapper_fn
return fn(*args, **kwargs)
File “/opt/bench/bench-repo/bench/bench.py”, line 415, in backups
system_crontab = CronTab(user=user)
File “/home/officer/.local/lib/python3.10/site-packages/crontab.py”, line 228, in init
self.read(tabfile)
File “/home/officer/.local/lib/python3.10/site-packages/crontab.py”, line 291, in read
(out, err) = open_pipe(self.cron_command, l=‘’, **self.user_opt).communicate()
File “/home/officer/.local/lib/python3.10/site-packages/crontab.py”, line 190, in open_pipe
return sp.Popen(args, stdout=sp.PIPE, stderr=sp.PIPE, env=env)
File “/usr/lib/python3.10/subprocess.py”, line 966, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File “/usr/lib/python3.10/subprocess.py”, line 1842, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: ‘/usr/bin/crontab’
ERROR: There was a problem while creating frappe
Do you want to rollback these changes? [y/N]: y
You watched video?
yes of course
I solved the error:
**error: <class ‘PermissionError’>, [Errno 13] Permission denied: file: /usr/lib/python3/dist-packages/supervisor/xmlrpc.py line: 560**
by going to:
sudo nano /etc/supervisor/supervisord.conf
(Add these lines under [unix_http_server])
chmod=0760
chown=frappe:frappe
Go through with proper steps. Never will be any error.
Assalam o alikum brother Usman Ali,
i m a beginner and using your way to setup an erpnext 14 on ubuntu 22.04lts from my windows OS
i m using virtual machine version 7 and installing ubuntu 22.04lts and then installing ernext whith your guide
i totally using the same steps which you have mentioned here but i m getting this error again and again
the local host is up and i m getting this error on my link page.
please let me know what mistake i m doing and how can i resolve it
1 question can i use windows 11 terminal to install erpnext or ubuntu is compulsory
Walaikum salam. In windows cant use because no services will run. Use linux VM is best. Please see video also. May be it helps. As this method is used so many times without any error.
This ia seems your user permissions error. Check your users and passwords as guide.
i m using virtual box virtual machine and installing ubuntu 22.04lts in windows 11
try 1 time more and give you the response
thanks
assalam o alaikum
brother
i started again i installed erpnext but i m in frappe my erp next is not working
Just go through the whole guide.
Error when doing bench init frappe-bench
`frappe@rtos:~$ bench init --frappe-branch version-14 frappe-bench
Setting Up Environment
$ python3 -m venv env
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade pip
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet wheel
Getting frappe
$ git clone GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript --branch version-14 --depth 1 --origin upstream
Cloning into ‘frappe’…
remote: Enumerating objects: 3164, done.
remote: Counting objects: 100% (3164/3164), done.
remote: Compressing objects: 100% (2839/2839), done.
remote: Total 3164 (delta 426), reused 1258 (delta 226), pack-reused 0
Receiving objects: 100% (3164/3164), 15.99 MiB | 10.56 MiB/s, done.
Resolving deltas: 100% (426/426), done.
Installing frappe
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappe/frappe-bench/apps/frappe
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [30 lines of output]
/home/frappe/frappe-bench/env/lib/python3.10/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
Traceback (most recent call last):
File “”, line 2, in
File “”, line 34, in
File “/tmp/pip-install-qp99aqvf/cairocffi_ee013df79cae4892a7217e212cd917ef/setup.py”, line 10, in
setup(
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/setuptools/init.py”, line 153, in setup
return distutils.core.setup(**attrs)
File “/usr/lib/python3.10/distutils/core.py”, line 108, in setup
_setup_distribution = dist = klass(attrs)
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/setuptools/dist.py”, line 459, in init
_Distribution.init(
File “/usr/lib/python3.10/distutils/dist.py”, line 292, in init
self.finalize_options()
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/setuptools/dist.py”, line 837, in finalize_options
ep(self)
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/setuptools/dist.py”, line 858, in _finalize_setup_keywords
ep.load()(self, ep.name, value)
File “/tmp/pip-install-qp99aqvf/cairocffi_ee013df79cae4892a7217e212cd917ef/.eggs/cffi-1.15.1-py3.10-linux-x86_64.egg/cffi/setuptools_ext.py”, line 219, in cffi_modules
add_cffi_module(dist, cffi_module)
File “/tmp/pip-install-qp99aqvf/cairocffi_ee013df79cae4892a7217e212cd917ef/.eggs/cffi-1.15.1-py3.10-linux-x86_64.egg/cffi/setuptools_ext.py”, line 49, in add_cffi_module
execfile(build_file_name, mod_vars)
File “/tmp/pip-install-qp99aqvf/cairocffi_ee013df79cae4892a7217e212cd917ef/.eggs/cffi-1.15.1-py3.10-linux-x86_64.egg/cffi/setuptools_ext.py”, line 25, in execfile
exec(code, glob, glob)
File “cairocffi/ffi_build.py”, line 26, in
ffi = FFI()
File “/tmp/pip-install-qp99aqvf/cairocffi_ee013df79cae4892a7217e212cd917ef/.eggs/cffi-1.15.1-py3.10-linux-x86_64.egg/cffi/api.py”, line 48, in init
import _cffi_backend as backend
ImportError: /tmp/pip-install-qp99aqvf/cairocffi_ee013df79cae4892a7217e212cd917ef/.eggs/cffi-1.15.1-py3.10-linux-x86_64.egg/_cffi_backend.cpython-310-x86_64-linux-gnu.so: failed to map segment from shared object
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Traceback (most recent call last):
File “/usr/local/lib/python3.10/dist-packages/bench/commands/make.py”, line 68, in init
init(
File “/usr/local/lib/python3.10/dist-packages/bench/utils/render.py”, line 105, in wrapper_fn
return fn(*args, **kwargs)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/system.py”, line 79, in init
get_app(
File “/usr/local/lib/python3.10/dist-packages/bench/app.py”, line 444, in get_app
app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/render.py”, line 126, in wrapper_fn
return fn(*args, **kwargs)
File “/usr/local/lib/python3.10/dist-packages/bench/app.py”, line 242, in install
install_app(
File “/usr/local/lib/python3.10/dist-packages/bench/app.py”, line 573, in install_app
bench.run(
File “/usr/local/lib/python3.10/dist-packages/bench/bench.py”, line 48, in run
return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/init.py”, line 158, in exec_cmd
raise CommandFailedError
bench.exceptions.CommandFailedError
ERROR: There was a problem while creating frappe-bench
Do you want to rollback these changes? [y/N]: y
`
bench init frappe --verbose --frappe-branch v14.20.0
This causes problems for future updates as the local branch will be inconsistent with the remote active branch when trying to update as v.14.20.0 is a fixed update tag. The optimal command to use in this instance will be bench init frappe --verbose --frappe-branch version-14
.
I get this error while setting up production. Can anyone help please.
Port configuration list:
Site site1.local assigned port: 80
Setting Up symlinks and reloading services…
$ /usr/bin/supervisorctl reread
No config updates to processes
$ /usr/bin/supervisorctl update
$ sudo /usr/sbin/nginx -t
nginx: [emerg] open() “/etc/nginx/conf.d/frappe.conf” failed (2: No such file or directory) in /etc/nginx/nginx.conf:75
nginx: configuration file /etc/nginx/nginx.conf test failed
ERROR:
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 8, in
sys.exit(cli())
File “/usr/local/lib/python3.10/dist-packages/bench/cli.py”, line 127, in cli
bench_command()
File “/usr/lib/python3/dist-packages/click/core.py”, line 1128, in call
return self.main(*args, **kwargs)
File “/usr/lib/python3/dist-packages/click/core.py”, line 1053, in main
rv = self.invoke(ctx)
File “/usr/lib/python3/dist-packages/click/core.py”, line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib/python3/dist-packages/click/core.py”, line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib/python3/dist-packages/click/core.py”, line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/lib/python3/dist-packages/click/core.py”, line 754, in invoke
return __callback(*args, **kwargs)
File “/usr/local/lib/python3.10/dist-packages/bench/commands/setup.py”, line 108, in setup_production
setup_production(user=user, yes=yes)
File “/usr/local/lib/python3.10/dist-packages/bench/config/production_setup.py”, line 87, in setup_production
reload_nginx()
File “/usr/local/lib/python3.10/dist-packages/bench/config/production_setup.py”, line 205, in reload_nginx
exec_cmd(f"sudo {which(‘nginx’)} -t")
File “/usr/local/lib/python3.10/dist-packages/bench/utils/init.py”, line 158, in exec_cmd
raise CommandFailedError
bench.exceptions.CommandFailedError
Hello, which tutorial did you have use?