https://redmine.named-data.net/https://redmine.named-data.net/favicon.ico?14759811232014-08-15T13:55:30ZNDN project issue tracking systemrepo-ng - Task #1867: Initiation read entries from databasehttps://redmine.named-data.net/issues/1867?journal_id=44002014-08-15T13:55:30ZAlex Afanasyev
<ul><li><strong>Assignee</strong> set to <i>Weiqi Shi</i></li><li><strong>Priority</strong> changed from <i>Normal</i> to <i>High</i></li></ul> repo-ng - Task #1867: Initiation read entries from databasehttps://redmine.named-data.net/issues/1867?journal_id=44022014-08-15T15:27:11ZWeiqi Shishiweiqi9999@sina.com
<ul></ul><p>It seems it is something wrong with your database. This error is thrown when repo reads data from database and uses the data to rebuild the repo index. Have you changed your database path in config file? Or have you removed the original database generated by running repo last time? Repo can read from existing database, but if there is something wrong with the database, data cannot be read from it.</p>
repo-ng - Task #1867: Initiation read entries from databasehttps://redmine.named-data.net/issues/1867?journal_id=44042014-08-15T16:12:46ZAlex Afanasyev
<ul></ul><p>What would happen if database does not yet exist. Will this error be generated?</p>
repo-ng - Task #1867: Initiation read entries from databasehttps://redmine.named-data.net/issues/1867?journal_id=44052014-08-15T16:22:52ZWeiqi Shishiweiqi9999@sina.com
<ul></ul><p>If database does not exist, repo will generate one. That case would be much simpler than handle the existed database. And the problem will not exist since repo do not need to rebuild the index.</p>
repo-ng - Task #1867: Initiation read entries from databasehttps://redmine.named-data.net/issues/1867?journal_id=44332014-08-17T15:11:53ZZhehao Wangwangzhehao410305@gmail.com
<ul></ul><p>Hi guys,</p>
<p>I'm having the same problem with the latest code of ndn-cxx, NFD and repo-ng. (on OSX 10.8.4)<br>
I haven't changed the database in config file, or removed the original database. If I recall correctly, what I did is running integrated-tests, and running a few ndnputfile and ndngetfiles.</p>
<p>Do you know if I can access its log somewhere? Or do I have to remove the database files in /var/db/ndn-repo-ng/, and let repo-ng regenerate the db files?</p>
<p>Thanks!</p>
repo-ng - Task #1867: Initiation read entries from databasehttps://redmine.named-data.net/issues/1867?journal_id=44342014-08-17T15:14:01ZAlex Afanasyev
<ul></ul><p>If you had your database created with previous version of repo-ng, you probably need to remove it, as the formats has been changed.</p>
repo-ng - Task #1867: Initiation read entries from databasehttps://redmine.named-data.net/issues/1867?journal_id=44482014-08-17T20:41:51ZAli Khan
<ul></ul><p>Thank you for your response. </p>
<p>I haven't changed my database path in config file and now the path is "/var/db/ndn-repo-ng". However, I also removed an old database file (ndn-repo.db), but it seems that repo-ng didn't create a new database file for me (my database path is empty). Then I got an error message as follows:</p>
<p>Database file open failure rc:14</p>
<p>ERROR: Database file open failure</p>
repo-ng - Task #1867: Initiation read entries from databasehttps://redmine.named-data.net/issues/1867?journal_id=44492014-08-17T22:43:28ZAlex Afanasyev
<ul></ul><p>Can you check that the specified path is writeable by the user you running repo?</p>
repo-ng - Task #1867: Initiation read entries from databasehttps://redmine.named-data.net/issues/1867?journal_id=44502014-08-17T22:49:26ZWeiqi Shishiweiqi9999@sina.com
<ul></ul><p>Under that path, you need the root authority to create a database. Have you use sudo to run the repo?</p>
repo-ng - Task #1867: Initiation read entries from databasehttps://redmine.named-data.net/issues/1867?journal_id=44522014-08-18T00:31:46ZAli Khan
<ul></ul><p>Sorry, at the beginning I didn't run repo with sudo. Now, the database file can be initialized when I run the repo. </p>
<p>However, I still have problems with ndnputfile and ndngetfile. Currently, I try to load a file to repo with command </p>
<p>"sudo ndnputfile -v ndn:/example/repo/1 ndn:/example/data/1/photo ./photo.JPG" </p>
<p>It seems that repo cannot identify the endblock of my content and then I obtain error messages as follows: </p>
<p>interlab@12:~/repo-ng$ sudo ndnputfile -v ndn:/example/repo/1 ndn:/example/data/1/photo ./photo.JPG </p>
<p>setInterestFilter for /example/data/1/photo/%00%00%01G%E7%FE%9D%1C</p>
<p>Requested segment [829] does not exist</p>
<p>Requested segment [830] does not exist</p>
<p>Requested segment [831] does not exist</p>
<p>Requested segment [832] does not exist</p>
<p>Requested segment [833] does not exist</p>
<p>Requested segment [834] does not exist</p>
<p>Requested segment [835] does not exist</p>
<p>Requested segment [836] does not exist</p>
<p>Requested segment [837] does not exist</p>
<p>Requested segment [838] does not exist</p>
<p>Requested segment [839] does not exist</p>
<p>P.S. size of file is about 828 kB</p>
<p>thank you</p>
repo-ng - Task #1867: Initiation read entries from databasehttps://redmine.named-data.net/issues/1867?journal_id=44532014-08-18T00:50:59ZWeiqi Shishiweiqi9999@sina.com
<ul></ul><p>For the sudo and database path, I would suggest you to change to path in config file so that you do not need to bother with this problem, but anyway.</p>
<p>For ndnputfile and ndngetfile, it seems there are something wrong, or at least they are kinds of misleading and inconvenient to use. Currently, I am not very sure about this since I have not looked into the code, but I will try to figure it out this week.</p>
<p>For now, if you want to insert the a data, you can specify -s when you run ndnputfile as long as the file does not exceed some certain value. It will put your file into one data and save it. </p>
<p>Sorry for the limited information I can provide, I will try to solve this problem as soon as possible.</p>
repo-ng - Task #1867: Initiation read entries from databasehttps://redmine.named-data.net/issues/1867?journal_id=44722014-08-18T16:10:55ZWeiqi Shishiweiqi9999@sina.com
<ul></ul><p>This issue will be solved in the task# 1887.</p>
repo-ng - Task #1867: Initiation read entries from databasehttps://redmine.named-data.net/issues/1867?journal_id=44882014-08-19T21:28:44ZAli Khan
<ul></ul><p>Thank you very much for your information. I will follow the task#1887 by now. </p>
repo-ng - Task #1867: Initiation read entries from databasehttps://redmine.named-data.net/issues/1867?journal_id=45922014-08-24T18:46:52ZWeiqi Shishiweiqi9999@sina.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>This issue has been solved.</p>
repo-ng - Task #1867: Initiation read entries from databasehttps://redmine.named-data.net/issues/1867?journal_id=194402017-06-08T09:47:16ZJunxiao Shi
<ul><li><strong>Is duplicate of</strong> <i><a class="issue tracker-3 status-5 priority-3 priority-high3 closed" href="/issues/1887">Task #1887</a>: The problem of ndnputfile and ndngetfile</i> added</li></ul> repo-ng - Task #1867: Initiation read entries from databasehttps://redmine.named-data.net/issues/1867?journal_id=194422017-06-08T09:47:24ZJunxiao Shi
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul>