Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netvfy-agent fails to start if HOME is not set: "ndb_init: stat" #37

Open
orwell96 opened this issue May 30, 2021 · 0 comments
Open

netvfy-agent fails to start if HOME is not set: "ndb_init: stat" #37

orwell96 opened this issue May 30, 2021 · 0 comments

Comments

@orwell96
Copy link

Operating System: Raspberry Pi OS (aka. Debian Buster)
Install method: apt-get

I was setting up a systemd service for netvfy. For this purpose, I provisioned the node using the root account and made a simple systemd service unit. Starting this unit failed with the rather unintuitive error message

ndb_init: stat

However, starting from the command line worked normally.

By looking at the code (specifically here), I suspected that it failed because of a missing HOME env variable.

Using this command line instead did the trick:

env HOME=/root netvfy-agent -c Network

To prevent confusion for future users, I suggest adding a more informative error message when stating the directory fails, and/or explicitly checking whether the HOME environment variable exists and outputting an appropriate error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant