Failed to obtain node locks when starting elasticsearch

Some background: I had an elasticsearch installed in my CentOS with yum. After I uninstalled that with yum remove. Right now, I want to run elasticsearch in the same machine, but the error below appears when I run sudo systemctl start elasticsearch. How can I solve that?

java.lang.IllegalStateException: failed to obtain node locks, tried [[/var/lib/elasticsearch]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?