SQLiteBundleStorage version issues
Hello, I am trying to implement the SQLite Bundle storage mechanism in IBR-DTN and I'm running into issues that I did not have with the 0.6.4 release of IBR-DTN. Right now whenever I try to run dtnd, the output says that I am running version 0 and I need to upgrade to 1. I never get a print out saying what version I'm using as in this line below
IBRCOMMON_LOGGER(info) << "SQLiteDatabaseNC: Database version " << version << " found." << IBRCOMMON_LOGGER_ENDL;
I believe means this that the code is getting sent to the catch for the doUpgrade(0, DBSCHEMA_VERSION). Are there any reasons you can think of as to why I would get this result? I have the latest version of sqlite installed from the Ubuntu repositories.
Thanks, Carson
Hello Carson,
there was a change in the SQLite database scheme. For this reason, the daemon is tracking the version of the database and should upgrade it, if the version does not match. Typically, this is a process that purge the whole database and creates a new one.
If this message is display over and over again, then you should try delete your database manually and let it re-create by the daemon.
Kind regards, Johannes
-------- Weitergeleitete Nachricht -------- Von: Carson Dunbar cdunbar@bucknell.edu An: Johannes Morgenroth morgenro@ibr.cs.tu-bs.de Kopie: ibr-dtn ibr-dtn@ibr.cs.tu-bs.de Betreff: [ibr-dtn] SQLiteBundleStorage version issues Datum: Thu, 13 Dec 2012 11:04:02 -0500
Hello, I am trying to implement the SQLite Bundle storage mechanism in IBR-DTN and I'm running into issues that I did not have with the 0.6.4 release of IBR-DTN. Right now whenever I try to run dtnd, the output says that I am running version 0 and I need to upgrade to 1. I never get a print out saying what version I'm using as in this line below
IBRCOMMON_LOGGER(info) << "SQLiteDatabaseNC: Database version " << version << " found." << IBRCOMMON_LOGGER_ENDL;
I believe means this that the code is getting sent to the catch for the doUpgrade(0, DBSCHEMA_VERSION). Are there any reasons you can think of as to why I would get this result? I have the latest version of sqlite installed from the Ubuntu repositories.
Thanks, Carson -- !! This message is brought to you via the `ibr-dtn' mailing list. !! Please do not reply to this message to unsubscribe. To unsubscribe or adjust !! your settings, send a mail message to ibr-dtn-request@ibr.cs.tu-bs.de !! or look at https://www.ibr.cs.tu-bs.de/mailman/listinfo/ibr-dtn.
Hi,
that message just means that your Bundle storage is out of date, i.e. it was created with IBR-DTN 0.6x. Because the schemes of the sqlite DB changed in IUBR-DTN 0.8 you get that message. I am not sure, why it does not upgrade the schema (because you should not get that message only once).
An easy workaround would be stop IBR-DTN. Delete the contents in its storage_path (tha you deifned somewhere in your config), which also includes the SQLite DB. Then restart IBR-DTN again with an empty storage, and you should be fine.
Sebastian
Am 13.12.2012 um 17:04 schrieb Carson Dunbar cdunbar@bucknell.edu:
Hello, I am trying to implement the SQLite Bundle storage mechanism in IBR-DTN and I'm running into issues that I did not have with the 0.6.4 release of IBR-DTN. Right now whenever I try to run dtnd, the output says that I am running version 0 and I need to upgrade to 1. I never get a print out saying what version I'm using as in this line below
IBRCOMMON_LOGGER(info) << "SQLiteDatabaseNC: Database version " << version << " found." << IBRCOMMON_LOGGER_ENDL;
I believe means this that the code is getting sent to the catch for the doUpgrade(0, DBSCHEMA_VERSION). Are there any reasons you can think of as to why I would get this result? I have the latest version of sqlite installed from the Ubuntu repositories.
Thanks, Carson -- !! This message is brought to you via the `ibr-dtn' mailing list. !! Please do not reply to this message to unsubscribe. To unsubscribe or adjust !! your settings, send a mail message to ibr-dtn-request@ibr.cs.tu-bs.de !! or look at https://www.ibr.cs.tu-bs.de/mailman/listinfo/ibr-dtn.
participants (3)
-
Carson Dunbar
-
Johannes Morgenroth
-
Sebastian Schildt