我正在运行Neo4j 3.4 docker映像。我最近发现我们的服务器出现故障,Neo4j无法写入conf目录。
systemd[1]: Started Neo4j.
docker[4967]: Folder /conf is not writable for user: neo4j or group neo4j or groups 101, this is commonly a file permissions issue on the mounted folder.
docker[4967]: Hints to solve the issue:
docker[4967]: 1) Make sure the folder exists before mounting it. Docker will create the folder using root permissions before starting the Neo4j container. The root permissions disallow Neo4j from writing to the mounted folder.
docker[4967]: 2) Pass the folder owner's user ID and group ID to docker run, so that docker runs as that user.
docker[4967]: If the folder is owned by the current user, this can be done by adding this flag to your docker run command:
docker[4967]: --user=$(id -u):$(id -g)
docker[4967]:
systemd[1]: neo4j.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: neo4j.service: Failed with result 'exit-code'.
我决定尝试参考3.4.13泊坞窗版本,以查看是否有任何更改。果然,3.4.13版本可以正常工作。然后,我回到3.4.14版本,并得到相同的conf目录错误。似乎3.4.14版本更新对conf文件所做的操作有所不同,并且可能会破坏引用“ 3.4”版本的任何人。
我知道每种环境都不同,但是如果有人有任何建议或理论,但需要更多信息,我很乐意提供。