-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
R connection using library RPostgres fails with error "received invalid response to GSSAPI negotiation: R" #227
Comments
Is it possible is the same issue as for https://githubmemory.com/repo/r-dbi/RPostgres/issues/310? Please disable SSL with the connection: it's not supported yet but it's low priority assuming you're connecting client and server in a local (trusted) network. |
I logged an issue with the RPostgres package and made an attempt to disable SSL but the connection still "hangs". For me, the OpenBeer database running in under docker uses 2.2 GB of RAM (from |
You're right, our docs lack this information. I'm gonna improve it today. For now I report here my comment on R-DB issue:You can set in ArcadeDB's docker The default Dockerfile sets To run ArcadeDB with 1G docker container, you could start ArcadeDB by using 800M for RAM:
|
Added this paragraph hoping helps a little more, any suggestions to improve it are welcome: https://docs.arcadedb.com/#DockerTuning |
@mskyttner fixed in the latest "main" branch and .libPaths( c( "/usr/local/lib/R/lib" , .libPaths() ) )
r = getOption("repos")
r["CRAN"] = "http://cran.us.r-project.org"
options(repos = r)
##install.packages(c("RPostgres"), lib="/usr/local/lib/R/lib")
##install.packages(c("DBI"), lib="/usr/local/lib/R/lib")
library(DBI)
#Sys.setenv(PGGSSENCMODE="disable")
#Sys.unsetenv("PGGSSENCMODE")
#Sys.unsetenv("PGSSLMODE")
#Sys.setenv(PGSSLMODE="disable")
con <- dbConnect(
RPostgres::Postgres(),
gssencmode = 'disable',
sslmode = "disable",
dbname = 'Beer',
host = 'localhost',
port = 5432,
user = 'root',
password = 'playwithdata'
)
print("EXECUTING QUERY")
res <- dbSendQuery(con, "select * from Brewery limit 10")
print("FETCHING RESULTS")
dbFetch(res)
print("CLEARING RESULTS")
dbClearResult(res)
dbDisconnect(con) Now I have to find a way to include the R test suite in our CI pipeline... @arcade-player any help? |
ArcadeDB Version: v21.12.1-SNAPSHOT
JDK Version: arcadedata/arcadedb:latest (docker image)
OS: arcadedata/arcadedb:latest (docker image)
Expected behavior
Attempt to connect using R and
RPostgres
expected to work, since RJDBC is able to read data from a table in arcadedb.Actual behavior
Error
"received invalid response to GSSAPI negotiation: R"
Steps to reproduce
The text was updated successfully, but these errors were encountered: