Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
09-05-2019 12:39 PM
Hi Team,
I was able to run successful neo4j using docker. By below commands (month before)
sudo docker run -d
--publish=7474:7474
--publish=7473:7473
--publish=7687:7687
--volume=/mnt/nvme1n1/neo4j-db/logs:/logs
--volume=/mnt/nvme1n1/neo4j-db/data:/data
--volume=/mnt/nvme1n1/neo4j-db/conf:/conf
--volume=/mnt/nvme1n1/neo4j-db/plugins:/plugins
neo4j:3.5
But now i try to start to neo4j db, getting below error
/var/lib/neo4j/bin/neo4j: line 255: /var/lib/neo4j/conf/neo4j.conf: Permission denied
Can someone please help me why this error?
Solved! Go to Solution.
09-09-2019 01:15 PM
Issue resolved by doing below steps:
chmod -R 777 /mnt/nvme1n1/neo4j-db/data
sudo chown systemd-timesync:systemd-journal /mnt/nvme1n1/neo4j-db/data
sudo docker run -v /var/log/neo4j-log/:/var/lib/neo4j/logs/ -d
--publish=7474:7474
--publish=7473:7473
--publish=7687:7687
--volume=/mnt/nvme1n1/neo4j-db/data:/var/lib/neo4j/data
--volume=/mnt/nvme1n1/neo4j-db/conf:/var/lib/neo4j/conf
--volume=/mnt/nvme1n1/neo4j-db/plugins:/var/lib/neo4j/plugins
neo4j:3.5
09-05-2019 05:45 PM
when the docker container starts it thus starts Neo4j itself. And when the docker container exits, Neo4j stops. There should be no read to 'start the db' by running /var/lib/neo4j/bin/neo4j start
or similar
09-05-2019 06:52 PM
It was running fine with above approach I have mentioned!! Past few days I’m getting the permission denied error.
What you have mentioned is other way of neo4j db start. I guess not via docker.
09-05-2019 11:14 PM
Hi,
I started seeing that same error this week. I've rolled back to earlier versions of Neo and that did not help.
Wednesday: IT system updated my Virtual Box to version 6.0.10 (from 6.0.5 I believe). I run Ubuntu Xenial inside that, and then Docker, and then Neo4j.
Thursday: First noticed this problem, could not resolve the problem in Docker (clearing out volumes and images), so rebuilt the Ubuntu system from scratch. That resolved the problem.
Friday (today): Problem is back again. My development system was shutdown overnight, as normal.
So far, I got no idea .... but for sure, something is wrong.
09-06-2019 12:14 AM
For what it is worth:
$ docker run -it neo4j:3.5 /bin/bash
neo4j@192efe52ccc3:~$ neo4j
/var/lib/neo4j/bin/neo4j: line 255: /var/lib/neo4j/conf/neo4j.conf: Permission denied
neo4j@192efe52ccc3:~$ ls -l /var/lib/neo4j/conf/neo4j.conf
-rwxrwxrwx 1 neo4j neo4j 16128 Sep 6 07:10 /var/lib/neo4j/conf/neo4j.conf
neo4j@192efe52ccc3:~$ ls -l /var/lib/neo4j/bin/neo4j
-rwxrwxrwx 1 neo4j neo4j 15815 Aug 22 11:27 /var/lib/neo4j/bin/neo4j
neo4j@192efe52ccc3:~$ whoami
neo4j
neo4j@192efe52ccc3:~$ uname -a
Linux 192efe52ccc3 4.4.0-161-generic #189-Ubuntu SMP Tue Aug 27 08:10:16 UTC 2019 x86_64 GNU/Linux
neo4j@192efe52ccc3:~$
... keep in mind that it worked yesterday, and in-between only the host computer was restarted ...
09-06-2019 02:49 PM
File permission issues with the Neo4j docker container are a recurringly reported issue. This background may help, or at least explain the situation.
09-09-2019 08:33 AM
Any luck on above issue? I am running as root, no luck still face same error.
not sure how to resolve it 😐
09-09-2019 01:15 PM
Issue resolved by doing below steps:
chmod -R 777 /mnt/nvme1n1/neo4j-db/data
sudo chown systemd-timesync:systemd-journal /mnt/nvme1n1/neo4j-db/data
sudo docker run -v /var/log/neo4j-log/:/var/lib/neo4j/logs/ -d
--publish=7474:7474
--publish=7473:7473
--publish=7687:7687
--volume=/mnt/nvme1n1/neo4j-db/data:/var/lib/neo4j/data
--volume=/mnt/nvme1n1/neo4j-db/conf:/var/lib/neo4j/conf
--volume=/mnt/nvme1n1/neo4j-db/plugins:/var/lib/neo4j/plugins
neo4j:3.5
09-06-2019 12:25 PM
We recently had the same issues on our multiple deployments.
We don't know the exact cause, but in our deployment scripts we were automatically upgrading to the latest last supported version of the kernel (centos). Disabling this role in our deployments resolved the issue.
All the sessions of the conference are now available online