Error: Activating connection failed, check connection settings - While attempting to change IP address
See original GitHub issueDescribe the issue you are experiencing
Here is the original issue, which is now closed: https://github.com/home-assistant/supervisor/issues/3610
I’m still having the same issue even after switching to beta and upgrading Supervisor to 2022.06.1.
[core-ssh ~]$ ha network update wlan0 --ipv4-method static --ipv4-address 192.168.0.89/24
Error: Activating connection failed, check connection settings.
With debug logging:
[core-ssh ~]$ ha network update wlan0 --ipv4-method static --ipv4-address 192.168.0.89/24 --log-level debug
DEBU[0000] Adding homedir to searchpath homedir=/root
INFO[0000] No configfile found
DEBU[0000] Debug flags apiToken=3e97abfda438e8034e19be54bf829b748fde369ae2da1e588ddde328ca1d1cd5fec03f9caa900d6504cb0abb206d2265d9a1c6334d0aafe4 cfgFile= endpoint=supervisor logLevel=debug noProgress=false rawJSON=false
DEBU[0000] network update args="[wlan0]"
DEBU[0000] [GenerateURI] base=supervisor command="interface/{interface}/update" section=network
DEBU[0000] [GenerateURI] Result uri="http://supervisor/network/interface/{interface}/update" url="http://supervisor/network/interface/%7Binterface%7D/update" url(string)="http://supervisor/network/interface/{interface}/update"
DEBU[0000] Request body options="map[enabled:true ipv4:map[address:[192.168.0.89/24] method:static]]"
DEBU[0000] Response body="{\"result\": \"error\", \"message\": \"Activating connection failed, check connection settings.\"}" fields.time=136.189609ms headers="map[Content-Length:[90] Content-Type:[application/json; charset=utf-8] Date:[Mon, 27 Jun 2022 20:02:31 GMT] Server:[Python/3.9 aiohttp/3.8.1]]" received-at="2022-06-27 15:02:31.436911017 -0500 CDT m=+0.145869673" request="&{POST http://supervisor/network/interface/wlan0/update HTTP/1.1 1 1 map[Accept:[application/json] Authorization:[Bearer 3e97abfda438e8034e19be54bf829b748fde369ae2da1e588ddde328ca1d1cd5fec03f9caa900d6504cb0abb206d2265d9a1c6334d0aafe4] Content-Type:[application/json] User-Agent:[go-resty/2.7.0 (https://github.com/go-resty/resty)]] 0x40001a1830 0x2a24d0 73 [] false supervisor map[] map[] <nil> map[] <nil> <nil> <nil> 0x4000138048}" status="400 Bad Request" statuscode=400
Error: Activating connection failed, check connection settings.
What is the used version of the Supervisor?
2022.6.1
What type of installation are you running?
Home Assistant OS
Which operating system are you running on?
Home Assistant Operating System
What is the version of your installed operating system?
8.2
What version of Home Assistant Core is installed?
2022.6.7
Steps to reproduce the issue
Go to Configuration -> System -> Network Expand IPv4 under Configure network interfaces. Select Static instead of DHCP and try to save.
Anything in the Supervisor logs that might be useful for us?
Supervisor log:
22-06-27 15:17:39 INFO (MainThread) [supervisor.api.middleware.security] /network/interface/wlan0/update access from core_ssh
22-06-27 15:17:39 DEBUG (MainThread) [supervisor.host.network] Create new configuration for wlan0
22-06-27 15:17:39 DEBUG (MainThread) [supervisor.utils.dbus] ...arg ('a{sa{sv}}', {'connection': {'id': <dbus_next.signature.Variant ('s', Supervisor wlan0)>, 'type': <dbus_next.signature.Variant ('s', 802-11-wireless)>, 'uuid': <dbus_next.signature.Variant ('s', 5458ee90-5af7-4cd7-a927-c9dee018498a)>, 'llmnr': <dbus_next.signature.Variant ('i', 2)>, 'mdns': <dbus_next.signature.Variant ('i', 2)>, 'interface-name': <dbus_next.signature.Variant ('s', wlan0)>}, 'ipv4': {'method': <dbus_next.signature.Variant ('s', manual)>, 'dns': <dbus_next.signature.Variant ('au', [16820416])>, 'address-data': <dbus_next.signature.Variant ('aa{sv}', [{'address': <dbus_next.signature.Variant ('s', 192.168.0.89)>, 'prefix': <dbus_next.signature.Variant ('u', 24)>}])>, 'gateway': <dbus_next.signature.Variant ('s', 192.168.0.1)>}, 'ipv6': {'method': <dbus_next.signature.Variant ('s', auto)>}, '802-11-wireless': {'assigned-mac-address': <dbus_next.signature.Variant ('s', preserve)>, 'ssid': <dbus_next.signature.Variant ('ay', b'TheBatcave')>, 'mode': <dbus_next.signature.Variant ('s', infrastructure)>, 'powersave': <dbus_next.signature.Variant ('i', 1)>, 'security': <dbus_next.signature.Variant ('s', 802-11-wireless-security)>}, '802-11-wireless-security': {'auth-alg': <dbus_next.signature.Variant ('s', open)>, 'key-mgmt': <dbus_next.signature.Variant ('s', wpa-psk)>}}) (type <class 'tuple'>)
22-06-27 15:17:39 DEBUG (MainThread) [supervisor.utils.dbus] ...arg ('o', '/org/freedesktop/NetworkManager/Devices/4') (type <class 'tuple'>)
22-06-27 15:17:39 DEBUG (MainThread) [supervisor.utils.dbus] ...arg ('o', '/') (type <class 'tuple'>)
22-06-27 15:17:39 DEBUG (MainThread) [supervisor.utils.dbus] Call org.freedesktop.NetworkManager.AddAndActivateConnection on /org/freedesktop/NetworkManager
22-06-27 15:17:40 DEBUG (MainThread) [supervisor.utils.dbus] Connect to D-Bus: org.freedesktop.NetworkManager - /org/freedesktop/NetworkManager/Settings/20
22-06-27 15:17:40 DEBUG (MainThread) [supervisor.utils.dbus] Call org.freedesktop.NetworkManager.Settings.Connection.GetSettings on /org/freedesktop/NetworkManager/Settings/20
22-06-27 15:17:40 DEBUG (MainThread) [supervisor.utils.dbus] Connect to D-Bus: org.freedesktop.NetworkManager - /org/freedesktop/NetworkManager/ActiveConnection/31
22-06-27 15:17:40 DEBUG (MainThread) [supervisor.utils.dbus] ...arg org.freedesktop.NetworkManager.Connection.Active (type <class 'str'>)
22-06-27 15:17:40 DEBUG (MainThread) [supervisor.utils.dbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/ActiveConnection/31
22-06-27 15:17:40 DEBUG (MainThread) [supervisor.host.network] add_and_activate_connection returns /org/freedesktop/NetworkManager/ActiveConnection/31
22-06-27 15:17:40 DEBUG (MainThread) [supervisor.utils.dbus] Install match for signal org.freedesktop.NetworkManager.Connection.Active.StateChanged
22-06-27 15:17:40 DEBUG (MainThread) [supervisor.utils.dbus] ...arg org.freedesktop.NetworkManager.Connection.Active (type <class 'str'>)
22-06-27 15:17:40 DEBUG (MainThread) [supervisor.utils.dbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/ActiveConnection/31
22-06-27 15:17:40 DEBUG (MainThread) [supervisor.utils.dbus] Signal message received [1, 0], org.freedesktop.NetworkManager.Connection.Active.StateChanged object /org/freedesktop/NetworkManager/ActiveConnection/31
22-06-27 15:17:40 DEBUG (MainThread) [supervisor.host.network] Active connection state changed to 1
22-06-27 15:17:40 DEBUG (MainThread) [supervisor.utils.dbus] Signal message received [4, 3], org.freedesktop.NetworkManager.Connection.Active.StateChanged object /org/freedesktop/NetworkManager/ActiveConnection/31
22-06-27 15:17:40 DEBUG (MainThread) [supervisor.host.network] Active connection state changed to 4
### Additional information
_No response_
Issue Analytics
- State:
- Created a year ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
Hassio WIreless config - Home Assistant OS
I just tried the nmcli solution and had the following message: Error: connection activation failed: (7) Secrets were required, ...
Read more >Fix: Activation of Network Connection Failed in Linux
Solution 1: Disable/Enable the Network Connection · Open Settings of your system and in the left pane of the window, click on Network....
Read more >Error message when you set an IP address - Windows Server
This article provides a solution to an error that occurs when you try to set an IP address on a network adapter. Applies...
Read more >"Failed to Obtain IP Address": How to Fix an IP ...
If you're seeing this error while trying to connect to a corporate Wi-Fi network, it's likely that you need IT approval before you...
Read more >Software Activation Troubleshooting Guide - FSActivate
This error means there was a problem with your Internet connection. Check to make sure that the computer is able to access the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, I have exactly the same issue. Does anybody have a solution that does not include fresh installation?
There hasn’t been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.