Nethsecurity install on raspberry pi 4b

Hello,

I am trying to install Nethsecurity on a Raspberry Pi 4 B. I think I was able to build the image correctly since the Nethsecurity UI is coming up. However there is an error in the dashboard, and was wondering if there was an easy way to fix?

root@NethSec:~# /usr/libexec/rpcd/ns.dashboard call system-info
Traceback (most recent call last):
  File "/usr/libexec/rpcd/ns.dashboard", line 38, in get_hardware
    with open('/sys/devices/virtual/dmi/id/board_name') as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/sys/devices/virtual/dmi/id/board_name'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/libexec/rpcd/ns.dashboard", line 380, in <module>
    ret = system_info()
          ^^^^^^^^^^^^^
  File "/usr/libexec/rpcd/ns.dashboard", line 260, in system_info
    ret['hardware'] = get_hardware()
                      ^^^^^^^^^^^^^^
  File "/usr/libexec/rpcd/ns.dashboard", line 41, in get_hardware
    with open('/sys/devices/virtual/dmi/id/product_name') as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/sys/devices/virtual/dmi/id/product_name'

I’ll continue to look around and see if I can fix the problem, but was looking for some guidance.

Thanks,


Enrique

1 Like

Nice job!

I think we can easily fix it, I remember a similar issue on NS7 fixed by @dz00te.

I reused his code for the fix, you can test it in you machine.
Access the firewall with SSH then execute:

curl https://raw.githubusercontent.com/NethServer/nethsecurity/refs/heads/fix_dashboard_raspberry/packages/ns-api/files/ns.dashboard -o /usr/libexec/rpcd/ns.dashboard

If there is any other problem, let me know and we will try to fix it.

Edit: I forgot to mention, this is the draft PR for the fix: ns-api: fix hardware info for ARM boards by gsanchietti · Pull Request #873 · NethServer/nethsecurity · GitHub

Thank you, @giacomo, for the quick reply. The file you provided fixes the error I was encountering. I’ll continue to set it up and let you know if I encounter any other issues.

2 Likes

Thanks for the test, I will merge the PR for next releases.

1 Like