Issue with Redis on Debian jessie

Just after installing frappe using sudo python install.py --production command I’m finding Redis can't set maximum open files to 10032 because of OS error: Operation not permitted.

Tried to add LimitNOFILE=65536 as explained here and here with no success.

OS: Debian GNU/Linux 8.10 (jessie)
ERPNext: v10.0.6 (master)
Frappe Framework: v10.0.7 (master)

Error logs:

root@erp:/home/frappe/frappe-bench/logs# grep err *.log
redis-cache.log:[5527] 08 Jan 14:12:41.083 # Redis can’t set maximum open files to 10032 because of OS error: Operation not permitted.
redis-queue.log:[5526] 08 Jan 14:12:41.067 # Redis can’t set maximum open files to 10032 because of OS error: Operation not permitted.
redis-socketio.log:[5528] 08 Jan 14:12:41.076 # Redis can’t set maximum open fil es to 10032 because of OS error: Operation not permitted.

Hi @aleksas,

have you tried to open /etc/default/redis-server and uncomment the ULIMIT=65536 followed by a restart of redis or bench restart?

No it did not help :confused:
Even did a clean install of frappe.

redis-cache.log:[5199] 08 Jan 15:28:25.149 # Redis can’t set maximum open files to 10032 because of OS error: Operation not permitted.
redis-queue.log:[5198] 08 Jan 15:28:25.139 # Redis can’t set maximum open files to 10032 because of OS error: Operation not permitted.
redis-socketio.log:[5200] 08 Jan 15:28:25.148 # Redis can’t set maximum open files to 10032 because of OS error: Operation not permitted.

P.S.
Minor correction: it’s /etc/default/redis-server not /etc/defaults/redis-server.