docker-neo4j
docker-neo4j copied to clipboard
Neo4j Version 3.3.0 docker - java.lang.IllegalArgumentException: Base directory for SSL policy with name 'default' does not exist
Neo4j Version: 3.3 (Community) Operating System: Ubuntu 16.04 API: Docker
Steps to reproduce
- Assuming that
/var/lib/neo4jis the base directory for the conf, certificates, data, logs, etc.... - In the certificates directory, create a directory named
default, and within it, the subdirectoriesrevokedandtrusted. - Place your certificate file in the
defaultdirectory and name itpublic.crt. - Place your key file in the
defaultdirectory and name itprivate.key. - Edit the
neo4j.conffile by uncommenting the following line:dbms.ssl.policy.default.base_directory=certificates/default - run the following docker command:
docker run --publish=7473:7473 --publish=7687:7687 --volume=/var/lib/neo4j/data:/data --volume=/var/lib/neo4j/logs:/logs --volume=/var/lib/neo4j/conf:/conf neo4j:3.3
Expected behavior
Neo4j should successfully start and be available via SSL, protected by the installed certificate.
Actual behavior
Neo4j reports Component 'org.neo4j.server.database.LifecycleManagingDatabase@10e31a9a' was successfully initialized, but failed to start. Please see the attached cause exception "Base directory '/var/lib/neo4j/certificates/default' for SSL policy with name 'default' does not exist.".
Also, there are many warnings about causal_clustering such as WARN Unknown config option: causal_clustering.discovery_listen_address
Note
The base directory /var/lib/neo4j/certificates/default does exist.
This issue was originally opened here: https://github.com/neo4j/neo4j/issues/10467#issuecomment-350279610