Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

neo4j-admin: command not found #523

Open
KavinKKuppusamy opened this issue Oct 22, 2024 · 1 comment
Open

neo4j-admin: command not found #523

KavinKKuppusamy opened this issue Oct 22, 2024 · 1 comment
Assignees

Comments

@KavinKKuppusamy
Copy link

Hi All

I'm trying to setup neo4j in a AKS environment through Docker following our company's guidelines.

`FROM neo4j:5.24

Set environment variables for Neo4j

ENV NEO4J_AUTH=neo4j/Admin_1234
ENV NEO4J_server_memory_pagecache_size=512M
ENV NEO4J_server_memory_heap_initial__size=512M
ENV NEO4J_server_memory_heap_max__size=1G

Disable usage reporting

ENV NEO4J_dbms_usage__report_enabled=false

Expose Neo4j ports

EXPOSE 7474 7687 7473

#Set the working directory in container
WORKDIR /

USER neo4j

CMD ["neo4j"]
`
However when I run this in our AKS container, I get the error as "/startup/docker-entrypoint.sh: line 349: neo4j-admin: command not found". Could you please help wit this?

  • Expected behaviour : Able to run the docker file in my local docker container
  • Actual behaviour : Failure in AKS container as "/startup/docker-entrypoint.sh: line 349: neo4j-admin: command not found"
  • Neo4j image tag being used, neo4j:5.24
@jennyowen
Copy link
Member

ok from your message it sounds like you're wrapping neo4j with a dockerfile like:

FROM neo4j:5.24

ENV NEO4J_AUTH=neo4j/Admin_1234
ENV NEO4J_server_memory_pagecache_size=512M
ENV NEO4J_server_memory_heap_initial__size=512M
ENV NEO4J_server_memory_heap_max__size=1G
ENV NEO4J_dbms_usage__report_enabled=false
EXPOSE 7474 7687 7473
WORKDIR /

USER neo4j

CMD ["neo4j"]

I built and ran that Dockerfile and neo4j started as expected.
I suspect when you start the container, either something is overwriting PATH environment or there is a volume mount somewhere that makes /var/lib/neo4j/bin inaccessible.

What is the run command you're using to start the container?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants