Bug #4377
closedValidation policy error (Command interest /example/repo/1/insert/... )
0%
Description
Adding any files to ndn-repo-ng I get the following error:
Validation policy error (Command interest /example/repo/1/insert/%C9%22%07%1D%08%07example%08%04data%08%011%08%09%FD%00%00%01_%93%80%DF7%CC%01%00/%16+%1B%01%01%1C%26%07%24%08%09localhost%08%08operator%08%03KEY%08%08%01%BC%C0I%F5%12KZ/%17%FD%01%00%99%B3%A7%81%DFCb%0B%CB%CC%03T%12Q%19%2F%11eo%8C%21%CF%B4E%28%1C%9Dle%D0%1E%F4%97%C0%192J%CB%99%8B%073h%86s%AA%F9%0E%C4%E3%1D%5E%17%BD%3C%7D%EFM%E6%94%3D%BC%96%12%A9%01%81u%23u%29%8A4%FE%7C8%E0%D9%C2j%E0%D8%27%98yF%D1%1B%85%5C%A1%1CQ%A6%99%B6%3B%D0_%BEe_%7D%15%E1%BFw%5E%FFKE2Vb%86%13%FF%EC%B6%98x%8CbYT%88%C8K%7Co%E1%DB%F8%15%C4F%99%A7%0D%19%C55%F1%8A%3DO%9C%DE%E1%8A%1D%9E%E0JA%BE%87iH%BB6%1CG%24%00t%13R%F4%26f%EEa%DEm%13%EB%F6_O%F6%A5%B4%8B%F8%D2%C0%1F%CC%F5m%3E%A4%9C%E5J%D2%90Ww%28%F7%A1%F3%14PC%C4%A8fu9%0D%7D%D9%94%DF%A7%A8s+%F4%8C%9AJ%F5%8C%E0%DF%FFY%0E%D0D-p%B1%EC%FF%E8%8D%85%C6%86%5B%A6%86-vt%22%08%97%9Bq%F9
doesn't include timestamp component)
Here is the ndnputfile info:
forgofdm@experiment-unit:~/repo-ng$ ndnputfile /example/repo/1 /example/data/1/ ~/test.txt
ndnName /example/data/1
m_timestampVersion: 1510008217399
after timestamp /example/data/1/%FD%00%00%01_%93%80%DF7
1510008217.403683 INFO: [UnixStreamTransport] [id=0,local=unix:///run/nfd.sock,remote=fd://33] Creating transport
1510008217.403718 INFO: [FaceTable] Added face id=264 remote=fd://33 local=unix:///run/nfd.sock
1510008217.407510 INFO: [RibManager] Adding route /example/data/1/%FD%00%00%01_%93%80%DF7 nexthop=264 origin=app cost=0
1510008217.415572 INFO: [AutoPrefixPropagator] no signing identity available for: /example/data/1/%FD%00%00%01_%93%80%DF7
ERROR: 1510008217.416033 INFO: [Transport] [id=264,local=unix:///run/nfd.sock,remote=fd://33] setState UP -> CLOSING
1510008217.416098 INFO: [Transport] [id=264,local=unix:///run/nfd.sock,remote=fd://33] setState CLOSING -> CLOSED
insert command failed with code 401
forgofdm@experiment-unit:~/repo-ng$ 1510008217.417774 INFO: [FaceTable] Removed face id=264 remote=fd://33 local=unix:///run/nfd.sock
1510008217.421286 INFO: [AutoPrefixPropagator] no signing identity available for: /example/data/1/%FD%00%00%01_%93%80%DF7
I realise I have no signing identify - but I have the same problem if I have a signing identify created.
Any ideas how to solve it? I guess it might be something I am doing wrong on my end? Thanks in advance for your help
Note, I just got a latest ndn-cxx, nfd, and repo-ng (today)
Updated by Diarmuid Ó Coileáin about 7 years ago
Ok. I was able to load data.
However, there are certain steps to get it to load.
First, I got the latest code for ndn-cxx, nfd, and repo + compiled. I get the above error.
Next , I installed ndn-cxx, nfd, and repo via the Ubuntu (16.04) NDN PPA repository
That did not work.
However, it seems to have installed some dependencies needed. So starting compiled version of the ndn-repo now works and ndnputfile loads data.
However, when I recompile ndn-repo - I get the following errors,
Hopefully this will help you solve the problem
[14/22] Compiling tools/ndnputfile.cpp
../tools/ndngetfile.cpp: In member function ‘void repo::Consumer::fetchNextData(const ndn::Name&, const ndn::Data&)’:
../tools/ndngetfile.cpp:173:12: warning: unused variable ‘segment’ [-Wunused-variable]
uint64_t segment = name[-1].toSegment();
^
[15/22] Compiling tools/ndnrepowatch.cpp
[16/22] Compiling tools/repo-ng-ls.cpp
[17/22] Linking build/ndn-repo-ng
../src/handles/delete-handle.cpp:129: error: undefined reference to 'ndn::Interest::Interest(ndn::Name const&, boost::chrono::duration >)'
../src/handles/base-handle.hpp:120: error: undefined reference to 'ndn::Face::put(ndn::Data)'
../src/handles/read-handle.cpp:54: error: undefined reference to 'ndn::Face::put(ndn::Data)'
../src/handles/watch-handle.cpp:294: error: undefined reference to 'ndn::util::scheduler::Scheduler::scheduleEvent(boost::chrono::duration >, std::function const&)'
../src/handles/watch-handle.cpp:187: error: undefined reference to 'ndn::Interest::Interest(ndn::Name const&, boost::chrono::duration >)'
../src/handles/watch-handle.cpp:150: error: undefined reference to 'ndn::Interest::Interest(ndn::Name const&, boost::chrono::duration >)'
../src/handles/watch-handle.cpp:325: error: undefined reference to 'ndn::Interest::Interest(ndn::Name const&, boost::chrono::duration >)'
../src/handles/write-handle.cpp:439: error: undefined reference to 'ndn::util::scheduler::Scheduler::scheduleEvent(boost::chrono::duration >, std::function const&)'
../src/repo.cpp:119: error: undefined reference to 'ndn::security::ValidatorConfig::ValidatorConfig(ndn::Face&, ndn::security::v2::ValidationPolicyCommandInterest::Options const&)'
../src/storage/index.cpp:163: error: undefined reference to 'ndn::util::Sha256::computeDigest(unsigned char const*, unsigned long)'
../src/storage/index.cpp:178: error: undefined reference to 'ndn::util::Sha256::computeDigest(unsigned char const*, unsigned long)'
collect2: error: ld returned 1 exit status
Waf: Leaving directory `/home/forgofdm/repo-ng/build'
Build failed
-> task in 'ndn-repo-ng' failed (exit status 1):
{task 140631521860624: cxxprogram main.cpp.2.o,base-handle.cpp.1.o,delete-handle.cpp.1.o,read-handle.cpp.1.o,tcp-bulk-insert-handle.cpp.1.o,watch-handle.cpp.1.o,write-handle.cpp.1.o,repo.cpp.1.o,index.cpp.1.o,repo-storage.cpp.1.o,sqlite-storage.cpp.1.o -> ndn-repo-ng}
['/usr/bin/g++', '-fuse-ld=gold', '-Wl,-O1', '-pthread', '-pthread', 'src/main.cpp.2.o', 'src/handles/base-handle.cpp.1.o', 'src/handles/delete-handle.cpp.1.o', 'src/handles/read-handle.cpp.1.o', 'src/handles/tcp-bulk-insert-handle.cpp.1.o', 'src/handles/watch-handle.cpp.1.o', 'src/handles/write-handle.cpp.1.o', 'src/repo.cpp.1.o', 'src/storage/index.cpp.1.o', 'src/storage/repo-storage.cpp.1.o', 'src/storage/sqlite-storage.cpp.1.o', '-o', '/home/forgofdm/repo-ng/build/ndn-repo-ng', '-Wl,-Bstatic', '-L/usr/lib/x86_64-linux-gnu', '-Wl,-Bdynamic', '-L/usr/local/lib', '-L/usr/lib/x86_64-linux-gnu', '-lndn-cxx', '-lboost_system', '-lboost_filesystem', '-lboost_date_time', '-lboost_iostreams', '-lboost_regex', '-lboost_program_options', '-lboost_chrono', '-lboost_thread', '-lboost_log', '-lboost_log_setup', '-lssl', '-lcrypto', '-lsqlite3', '-lrt', '-lpthread', '-lboost_system', '-lboost_iostreams', '-lboost_filesystem', '-lsqlite3']
forgofdm@experiment-unit:~/repo-ng$
Updated by Alex Afanasyev about 7 years ago
- Status changed from New to Code review
- Target version set to sqlite3
https://gerrit.named-data.net/4349/ fix for the original problem.
With PPA-installed ndn-cxx and nfd, you need to use an older version of repo-ng.
Updated by Junxiao Shi almost 7 years ago
- Status changed from Code review to Closed