Comments (17)
@toddleo I would guess that there is a problem with your configuration files in ${CONF_DIR}
. Could you post their contents?
from docker-neo4j.
@spacecowboy Hi Jonas, thanks for your concern.
As I said, my configuration files in ${CONF_DIR}
is dumped from the official neo4j docker image, and their contents are untouched. Posting all contents is too verbose, and I thought maybe posting each md5 is enough:
48d847f235e702a0812a8e37d35821f4 ./neo4j-http-logging.xml
4829c92593e1bb2c79080eec5fb6b1f7 ./neo4j.properties
a07d6c229478f60154c4e1f607bb522b ./neo4j-server.properties
8338e742125c96ed0716463f176fb1ad ./neo4j-wrapper.conf
6eb5b8fbea7447287c23de354411a352 ./README.txt
from docker-neo4j.
Inside the container, I can successfully reach the 7474 port via curl
:
root@040ce878d09c:/var/lib/neo4j# curl 127.0.0.1:7474
{
"management" : "http://127.0.0.1:7474/db/manage/",
"data" : "http://127.0.0.1:7474/db/data/"
}
also, this request is logged in data/http.log
.
However, I still get Connection reset by peer
failure from the host machine, and data/http.log
doesn't document this request. Didn't --publish=7474:7474
work? Also tried other ports but doesn't help.
from docker-neo4j.
@toddleo Thanks for reporting this. Can you give me a bit more information, please? What versions of Docker and Neo4j are you using? What platform are you running on?
from docker-neo4j.
@benbc Hi Ben,
I'm using the neo4j docker image from docker hub, which I believe it is still the latest. Image ID: 7d94602c724e .
My docker version is Docker version 1.10.3, build 20f81dd
.
Should I also try the Official Neo4j Image for Production Use?
from docker-neo4j.
Hello @toddleo. We recommend using the image from the official library, but it's basically identical to the one in neo4j/neo4j
, so it won't fix your problem.
What platform are you running on?
from docker-neo4j.
Ahhh forgot to attach my environment. We are running docker on Gentoo 2.2, with 4.0.5-gentoo-ks
kernel.
from docker-neo4j.
@toddleo Please could I ask you to try the same thing but without mounting the /conf
volume, so that we can rule out the possibility of config problems?
docker run --rm --publish=7474:7474 --volume=${DB_DIR}:/data/graph.db neo4j
from docker-neo4j.
@benbc Hi Ben,
I did what you said, except with --publish=7478:7474
since my friends are currently using that port hosting the other neo4j container.
In this case, 7478 port can be well reached by curl
.
from docker-neo4j.
Thanks, @toddleo. Could you run this, please?
docker run --volume=/tmp/conf:/conf neo4j dump-config
diff /tmp/conf ${CONF_DIR}
from docker-neo4j.
@benbc Hi Ben,
Absolutely, the diff
command prints the following:
$ diff /tmp/conf ${CONF_DIR}
diff /tmp/conf/neo4j-server.properties /home/users/liulx/dk/dm-graph/cs-it/conf.d/neo4j-server.properties
68c68
< org.neo4j.server.http.log.enabled=false
---
> org.neo4j.server.http.log.enabled=true
It is worth to point out that the only difference on log.enabled
is exactly what I changed to see what's going on with the http server, after I discovered this issue.
Apologies for this late reply.
from docker-neo4j.
Turns out you have to uncomment this, before using custom conf files, even the content is exactly the same:
# To have HTTP accept non-local connections, uncomment this line
dbms.connector.http.address=0.0.0.0:7474
from docker-neo4j.
@toddleo You are quite right, I should have thought of that. Well spotted. We'll add something to the docs about this.
from docker-neo4j.
@benbc Hi Ben,
I reckon it's better off allow non-local connections by default when using docker, or at least add an environment variable when starting docker container:
--env=NEO4J_dbms_connector_http_address=0.0.0.0:7474
from docker-neo4j.
Could a line be added to the documentation, section 2.5.4.2. /conf volume indicating that this needs to be uncommented:
To accept non-local connections, uncomment this line:
dbms.connectors.default_listen_address=0.0.0.0
Will save people time if they have this issue, which I bumped into today
from docker-neo4j.
we'll do that @jmwnoble
from docker-neo4j.
@jmwnoble a note to that effect has been added and will be published in a few days or so
from docker-neo4j.
Related Issues (20)
- Missing docker-entrypoint.sh in latest image? HOT 2
- Error using or configuring APOC in GithubAction HOT 1
- Why am I encountering an issue with the GDS library on a Neo4j Docker container on Windows, despite it working on Linux? HOT 5
- Version 4.4.19 fails when installing APOC HOT 3
- Missing proper health check
- chown: changing ownership of '/var/lib/neo4j/conf/neo4j.conf': Read-only file system HOT 3
- Volume inaccessible, although uid and gid match those of the user parameter HOT 2
- my_ip:7474 >> This site canβt be reached HOT 3
- Pods unready/CrashLoopBackOff with message "sed: cannot rename /var/lib/neo4j/conf/sed8pylkX: Operation not permitted" HOT 2
- neo4j-admin:5.10.0 not released on Docker Hub HOT 2
- Unable to mount local config folder with apoc.conf HOT 2
- ERROR: No compatible "graph-data-science" plugin found for Neo4j 5.13.0. HOT 8
- neo4j-admin:5.17.0 not released on Docker Hub HOT 1
- Docker bind only 192.168.58.110 address and not all interfaces HOT 1
- Plugins for "genai","n10s","graphql","graph-algorithms" missing after docker install neo4j:5.18 HOT 3
- Critical/High Severity issues reported by Snyk for neo4j:5.18.1
- conf folder not persisted
- openshift support with "random UID"
- neo4j-admin:5.20.0 not released on Docker Hub HOT 1
- Error when dumping database neo4j-admin Docker HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-neo4j.