Hello All,
I have a case where we want to open a JV that was uploaded and submitted as an opening entry many moons back, it is a HUGE entry (I know, in hind site not a good practice) but the problem I am currently getting this error:
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/load.py”, line 32, in getdoc
doc = frappe.get_doc(doctype, name)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 730, in get_doc
cache().hset(‘document_cache’, key, doc.as_dict())
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/redis_wrapper.py”, line 154, in hset
key, pickle.dumps(value))
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/redis/client.py”, line 1992, in hset
return self.execute_command(‘HSET’, name, key, value)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/redis/client.py”, line 668, in execute_command
return self.parse_response(connection, command_name, **options)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/redis/client.py”, line 680, in parse_response
response = connection.read_response()
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/redis/connection.py”, line 629, in read_response
raise response
ResponseError: OOM command not allowed when used memory > ‘maxmemory’.
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 61, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 56, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1026, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/load.py”, line 32, in getdoc
doc = frappe.get_doc(doctype, name)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 730, in get_doc
cache().hset(‘document_cache’, key, doc.as_dict())
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/redis_wrapper.py”, line 154, in hset
key, pickle.dumps(value))
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/redis/client.py”, line 1992, in hset
return self.execute_command(‘HSET’, name, key, value)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/redis/client.py”, line 668, in execute_command
return self.parse_response(connection, command_name, **options)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/redis/client.py”, line 680, in parse_response
response = connection.read_response()
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/redis/connection.py”, line 629, in read_response
raise response
ResponseError: OOM command not allowed when used memory > ‘maxmemory’.
I understand this is an error from REDIS maxmemory parameter , is this correct?
if so , how do I increase it to a larger value knowing that it is set to 802MB as such
/config/redis_cache.conf:maxmemory 802mb
redis-cli info memory produces the following
Memory
used_memory:508344
used_memory_human:496.43K
used_memory_rss:8966144
used_memory_peak:509184
used_memory_peak_human:497.25K
used_memory_lua:36864
mem_fragmentation_ratio:17.64
mem_allocator:jemalloc-3.6.0
Any help would be GREATLY appreciated
Regards