Probably my fault but I have Neo4j desktop open and running with an active project in the viewer. This shows as localhost:7687 Create a neo4r con object with correct password as
con <- neo4j_api$new(
url = "http://localhost:7687",
user = "neo4j",
password = "xxxx"
)
and then
con$ping()
[1] 200
con$get_relationships()
A tibble: 1 x 1
labels
1 list(oidc_providers = list())
con$get_version()
NULL
So the 200 says good boy but the con functions say no. I used powershell as
Test-NetConnection localhost -port 7687
WARNING: TCP connect to (::1 : 7687) failed
ComputerName : localhost
RemoteAddress : 127.0.0.1
RemotePort : 7687
InterfaceAlias : Loopback Pseudo-Interface 1
SourceAddress : 127.0.0.1
TcpTestSucceeded : True
which I think means the port does exist. I would greatly appreciate advice to let me continue with neo4r.
Withdrawn. Similar questions can be found under neo4j tag.
Related
I am running into
Error: could not receive data from server: Software caused connection abort (0x00002745/10053)
upon trying to connect to a postgres database using the DBI package in R. Note that i am in a work environment, so subject to a corporate firewall. Can that explain the error or is there something else that could be happening?
Here is the code I'm using
# Connect to trayaway dev
con <- DBI::dbConnect(
RPostgres::Postgres(),
host = host, port = 5432, dbname = "postgres",
user = user, password = password
)
error below:
Error: could not receive data from server: Software caused connection abort (0x00002745/10053)
solution was found- i tried the same code using wiFi and the code works - when hardwired, connection string fails to connect to database - so this is a corporate firewall issue - thank you,
I make a server and request successfully in windows,then I put them to the linux which is the develop machine of company.
And I Got Connect Failed error when I run the clien.py. I have changed the host IP to localhost,0.0.0.0,127.0.0.1 and the IP of develop machine,but it doesn't work.
And I tried the docker inspect command,but the IPAddress is empty like "".
And I changed the port to 8500,8501,4321 and still got the error.
I tried make proxy to the company,the request returns a Name resolution failure error.So I think maybe the cause is the net of company?
Any answer would be very appreciate!
The Error Message:
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "Connect Failed"
debug_error_string = "{"created":"#1551677753.381330483","description":"Failed to create subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":2721,"referenced_errors":[{"created":"#1551677753.381328206","description":"Pick Cancelled","file":"src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":241,"referenced_errors":[{"created":"#1551677753.381303114","description":"Connect Failed","file":"src/core/ext/filters/client_channel/subchannel.cc","file_line":689,"grpc_status":14,"referenced_errors":[{"created":"#1551677753.381278484","description":"Failed to connect to remote host: OS Error","errno":111,"file":"src/core/lib/iomgr/tcp_client_posix.cc","file_line":205,"os_error":"Connection refused","syscall":"connect","target_address":"ipv4:0.0.0.0:8501"}]}]}]}"
I am totally new to Redis and relatively new to R. I need to do an assignment, where I first need to connect to a socket (it streams key-values for stocks).
I installed Redis in my mac using homebrew, and then the package rredis in R.
Everytime I try to connect to local host I get the following error:
redisConnect()
Warning message:
In .openConnection(host = host, port = port, nodelay = nodelay, :
Unable to set nodelay.
If I set nodelay = F
I get connected
Now, I am trying to connect to a specific socket (ip: 88.99.38.191, port:1337)
I get this
redisConnect(host = "88.99.38.191", port = 1337)
Error: Error in doTryCatch(return(expr), name, parentenv, handler):
Unknown message type
Warning message:
In .openConnection(host = host, port = port, nodelay = nodelay, :
Unable to set nodelay.
and if I try to set nodelay = F :
> redisConnect(host = "88.99.38.191", port = 1337, nodelay = F)
Error: Error in doTryCatch(return(expr), name, parentenv, handler): Unknown message type
Warning messages:
1: closing unused connection 12 (->localhost:6379)
2: closing unused connection 11 (->localhost:6379)
3: closing unused connection 10 (->localhost:6379)
4: closing unused connection 9 (->localhost:6379)
Does anyone have anyidea what I do wrong? All guides/ tutorials that I have seen in the web have no problem in default settings of nodelay = T
ps: Please forgive my ignorance, or I there is anysimilar post, I didn't manage to find any.
For those interested the connection to socket is established like this
con <- socketConnection(host="88.99.38.191", port = 1337, blocking=T,
server=FALSE, open="r+")
it has nothing to do with redis. Redis is listening to a local ip, while redisConnect is used in order to connect to remote redis server.
Additional info can be found here.
Currently following instructions from rblpapi-intro.Rmd (version date: 2015-08-13) I am wondering why:
library(Rblpapi)
blpConnect()
returns:
17FEB2016_14:27:17.296 7432:8884 ERROR
blpapi_platformtransporttcp.cpp:671 blpapi.session.transporttcp.{3}.
<localhost:8194> Connection failed
17FEB2016_14:27:17.296 7432:8884 WARN blpapi_platformcontroller.cpp:371
blpapi.session.platformcontroller.{3} Platform: 0 failed 1 consecutive
connect attempts, stopped trying to reconnect.
Error: Failed to start session.
given the below default values:
ip: 127.0.0.1
port: 8194
Factually, there is nothing wrong with those values as I've used them in Matlab using con=blp(port,ip2,time) and the connection succeeds perfectly.
EDIT:
The below function has finally worked! a bit weird, as I override the default ip value from blpConnect() by the same value.
blpConnect(host = getOption("blpHost", "127.0.0.1"),
port = getOption("blpPort", 8194L), default = TRUE)
Thus it looks like blpConnect() did'nt pointed to the default ip and port values for some reasons.
I run Hadoop cluster (master + 3 slaves)+Hive server and I want to use RHive over it.
I installed R environment on every computer.
Rserve was installed on every node and RHive was installed on the master.
I get error trying to run RHive on master:
> rhive.env()
Hive Home Directory : {Hive home directory}
Hadoop Home Directory : {Hadoop home directory}
Hadoop Conf Directory : {HAdoop configuration directory}
Default RServe List
x.x.x.8 hadoop-slave1 x.x.x.9 hadoop-slave2 x.x.x.10 hadoop-slave3
warning: cant't connect to a Rserver at x.x.x.8 hadoop-slave1:6311
warning: cant't connect to a Rserver at x.x.x.9 hadoop-slave2:6311
warning: cant't connect to a Rserver at x.x.x.10 hadoop-slave3:6311
Disconnected HiveServer and HDFS
Warning messages:
1: In socketConnection(host, port, open = "a+b", blocking = TRUE) :
x.x.x.8 hadoop-slave1:6311 cannot be opened
2: In socketConnection(host, port, open = "a+b", blocking = TRUE) :
x.x.x.9 hadoop-slave2:6311 cannot be opened
3: In socketConnection(host, port, open = "a+b", blocking = TRUE) :
x.x.x.10 hadoop-slave3:6311 cannot be opened
Rserve listens on TCP port 6311 on slave1, slave2 and slave3.
I tested it with:
nc -z hadoop-slave1 6311
Connection to hadoop-slave1 6311 port [tcp/*] succeeded!
What could be connection problem?
RHive calls for Rserve url 'hadoop-slave1:6311' as listed in {hadoop home}/conf/slaves
I opened R and testd connction to this url:
% R
> library("Rserve")
> c <- RSconnect(host = " hadoop-slave1", port = 6311)
then connection failed.
I tried to connect by IP and it succeed!
The problem was DNS configurations!!!
There are 2 possible solutions:
1. fix DNS server, then connecting by name will work
2. open {hadoop home}/conf/slaves and fix slave names to IP's