MauriceNino / dashdot

A simple, modern server dashboard, primarily used by smaller private servers
https://getdashdot.com/
MIT License
2.53k stars 95 forks source link

[Bug] Monitor network errors for the RouterOS system #1055

Open starmisszhang opened 4 months ago

starmisszhang commented 4 months ago

Description of the bug

Tag:mauricenino/dashdot:sha-2356692

The drive letter has been specified -v /:/mnt/host:ro Network speed can only monitor one's own network card When I try to use the variable DASHDOT-USE-NEWORK-INTERFACE Start failed screenshot-1712816684832

How to reproduce

No response

Relevant log output

yarn run v1.22.19
$ node .
listening on *:3001
Error: Command failed: mountpoint -q /internal_mnt/host_sys || nsenter --net=/mnt/host/proc/1/ns/net mount -t sysfs nodevice /internal_mnt/host_sys
nsenter: cannot open /mnt/host/proc/1/ns/net: No such file or directory
    at ChildProcess.exithandler (node:child_process:422:12)
    at ChildProcess.emit (node:events:517:28)
    at maybeClose (node:internal/child_process:1098:16)
    at Socket.<anonymous> (node:internal/child_process:450:11)
    at Socket.emit (node:events:517:28)
    at Pipe.<anonymous> (node:net:350:12) {
  code: 1,
  killed: false,
  signal: null,
  cmd: 'mountpoint -q /internal_mnt/host_sys || nsenter --net=/mnt/host/proc/1/ns/net mount -t sysfs nodevice /internal_mnt/host_sys',
  stdout: '',
  stderr: 'nsenter: cannot open /mnt/host/proc/1/ns/net: No such file or directory\n'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Info output of dashdot cli

No response

What browsers are you seeing the problem on?

No response

Where is your instance running?

No response

Additional context

No response