Erpnext 14 Installation DEVELOPMENT & PRODUCTIONS [UBUNTU/SERVER 22.04]

I had the development system running, and executed the production setup steps without a separate terminal running Bench. When I try to run bench, it fails, with this error:

18:52:05 redis_socketio.1 | 3157:C 02 Sep 2022 18:52:05.480 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
18:52:05 redis_socketio.1 | 3157:C 02 Sep 2022 18:52:05.480 # Redis version=6.0.16, bits=64, commit=00000000, modified=0, pid=3157, just started
18:52:05 redis_socketio.1 | 3157:C 02 Sep 2022 18:52:05.480 # Configuration loaded
18:52:05 redis_socketio.1 | 3157:M 02 Sep 2022 18:52:05.481 * Increased maximum number of open files to 10032 (it was originally set to 1024).
18:52:05 redis_socketio.1 | 3157:M 02 Sep 2022 18:52:05.481 # Could not create server TCP listening socket 127.0.0.1:12000: bind: Address already in use

How do I fix this?

The /etc/hosts file is the following:

# /etc/hosts
127.0.0.1       localhost

# The following lines are desirable for IPv6 capable hosts
::1             localhost ip6-localhost ip6-loopback
ff02::1         ip6-allnodes
ff02::2         ip6-allrouters
127.0.0.1       site1.local

It used to show up at (servierip:8000) and now no longer has that.

go through with proper guide

What’s wrong while installing gets:

WARN Cannot connect to redis_cache to update assets_json

make sure bench is runing in other terminal

1 Like

Thanks in advance

1 Like

Doing the Development setup
:small_blue_diamond: FRAPPE

bench init frappe --verbose --frappe-branch v14.5.0

I have a problem after bench init

Still don’t understand, bench start is after bench init cd bench

Same on this guide, bench init before cd frappe bench start

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

@Usman_Ali,

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
1 Like

Go through with proper steps. Never will be any error.

@MohamedAbdulsalam Try this

2 Likes

from this

bench switch-to-branch version-13 --upgrade frappe erpnext
bench update --patch
1 Like

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