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

Final installation steps should be done with 2 terminal sessions open (like image below)

I imagine this is what he means.

U stopped supervisor and nginx?

Thank you, yes, both. Tried a couple of times, same issue with my original installation:

image

Would you recommend I back up (something, don’t know what), start a new fresh 14.0.2 installation from scratch and restore?

Install with develop versions. If you want to update frequently. Check dev version installation

Well, I was hoping for a standard production setup, while being able to update it for security and stability issues, as updates are released by the developers.

Which would you say is my most direct path to achieve this?

Dear @Usman_Ali
Thank you for the update. I have followed the steps as mentioned in the bench update but not working and giving the same issue. Attached the screen shot. Is this due to any permission issue?

install dev versions

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