Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

sudo required #3

Open
RobinTail opened this issue Dec 29, 2018 · 7 comments
Open

sudo required #3

RobinTail opened this issue Dec 29, 2018 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@RobinTail
Copy link
Contributor

npm start
/dev/mem: Permission denied

I suppose the system information library requires su rights. Maybe there is another lib/repo or solution to get this information? Or we need to check these rights on startup?

@RobinTail
Copy link
Contributor Author

This can be reproduced on raspberry pi (3b+)

@Eirenliel
Copy link
Member

Doesn't reproduce on Debian 9 for me. I think we need for the app to keep working fine even if fetching of any health data failed by any reason. Then we can investigate why it fails.

Does it work like this?

si.mem().catch(error => {return error})

@RobinTail
Copy link
Contributor Author

In fact there is no promise rejection at this line. It's some kind of system error thrown into console @Eirenliel . I'm still trying to investigate

@RobinTail
Copy link
Contributor Author

Also, it is not in si.mem() it is in si.cpu() @Eirenliel

@RobinTail
Copy link
Contributor Author

Found the reason, @Eirenliel
This happen only since version 3.52.0 of systeminformation library. Here is the changelog:

Version 3.52.0: cpu() added physical cores, processors, socket type

@RobinTail
Copy link
Contributor Author

RobinTail commented Jan 6, 2019

I've made the bug report
sebhildebrandt/systeminformation#193

@RobinTail RobinTail added question Further information is requested and removed blocker labels Jan 6, 2019
@RobinTail
Copy link
Contributor Author

sebhildebrandt/systeminformation#193

need to be updated to v4.0.0, @Eirenliel

@RobinTail RobinTail added enhancement New feature or request and removed question Further information is requested labels Feb 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants