When trying to transfer a large file to my Ubuntu 20.04 LTS box via rsync it will drop the wifi connection.
To get it back, I have to login and do sudo service network-manager restart
This usually works. However about every 4th or 5th time, it will pop up in the GUI a prompt for the wifi password. It has the correct password already in the field but doesn't connect and acts like I've put in the wrong password and will pop up the prompt again.
I've tried turning the radio on and off with nmcli. No luck. I end up having to reboot the box and then it connects to my wifi automatically on boot.
I've looked through journalclt -u NetworkManager
and only found this unhelpful information:
Nov 08 09:07:18 mybox NetworkManager[86633]: <warn> [1636380438.9034] sup-iface[0x559c05ff8110,wlx8416f907f777]: connection disconnected (reason 2)
Nov 08 09:07:20 mybox NetworkManager[86633]: <warn> [1636380440.7353] device (wlx8416f907f777): no secrets: No agents were available for this request.
Nov 08 09:07:20 mybox NetworkManager[86633]: <info> [1636380440.7361] manager: NetworkManager state is now DISCONNECTED
Nov 08 09:07:20 mybox NetworkManager[86633]: <warn> [1636380440.7391] device (wlx8416f907f777): Activation: failed for connection 'mywifi'
Is there some way I can get it to reconnect to the wifi without rebooting? Also it would be ideal if I could prevent this problem and have it maintain a connection to the wifi when transferring large (1GB+) files to it (I'll note that it doesn't have a problem sending large files only receiving them).
Thanks in advance.