Error in worker.error.log during V13 install

Sir / Madam

Multi-tenant (based on sub-domains) system installed and working ( seems to work)
Three sites-
electrical.mydomain.com
woodwork.mydomain.com
gardening.mydomain.com

ERPNExt V13.21

However, I found many errors in my worker.error.log.

I made another install and used the same procedure-

And this time I kept a close eye on “worker.error.log” to see when the errors occur.

This time there were less errors.
The procedure I follow is as above and just after bench setup production I do-
supervisorctl stop all
supervisorctl start all

And just after this, I see the following in the worker.error.log.
Exception in thread Thread-1:
Traceback (most recent call last):
File “/usr/lib/python3.8/threading.py”, line 932, in _bootstrap_inner
self.run()
File “/home/frappeuser/frappe-bench/env/lib/python3.8/site-packages/redis/client.py”, line 3718, in run
pubsub.get_message(ignore_subscribe_messages=True,
File “/home/frappeuser/frappe-bench/env/lib/python3.8/site-packages/redis/client.py”, line 3617, in get_message
response = self.parse_response(block=False, timeout=timeout)
File “/home/frappeuser/frappe-bench/env/lib/python3.8/site-packages/redis/client.py”, line 3503, in parse_response
if not block and not conn.can_read(timeout=timeout):
File “/home/frappeuser/frappe-bench/env/lib/python3.8/site-packages/redis/connection.py”, line 734, in can_read
return self._parser.can_read(timeout)
File “/home/frappeuser/frappe-bench/env/lib/python3.8/site-packages/redis/connection.py”, line 416, in can_read
return self.read_from_socket(timeout=timeout,
File “/home/frappeuser/frappe-bench/env/lib/python3.8/site-packages/redis/connection.py”, line 429, in read_from_socket
raise ConnectionError(SERVER_CLOSED_CONNECTION_ERROR)
redis.exceptions.ConnectionError: Connection closed by server.
Exception in thread Thread-1:
Traceback (most recent call last):
File “/usr/lib/python3.8/threading.py”, line 932, in _bootstrap_inner
self.run()
File “/home/frappeuser/frappe-bench/env/lib/python3.8/site-packages/redis/client.py”, line 3718, in run
pubsub.get_message(ignore_subscribe_messages=True,
File “/home/frappeuser/frappe-bench/env/lib/python3.8/site-packages/redis/client.py”, line 3617, in get_message
response = self.parse_response(block=False, timeout=timeout)
File “/home/frappeuser/frappe-bench/env/lib/python3.8/site-packages/redis/client.py”, line 3503, in parse_response
if not block and not conn.can_read(timeout=timeout):
File “/home/frappeuser/frappe-bench/env/lib/python3.8/site-packages/redis/connection.py”, line 734, in can_read
return self._parser.can_read(timeout)
File “/home/frappeuser/frappe-bench/env/lib/python3.8/site-packages/redis/connection.py”, line 416, in can_read
return self.read_from_socket(timeout=timeout,
File “/home/frappeuser/frappe-bench/env/lib/python3.8/site-packages/redis/connection.py”, line 429, in read_from_socket
raise ConnectionError(SERVER_CLOSED_CONNECTION_ERROR)
redis.exceptions.ConnectionError: Connection closed by server.

Something else that is also happening , there are many deprecation warnings on my
install-console during the installation.

Can anyone offer some advise please? I am hesitant to use my 3 sites.

Hope you have a great day.

Well isn’t your site working…You are able to access it and use ???

The above log is when you do supervisor stop all … its stops all workers

redis.exceptions.ConnectionError: Connection closed by server.

depreciation warning are fine and mostly don’t have any issue in using your ErpNext

I’m having the same issue and it seems that all configs are working. Please see screenshot below.

Nginx

Redis

Supervisor

bench migrate

But I cannot access the site thru IP Address.

I also got the same error traceback from worker.error.log

Can anyone help me find the solution for it? Thank you

Found a solution:

Use redis-server version 6