{"id":859,"date":"2021-12-18T00:14:56","date_gmt":"2021-12-17T18:14:56","guid":{"rendered":"https:\/\/mellowhost.com\/blog\/?p=859"},"modified":"2021-12-18T00:14:56","modified_gmt":"2021-12-17T18:14:56","slug":"unable-to-connect-to-any-wifi-with-networkmanager-due-to-error-secrets-were-required-but-not-provided","status":"publish","type":"post","link":"https:\/\/mellowhost.com\/blog\/unable-to-connect-to-any-wifi-with-networkmanager-due-to-error-secrets-were-required-but-not-provided.html","title":{"rendered":"Unable to connect to any wifi with NetworkManager due to error: Secrets were required, but not provided"},"content":{"rendered":"\n<p>I was trying to connect to wifi from a CentOS 7 minimal installation using the following article: <\/p>\n\n\n\n<figure class=\"wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-mellowhost-blog\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"mqnVdHAxZO\"><a href=\"https:\/\/mellowhost.com\/blog\/how-to-connect-centos-server-to-the-internet-using-usb-wifi-adapter.html\">How to connect CentOS Server to the Internet using USB Wifi Adapter?<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;How to connect CentOS Server to the Internet using USB Wifi Adapter?&#8221; &#8212; Mellowhost Blog\" src=\"https:\/\/mellowhost.com\/blog\/how-to-connect-centos-server-to-the-internet-using-usb-wifi-adapter.html\/embed#?secret=mqnVdHAxZO\" data-secret=\"mqnVdHAxZO\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>But I started seeing the following error:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Unable to connect to any wifi with NetworkManager due to error: Secrets were required, but not provided<\/pre>\n\n\n\n<p>The reason the above error is showing is that NetworkManager is trying to reuse an existing connection, which shouldn&#8217;t happen. You need to delete the connection first. <\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">nmcli con delete &lt;SSID><\/pre>\n\n\n\n<p>Now, you can connect with the following:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">nmcli dev wifi connect &lt;SSID> password &lt;password><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I was trying to connect to wifi from a CentOS 7 minimal installation using the following article: But I started seeing the following error: The reason the above error is showing is that NetworkManager is trying to reuse an existing connection, which shouldn&#8217;t happen. You need to delete the connection first. Now, you can connect &hellip; <a href=\"https:\/\/mellowhost.com\/blog\/unable-to-connect-to-any-wifi-with-networkmanager-due-to-error-secrets-were-required-but-not-provided.html\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Unable to connect to any wifi with NetworkManager due to error: Secrets were required, but not provided&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[12,237],"tags":[651,622,564],"_links":{"self":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/859"}],"collection":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/comments?post=859"}],"version-history":[{"count":1,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/859\/revisions"}],"predecessor-version":[{"id":861,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/859\/revisions\/861"}],"wp:attachment":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/media?parent=859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/categories?post=859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/tags?post=859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}