-
Notifications
You must be signed in to change notification settings - Fork 90
org.freedesktop.DBus.Error.NoReply after ~24 hours #87
Comments
We're having the exact same problem. Only workaround we have for now is detecting when this exception is being thrown and restarting the process. We're on 2.2 and also doing:
|
Ran across the same issue, in the same context. I am importing at the top of the file same as you:
The code is running in a Docker container. When the error occurs, if I go in to the Docker container and execute the same script from a new file (test.py) the error doesn't occur suggesting it is an issue with long running scripts. Does anyone know how these loops work? Has anyone tried re-calling the DBusGMainLoop before each request to see if the connection is restored? Something like:
Or:
My issue is intermittent so hard to do any testing reliably, but it sounds like @skrawn has more regular issues? Wondering if may also be fixed by: #85' but that could restore an existing issue.
|
So none of these options worked. Has been a bit of a pain to test as it requires 24 hours each time to reproduce the error. But finally got something worth reporting. I ran python-networkmanager 2.1 and it too produced the same error after 24 hours, but only when I included a manual import of DBus:
So I then ran version 2.2 again without the manual import of the DBus mainloop (which required setting the So it seems it is not the @seveas could we merge #85 or #90 (maybe as a 2.2.1?) so we can get python-networkmanager back up and running? |
@Maggie0002 @atroche Did you ever find a solution for this? We had about 35 Raspberry Pi's running python-networkmanager all start returning the same error after about 23 days of uptime, so I'm guessing it's probably the same issue you were having. The error we're receiving is:
|
Sounds like it might be a different issue. I have rolled back to 2.1 waiting merging of one of the pull requests with the fix. |
Also facing the same issue as @onsolutionjames after an uptime of 2 weeks. |
Closing all PR's and issues prior to archiving this repository. |
I am using python-networkmanager to try to find network devices that get plugged into or remove from my system. The devices have known IP addresses, but I don't know what port the device is going to be plugged into, so I have to scan through my wired Ethernet interfaces, create a gateway connection, ping for the device, and if not found, bring the connection down and delete the connection. This process happens every 1 minute on about ~5 different Ethernet devices. After doing this for almost exactly 24 hours, I am eventually hit with a
org.freedesktop.DBus.Error.NoReply
exception:I can't really find much information about what this exception means, except that the DBus service that may have quit or crashed - as far as I can tell, NetworkManager hasn't crashed, restarted or even thrown any errors that would indicate a problem. My best guess about what is going on here is the connection to DBus main loop (?) is severed. My application includes the call to
DBusGMainLoop(set_as_default=True)
inmain()
. Is there something simple I missed here?The text was updated successfully, but these errors were encountered: