[Ndn-interest] Trouble with testing sample ndnfs client application

Junxiao Shi shijunxiao at email.arizona.edu
Thu Apr 13 14:34:20 PDT 2017


Hi Ishita

Did you put the file into the server?
Note that ndnfs-port will not recognize files previously in
/users/idasgupt/dataset. You must put the file into /tmp/ndnfs when the
server is running.

Yours, Junxiao

On Apr 13, 2017 14:16, "Ishita Dasgupta" <ishita.dasgupta at gmail.com> wrote:

Hi,
I am having trouble trying to show/fetch files hosted by ndnfs-server via
ndnfs-client with the simple test-client application provided here
<https://github.com/remap/ndnfs-port>.

Here are the steps:

*To start the server:*
1. My data directory: /users/idasgupt/dataset
2. Mounting directory: /tmp/ndnfs
3. I started the ndnfs on server: ./build/ndnfs -d /users/idasgupt/dataset
/tmp/ndnfs4.
4. I start the ndnfs-server: ./build/ndnfs-server -p /ndn/broadcast/ndnfs
-l ndnfs-server.log -f /tmp/ndnfs -d ndnfs.db (Thus, prefix:
/ndn/broadcast/ndnfs/)

*To start/test the client(localhost): *
I am trying to see the metadata/fetch a file *a.txt* that I confirmed
exists both in my data and mount directory. (Also the file permission was
777)

1. nfd-start; ./build/test-client
I skipped nfdc register as this was localhost. I have tried with nfdc
register from remote client as well and I still get the same error
described next
2. show /ndn/broadcast/ndnfs/a.txt (KEEPS TIMING OUT, same with fetch)
*OUTPUT: *
Displaying info of file by name: /ndn/broadcast/ndnfs/a.txt
Timeout /ndn/broadcast/ndnfs/a.txt
*NDNFS-SERVER.LOG*
- 1491847947 DEBUG: Ndnfs-server logging.
- 1491847947 DEBUG: main: sqlite database open ok
- 1491847947 DEBUG: main: db file: ndnfs.db
- 1491847947 DEBUG: main: fs root path: /tmp/ndnfs
- 1491847947 DEBUG: main: serving prefix: /ndn/broadcast/ndnfs
- 1491848080 DEBUG: onInterest: no such file found in ndnfs: /a.txt
- 1491848080 DEBUG: sendDirMeta: no such folder found: /a.txt


Has anyone come across this problem before?
Am I writing the prefix or filepath wrong?
I have ndn-cpp,  ndnfs-port , ndn-tools, NFD,  PyNDN2 installed both on
server and client(when remote) as well as their dependent libraries. Do I
need to manually setup some sqlite db or anything to do with ndn-js
library?
Please let me know if you have any idea where I might be going wrong. Any
guidance would be helpful.

_______________________________________________
Ndn-interest mailing list
Ndn-interest at lists.cs.ucla.edu
http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20170413/d66b37e6/attachment-0001.html>


More information about the Ndn-interest mailing list