docker-neo4j icon indicating copy to clipboard operation
docker-neo4j copied to clipboard

Docker-entrypoint stores unreadable bytes in neo4j.conf -> Startup broken

Open ThomasKoppensteiner opened this issue 6 years ago • 4 comments

I'm running community edition of neo4j in docker (version 3.2.2). To persist the configuration I'm mounting a host folder to /var/lib/neo4j/conf. The first start is fine and prints out:

Active database: graph.db
Directories in use:
  home:         /var/lib/neo4j
  config:       /var/lib/neo4j/conf
  logs:         /logs
  plugins:      /var/lib/neo4j/plugins
  import:       /var/lib/neo4j/import
  data:         /var/lib/neo4j/data
  certificates: /var/lib/neo4j/certificates
  run:          /var/lib/neo4j/run
Starting Neo4j.
...

The docker-entrypoint creates or appends to the neo4j.conf file settings, but some lines contain unreadable data.

The startup of the neo4j breaks on the next time, when the container is restarted.

/docker-entrypoint.sh: line 104: echo: write error: Invalid argument

Version 3.2.1 has the same issue, but I think older versions worked (can't say which one).

ThomasKoppensteiner avatar Jul 29 '17 21:07 ThomasKoppensteiner

Have the same issue https://github.com/neo4j/neo4j/issues/9663

janwo avatar Jul 31 '17 23:07 janwo

Can you try mounting your host folder to /conf rather than /var/lib/neo4j/conf and see if that makes any difference?

mneedham avatar Aug 02 '17 12:08 mneedham

@mneedham yes, when I mount the host config folder to /conf I can restart the container several times. What makes me wonder is the output during the startup (see above) - is the config from within this folder even read? How can I/we prove this?

FYI: Using environment variables instead of mounting the conf folder also works.

ThomasKoppensteiner avatar Aug 03 '17 16:08 ThomasKoppensteiner

Same here on v3.3

agalazis avatar Nov 09 '17 12:11 agalazis