I've been trying to use the bioconductor SRAdb on our Scientific Linux 6 cluster and have run into a problem with the the SQLlite DBI giving errors when the db_connection is first used. I observe this problem in both my NFS home directory and my LustreFS scratch directory, but the error is slightly different in each location.
Here is the code snippet I am using:
#install the SRAdb bioconductor package
source("http://www.bioconductor.org/biocLite.R")
biocLite("SRAdb")
library(SRAdb)
#download and connect to the SRA SQLlite database
sqlfile <- getSRAdbFile()
sra_con <- dbConnect(SQLite(), "SRAmetadb.sqlite")
# make the SRA id conversion
conversion <- sraConvert(c("ERP001893"), sra_con=sra_con)
Here is the error I see in my home directory on NFS:
Error in sqliteExecStatement(con, statement, bind.data) :
RS-DBI driver: (error in statement: database is locked)
Calls: sraConvert ... dbGetQuery -> sqliteQuickSQL -> sqliteExecStatement -> .Call
Execution halted
Here is the error I see in my scratch directory on LustreFS:
Error in sqliteExecStatement(con, statement, bind.data) :
RS-DBI driver: (error in statement: disk I/O error)
Calls: sraConvert ... dbGetQuery -> sqliteQuickSQL -> sqliteExecStatement -> .Call
Execution halted
Any ideas what might be going on here?