I’m facing this issue while running the debugger
Redis cache server not running. Please contact Administrator / Tech support
Procfile
redis_cache: redis-server config/redis_cache.conf
redis_socketio: redis-server config/redis_socketio.conf
redis_queue: redis-server config/redis_queue.conf
# web: bench serve --port 8000
socketio: /usr/local/bin/node apps/frappe/socketio.js
watch: bench watch
schedule: bench schedule
worker_short: bench worker --queue short 1>> logs/worker.log 2>> logs/worker.error.log
worker_long: bench worker --queue long 1>> logs/worker.log 2>> logs/worker.error.log
worker_default: bench worker --queue default 1>> logs/worker.log 2>> logs/worker.error.log
Error I’m facing is
127.0.0.1 - - [17/Jan/2023 12:05:48] "GET /api/method/frappe.desk.form.load.getdoctype?doctype=Salary+Slip&with_parent=1&cached_timestamp=&_=1673937341641 HTTP/1.1" 200 -
Traceback (most recent call last):
File "env/lib/python3.10/site-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "env/lib/python3.10/site-packages/redis/connection.py", line 615, in _connect
raise err
File "env/lib/python3.10/site-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 69, in application
response = frappe.api.handle()
File "apps/frappe/frappe/api.py", line 55, in handle
return frappe.handler.handle()
File "apps/frappe/frappe/handler.py", line 38, in handle
data = execute_cmd(cmd)
File "apps/frappe/frappe/handler.py", line 76, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "apps/frappe/frappe/__init__.py", line 1457, in call
return fn(*args, **newargs)
File "apps/frappe/frappe/desk/doctype/route_history/route_history.py", line 66, in deferred_insert
_deferred_insert("Route History", json.dumps(routes))
File "apps/frappe/frappe/deferred_insert.py", line 10, in deferred_insert
frappe.cache().rpush(queue_prefix + doctype, records)
File "apps/frappe/frappe/utils/redis_wrapper.py", line 140, in rpush
super(RedisWrapper, self).rpush(self.make_key(key), value)
File "env/lib/python3.10/site-packages/redis/client.py", line 2016, in rpush
return self.execute_command('RPUSH', name, *values)
File "env/lib/python3.10/site-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "env/lib/python3.10/site-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "env/lib/python3.10/site-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:13000. Connection refused.
redis.exceptions.ConnectionError: Error 111 connecting to localhost:13000. Connection refused.
Note:
This error not only happening after the change, it’s happening before also