Project

General

Profile

Actions

Bug #4274

closed

NFD quits if started with nfd-start without KeyChain

Added by Junxiao Shi over 6 years ago. Updated 7 months ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
9.00 h

Description

Environment: Ubuntu 14.04

Steps to reproduce:

  1. Use a non-root user with sudo privileges
  2. Install NFD from source code, and copy the sample nfd.conf
  3. Delete user's KeyChain: sudo rm -rf $HOME/.ndn
  4. Execute nfd-start

Expected: NFD starts normally
Actual: NFD quits within a few seconds; there was no FATAL log


Related issues 1 (0 open1 closed)

Has duplicate NFD - Bug #4266: NFD won't start correctly on Vagrant integration testing environmentClosedEric Newberry09/05/2017

Actions
Actions #1

Updated by Junxiao Shi over 6 years ago

  • Has duplicate Bug #4266: NFD won't start correctly on Vagrant integration testing environment added
Actions #2

Updated by Junxiao Shi over 6 years ago

  • Description updated (diff)
  • Assignee set to Zhiyi Zhang
  • Estimated time set to 9.00 h

If user's KeyChain was chown'd to root (sudo chown -R root:root .ndn), NFD could start normally.
This means KeyChain v2 could not handle its files being owned by a non-root user while the calling process is executed as root.

The solution is to either modify KeyChain v2 to tolerate its files owned by another user, or update nfd-start and IntegrationTests to avoid starting NFD as root using user's KeyChain.

Actions #3

Updated by Junxiao Shi over 6 years ago

Actions #4

Updated by Davide Pesavento over 6 years ago

Actions #5

Updated by Davide Pesavento about 6 years ago

  • Target version deleted (v0.6)
  • Start date deleted (09/07/2017)
Actions #6

Updated by Davide Pesavento 7 months ago

  • Category deleted (Build)
  • Status changed from New to Rejected
  • Assignee deleted (Zhiyi Zhang)

I cannot reproduce, and I routinely follow the process outlined in "steps to reproduce" whenever I need to run a quick test with NFD. Never had a problem, at least not for the last several years.
We can reopen if we find another way to reproduce.

Actions

Also available in: Atom PDF