unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#40682: frozen installer in WiFi section -guix 1.1.0
@ 2020-04-17 14:34 SergioBG BG
  2020-04-17 20:51 ` Ludovic Courtès
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: SergioBG BG @ 2020-04-17 14:34 UTC (permalink / raw)
  To: 40682

[-- Attachment #1: Type: text/plain, Size: 167 bytes --]

Hi, the installer frozen when connect with wifi.
The driver ath9k_htc is loaded but the installer is frozen.
Does not ask for the wifi password.
Sorry for my english.

[-- Attachment #2: Type: text/html, Size: 219 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#40682: frozen installer in WiFi section -guix 1.1.0
  2020-04-17 14:34 bug#40682: frozen installer in WiFi section -guix 1.1.0 SergioBG BG
@ 2020-04-17 20:51 ` Ludovic Courtès
       [not found]   ` <CAGeSOFhM858F8vBRTO1tFHPyTQCRjBN-cmvtUExT-mJ+H7oNVw@mail.gmail.com>
  2020-05-11 18:08 ` bug#40682: Installer hangs while connecting to WiFi network Jacek Podkanski via web
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 15+ messages in thread
From: Ludovic Courtès @ 2020-04-17 20:51 UTC (permalink / raw)
  To: SergioBG BG; +Cc: 40682

Hi SergioBG,

SergioBG BG <sergiobgar@gmail.com> skribis:

> Hi, the installer frozen when connect with wifi.
> The driver ath9k_htc is loaded but the installer is frozen.
> Does not ask for the wifi password.

Could you send a picture of the installer WiFi screen when it’s frozen?

Could you then hit ctrl-alt-f12 and take a picture of what’s printed
there?

> Sorry for my english.

No problem.  If you prefer you can write in French, German, or Spanish
and someone will be able to answer you (developers speak other languages
too but these are the most common.)

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#40682: frozen installer in WiFi section -guix 1.1.0
       [not found]   ` <CAGeSOFhM858F8vBRTO1tFHPyTQCRjBN-cmvtUExT-mJ+H7oNVw@mail.gmail.com>
@ 2020-04-18 23:30     ` Ludovic Courtès
  2020-04-19  9:57       ` Mathieu Othacehe
  0 siblings, 1 reply; 15+ messages in thread
From: Ludovic Courtès @ 2020-04-18 23:30 UTC (permalink / raw)
  To: SergioBG BG; +Cc: 40682

[-- Attachment #1: Type: text/plain, Size: 612 bytes --]

Hi,

SergioBG BG <sergiobgar@gmail.com> skribis:

> Here the screenshot of Frozen.

Thanks.  Looking at the screenshot, it would seem that the installer is
stuck somewhere in ‘connman-connect-with-auth’, but it’s hard to tell
why/where.

I was able to reproduce it in ‘guix system vm’ with the patch below.

Cc: Mathieu in case they have an idea…

To be continued…

Thanks,
Ludo’.

PS: Nyacc contains libdbus bindings as an example of its FFI tooling,
    perhaps we should give it a try and use it here.  It could be more
    robust than piping through ‘connmanctl’.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 2643 bytes --]

diff --git a/gnu/system/install.scm b/gnu/system/install.scm
index 0965c4d237..826f6d356d 100644
--- a/gnu/system/install.scm
+++ b/gnu/system/install.scm
@@ -322,6 +322,52 @@ the user's target storage device rather than on the RAM disk."
     "Load the @code{uvesafb} kernel module with the right options.")
    (default-value #t)))
 
+(define (simulated-wifi-shepherd-services hostapd)
+  (define config
+    (plain-file "hostapd.conf" "\
+interface=wlan1
+ssid=Test Net
+channel=1\n"))
+
+  (list (shepherd-service
+         (provision '(hostapd))
+         (requirement '(mac-sim-module unblocked-wifi))
+         (start #~(make-forkexec-constructor
+                   (list #$(file-append hostapd "/sbin/hostapd")
+                         #$config)
+                   #:log-file "/var/log/hostapd.log"))
+         (stop #~(make-kill-destructor)))
+        (shepherd-service
+         (provision '(unblocked-wifi))
+         (requirement '(mac-sim-module))
+         (start #~(lambda _
+                    (invoke #$(file-append util-linux "/sbin/rfkill")
+                            "unblock" "0")
+                    (invoke #$(file-append util-linux "/sbin/rfkill")
+                            "unblock" "1")))
+         (one-shot? #t))
+        (shepherd-service
+         (provision '(mac-sim-module))
+         (requirement '(term-tty3))
+         (modules '((guix build utils)))
+         (start #~(lambda _
+                    ;; XXX: We can't use 'load-linux-module*' here because it
+                    ;; expects a flat module directory.
+                    (setenv "LINUX_MODULE_DIRECTORY"
+                            "/run/booted-system/kernel/lib/modules")
+                    (invoke #$(file-append kmod "/bin/modprobe")
+                            "mac80211_hwsim")))
+         (one-shot? #t))))
+
+(define simulated-wifi-service-type
+  (service-type
+   (name 'simulated-wifi)
+   (extensions
+    (list (service-extension shepherd-root-service-type
+                             simulated-wifi-shepherd-services)))
+   (default-value hostapd)
+   (description "Run hostapd to simulate WiFi connectivity.")))
+
 (define %installation-services
   ;; List of services of the installation system.
   (let ((motd (plain-file "motd" "
@@ -366,6 +412,8 @@ Access documentation at any time by pressing Alt-F2.\x1b[0m
           ;; The usual services.
           (syslog-service)
 
+          (service simulated-wifi-service-type)
+
           ;; The build daemon.  Register the default substitute server key(s)
           ;; as trusted to allow the installation process to use substitutes by
           ;; default.

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* bug#40682: frozen installer in WiFi section -guix 1.1.0
  2020-04-18 23:30     ` Ludovic Courtès
@ 2020-04-19  9:57       ` Mathieu Othacehe
  2020-04-19 22:26         ` Ludovic Courtès
  0 siblings, 1 reply; 15+ messages in thread
From: Mathieu Othacehe @ 2020-04-19  9:57 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 40682


Hey,

I believe this is fixed by ea6594e0 on master.

This is indeed very fragile, and converting it to D-Bus would be the
right move. I will have a look to Nyacc! Writing a clean Guile-Dbus
library could also be a nice and valuable GSoC/Outreachy project.

In the meantime, could we merge your patch so that we have a hidden
simulated Wifi network available, that can be used in the installer
tests?

Thanks,

Mathieu

^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#40682: frozen installer in WiFi section -guix 1.1.0
  2020-04-19  9:57       ` Mathieu Othacehe
@ 2020-04-19 22:26         ` Ludovic Courtès
  2020-04-20 17:20           ` Mathieu Othacehe
  0 siblings, 1 reply; 15+ messages in thread
From: Ludovic Courtès @ 2020-04-19 22:26 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: 40682

Hi,

Mathieu Othacehe <m.othacehe@gmail.com> skribis:

> I believe this is fixed by ea6594e0 on master.

Good catch!

> This is indeed very fragile, and converting it to D-Bus would be the
> right move. I will have a look to Nyacc! Writing a clean Guile-Dbus
> library could also be a nice and valuable GSoC/Outreachy project.

Yes, it would be ideal to have a pure-Scheme implementation, but in the
meantime, perhaps generated bindings via Nyacc could work well enough.

> In the meantime, could we merge your patch so that we have a hidden
> simulated Wifi network available, that can be used in the installer
> tests?

I’ve now pushed it as two proper service types: ‘hostapd-service-type’
and ‘simulated-wifi-service-type’, the latter using parts of the former.

Note that currently the installer tests bypass connectivity checks
altogether, but perhaps we can still check what comes before, namely
network selection?

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#40682: frozen installer in WiFi section -guix 1.1.0
  2020-04-19 22:26         ` Ludovic Courtès
@ 2020-04-20 17:20           ` Mathieu Othacehe
  2020-04-20 19:40             ` SergioBG BG
  2020-04-21 14:50             ` Ludovic Courtès
  0 siblings, 2 replies; 15+ messages in thread
From: Mathieu Othacehe @ 2020-04-20 17:20 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 40682


Hey,

> I’ve now pushed it as two proper service types: ‘hostapd-service-type’
> and ‘simulated-wifi-service-type’, the latter using parts of the former.
>
> Note that currently the installer tests bypass connectivity checks
> altogether, but perhaps we can still check what comes before, namely
> network selection?

Yes, maybe we can skip only the connectivity check but still try to
connect to some network. I will have a look later this week.

Almost unrelated topic, it would be nice to provide an interface where
users can grab a nightly/periodic build of the installer and test the
latest fixes. We are already have "usb-image" and "iso9660-image" jobs
in Cuirass. So it could be a link allowing to download the latest
successful build or so.

Thanks,

Mathieu

^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#40682: frozen installer in WiFi section -guix 1.1.0
  2020-04-20 17:20           ` Mathieu Othacehe
@ 2020-04-20 19:40             ` SergioBG BG
  2020-04-21 14:50             ` Ludovic Courtès
  1 sibling, 0 replies; 15+ messages in thread
From: SergioBG BG @ 2020-04-20 19:40 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: 40682

[-- Attachment #1: Type: text/plain, Size: 966 bytes --]

This is good idea for users.

El lun., 20 abr. 2020 a las 19:20, Mathieu Othacehe (<m.othacehe@gmail.com>)
escribió:

>
> Hey,
>
> > I’ve now pushed it as two proper service types: ‘hostapd-service-type’
> > and ‘simulated-wifi-service-type’, the latter using parts of the former.
> >
> > Note that currently the installer tests bypass connectivity checks
> > altogether, but perhaps we can still check what comes before, namely
> > network selection?
>
> Yes, maybe we can skip only the connectivity check but still try to
> connect to some network. I will have a look later this week.
>
> Almost unrelated topic, it would be nice to provide an interface where
> users can grab a nightly/periodic build of the installer and test the
> latest fixes. We are already have "usb-image" and "iso9660-image" jobs
> in Cuirass. So it could be a link allowing to download the latest
> successful build or so.
>
> Thanks,
>
> Mathieu
>

[-- Attachment #2: Type: text/html, Size: 1330 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#40682: frozen installer in WiFi section -guix 1.1.0
  2020-04-20 17:20           ` Mathieu Othacehe
  2020-04-20 19:40             ` SergioBG BG
@ 2020-04-21 14:50             ` Ludovic Courtès
  1 sibling, 0 replies; 15+ messages in thread
From: Ludovic Courtès @ 2020-04-21 14:50 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: 40682

Hi,

Mathieu Othacehe <m.othacehe@gmail.com> skribis:

> Almost unrelated topic, it would be nice to provide an interface where
> users can grab a nightly/periodic build of the installer and test the
> latest fixes. We are already have "usb-image" and "iso9660-image" jobs
> in Cuirass. So it could be a link allowing to download the latest
> successful build or so.

Yes, it would be nice.  We’d need to allow Cuirass to somehow publish
raw files, like Hydra does.

Ludo’.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#40682: Installer hangs while connecting to WiFi network
  2020-04-17 14:34 bug#40682: frozen installer in WiFi section -guix 1.1.0 SergioBG BG
  2020-04-17 20:51 ` Ludovic Courtès
@ 2020-05-11 18:08 ` Jacek Podkanski via web
  2020-05-11 18:49 ` bug#40682: frozen installer in WiFi section -guix 1.1.0 Leo Famulari
  2020-05-12  9:03 ` Ricardo Wurmus via web
  3 siblings, 0 replies; 15+ messages in thread
From: Jacek Podkanski via web @ 2020-05-11 18:08 UTC (permalink / raw)
  To: 40682

Can you tell the user to connect to the network manually instead of getting stuck at graphical wifi connection? That would allow to bypass the problem and continue with the installation.





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#40682: frozen installer in WiFi section -guix 1.1.0
  2020-04-17 14:34 bug#40682: frozen installer in WiFi section -guix 1.1.0 SergioBG BG
  2020-04-17 20:51 ` Ludovic Courtès
  2020-05-11 18:08 ` bug#40682: Installer hangs while connecting to WiFi network Jacek Podkanski via web
@ 2020-05-11 18:49 ` Leo Famulari
  2020-05-12  8:55   ` Mathieu Othacehe
  2020-05-12  9:03 ` Ricardo Wurmus via web
  3 siblings, 1 reply; 15+ messages in thread
From: Leo Famulari @ 2020-05-11 18:49 UTC (permalink / raw)
  To: SergioBG BG; +Cc: 40682

What is the status of this bug?

If we have a fix, can we make a new installer image? There are people on
#guix having trouble getting online in the installer, and I think they
are hitting this issue.




^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#40682: frozen installer in WiFi section -guix 1.1.0
  2020-05-11 18:49 ` bug#40682: frozen installer in WiFi section -guix 1.1.0 Leo Famulari
@ 2020-05-12  8:55   ` Mathieu Othacehe
  2022-10-08  3:07     ` bug#40682: Installer hangs while connecting to WiFi network Maxim Cournoyer
  0 siblings, 1 reply; 15+ messages in thread
From: Mathieu Othacehe @ 2020-05-12  8:55 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 40682


Hey Leo,

> If we have a fix, can we make a new installer image? There are people on
> #guix having trouble getting online in the installer, and I think they
> are hitting this issue.

This bug has been fixed with ea6594e0. However, I left the ticket open
because I'm supposed to add some testing using the hostapd service Ludo
proposed.

Regarding providing a new image, I proposed a patch here[1] so that
Cuirass can host fresh installation images built upon master.

Thanks,

Mathieu

[1]: https://lists.gnu.org/archive/html/guix-patches/2020-05/msg00001.html




^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#40682: Installer hangs while connecting to WiFi network
  2020-04-17 14:34 bug#40682: frozen installer in WiFi section -guix 1.1.0 SergioBG BG
                   ` (2 preceding siblings ...)
  2020-05-11 18:49 ` bug#40682: frozen installer in WiFi section -guix 1.1.0 Leo Famulari
@ 2020-05-12  9:03 ` Ricardo Wurmus via web
  3 siblings, 0 replies; 15+ messages in thread
From: Ricardo Wurmus via web @ 2020-05-12  9:03 UTC (permalink / raw)
  To: 40682

Alternative URL: https://issues.guix.gnu.org/40993





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#40682: Installer hangs while connecting to WiFi network
  2020-05-12  8:55   ` Mathieu Othacehe
@ 2022-10-08  3:07     ` Maxim Cournoyer
  2022-11-03  9:43       ` zimoun
  0 siblings, 1 reply; 15+ messages in thread
From: Maxim Cournoyer @ 2022-10-08  3:07 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: 40682, SergioBG BG, Leo Famulari

Hello,

Mathieu Othacehe <othacehe@gnu.org> writes:

> Hey Leo,
>
>> If we have a fix, can we make a new installer image? There are people on
>> #guix having trouble getting online in the installer, and I think they
>> are hitting this issue.
>
> This bug has been fixed with ea6594e0. However, I left the ticket open
> because I'm supposed to add some testing using the hostapd service Ludo
> proposed.

Are these still in your plans?  Otherwise let's close this old,
high severity bug.

> Regarding providing a new image, I proposed a patch here[1] so that
> Cuirass can host fresh installation images built upon master.

This has been implemented for a while, congrats!

-- 
Thanks,
Maxim




^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#40682: Installer hangs while connecting to WiFi network
  2022-10-08  3:07     ` bug#40682: Installer hangs while connecting to WiFi network Maxim Cournoyer
@ 2022-11-03  9:43       ` zimoun
  2022-11-03 11:22         ` Mathieu Othacehe
  0 siblings, 1 reply; 15+ messages in thread
From: zimoun @ 2022-11-03  9:43 UTC (permalink / raw)
  To: Maxim Cournoyer; +Cc: Mathieu Othacehe, Leo Famulari, SergioBG BG, 40682

Hi,

On Fri, 07 Oct 2022 at 23:07, Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote:

>> This bug has been fixed with ea6594e0. However, I left the ticket open
>> because I'm supposed to add some testing using the hostapd service Ludo
>> proposed.
>
> Are these still in your plans?  Otherwise let's close this old,
> high severity bug.

Friendly ping. :-)


Cheers,
simon




^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#40682: Installer hangs while connecting to WiFi network
  2022-11-03  9:43       ` zimoun
@ 2022-11-03 11:22         ` Mathieu Othacehe
  0 siblings, 0 replies; 15+ messages in thread
From: Mathieu Othacehe @ 2022-11-03 11:22 UTC (permalink / raw)
  To: zimoun; +Cc: 40682-done, SergioBG BG, Maxim Cournoyer, Leo Famulari


Hey,

>> Are these still in your plans?  Otherwise let's close this old,
>> high severity bug.
>
> Friendly ping. :-)

Yeah, we didn't have other reports regarding WiFi connections, so lets
close it.

Thanks,

Mathieu




^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2022-11-03 11:24 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-17 14:34 bug#40682: frozen installer in WiFi section -guix 1.1.0 SergioBG BG
2020-04-17 20:51 ` Ludovic Courtès
     [not found]   ` <CAGeSOFhM858F8vBRTO1tFHPyTQCRjBN-cmvtUExT-mJ+H7oNVw@mail.gmail.com>
2020-04-18 23:30     ` Ludovic Courtès
2020-04-19  9:57       ` Mathieu Othacehe
2020-04-19 22:26         ` Ludovic Courtès
2020-04-20 17:20           ` Mathieu Othacehe
2020-04-20 19:40             ` SergioBG BG
2020-04-21 14:50             ` Ludovic Courtès
2020-05-11 18:08 ` bug#40682: Installer hangs while connecting to WiFi network Jacek Podkanski via web
2020-05-11 18:49 ` bug#40682: frozen installer in WiFi section -guix 1.1.0 Leo Famulari
2020-05-12  8:55   ` Mathieu Othacehe
2022-10-08  3:07     ` bug#40682: Installer hangs while connecting to WiFi network Maxim Cournoyer
2022-11-03  9:43       ` zimoun
2022-11-03 11:22         ` Mathieu Othacehe
2020-05-12  9:03 ` Ricardo Wurmus via web

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).