Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Edit: After some time I found out, that the main problem is not the amount I upload, but the speed. As soon as I upload with maximum speed of over 10MB/s, the internet break. I haven't found a solution, but I throttle the upload speed and the internet stays stable.
When I upload large files, the internet goes offline. I can't connect anymore and have to restart.
It's not the ISP, because I can upload big files with Windows (with the same computer). Thus it's probably not the modem.
I used Manjaro for over one year, but never had the problem before. It just started around 1 month ago. I even reinstalled Manjaro yesterday, but I still have the problem with the fresh installation and even when I boot from USB stick.
You can see at 3:40 how the whole internet shuts down (graph on bottom right). And I can't connect to the router anymore, no routers are found. I have to restart to get online again.
I really hope that the issue can be solved, otherwise I will be sadly forced to quit using Manjaro after around 1,5 years. And besides this issue, I really like Manjaro. But I often upload files, and it's a huge issue for me.
Do you connect wirelessly? It could be a Wifi issue. Have you checked for that? NetworkManager logs?
How many different ways (not times) have you tested the uploading?
Elaborate.
BTW, NetworkManager takes a long time to come back online; at the end of your video it looks like you didn't wait long enough.
I have the problem for over one month, so the internet broke down at least 50 times.
Today I was able to upload around 50GB (a backup) with 1MB/s. That was great. But then it broke down. I restarted the computer and the internet broke down again after just 1GB.
→ It could be a Wifi issue.
But I can upload unlimited amounts with unlimited speed with Windows. Also when the internet breaks down on my computer, only this computer is affected. All other connected devices, for example mobile phones, have no problem and continue to watch YouTube without any breaks.
I don't know which files I should display or which terminal code I should copy paste... Here is something after the internet breaks down. I am connected with wlp1s0 (wifi).
→ NetworkManager takes a long time to come back online; at the end of your video it looks like you didn't wait long enough.
I just waited over 5 minutes, but nothing happens. The wifi is just not accessible.
Also I can't continue my backup now, the internet breaks down almost instantly when I try. Although I could upload 50GB this morning.
The difference is, that this morning the backup included only many small files. But now, there is a 3GB file that is due for the backup.
It looks like I can upload unlimited small files, but no big files :-/
→ NetworkManager takes a long time to come back online; at the end of your video it looks like you didn't wait long enough.
I just waited over 5 minutes, but nothing happens. The wifi is just not accessible.
Also I can't continue my backup now, the internet breaks down almost instantly when I try. Although I could upload 50GB this morning. The difference is, that this morning the backup included only many small files. But now, there is a 3GB file that is due for the backup. It looks like I can upload unlimited small files, but no big files
You were asked if you were/are using wifi or not...are you? And if so, have you tried a wired connection to see if it still happens under Linux? And what kind of wifi adapter are you using, with what version of Manjaro? Could be as simple as an out-of-date wifi driver, or one that isn't well supported under Linux.
→ But yeah, it would be a good troubleshooting step to see if this happens on a wired connection, too.
I don't have a cable. But when the prolem can't be solved, perhaps I will buy one to be able to continue using Manjaro.
Yes, perhaps it's a driver issue. I don't know how to change the driver. And again, the problem happens when booting from USB with a new Manjaro installation (and before it never happened). Thus the driver is rather too new than too old, I assume.
Device-1: Intel Wireless 3165 driver: iwlwifi
Here are the logs. When the internet breaks, there are no logs. But I posted the logs before and after.
8:41 I start my computer and begin the upload.
8:45 The internet breaks down and I'm offline.
8:50 I try to restart the wifi (unsuccessfully) and then I restart the computer.
I tried several other distributions (live USB) and most of them have the same issue. I still don't know if it's a hardware or a software problem?!? It all looks like a hardware issue, as if the modem would overheat when uploading large files. But why is it working with Ubuntu 20.04 and with Windows, and why do only large files cause the issue? Here are the distributions that I tried:
Internet goes offline after uploading around 1GB of a large file (YouTube, backups, cloud servers, etc.):
- Manjaro (installed on the harddrive), I tried all Kernels from 4.9 to 5.10
- EndeavourOS
- Elementary
- Solus
- Ubuntu 20.10
Everything is fine with the internet, I can upload any filesize with any speed and the internet is stable:
- Ubuntu 20.04 LTS (Live USB)
- Windows 10
If the problem can't be solved, then I will have to switch to Ubuntu :-( Though I would prefer something Arch-based.
Here are the logs. When the internet breaks, there are no logs. But I posted the logs before and after.
8:41 I start my computer and begin the upload.
8:45 The internet breaks down and I'm offline.
8:50 I try to restart the wifi (unsuccessfully) and then I restart the computer.
Please always include the command that created the output you paste.
I will assume it was 'journalctl -u NetworkManager', but you manually added the line "Internet goes offline".
It makes absolutely no sense that you should do that. Just show us the complete output.
If NetworkManager stays silent when the "internet goes offline" you have to show us the complete journalctl output for that timeframe. It would also be an indicator that, at least for NM, the "internet" never goes "offline".
And please be precise about which terms you use. "internet" is not the same as "wifi", "no upload speed" is not the same as "offline".
Oh, btw, can you still view web pages when the upload stalls?
And, as I already asked, have you tried different methods of uploading? For all we know it could be just that particular site kicking you out.
→ But yeah, it would be a good troubleshooting step to see if this happens on a wired connection, too.
I don't have a cable. But when the prolem can't be solved, perhaps I will buy one to be able to continue using Manjaro.
Just borrowing one would let you test.
Quote:
Yes, perhaps it's a driver issue. I don't know how to change the driver. And again, the problem happens when booting from USB with a new Manjaro installation (and before it never happened). Thus the driver is rather too new than too old, I assume.
Device-1: Intel Wireless 3165 driver: iwlwifi
So is this an INSTALLED version of Manjaro?? You say you're booting from USB. And again, as asked before, what VERSION of Manjaro, and what kind of wifi hardware, as in brand/model?? What kind of hardware? Without any sort of details past "wifi" and "manjaro", there isn't a lot to go on.
Quote:
Here are the logs. When the internet breaks, there are no logs. But I posted the logs before and after.
8:41 I start my computer and begin the upload.
8:45 The internet breaks down and I'm offline.
8:50 I try to restart the wifi (unsuccessfully) and then I restart the computer.
Code:
Dez 26 08:41:18 manjaro-1220 systemd[1]: Starting Network Manager...
Dez 26 08:41:28 manjaro-1220 NetworkManager[679]: <info> [1608946888.3608] manager: NetworkManager state is now CONNECTED_GLOBAL
--- 08:46 - Internet goes offline ---
Dez 26 08:50:22 manjaro-1220 NetworkManager[679]: <info> [1608947422.6032] device (wlp1s0): state change: activated -> deactivating (reason 'user-requested', sys-iface-sta>
Dez 26 08:50:22 manjaro-1220 NetworkManager[679]: <info> [1608947422.6035] manager: NetworkManager state is now DISCONNECTING
Dez 26 08:50:22 manjaro-1220 NetworkManager[679]: <info> [1608947422.6043] audit: op="device-disconnect" interface="wlp1s0" ifindex=3 pid=1198 uid=1000 result="success"
So you posted logs where you purposely deleted all the information between 8:41 and 8:46, that may actually show the errors?? And I bolded a line above...where is says "deactiving (reason 'user requested')". Which typically means either the adapter was turned off by someone, or the connection was brought down manually by the user.
but you manually added the line "Internet goes offline". It makes absolutely no sense that you should do that.
I just wanted to follow your instructions "when you finally get some usable output, point out the timeframe where the network drops out". I didn't know that there is a specific protocol to do that and that I violated that. I am sorry for that.
Quote:
Please always include the command that created the output you paste.
Yes, ok. It is your advice "journalctl -u NetworkManager"
Quote:
you have to show us the complete journalctl output for that timeframe.
Only a complete brain-dead person would delete the most important part of the output. As I said in my last posting "When the internet breaks, there are no logs." :-p
You can see in the video that the NetworkManager continues to "pretend" to be online. It will show that he is still connected. Same in the video. Sadly I haven't shown that browsing doesn't work anymore, but you can see that the internet speed drops to 0 (and I'm 100% offline), but the NetworkManager still seems to be connected, until I manually try to reconnect it.
Quote:
And please be precise about which terms you use. "internet" is not the same as "wifi", "no upload speed" is not the same as "offline". Oh, btw, can you still view web pages when the upload stalls?
I don't have a cable at the moment, so I only use wifi. When the upload speed drops to 0, then the whole internet on this computer is offline. I can not do anything anymore. I can't view any webpages, with no browser with nothing. Totally offline. Although the NetworkManager continues to display indefinitely that I am online (no matter how long I wait).
Quote:
And, as I already asked, have you tried different methods of uploading?
I answered in my last posting (though of course the thread is getting quite long now and it's difficult to remember all details, of course): "Internet goes offline after uploading around 1GB of a large file (YouTube, backups, cloud servers, etc.)
The issue arises with all apps, all browsers, all sites. With "backup" I mean even another app, not a browser. It only happens while uploading large files with high speed, no matter which app I use.
My modem is a "Intel® Dual Band Wireless-AC 3165". The driver is called iwlwifi.
I assume that it is included in the kernel and there is no specific installation needed?
But sadly I don't know how to install them or if it's needed at all. I copied the files to /lib/firmware but nothing changes. I think I have to "configure the kernel yourself" as they write in their instructions.
Also in the first page (Arch Linux Wiki) they give several tips, what to do when there are internet issues with Intel modems. They say I have to edit the file /etc/modprobe.d/iwlwifi.conf
But I don't have any files in that folder, so I can't do the suggested modification.
When I list the used firmware with
modinfo iwlwifi | grep firmware
Then iwlwifi-7265-17.ucode is listed (that's the driver for my modem).
I think it's already the most recent driver according to the Intel page. But still, there is no file /etc/modprobe.d/iwlwifi.conf
---
I just tried different firmware versions, by deleting the most recent ones from /lib/firmware
When I delete all 7265D files, I can't get online, thus I know that these files are used for the modem. When I delete just the new versions, the older ones are used:
Code:
sudo dmesg | grep iwlwifi
[sudo] password for admin:
[ 5.590641] iwlwifi: loading out-of-tree module taints kernel.
[ 5.678210] iwlwifi: module verification failed: signature and/or required key missing - tainting kernel
[ 5.700377] iwlwifi 0000:01:00.0: Direct firmware load for iwlwifi-7265D-29.ucode failed with error -2
[ 5.700405] iwlwifi 0000:01:00.0: Direct firmware load for iwlwifi-7265D-28.ucode failed with error -2
[ 5.700430] iwlwifi 0000:01:00.0: Direct firmware load for iwlwifi-7265D-27.ucode failed with error -2
[ 5.700449] iwlwifi 0000:01:00.0: Direct firmware load for iwlwifi-7265D-26.ucode failed with error -2
[ 5.700467] iwlwifi 0000:01:00.0: Direct firmware load for iwlwifi-7265D-25.ucode failed with error -2
[ 5.700482] iwlwifi 0000:01:00.0: Direct firmware load for iwlwifi-7265D-24.ucode failed with error -2
[ 5.700499] iwlwifi 0000:01:00.0: Direct firmware load for iwlwifi-7265D-23.ucode failed with error -2
[ 5.704956] iwlwifi 0000:01:00.0: loaded firmware version 22.391740.0 7265D-22.ucode op_mode iwlmvm
[ 6.024935] iwlwifi 0000:01:00.0: Detected Intel(R) Dual Band Wireless AC 3165, REV=0x210
[ 6.042564] iwlwifi 0000:01:00.0: base HW address: d0:b6:e9:9c:8a:fb
[ 6.113283] iwlwifi 0000:01:00.0 wlp1s0: renamed from wlan0
But with all firmwares, I still have the same result, the internet always goes offline when uploading big files.
-----
One more thing I just noticed. The internet only breaks with high upload speeds. When I have my full speed of around 10MB/s, the internet will break quickly. But at certain times the internet is much slower, and I can only use 1-2MB/s, in these cases the upload also don't cause any issues.
I just uploaded over 100GB of my backup. I didn't solve the main problem. But a viable workaround is to throttle the upload speed to 8MB/s. I noticed that the internet only breaks when the upload speed is at the maximum (around 11MB/s).
I use tcgui to throttle it.
tc qdisc add dev wlp1s0 root netem rate 8mbps
It's not perfect, but it seems to work, so I'm fine with having a solution and being able to continue using Manjaro.
Thank you for your help! Perhaps eventually I might find a better solution, then I will update this thread.
:-D Ok, I get it :-D I am still not sure if it's a software or hardware problem (or both). But it seems that the OS does not "get" that it is offline. Everything is as if nothing has happened, that's why I haven't found any logs.
Eventually I will follow your advice and search a bit deeper. But for now, I'm super happy with my solution to throttle the bandwidth to 8MB. Before the computer was really slow and unresponsive when I uploaded with full speed (about 11MB/s), even when the computer was new. Is this normal? The problem never arises when I download. I have a 2 years old MiniPC (Quad Core i7-8650U, 16MB RAM). Not the strongest computer, so I thought it's perhaps normal.
But now I think that something was broken at these speeds, and now it's even more broken than before. However, with the 8MB throttle, I can upload as much as I want and the computer is responsive, and I can continue working normally. So I don't need any other solution now.
Thank you again for your help and your suggestions!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.