Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
04-13-2021 08:12 AM
Hi there,
I am using the neo4j 3.5 docker with apoc but there seems to be an error executing it with the docker command. When I use
docker exec -it neo4j-35-tmp cat /data/cy.cypher | cypher-shell -u neo4j -p Neo4ja
it will throw an error Error: A JNI error has occurred, please check your installation and try again.
The wierd thing is when I use:
docker exec -it neo4j-35-tmp bash
then use:
cat /data/cy.cypher | cypher-shell -u neo4j -p Neo4ja
It will work. Just from outside of the container it won't work for some reason. Anyone knows whats wrong here?
docker code:
docker run --detach --name=neo4j-35-tmp --rm
--publish=7475:7474 --publish=7476:7473 --publish=7688:7687
--volume=$HOME/Documents/neo4j-multi-image/3.5/data:/data
--volume=$HOME/Documents/neo4j-multi-image/3.5/import:/import
--volume=$HOME/Documents/neo4j-multi-image/3.5/conf:/conf
--volume=$HOME/Documents/neo4j-multi-image/3.5/plugins:/plugins
--env NEO4J_dbms.memory.heap.initial_size=12G
-e NEO4J_apoc_export_file_enabled=true
-e NEO4J_apoc_import_file_enabled=true
-e NEO4J_apoc_import_file_use__neo4j__config=true
-e NEO4JLABS_PLUGINS=["apoc"]
--env NEO4J_AUTH=neo4j/Neo4ja
neo4j:3.5.26
Kind regards,
Julian
Solved! Go to Solution.
04-14-2021 02:30 AM
Solved by putting the exec inside of a script instead of straight calling it.
I now have:
docker exec -it neo4j-35-tmp sh /data/mkdb.sh
where mkdb.sh contains:
cat /data/cy.cypher | cypher-shell -u neo4j -p Neo4ja
04-14-2021 02:30 AM
Solved by putting the exec inside of a script instead of straight calling it.
I now have:
docker exec -it neo4j-35-tmp sh /data/mkdb.sh
where mkdb.sh contains:
cat /data/cy.cypher | cypher-shell -u neo4j -p Neo4ja
All the sessions of the conference are now available online