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

Unable to find NFC netlink family #18

Open
kannan-sosaley opened this issue May 23, 2022 · 11 comments
Open

Unable to find NFC netlink family #18

kannan-sosaley opened this issue May 23, 2022 · 11 comments

Comments

@kannan-sosaley
Copy link

May 23 16:06:28 raspberrypi neard[2379]: neard[2379]: NEAR daemon version 0.18
May 23 16:06:28 raspberrypi neard[2379]: NEAR daemon version 0.18
May 23 16:06:28 raspberrypi neard[2379]: neard[2379]: Unable to find NFC netlin>
May 23 16:06:28 raspberrypi neard[2379]: Unable to find NFC netlink family
May 23 16:06:28 raspberrypi neard[2379]: neard[2379]: netlink init failed
May 23 16:06:28 raspberrypi neard[2379]: neard[2379]: *** NETLINK INITIALIZATIO>
May 23 16:06:28 raspberrypi neard[2379]: netlink init failed
May 23 16:06:28 raspberrypi neard[2379]: *** NETLINK INITIALIZATION FAILED ***
May 23 16:06:28 raspberrypi systemd[1]: neard.service: Main process exited, cod>
May 23 16:06:28 raspberrypi systemd[1]: neard.service: Failed with result 'exit

@kannan-sosaley
Copy link
Author

kannan-sosaley commented May 23, 2022

rpi@raspberrypi:~ $ nfctool -l
Unable to find NFC netlink family
netlink init failed
No such file or directory
I use libnl-3-dev libnl-nf-3-dev, as opposed to what stated libnl2
kindly please address my issue

@mgreeraz
Copy link
Contributor

mgreeraz commented May 24, 2022 via email

@advent-embedded
Copy link

Thanks and i greatly look forward for a fix

@advent-embedded
Copy link

advent-embedded commented May 31, 2022

Install all dependencies libnl-3-dev libnl-nf-3-dev libnl-route-3-dev
sudo npm i netlink-nfc

npm WARN enoent ENOENT: no such file or directory, open '/home/sosdt002/package.json'
npm WARN sosdt002 No description
npm WARN sosdt002 No repository field.
npm WARN sosdt002 No README data
npm WARN sosdt002 No license field.

Errror still persists

@mgreeraz
Copy link
Contributor

mgreeraz commented May 31, 2022 via email

@kannan-sosaley
Copy link
Author

kannan-sosaley commented Jun 1, 2022

netlink-nfc couldn't be found anywhere except from npm

https://www.npmjs.com/package/netlink-nfc

Any other means to overcome this issue

@krzk
Copy link
Collaborator

krzk commented Jun 1, 2022

The neard does not use anything from npm, so you still miss libraries.

@kannan-sosaley
Copy link
Author

can u list what am i missing apart from
libnl-3-dev libnl-nf-3-dev libnl-route-3-dev
Screenshot from 2022-06-01 12-39-36

@krzk
Copy link
Collaborator

krzk commented Jun 1, 2022

I don't what system do you have, what packages did you install, so I have no clue what you are missing. The README file has a list of dependencies. Optionally you can check CI installation scripts for specific Ubuntu flavor in https://github.com/linux-nfc/neard/tree/master/ci .

@kannan-sosaley
Copy link
Author

kannan-sosaley commented Jun 1, 2022

I tried and tested on both Ubuntu on X86_64 and Raspiberry pi4, both results to same error
Digging the source from netlink.c i found kinda socket init error
i use Ubuntu environment.
Screenshot from 2022-06-01 12-55-28

@krzk
Copy link
Collaborator

krzk commented Jun 1, 2022

Do you have all the required packages as described by CI installation scripts?

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

4 participants