I am facing the same error, I have rebooted my ubuntu server as well as tried setting ulimit but I get ulimit: value exceeds hard limit when I try to set something very above 4096. Although, I get the output as unlimited when I run ulimit. Is there any other solution for this?