[Bug Report] Network dies very shortly after first boot when computer has been turned off for a few hours #1465
Replies: 12 comments 5 replies
-
|
hi @UnconnectedBedna , Thanks for this detailed report! I'll take a look at this issue and try to reproduce it. What's the DefaultAction option of /etc/opensnitchd/default-config.json? and is there any error in /var/log/opensnitchd.log? It'd be interesting to see the logs in DEBUG level (truncate the log -> power off the PC -> power on -> backup the log with he issue reproduced).
That file should be installed by the aur package, it's available here: https://github.com/evilsocket/opensnitch/blob/master/daemon/network_aliases.json |
Beta Was this translation helpful? Give feedback.
-
|
The default action in /etc/opensnitchd/default-config.json is deny. There are no errors in /var/log/opensnitchd.log (when set to important logging). I also want to point out so it is clear: When booting (after the system has been turned off for a few hours), the network works fine, it dies after a few minutes forcing me to reboot. Using nmcli down/up does not work, only a reboot solves the issue. I'll activate debug logging and provide the log when network drops.
I saw the file on the github repo, but Might be relevant: Again, this only happens if I have systemd in mkinitcpio hooks. If I remove systemd and use udev instead, this issue does not happen. |
Beta Was this translation helpful? Give feedback.
-
Try changing it to allow and see if the issue persists.
Yeah, copy the file from our repo in order to get rid of the error. The AUR package mantainer should include it in the package. Some notes after reading the arch forum post:
I've configured the HOOKS with
Perfect. In fact, I'd suggest you to disable opensnitch completely: Then, without opensnitch running and no netfilter rules, verify if the network dies or not. Actually, I'd go even further:
|
Beta Was this translation helpful? Give feedback.
-
|
A little misunderstanding I think. The issue does NOT happen with opensnitch disabled.
The crashes are old (if you are talking about the drkonqi logs), and the service should be disabled, I just don't know how to get rid of them so they spit those out every boot. The wifi was an old issue no longer present. The only thing wonky about my wifi is that I can't disable it in uefi, it's still available even if I do. The issue at hand is triggered by having two things:
If I remove one of the points above, my network works flawlessly. I have tried by both masking and just disabling opensnitcd.service. And in both situations there is no problem with the network at boot so masking or renaming binary is not necessary, disabling it is enough. Also noteworthy, after network drops:
Tomorrow I will reboot with opensnitch enabled and logging with debug level and provide the output here, maybe that will tell me something. I will not be able to let the system run for days without a desktop environment. I am using this computer as my daily driver and need it. The "sometimes it drops after 6hr" was ONCE, it has never happened again. |
Beta Was this translation helpful? Give feedback.
-
|
Here is a debug log on a boot where network failed after a few minutes. Are you interested in finding out why this happens? But I would really appreciate if you responded to one question. Edit |
Beta Was this translation helpful? Give feedback.
-
|
thank you @UnconnectedBedna ,
Yes, asbolutely! Maybe I won't respond instantly, but I'll try to investigate this issue. Reviewing the logs shows that around 22:24:51 the system tries to query your internal DNS as usual (...xx.20), but it doesn't seem to work, and after more or less 1 minute there're no new domains resolved. From the logs I cannot tell why it fails, but I can suggest one thing: try using only 1.1.1.1 or 8.8.8.8 as the DNS nameserver, and see if it makes any difference. There's also a "network event" at 22:24:31: On the other hand: change the configuration option In any case, it's not very clear to me that we're the ones at fault here, that's why we need to reproduce this issue using the absolute basics: no extra background services running, no backup services, no nfs services, no vmwares, no VM NATs, no steam, no deno, etc, etc. So this is what I'd do:
That's the default HOOKS list, except By the way, did you try the default HOOKS list? with fsck + kms, just in case ...
You have plenty of coredumps under If you don't need them just delete them as root, and if you're not going to analyze them you can disable |
Beta Was this translation helpful? Give feedback.
-
|
It is advised against using fsck with btrfs IIRC, so I don't want to use that mkinitcpio hook. Things I did before shutting down the computer:
Startup the next day: because it looks like I opened obsidian for my notes directly after that (electron used with obsidian). Here is the output of
Mine is I flushed the rules with Here is the log. It starts with the boot and includes the reboot and when I switched back logging from debug to important in opensnitch. I have since restored the system as it was before, ebpf, my nfs mount and backup software running again so if you want me to revert any settings before further testing please let me know. Thank you for taking time trying to figure this out. ❤️ Edit |
Beta Was this translation helpful? Give feedback.
-
|
My intention isn't to hijack your conversation. I'm also unsure whether this type of troubleshooting is appropriate here (since it seems like OpenSnitch isn't the problem). Forgive me and disregard if necessary. To summarize:
Questions:
We've similar configurations (including Archlinux + KDE + OpenSnitch) but I don't encounter any of these problems. Although, I'm on the B650 platform with RTL8125BG, not X670. My 192G memory kit cannot run stable at its SPD XMP profile frequency with my 9950X 🤷🏽♂️. |
Beta Was this translation helpful? Give feedback.
-
Well, depends I guess. If it is a problem with any netfilter firewall, it could be in opensnitch interest to find out WHY, and IF related report it upstream. Me reporting "my network dies" upstream would never lead anywhere compared to a report after a full fledged investigation like this.
Unknown, test required. I do not use wifi very often, but id DOES work when lan drops. I always have wifi soft disabled and activate it on those rare occasions I need it.
I have now, this boot. And this fixes the network without a reboot. Typing this +45mins after ifconfig down/up on a boot where network dropped.
God damn it, I read this on my phone before starting the computer and still forgot to try it. I will try tomorrow.
I have not, and I frankly do not posses the knowledge how to do that. :(
I only used ethtool once in the OP on arch forums. And that was to try to provide information about the hardware.
Again, lack of knowledge from my side how to do that. :(
I did not even know there was a proprietary driver available...
That is a massive nono from my side. I have used their beta firmware in the past, and ran in to a bug where the fans ran at 0% when they should run at full speed and vice versa. I reverted back to stable firmware and immediately reported this to gigabyte. Took one week for them to even remove the broken firmware on their webpage, and another 6 weeks before they even responded, and the response came the day after they released a new stable firmware. And the response was "update your firmware"...
I do, and I have not tried to disable it, but will put that on the list of things to try.
That has crossed my mind. But I do not know how to configure a live environment to have a netfilter firewall active so I dropped the idea of trying.
I have not, but if the opportunity comes up (me away not needing to use the computer for example) I will run memtest for a few hours.
I might be able to give you an idea here. Try with only using 2 memory modules. I have seen using all four banks can cause issues with high speeds. But then again, that would only be for peace of mind since I assume you want more memory rather than a small amount of fast memory. I do realize this can absolutely be hardware level issues and completely understand if interest in trying to find the reason is outside the scope of opensnitch. |
Beta Was this translation helpful? Give feedback.
-
This could indicate that the problem is isolated to the wired adapter.
Does the down/up restore full capability, including firewall rules? Until the problem returns? Requiring that you bounce the interface again? Or is reboot required?
Interesting, maybe using a utility like gnu-netcat might help to determine if EBPF and OpenSnitch are still functioning internally. I'd suggest attempting to access a closed port just to confirm the expected result. Presuming that you don't use tftp and that your rules don't already permit the traffic, a command like this should result in the corresponding output: Allow the connection prompt $ nc -vz 192.168.99.10
internal.host.name [192.168.99.10] 69 (tftp): Connection refusedIf denied, it should timeout which takes significantly longer $ nc -vz 192.168.99.10
internal.host.name [192.168.99.10] 69 (tftp): Connection timed out
This is a perfect opportunity to learn! In summary, some of the network processing can be "offloaded" away from the main CPU and onto the dedicated interface hardware. The The resulting list contains options that can be toggled with a command like:
Yes, Realtek provides linux drivers, but it requires a manual install process and for r8125 they support up to the 6.12 kernel only so you'd need to use the LTS kernel. I can't attest to it's safety, but there is also an AUR package. You'll need to blacklist the r8169 module that is bundled with the kernel if you decide to test either option.
Perhaps it was the right decision! It looks like they've removed F37e from the website...
The CachyOS project might be a realistic option, they offer a full live boot GUI installer and is based on Archlinux. You might be able to install OpenSnitch directly into the live environment. New question: do you have the @gustavo-iniguez-goya would you prefer that this discussion proceed elsewhere? |
Beta Was this translation helpful? Give feedback.
-
+1 to this question (before I continue to bombard this issue with further information) |
Beta Was this translation helpful? Give feedback.
-
|
Yes, let's move the discussion to the https://github.com/evilsocket/opensnitch/discussions/categories/general Discussion forum for now. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug:
The network dies after 1-4 minutes every time the computer is started after a longer shutdown period IF systemd hook is present in mkinticpio. Works fine if I change the hook to udev.
After a reboot the network works normally again.
Relevant discussion on arch forum: https://bbs.archlinux.org/viewtopic.php?pid=2272632
Include the following information:
Linux bednaArch 6.17.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 14 Nov 2025 06:54:20 +0000 x86_64 GNU/LinuxTo Reproduce:
Post error logs:
opensnitchd -check-requirementsto see if your kernel is compatible./var/log/opensnitchd.logThere are only two lines in the log from the failing boot, then I rebooted and the last two are from the new boot:
From journalctl grep opensnitch from boot dropping network:
Full journalctl log from boot dropping network: bootlog4.log
Additional context:
The errors displayed in journalctl seems to happens every boot, not just the failing ones.
/etc/opensnitchd/network_aliases.json does not exist on my system.
Installed opensnitch via arch stable repos.
If I disable opensnitd.service the issue goes away, hence pointing to opensnitch being related to this some way.
Edit
Additional information: Having other firewalls active, for example plasma firewall (with opensnitchd.service masked) also seems to cause this issue.
Beta Was this translation helpful? Give feedback.
All reactions