-
Notifications
You must be signed in to change notification settings - Fork 4
Network Disconnect cannot be reversed on Raspbian #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'll take a look at see if I can reproduce this issue. To help troubleshoot this some additional info might help:
|
@andni233, I use Raspberry Pi 3 Model B Rev 1.2 with the "raspbian_image_2021-08-29-znail-lite" posted under release v0.6.0. The only difference from the release is that I modified the "update-network-interfaces" file to assign a static IP to br0. I attached the modified file along with the logs. dmesg.log |
I find that this page contains some useful HW info on the different Raspberry Pi models: https://github.com/mvp/uhubctl#raspberry-pi-b2b3b Might possibly provide a clue on what's going on. I've got quite a busy schedule the coming days, so we'll see if I have time to testing out this bug. I think I should have a model 3 laying around here somewhere... |
I took another closer look on the kernel log, and I can see that it looks like a USB network interface do show up again:
However, the Lastly, I saw this early in your kernel log:
Have you tried using a different power supply? |
@Risca, I replaced the power supply but still cannot reconnect the eth1 port via Web GUI. Unplugging and plugging in of the USB adapter did not help either. You are correct, the Reconnect command actually enables USB adapter but for some reason, the eth1 port does not come up (which is correctly reflected by ifconfig output). I can force it up with either 'sudo ip link set eth1 up' or 'sudo ifconfig eth1 up' command; however, it does not restore the bridge functionality:
When I try to restart networking, the command 'sudo /etc/init.d/networking restart' fails
However, the bridge comes back to life despite the restart failure:
Maybe the UGREEN USB network card has certain issues with the driver. I do not have another card from a different vendor to check. |
This is the code that handles the re-connect call: <cut>
_usb.enable_all_usb_ports()
while not self._poll_network_interface("eth1"):
time.sleep(0.1)
self.tc.apply(self.tc.disciplines)
def _poll_network_interface(self, name):
if os.getenv("ZNAIL_FORCE_INTERFACE_UP", False):
return True
return name in os.listdir("/sys/class/net/") where @abirger, could you check if "eth1" show up in /sys/class/net/ after reconnecting? Maybe the kernel has changed some names there and we're not reacting to it as we should 🤔 EDIT: There could be some timing issues as well. I.e., we have to wait a bit longer for some adapters to work correctly before we can issue any |
@Risca , the "eth1" seems identical tome before and after disconnect/reconnect operation. Before disconnecting:
After disconnecting:
After reconnecting:
|
Clicking on "Network Disconnect" button indeed shuts down the device-facing network adapter (eth1). However, clicking on the "Network Reconnect" button does not bring it back up despite the message that the changes were applied successfully. ifconfig does not show eth1 anymore, packets are not going through, and it cannot be fixed by anything other than reboot.
Have not checked that feature on Armbian, maybe it works there.
The text was updated successfully, but these errors were encountered: