From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:5f26::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id KDjaJAMPhmXBOgEAkFu2QA (envelope-from ) for ; Fri, 22 Dec 2023 23:34:43 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id uJUjIAMPhmX6PgEAqHPOHw (envelope-from ) for ; Fri, 22 Dec 2023 23:34:43 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=CO64J0Mz; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1703284483; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=r7tpDYZucv/c3OoNhD6xMUFOA8uGWpXFd5/+Ukt0wRo=; b=fq4T8+QYzykyBMhBfVEnzkQBVNOawZyvdQzTaevnFhXrVwx5gTjaStYdasgqWzmjRTuonF 8nWg4bOyvDILrwtHRgzNwjVkn1bzVB7evMw2iCX4F95OYZ7j0rBdrcPFu5UyREqx4owlJw F3Bd4AWc3rYjtsJ8qxMWUYE6GsidpQiu/ye5XE/Q4hF6oq3BWi9ZzIoGcLSW1fDnY5PhzJ emHgEUBxmlO8qk8HszSQBI0+Z34nh0hSNFRMe+agEdj8YRx3n1azO/simtsgh4l0vE4GmH 5qT9BU5hubEIACBu32NZgGAnRCXuceMcocA7w3y7h4jDwa2gx8QqVnPOwn7Ong== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1703284483; a=rsa-sha256; cv=none; b=WFTnqR8EkMpFwY3DTosqplol8dSdaqf8UBz2ABKw14g71jGxDoWfdmU8gDhFDiC6A7RvmK GrgSFx+a8LJ/eYGVkiN07gCa8axDTZsbhcmwoaH6Ih9EWv5npPFvnQPwKvoxHiQLyRFV2Y /4zzATJaR8+tNWUvlaVJybycuD3TXjrdtGkE0l3q0JitDHc/dKSCR4u2sNs0mzMAVBaiKX rLZRbBcKhFUqGJiR9nCRAz425JyAjcA468WJ2CHxTohf5N91nVGlLSn9l3WVJ1MJd96pqH 2+uJwPkDHb/f2wrzjbkBIdHCIiIEMehsf74vpZoSWTqbIN60ON9YQnK30oifhg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=CO64J0Mz; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3CA973875E for ; Fri, 22 Dec 2023 23:34:43 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rGo5v-0004nh-RM; Fri, 22 Dec 2023 17:34:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rGo5u-0004nU-3T for help-guix@gnu.org; Fri, 22 Dec 2023 17:34:14 -0500 Received: from koszko.org ([93.95.227.159]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rGo5r-0001ZE-WF for help-guix@gnu.org; Fri, 22 Dec 2023 17:34:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=koszko.org; s=mail; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject :Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=r7tpDYZucv/c3OoNhD6xMUFOA8uGWpXFd5/+Ukt0wRo=; b=CO64J0MzWj+oRmQzzG7uYNk0dR nvUXpQz7iGfcVGda4GYaVMzQXybdCbj3WlVNL8mGMVqI1WxmJaej5dY8skPYVQmcPh3vPP9Q9cuVc J2+kpFhqO5jkHeQttkq8asthMsppv/6sA+ZnMt3dWev0uqxm3WKE6TazZIEWhn6aZMTgtgbnX4e5f Qtm9nqvhMElwGh6Is1++2V4GUKFnehkGxyv9h+cD09gsenUOMJUY8GtdLqeIDpJFJaB7VMVXnZqy7 GUsKPFkESHih74WPFhkEOEoiGyBuil6ztBJ5BvZtQUNPle2dt3wBb2UgopPCxqHbiZQOoUHmESK7r e3ZCHxbgYcAya/NXRysSb8mvbGww5JzNnDtVMtJRoNnsE0L/wn/iB6hdXyvo3fl7N1PlnrHH3Ai+d QkVYAunBqaN/W+x68aL1K5pCIiEnDO710kbPSom4R9wQGrU3TGwiimZPfvLwjgfRXfgrW0kLxsQiP zp872RBV5fE232t2wSPwW5qd6wZoj03lezWDTqkUpcAGVsXOe1RAehIiKdy88M2g7sUVJnHJRBNb8 J7q+/GN/bnsVqfJNIp/767uK/lnrJDwaymp9D5kgGWMtSHXLSweFYS+sGJA7TH/unYQGJGB52RgEA xagEQCkiychw8SlkQXY5THZLOb45h52PmpGXvq9HM=; Received: from [91.231.169.167] (helo=localhost) by koszko.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.1) (envelope-from ) id 1rGo5o-0006aq-2z; Fri, 22 Dec 2023 23:34:09 +0100 Date: Fri, 22 Dec 2023 23:34:04 +0100 To: Oleander via Cc: Oleander <7059548@protonmail.com> Subject: Re: "Could not connect to wpa_supplicant: (nil) - re-trying" error when trying to start wpa-cli. Message-ID: <20231222233404.76e5c64c.koszko@koszko.org> In-Reply-To: References: X-Mailer: Claws Mail 4.1.1 (GTK 3.24.37; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/OHrEGgkjEf6dlWIPVajR36u"; protocol="application/pgp-signature"; micalg=pgp-sha256 Received-SPF: pass client-ip=93.95.227.159; envelope-from=koszko@koszko.org; helo=koszko.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Wojtek Kosior From: Wojtek Kosior via Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -8.80 X-Spam-Score: -8.80 X-Migadu-Queue-Id: 3CA973875E X-Migadu-Scanner: mx11.migadu.com X-TUID: J9ZnwYp+oATz --Sig_/OHrEGgkjEf6dlWIPVajR36u Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > Hi, > has anyone ever got this error when trying to start wpa_cli? >=20 > "Could not connect to wpa_supplicant: (nil) - re-trying" Hi there. Although I don't actually use wpa_cli on Guix, I'll try to help. In your config file, you have: > ctrl_interface=3D/run/wpa_supplicant IIUC, wpa_cli has the default ctrl socket path set to /var/run/wpa_supplicant. If you run it as wpa_cli -p/run/wpa_supplicant does it work? You might also try changing the socket path in your config file. Besides, you have this line in your system config > (config-file "/etc/wpa_supplicant/wpa_supplicant.conf") While this might work, the recommended practice in Guix is not to write/modify configuration files under /etc. Instead, you can supply the contents of that file through the system configuration itself :) Assuming you're keeping your system.scm in ~/proj/my-guix-system-config/, you can write your wpa_supplicant configuration as ~/proj/my-guix-system-config/wpa_supplicant.conf and modify the aforementioned line to > (config-file (local-file "./wpa_supplicant.conf")) Then, reconfigure normally with sudo guix system reconfigure ~/proj/my-guix-system-config/system.scm This way Guix will put the wpa_supplicant config somewhere under /gnu/store and tell wpa_supplicant daemon to use it. I know it might seem weird but this weirdness =E2=80=94 among others =E2=80= =94 enables up to easily reinstantiate the system on another computer if need arises. As an explanation, the `config-file` field accepts a "file-like" object. A file-like object is a concept related to G-expressions. You might want to read more about them in the manual[1]. There's also a Guix blog post explaining G-expressions if you prefer[2]. Best :) Wojtek [1] https://guix.gnu.org/manual/en/html_node/G_002dExpressions.html [2] https://guix.gnu.org/blog/2023/dissecting-guix-part-3-g-expressions/ -- (sig_start) website: https://koszko.org/koszko.html fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A follow me on Fediverse: https://friendica.me/profile/koszko/profile =E2=99=A5 R29kIGlzIHRoZXJlIGFuZCBsb3ZlcyBtZQ=3D=3D | =C3=B7 c2luIHNlcGFyYXR= lZCBtZSBmcm9tIEhpbQ=3D=3D =E2=9C=9D YnV0IEplc3VzIGRpZWQgdG8gc2F2ZSBtZQ=3D=3D | ? U2hhbGwgSSBiZWNvbWUg= SGlzIGZyaWVuZD8=3D -- (sig_end) On Fri, 22 Dec 2023 21:23:10 +0000 Oleander via wrote: > Hi, > has anyone ever got this error when trying to start wpa_cli? >=20 > "Could not connect to wpa_supplicant: (nil) - re-trying" >=20 > My /etc/wpa_supplicant/wpa_supplicant.conf: >=20 > @example > ctrl_interface=3D/run/wpa_supplicant > ctrl_interface_group=3Dwheel > update_config=3D1 >=20 > network=3D{ > ssid=3D"my-ssid" > key_mgmt=3DWPA-PSK > psk=3D"mypasswd" > } > @end example >=20 > the wpa supplicant service in my system.scm: >=20 > @example > (service wpa-supplicant-service-type > (wpa-supplicant-configuration > (config-file "/etc/wpa_supplicant/wpa_supplicant.conf") > (interface "wlp1s0"))) > @end example >=20 > After reconfiguring wpa supplicant is started and can connect to the spec= ified network but I can't run wpa_cli. >=20 > Thank you --Sig_/OHrEGgkjEf6dlWIPVajR36u Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTpcnBg48VjfIpPS0JLxSIcWnn9GgUCZYYO3AAKCRBLxSIcWnn9 Gon8AP9hq1Ff9reWnBPsvGew0eBtkaIemUt4AHGNSDADBazw2AEArrrTEJiOEQ7K +mcmE8E/RHPp9SGFeMLYw+6q9S5Lcg4= =W1VB -----END PGP SIGNATURE----- --Sig_/OHrEGgkjEf6dlWIPVajR36u--