Hi, I have a strange bug as I'm unable to connect to remote shell with 
neo4j 3.0.6 from a machine A to B. The server B (ip address192.168.10.204)  
hosts Neo4j.

First, dbms.shell.enabled=true and dbms.shell.host=0.0.0.0 (and port) are 
of course set in neo4j.conf

I dig into this bug and got several situations.

At the begining, when I launched shell in machine A :

Shell$ ./neo4j-shell -host 192.168.10.204 -port 1337 -v

Welcome to the Neo4j Shell! Enter 'help' for a list of commands
NOTE: Remote Neo4j graph database service 'shell' at port 1337

neo4j-sh (?)$ return "1";
Connection refused to host: 127.0.1.1; nested exception is: 
    java.net.ConnectException: Connection refused
neo4j-sh (?)$
Shell$ 

Digging deeply in this bug, I played with /etc/hosts file and RMI flags and 
tried different things (for instance by commenting line with 127.0.1.1 
address)

My situation now :
/etc/hosts
127.0.0.1    localhost
127.0.1.1    debian-jessie.vagrantup.com    debian-jessie

The flags I add in neo4j-wrapper.conf are these :
-Djava.rmi.server.hostname=debian-jessie.vagrantup.com 
-Dremoting.bind_by_host=false


With these flags, Neo4j start. If I set -Djava.rmi.server.hostname=0.0.0.0  
it refused to start:

Caused by: java.rmi.UnknownHostException: Unknown host: 0.0.0.0; nested 
exception is: 
    java.net.UnknownHostException: debian-jessie: debian-jessie: unknown 
error

Now Neo4j accept to start, I can try to connect remotely, so I get :

$ ./neo4j-shell -host 192.168.10.204 -port 1337 -v
ERROR (-v for expanded information):
    Unknown host: debian-jessie.vagrantup.com; nested exception is: 
    java.net.UnknownHostException: debian-jessie.vagrantup.com
java.rmi.UnknownHostException: Unknown host: debian-jessie.vagrantup.com; 
nested exception is: 
    java.net.UnknownHostException: debian-jessie.vagrantup.com
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:616)

I tested a random port (like 50587, RMI used to use these kind of ports) to 
know if they are closed by default in my linux, and they are open.

I don't know what to do...

Any advices ?

By advance, thank you

Regards

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to