Open hannes opened 8 years ago
@hannesmuehleisen did you solve the error?
no not yet unfortunately.
What we are thinking is happening is the bbdd got corrupted after forcing a query to stop. But is just our intuition.
@hannesmuehleisen i think this a major issue using monetdb in shiny app.
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.
I have no experience with Shiny Server, but assume its trying to connect multiple R sessions to the same MonetDBLite folder?
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.
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
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.
i'm not sure this fix is high priority if you prefer to migrate to 0.5.0. thanx bud
its not and difficult to fix.
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?
@cboettig which error exactly?
@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.
@cboettig thats not great. Could you please open up a separate issue, since it seems unrelated to the issue discussed here.
@hannesmuehleisen ok, thanks, will do. Would you prefer the issue here or over in https://github.com/hannesmuehleisen/MonetDBLite-R ?
@cboettig here is fine, also include some details (sessionInfo()
output) and if you can a reproducible example please.
Steps to Reproduce: