Skip to content
This repository has been archived by the owner on Aug 12, 2020. It is now read-only.

Failed initialization prohibits startup #17

Open
hannes opened this issue May 23, 2016 · 17 comments
Open

Failed initialization prohibits startup #17

hannes opened this issue May 23, 2016 · 17 comments
Assignees
Milestone

Comments

@hannes
Copy link
Owner

hannes commented May 23, 2016

Steps to Reproduce:

# # # R session one

library(DBI)
library(MonetDB.R)
library(MonetDBLite)

# you will need this same filepath in session two
( my_tempdir <- tempdir() )

db <- dbConnect( MonetDBLite() , my_tempdir )

# copy this folder path to clipboard
dput( my_tempdir )

# # # keep R session one open

# # # R session two

library(DBI)
library(MonetDB.R)
library(MonetDBLite)

# use the same `my_tempdir` as session one
my_tempdir <- [[use output of session one `dput` here]]

# expected error:
db <- dbConnect( MonetDBLite() , my_tempdir )
# Error in MonetDBLite::monetdb_embedded_startup(embedded, !getOption("monetdb.debug.embedded",  : 
  # Failed to initialize embedded MonetDB !FATAL: GDKlockHome: Database lock '.gdk_lock' denied

# # # CLOSE R session one

# # # remain in R session two

# still does not connect to database created in session one
db <- dbConnect( MonetDBLite() , my_tempdir )
# Error in MonetDBLite::monetdb_embedded_startup(embedded, !getOption("monetdb.debug.embedded",  : 
  # Failed to initialize embedded MonetDB !FATAL: BBPaddfarm: bad rolemask


# also does not connect to a different database..  
db <- dbConnect( MonetDBLite() , tempdir() )
# Error in MonetDBLite::monetdb_embedded_startup(embedded, !getOption("monetdb.debug.embedded",  : 
  # Failed to initialize embedded MonetDB !FATAL: BBPaddfarm: bad rolemask
@hannes hannes modified the milestones: 0.3.0, 0.4.0 May 23, 2016
@monicarodguev
Copy link

@hannesmuehleisen did you solve the error?

@hannes
Copy link
Owner Author

hannes commented Feb 22, 2017

no not yet unfortunately.

@monicarodguev
Copy link

What we are thinking is happening is the bbdd got corrupted after forcing a query to stop. But is just our intuition.

@teshomem
Copy link

@hannesmuehleisen i think this a major issue using monetdb in shiny app.

@solmanz
Copy link

solmanz commented Mar 17, 2017

I am not sure if this is related. MonetDB doesn't work when I start shiny application from shiny server (browser). I get "ERROR: Failed to initialize embedded MonetDB !FATAL: BBPaddfarm: bad rolemask". It works when i start the shiny app from RStudio.

@hannes
Copy link
Owner Author

hannes commented Mar 17, 2017

I have no experience with Shiny Server, but assume its trying to connect multiple R sessions to the same MonetDBLite folder?

@solmanz
Copy link

solmanz commented Mar 17, 2017

Yes, it is trying to connect multiple R sessions to same MonetDBLite directory. I have around 15GB csv formatted genomic data for visualisation (common issue in genomics field). I have tested different database solution including data table. MonetDB is the right and fastest database for this kind of shiny applications if it works. If this is fixable, I can write a white paper to show how MonetDBLite should be a choice for growing genomics data visualisation in R. I don't know what is it going to take to fix this but I can assure you that making MonetDBLite friendly with shiny will make it very popular in short period of time.

@ajdamico
Copy link
Contributor

hi @solmanz just in case it's of any use: you can connect multiple R sessions to a single external mserver with ?MonetDBLite::MonetDB.R

@solmanz
Copy link

solmanz commented Mar 20, 2017

Thanks @ajdamico but i used that for connection when i get the error message. The problem is I don't know the root cause. It could be multiple R session or another.

@ajdamico
Copy link
Contributor

i'm not sure this fix is high priority if you prefer to migrate to 0.5.0. thanx bud

@hannes hannes modified the milestones: 0.5.0, 0.4.0 Jun 26, 2017
@hannes
Copy link
Owner Author

hannes commented Jun 26, 2017

its not and difficult to fix.

@cboettig
Copy link

I get this same error if an R session crashes. Starting a new session I can disconnect with MonetDBLite::monetdblite_shutdown() to free the .gdk_lock, and then I get this same error. I gather this means the database is corrupt at this point? Is recovery of the data possible?

@hannes
Copy link
Owner Author

hannes commented Sep 25, 2018

@cboettig which error exactly?

@cboettig
Copy link

@hannesmuehleisen sorry I wasn't precise, thanks for the followup. After removing the .gdk_lock after the crash, I get the error:

ERROR: Failed to initialize embedded MonetDB !FATAL: BBPaddfarm: bad rolemask"

whenever I try to connect to my database.

@hannes
Copy link
Owner Author

hannes commented Sep 26, 2018

@cboettig thats not great. Could you please open up a separate issue, since it seems unrelated to the issue discussed here.

@cboettig
Copy link

@hannesmuehleisen ok, thanks, will do. Would you prefer the issue here or over in https://github.com/hannesmuehleisen/MonetDBLite-R ?

@hannes
Copy link
Owner Author

hannes commented Sep 27, 2018

@cboettig here is fine, also include some details (sessionInfo() output) and if you can a reproducible example please.

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

No branches or pull requests

6 participants