Bug #4375
openUnrecognized 'registration-subset' option in 'tcp_bulk_insert' section in configuration file
0%
Description
Latest install of ndn-cxx, NFD and repo-ng gets the following errors.
diarmuidcire1@experiment-unit:~/repo-ng$ sudo ndn-repo-ng
ERROR: Unrecognized 'registration-subset' option in 'tcp_bulk_insert' section in configuration file '/usr/local/etc/ndn/repo-ng.conf'
diarmuidcire1@experiment-unit:~/repo-ng$
Updated by Diarmuid Ó Coileáin almost 7 years ago
Diarmuid Ó Coileáin wrote:
Latest install of ndn-cxx, NFD and repo-ng gets the following errors.
diarmuidcire1@experiment-unit:~/repo-ng$ sudo ndn-repo-ng
ERROR: Unrecognized 'registration-subset' option in 'tcp_bulk_insert' section in configuration file '/usr/local/etc/ndn/repo-ng.conf'
diarmuidcire1@experiment-unit:~/repo-ng$
The fix for this issue is to change the following in the file src/repo.cpp from
ptree tcpBulkInsert = repoConf.get_child("tcp_bulk_insert");
bool isTcpBulkEnabled = false;
std::string host = "localhost";
std::string port = "7376";
for (const auto section : dataConf) {
to
ptree tcpBulkInsert = repoConf.get_child("tcp_bulk_insert");
bool isTcpBulkEnabled = false;
std::string host = "localhost";
std::string port = "7376";
for (const auto section : tcpBulkInsert) {
an recompile code
./waf clean
./waf configure
./waf
./waf install