-
Notifications
You must be signed in to change notification settings - Fork 92
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
Bug in Utils.get_all_local_ipv4_addresses()
#646
Comments
The Error comes from This looks like the system has no ipv4 address. Does it happen directly after a system start and the ip stack is not completely initialized? If we just catch the error, should the function just return an empty list? |
Hm. No. The basic system ist running for some weeks now and I do have an IP4 adress. Yesterday the error occurred twice while using the admin interface (looking at logics, logs and items) |
I caught the exception and log a warning. Could you elaborate on your environment (os, python version, ...)? |
This is the log entry:
Running Python 3.9.2 on Linux (5.10.0-27-amd64 #1 SMP Debian 5.10.205-2 (2023-12-31) x86_64 GNU/Linux) |
Ok, there seems to be an interface that has no ipv4 address (AF_INET, which is 2) and no ipv6 address (AF_INET6, which is 10) I added further info to the logging. Could you test again and post the (multiline) log entry? |
This results in:
|
I have pushed a fix (and removed the logging) |
There seems to be a bug in
Utils.get_all_local_ipv4_addresses()
I just can not really reproduce it, it's very rare and I do not find any reason when it comes up. Since it is just a KeyError we could catch it probably very easy...
The text was updated successfully, but these errors were encountered: