I've been using Neo4j (4.4.4) for a while via a remote server (ubuntu 20.04 ) with no problems. I decided to reinstall Neo4j due to a problem I had, but this resulted in a series of bigger problems.
Firstly, I uninstalled Neo4j with (sudo apt-get purge neo4j), but the data was still available after installing a newer version of Neo4j (4.4.9). This made me realize that the previous command does not delete everything. I had a problem with neo4j.service status being FAILED. I decided to uninstall again and remove everything this time. I used the previous command followed by
sudo rm -r /var/lib/neo4j/*
sudo rmdir /var/lib/neo4j/
Then I deleted the configuration file (neo4j.conf) at etc/neo4j
I installed neo4j (4.4.5) and it worked with no problems. However, the previous data was still there! When I tried to access cypher-shell I was asked to set a new password. Then I noticed that the browser database has version 4.4.9, while the one I access with the shell has version 4.4.5. When I try to access the most recent database (version 4.4.5) on the browser through bolt connection I get this error message (Neo.ClientError.Security.Unauthorized: The client is unauthorized due to authentication failure.)
How can I make the shell and browser databases consistent? Should I do a clean uninstallation? How? I am also baffled by the presence of the old data even though I deleted the neo4j directory in /var/lib/ which contains the data file!