[Bug] Weird interface name causes crash
See original GitHub issueDescription of the bug
Hey,
I’m trying to set up dashdot using Docker Compose on my server.
For some reason, dashdot looks for a network interface named enp0s31f6\nwlan0 with a line break that shouldn’t be there and crashes after it attempts to retrieve information about it from the system.
How to reproduce
- Set up a new docker stack using this Docker compose config:
version: '3.5'
services:
dash:
image: mauricenino/dashdot:latest
restart: unless-stopped
privileged: true
ports:
- '3001:3001'
volumes:
- /etc/os-release:/etc/os-release:ro
- /proc/1/ns/net:/mnt/host_ns_net:ro
- /export:/mnt/host_media:ro
- /mnt:/mnt/host_mnt:ro
environment:
DASHDOT_ENABLE_CPU_TEMPS: "true"
- Attempt to launch it
Relevant log output
listening on *:3001
Using network interface "enp0s31f6
wlan0"
node:internal/errors:845
const err = new Error(message);
^
Error: Command failed: cat /internal_mnt/host_sys/class/net/enp0s31f6
wlan0/speed
cat: read error: Is a directory
/bin/sh: wlan0/speed: not found
at ChildProcess.exithandler (node:child_process:387:12)
at ChildProcess.emit (node:events:527:28)
at maybeClose (node:internal/child_process:1090:16)
at Socket.<anonymous> (node:internal/child_process:449:11)
at Socket.emit (node:events:527:28)
at Pipe.<anonymous> (node:net:740:14) {
code: 127,
killed: false,
signal: null,
cmd: 'cat /internal_mnt/host_sys/class/net/enp0s31f6\nwlan0/speed',
stdout: '',
stderr: 'cat: read error: Is a directory\n/bin/sh: wlan0/speed: not found\n'
}
Node.js v18.3.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run v1.22.19
$ node .
(node:28) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Info output of dashdot cli
yarn run v1.22.19
$ node dist/apps/cli/main.js info
INFO
=========
Yarn: 1.22.19
Node: v18.3.0
Dash: 3.3.3
Cwd: /app
Hash: fe040a86f58934194d1f33793fb14b84896ff737
In Docker: true
In Podman: false
Done in 0.41s.
What browsers are you seeing the problem on?
Chrome
Where is your instance running?
Linux Server
Additional context
Here’s the output of ifconfig as it probably is relevant (unrelated virtual network devices omitted):
enp0s31f6: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.178.74 netmask 255.255.255.0 broadcast 192.168.178.255
inet6 fe80::66a5:b53d:d810:f60 prefixlen 64 scopeid 0x20<link>
ether 00:01:2e:81:dc:45 txqueuelen 1000 (Ethernet)
RX packets 473465317 bytes 676790155893 (630.3 GiB)
RX errors 0 dropped 434284 overruns 0 frame 0
TX packets 128253829 bytes 55531476452 (51.7 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16 memory 0xdc300000-dc320000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 8241329 bytes 13071192069 (12.1 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8241329 bytes 13071192069 (12.1 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.178.81 netmask 255.255.255.0 broadcast 192.168.178.255
inet6 fe80::24b2:bd0a:6d8c:f8 prefixlen 64 scopeid 0x20<link>
ether 44:03:2c:93:29:57 txqueuelen 1000 (Ethernet)
RX packets 897139 bytes 115915057 (110.5 MiB)
RX errors 0 dropped 432383 overruns 0 frame 0
TX packets 26550 bytes 3420898 (3.2 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
862862 – long ixgbevf interface name crashes kernel
Bug 862862 - long ixgbevf interface name crashes kernel ... Log into the VM, and notice the first VF ethernet device has a...
Read more >Bug #223: Kernel Crash when using more than one interface ...
It should help to find out if the crash is caused by the fragmention code or is related to something else like the...
Read more >Crash in background on iOS 15 EXC_CRASH (SIGKILL)
Hello, Since the first iOS 15 beta and even with all the next public releases, we have a very weird crash each time...
Read more >brightness adjusting crashes system - Ubuntu - Launchpad Bugs
When adjusting my laptops brightness the system crashes. what logs do in need to add and how to get them? System: -- Dell...
Read more >Linux networking crash: best steps to find out the cause?
A simple service network restart solved the issue, but I am still wondering what could have caused this. My log files seem to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

🎉 This issue has been resolved in version 3.4.0
Please check the changelog for more details.
Thanks! The changes on the
dashdot:devdocker image work great for me now.