unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#30467: GuixSD fails to display login prompt on headless server
@ 2018-02-15 15:01 George myglc2 Clemmer
  2018-02-15 15:54 ` Danny Milosavljevic
  2018-03-08 14:16 ` myglc2
  0 siblings, 2 replies; 21+ messages in thread
From: George myglc2 Clemmer @ 2018-02-15 15:01 UTC (permalink / raw)
  To: 30467

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

GuixSD fails to display login prompt on headless server

This was working in (GNU Guix) 0.13.0.4589-74bea6
ae0307f7c tests: Adjust to new unbound-variable error message.

It fails in guix (GNU Guix) 0.13.0.5042-6e385.
6e385b76e gnu: mongodb: Use scons-build-system.

System Generation on g1:
     19            GNU with Linux-Libre 4.14.2 (beta)           61 2017-11-30 19:18:15
     18            GNU with Linux-Libre 4.13.12 (beta)          62 2017-11-11 13:05:56

I just noticed this or I would have reported sooner.

Can check/test on either generation if it would be of help.

TIA - George

config:

[-- Attachment #2: sys.scm --]
[-- Type: application/octet-stream, Size: 2053 bytes --]

;;; GuixSD headless server
(use-modules (gnu))
(use-service-modules networking ssh)
(use-package-modules
 admin
 base
 certs
 cups
 disk
 emacs
 freeipmi
 linux
 virtualization
 rsync
 screen
 ssh
 version-control
 wget
 xorg 
 )
(operating-system
  (host-name "g1")
  (timezone "America/New_York")
  (locale "en_US.utf8")
  (kernel-arguments '("console=ttyS1,115200"))
  ;; RAID1 root using 1 NVMe SSD + 2 HDs
  (bootloader (grub-configuration (target "/dev/nvme0n1")
				  (terminal-outputs '(console))
				  (terminal-inputs '(serial console))
				  (serial-speed 115200)				  
				  ))
  (initrd (lambda (file-systems . rest) (apply base-initrd file-systems
					       #:extra-modules '("raid1")
					       rest)))
  (mapped-devices (list (mapped-device
			 (source '("/dev/nvme0n1p1" "/dev/sda1" "/dev/sdb1"))
			 (target "/dev/md3")
			 (type raid-device-mapping))))
  (file-systems (cons (file-system
			(title 'device)
			(device "/dev/md3")
			(mount-point "/")
			(type "ext4")
			(dependencies mapped-devices))
		      %base-file-systems))
  (swap-devices '("/dev/nvme0n1p2" ))
  (users (cons* (user-account (name "g1")
			      (group "users")
			      (supplementary-groups '("wheel" "kvm"))
			      (home-directory (string-append "/home/" name)))
		(user-account (name "admin")
			      (group "users")
			      (supplementary-groups '("wheel" "kvm"))
			      (home-directory (string-append "/home/" name)))
		%base-user-accounts))
  (packages (cons*
	     cups
	     emacs-no-x-toolkit
	     emacs-guix
	     emacs-zenburn-theme
	     freeipmi
	     git
	     glibc-utf8-locales
	     gnu-make
	     mdadm
	     magit
	     nss-certs
	     openssh
	     parted
	     qemu
	     rsync
	     screen
	     smartmontools
	     tree
	     wget
	     xauth
	     %base-packages))
  (services (cons* (dhcp-client-service)
		   (ntp-service)
		   (service openssh-service-type (openssh-configuration
						  (x11-forwarding? #t)))
		   (agetty-service (agetty-configuration (tty "ttyS1")
							 (baud-rate "115200")))
		   %base-services)))

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

* bug#30467: GuixSD fails to display login prompt on headless server
  2018-02-15 15:01 bug#30467: GuixSD fails to display login prompt on headless server George myglc2 Clemmer
@ 2018-02-15 15:54 ` Danny Milosavljevic
  2018-02-15 16:23   ` Leo Famulari
  2018-02-15 21:29   ` George myglc2 Clemmer
  2018-03-08 14:16 ` myglc2
  1 sibling, 2 replies; 21+ messages in thread
From: Danny Milosavljevic @ 2018-02-15 15:54 UTC (permalink / raw)
  To: George myglc2 Clemmer; +Cc: 30467

Hi George,

Leo added a comment to the services/base.scm code:

;;; FIXME This doesn't work as expected. According to agetty(8), if this option
;;; is not passed, then the default is 'auto'. However, in my tests, when that
;;; option is selected, agetty never presents the login prompt, and the
;;; term-ttyS0 service respawns every few seconds.
                                #$@(if local-line
                                       #~(#$(match local-line
                                              ('auto "--local-line=auto")
                                              ('always "--local-line=always")
                                              ('never "-local-line=never")))
                                       #~())

So try specifying local-line ?



Also, can you try updating again?

I've pushed some agetty consolidation to guix-master (only) today.

Also, you have

 (kernel-arguments '("console=ttyS1,115200"))

AND

(agetty-service (agetty-configuration (tty "ttyS1")
							 (baud-rate "115200")))

.

Starting today, the second one will be automatically configured by %base-services.

I wonder whether we can provide a nice upgrade path for users.

Can be automatically remove duplicates from the service definitions?
Can we warn about duplicates in the final service definition?

Does agetty lock the serial port?
Or does it happily start two gettys?  The latter would be bad.

So please keep your config the same and reconfigure and let's see what happens.

In the long run please remove your agetty-service, it should automatically appear
(it recovers the settings from the "console" kernel-argument).

If it doesn't work you can always return to the previous generation so no worries!

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

* bug#30467: GuixSD fails to display login prompt on headless server
  2018-02-15 15:54 ` Danny Milosavljevic
@ 2018-02-15 16:23   ` Leo Famulari
  2018-02-15 21:29   ` George myglc2 Clemmer
  1 sibling, 0 replies; 21+ messages in thread
From: Leo Famulari @ 2018-02-15 16:23 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 30467, George myglc2 Clemmer

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

On Thu, Feb 15, 2018 at 04:54:55PM +0100, Danny Milosavljevic wrote:
> Leo added a comment to the services/base.scm code:
> 
> ;;; FIXME This doesn't work as expected. According to agetty(8), if this option
> ;;; is not passed, then the default is 'auto'. However, in my tests, when that
> ;;; option is selected, agetty never presents the login prompt, and the
> ;;; term-ttyS0 service respawns every few seconds.
>                                 #$@(if local-line
>                                        #~(#$(match local-line
>                                               ('auto "--local-line=auto")
>                                               ('always "--local-line=always")
>                                               ('never "-local-line=never")))
>                                        #~())
> 
> So try specifying local-line ?

To clarify, I meant that the documented agetty default (auto) works, but
actually specifying 'auto' in config.scm would break agetty.

So, normally I recommend ignoring this option, since it seems broken
upstream.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* bug#30467: GuixSD fails to display login prompt on headless server
  2018-02-15 15:54 ` Danny Milosavljevic
  2018-02-15 16:23   ` Leo Famulari
@ 2018-02-15 21:29   ` George myglc2 Clemmer
  2018-02-16  0:24     ` George myglc2 Clemmer
  2018-02-16  0:53     ` Danny Milosavljevic
  1 sibling, 2 replies; 21+ messages in thread
From: George myglc2 Clemmer @ 2018-02-15 21:29 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 30467

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

Hi Danny & Leo,

Thanks for the quick response!

On 02/15/2018 at 15:54 Danny Milosavljevic writes:

> Hi George,
>
> Leo added a comment to the services/base.scm code:
>
> ;;; FIXME This doesn't work as expected. According to agetty(8), if this option
> ;;; is not passed, then the default is 'auto'. However, in my tests, when that
> ;;; option is selected, agetty never presents the login prompt, and the
> ;;; term-ttyS0 service respawns every few seconds.
>                                 #$@(if local-line
>                                        #~(#$(match local-line
>                                               ('auto "--local-line=auto")
>                                               ('always "--local-line=always")
>                                               ('never "-local-line=never")))
>                                        #~())
>
> So try specifying local-line ?

Not clear what you wanted so I didn't try this.

> Also, can you try updating again?
>
> I've pushed some agetty consolidation to guix-master (only) today.

I did that, see below ...

> Also, you have
>
>  (kernel-arguments '("console=ttyS1,115200"))
>
> AND
>
> (agetty-service (agetty-configuration (tty "ttyS1")
> 							 (baud-rate "115200")))
> Starting today, the second one will be automatically configured by
> %base-services.

I removed agetty-service but agetty didn't run, see below ...

> So please keep your config the same and reconfigure and let's see what
> happens.

I did git-pull & make to get guix (GNU Guix) 0.14.0.1879-06a9 and 'guix
system reconfigure' >>> the console is still blank.  (my G36)

> In the long run please remove your agetty-service, it should automatically appear
> (it recovers the settings from the "console" kernel-argument).

Then I removed agetty-service, reconfigured and rebooted >>> the console
is still blank. (my G37, sys.scm attached)

FWIW, I don't see agetty running ...

g1@g1 ~$ pstree -a -A
shepherd --no-auto-compile/gnu/store/hjfwjz9g0jrjcyggybi
  |-dhclient -nw -pf /var/run/dhclient.pid enp4s0enp3
  |-guix-daemon --build-users-group guixbuild--
  |-mingetty --noclear tty6
  |-mingetty --noclear tty5
  |-mingetty --noclear tty4
  |-mingetty --noclear tty3
  |-mingetty --noclear tty2
  |-mingetty --noclear tty1
  |-nscd -f/gnu/store/gh3xhwgh927md5ifzdmg0cgpqc0as1sh-ns
  |   `-7*[{nscd}]
  |-ntpd -n -c/gnu/store/1l1yf5dss8r9pqxklaax32s6bkah09c
  |   `-{ntpd}
  |-sshd -D -f/gnu/store/7z8qc04s48cgzvpc77715r3ckh7qr
  [...]
  |-syslogd --rcfile/gnu/store/y5nrfbj52vlnj77iyk
  |-udevd
  `-8*[{shepherd}]

TIA - George


[-- Attachment #2: sys.scm --]
[-- Type: application/octet-stream, Size: 1965 bytes --]

;;; GuixSD headless server
(use-modules (gnu))
(use-service-modules networking ssh)
(use-package-modules
 admin
 base
 certs
 cups
 disk
 emacs
 freeipmi
 linux
 virtualization
 rsync
 screen
 ssh
 version-control
 wget
 xorg 
 )
(operating-system
  (host-name "g1")
  (timezone "America/New_York")
  (locale "en_US.utf8")
  (kernel-arguments '("console=ttyS1,115200"))
  ;; RAID1 root using 1 NVMe SSD + 2 HDs
  (bootloader (grub-configuration (target "/dev/nvme0n1")
				  (terminal-outputs '(console))
				  (terminal-inputs '(serial console))
				  (serial-speed 115200)				  
				  ))
  (initrd (lambda (file-systems . rest) (apply base-initrd file-systems
					       #:extra-modules '("raid1")
					       rest)))
  (mapped-devices (list (mapped-device
			 (source '("/dev/nvme0n1p1" "/dev/sda1" "/dev/sdb1"))
			 (target "/dev/md3")
			 (type raid-device-mapping))))
  (file-systems (cons (file-system
			(title 'device)
			(device "/dev/md3")
			(mount-point "/")
			(type "ext4")
			(dependencies mapped-devices))
		      %base-file-systems))
  (swap-devices '("/dev/nvme0n1p2" ))
  (users (cons* (user-account (name "g1")
			      (group "users")
			      (supplementary-groups '("wheel" "kvm"))
			      (home-directory (string-append "/home/" name)))
		(user-account (name "admin")
			      (group "users")
			      (supplementary-groups '("wheel" "kvm"))
			      (home-directory (string-append "/home/" name)))
		%base-user-accounts))
  (packages (cons*
	     cups
	     emacs-no-x-toolkit
	     emacs-guix
	     emacs-zenburn-theme
	     freeipmi
	     git
	     glibc-utf8-locales
	     gnu-make
	     mdadm
	     magit
	     nss-certs
	     openssh
	     parted
	     qemu
	     rsync
	     screen
	     smartmontools
	     tree
	     wget
	     xauth
	     %base-packages))
  (services (cons* (dhcp-client-service)
		   (ntp-service)
		   (service openssh-service-type (openssh-configuration
						  (x11-forwarding? #t)))
		   %base-services)))

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

* bug#30467: GuixSD fails to display login prompt on headless server
  2018-02-15 21:29   ` George myglc2 Clemmer
@ 2018-02-16  0:24     ` George myglc2 Clemmer
  2018-02-16  0:53     ` Danny Milosavljevic
  1 sibling, 0 replies; 21+ messages in thread
From: George myglc2 Clemmer @ 2018-02-16  0:24 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 30467


On 02/15/2018 at 21:29 George myglc writes:

> Hi Danny & Leo,
>
> Thanks for the quick response!
>
> On 02/15/2018 at 15:54 Danny Milosavljevic writes:
[...]
>> Also, you have
>>
>>  (kernel-arguments '("console=ttyS1,115200"))
>>
>> AND
>>
>> (agetty-service (agetty-configuration (tty "ttyS1")
>> 							 (baud-rate "115200")))
>> Starting today, the second one will be automatically configured by
>> %base-services.

> I did git-pull & make to get guix (GNU Guix) 0.14.0.1879-06a9 and 'guix
> system reconfigure' >>> the console is still blank.  (my G36)
>
>> In the long run please remove your agetty-service, it should automatically appear
>> (it recovers the settings from the "console" kernel-argument).
>
> Then I removed agetty-service, reconfigured and rebooted >>> the console
> is still blank. (my G37, sys.scm attached)

BTW, IPMI serial over lan (SOL) which most recently worked
here on ...
: a48b877e6 gnu: appstream-glib: Propagate some inputs.
: guix (GNU Guix) 0.14.0.1505-a48b8

... is also now broken, with or without ...

>> (agetty-service (agetty-configuration (tty "ttyS1")
>> 							 (baud-rate "115200")))

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

* bug#30467: GuixSD fails to display login prompt on headless server
  2018-02-15 21:29   ` George myglc2 Clemmer
  2018-02-16  0:24     ` George myglc2 Clemmer
@ 2018-02-16  0:53     ` Danny Milosavljevic
  2018-02-16  1:38       ` George myglc2 Clemmer
  1 sibling, 1 reply; 21+ messages in thread
From: Danny Milosavljevic @ 2018-02-16  0:53 UTC (permalink / raw)
  To: George myglc2 Clemmer; +Cc: 30467

Hi George,

On Thu, 15 Feb 2018 16:29:11 -0500
George myglc2 Clemmer <myglc2@gmail.com> wrote:

> Not clear what you wanted so I didn't try this.

Leo clarified that not specifying it is working, so it's fine not to specify it.

So please ignore.

> FWIW, I don't see agetty running ...

What happens when you run manually:

agetty /dev/ttyS1

Does it keep running?

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

* bug#30467: GuixSD fails to display login prompt on headless server
  2018-02-16  0:53     ` Danny Milosavljevic
@ 2018-02-16  1:38       ` George myglc2 Clemmer
  2018-02-17 17:04         ` Danny Milosavljevic
  2018-02-17 17:05         ` Danny Milosavljevic
  0 siblings, 2 replies; 21+ messages in thread
From: George myglc2 Clemmer @ 2018-02-16  1:38 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 30467

Hi Danny,

On 02/16/2018 at 00:53 Danny Milosavljevic writes:

> Hi George,
>
> On Thu, 15 Feb 2018 16:29:11 -0500
> George myglc2 Clemmer <myglc2@gmail.com> wrote:

>> FWIW, I don't see agetty running ...
>
> What happens when you run manually:
>
> agetty /dev/ttyS1
>
> Does it keep running?

No. /var/log/debug is also jammed like this ...

[...]
Feb 15 19:05:29 localhost vmunix: [    5.890367] Creating 1 MTD partitions on "intel-spi":
Feb 15 19:05:29 localhost vmunix: [    5.890370] 0x000000000000-0x000000800000 : "BIOS"
Feb 15 19:05:29 localhost vmunix: [    5.906526] [TTM] Initializing pool allocator
Feb 15 19:05:29 localhost vmunix: [    5.910911] [TTM] Initializing DMA pool allocator
Feb 15 19:05:29 localhost vmunix: [    6.023282] fbcon: astdrmfb (fb0) is primary device
Feb 15 19:05:29 localhost vmunix: [    6.091450] Console: switching to colour frame buffer device 160x64
Feb 15 19:05:29 localhost vmunix: [    6.099375] ipmi_si IPI0001:00: Found new BMC (man_id: 0x000000, prod_id: 0xaabb, dev_id: 0x20)
Feb 15 19:05:30 localhost vmunix: [    6.105342] pps pps0: new PPS source ptp0
Feb 15 19:05:30 localhost vmunix: [    6.105363] igb 0000:03:00.0: added PHC on eth0
Feb 15 19:05:30 localhost vmunix: [    6.105363] igb 0000:03:00.0: Intel(R) Gigabit Ethernet Network Connection
Feb 15 19:05:30 localhost vmunix: [    6.105365] igb 0000:03:00.0: eth0: (PCIe:2.5Gb/s:Width x1) d0:50:99:5b:d7:55
Feb 15 19:05:30 localhost vmunix: [    6.105959] igb 0000:03:00.0: eth0: PBA No: 001300-000
Feb 15 19:05:30 localhost vmunix: [    6.105972] igb 0000:03:00.0: Using MSI-X interrupts. 4 rx queue(s), 4 tx queue(s)
Feb 15 19:05:30 localhost vmunix: [    6.149879] ipmi_si IPI0001:00: IPMI kcs interface initialized
Feb 15 19:05:30 localhost vmunix: [    6.182426] ast 0000:06:00.0: fb0: astdrmfb frame buffer device
Feb 15 19:05:30 localhost vmunix: [    6.188672] IPMI SSIF Interface driver
Feb 15 19:05:30 localhost vmunix: [    6.205279] intel_rapl: Found RAPL domain package
Feb 15 19:05:30 localhost vmunix: [    6.209992] intel_rapl: Found RAPL domain core
Feb 15 19:05:30 localhost vmunix: [    6.211999] [drm] Initialized ast 0.1.0 20120228 for 0000:06:00.0 on minor 0
Feb 15 19:05:30 localhost vmunix: [    6.221483] intel_rapl: Found RAPL domain dram
Feb 15 19:05:30 localhost vmunix: [    6.225945] intel_rapl: RAPL package 0 domain package locked by BIOS
Feb 15 19:05:30 localhost vmunix: [    6.232290] intel_rapl: RAPL package 0 domain dram locked by BIOS
Feb 15 19:05:30 localhost vmunix: [    6.323457] Error: Driver 'pcspkr' is already registered, aborting...
Feb 15 19:05:30 localhost vmunix: [    6.351730] pps pps1: new PPS source ptp1
Feb 15 19:05:31 localhost vmunix: [    6.355748] igb 0000:04:00.0: added PHC on eth1
Feb 15 19:05:31 localhost vmunix: [    6.360278] igb 0000:04:00.0: Intel(R) Gigabit Ethernet Network Connection
Feb 15 19:05:31 localhost vmunix: [    6.367150] igb 0000:04:00.0: eth1: (PCIe:2.5Gb/s:Width x1) d0:50:99:5b:d7:54
Feb 15 19:05:31 localhost vmunix: [    6.374341] igb 0000:04:00.0: eth1: PBA No: 001300-000
Feb 15 19:05:31 localhost vmunix: [    6.379472] igb 0000:04:00.0: Using MSI-X interrupts. 4 rx queue(s), 4 tx queue(s)
Feb 15 19:05:31 localhost vmunix: [    6.393246] igb 0000:04:00.0 enp4s0: renamed from eth1
Feb 15 19:05:31 localhost vmunix: [    6.424048] igb 0000:03:00.0 enp3s0: renamed from eth0
Feb 15 19:05:31 localhost vmunix: [    6.457010] Adding 10117460k swap on /dev/nvme0n1p2.  Priority:-2 extents:1 across:10117460k SSFS
Feb 15 19:05:31 localhost vmunix: [    7.559634] IPv6: ADDRCONF(NETDEV_UP): enp3s0: link is not ready
Feb 15 19:05:31 localhost vmunix: [   10.412657] igb 0000:03:00.0 enp3s0: igb: enp3s0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
Feb 15 19:05:31 localhost vmunix: [   10.528283] IPv6: ADDRCONF(NETDEV_CHANGE): enp3s0: link becomes ready
Feb 15 19:08:06 localhost ntpd[368]: receive: Unexpected origin timestamp 0xde309f65.f5541f08 does not match aorg 0000000000.00000000 from server@162.210.110.4 xmt 0xde309f66.6426f9e7
Feb 15 19:10:26 localhost vmunix: [  349.762770] sysrq: SysRq : HELP : loglevel(0-9) reboot(b) crash(c) terminate-all-tasks(e) memory-full-oom-kill(f) kill-all-tasks(i) thaw-filesystems(j) sak(k) show-backtrace-all-active-cpus(l) show-memory-usage(m) nice-all-RT-tasks(n) poweroff(o) show-registers(p) show-all-timers(q) unraw(r) sync(s) show-task-states(t) unmount(u) force-fb(V) show-blocked-tasks(w) dump-ftrace-buffer(z) 
Feb 15 19:13:39 localhost ntpd[368]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Feb 15 19:24:44 localhost -- MARK --
Feb 15 19:44:44 localhost -- MARK --
Feb 15 19:59:03 localhost vmunix: [ 3266.992550] sysrq: SysRq : HELP : loglevel(0-9) reboot(b) crash(c) terminate-all-tasks(e) memory-full-oom-kill(f) kill-all-tasks(i) thaw-filesystems(j) sak(k) show-backtrace-all-active-cpus(l) show-memory-usage(m) nice-all-RT-tasks(n) poweroff(o) show-registers(p) show-all-timers(q) unraw(r) sync(s) show-task-states(t) unmount(u) force-fb(V) show-blocked-tasks(w) dump-ftrace-buffer(z) 
Feb 15 20:13:32 localhost vmunix: [ 4135.206111] sysrq: SysRq : HELP : loglevel(0-9) reboot(b) crash(c) terminate-all-tasks(e) memory-full-oom-kill(f) kill-all-tasks(i) thaw-filesystems(j) sak(k) show-backtrace-all-active-cpus(l) show-memory-usage(m) nice-all-RT-tasks(n) poweroff(o) show-registers(p) show-all-timers(q) unraw(r) sync(s) show-task-states(t) unmount(u) force-fb(V) show-blocked-tasks(w) dump-ftrace-buffer(z) 
Feb 15 20:24:44 localhost -- MARK --

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

* bug#30467: GuixSD fails to display login prompt on headless server
  2018-02-16  1:38       ` George myglc2 Clemmer
@ 2018-02-17 17:04         ` Danny Milosavljevic
  2018-02-22  1:35           ` George myglc2 Clemmer
  2018-02-17 17:05         ` Danny Milosavljevic
  1 sibling, 1 reply; 21+ messages in thread
From: Danny Milosavljevic @ 2018-02-17 17:04 UTC (permalink / raw)
  To: George myglc2 Clemmer; +Cc: 30467

Huh, please try

strace -f agetty /dev/ttyS1 >log 2>&1

and send the log to the list...

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

* bug#30467: GuixSD fails to display login prompt on headless server
  2018-02-16  1:38       ` George myglc2 Clemmer
  2018-02-17 17:04         ` Danny Milosavljevic
@ 2018-02-17 17:05         ` Danny Milosavljevic
  1 sibling, 0 replies; 21+ messages in thread
From: Danny Milosavljevic @ 2018-02-17 17:05 UTC (permalink / raw)
  To: George myglc2 Clemmer; +Cc: 30467

What does

stty -F /dev/ttyS1

say?

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

* bug#30467: GuixSD fails to display login prompt on headless server
  2018-02-17 17:04         ` Danny Milosavljevic
@ 2018-02-22  1:35           ` George myglc2 Clemmer
  2018-02-22  3:29             ` George myglc2 Clemmer
  2018-02-22 11:41             ` Danny Milosavljevic
  0 siblings, 2 replies; 21+ messages in thread
From: George myglc2 Clemmer @ 2018-02-22  1:35 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 30467

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

Hi Danny,

I think we got side-tracked to the serial port when my real issue is
with the VGA port. Maybe my bug report was not clear. Let me clarify ...

My headless server stopped displaying the console tty login *on the VGA
port* somewhere between (GNU Guix) 0.13.0.4589-74bea6 (my G18) and (GNU
Guix) 0.13.0.5042-6e385 (My G19). In the later version, when I reboot
the VGA displays 1) the BIOS prompt, 2) the grub boot menu, 3) "Booting
GNU with Linuxlibre ..." for a couple seconds, and then 4) a blank.

In either version, this config ...

(agetty-service (agetty-configuration (tty "ttyS1")
                (baud-rate "115200")))

... causes a login prompt to be raised on ttyS1 which, on my system, is
mapped to IPMI Serial over Lan (SOL). However recently you said ...

On 02/15/2018 at 15:54 Danny Milosavljevic writes:

> In the long run please remove your agetty-service, it should automatically appear
> (it recovers the settings from the "console" kernel-argument).

So I tried that with a build from today (guix (GNU Guix)
0.13.0.5116-e272), and *no login* is raised on ttyS1 (My G46, sys.scm
attached).

However, if I *ignore your advice* a login prompt *is raised* on ttyS1
(My G45).

So, IIUC, it's not working the way you said it would, but it's not a
problem for me because I can just use the agetty-service.

Not sure your questions are still relevant, but here is what I see ...

On 02/17/2018 at 17:05 Danny Milosavljevic writes:

> What does
>
> stty -F /dev/ttyS1
>
> say?

g1@g1 ~/www$ sudo stty -F /dev/ttyS1
speed 115200 baud; line = 0;
-brkint -imaxbel

On 02/17/2018 at 17:04 Danny Milosavljevic writes:

> Huh, please try
>
> strace -f agetty /dev/ttyS1 >log 2>&1
>
> and send the log to the list...

(log.gz attached)

HTH - George


[-- Attachment #2: log.gz --]
[-- Type: application/octet-stream, Size: 2937 bytes --]

[-- Attachment #3: sys.scm --]
[-- Type: application/octet-stream, Size: 2068 bytes --]

;;; GuixSD headless server
(use-modules (gnu))
(use-service-modules networking ssh)
(use-package-modules
 admin
 base                 ; glibc-utf8-locales
 certs
 cups
 disk
 emacs
 freeipmi
 linux                 ; mdadm
 virtualization        ; qemu
 rsync
 screen
 ssh
 version-control       ; git
 wget
 xorg                  ; xauth
 )
(operating-system
 (host-name "g1")
 (timezone "America/New_York")
 (locale "en_US.utf8")
 (kernel-arguments '("console=ttyS1,115200"))
 ;; RAID1 root : NVMe M.2SSD + 2 HDs
 (bootloader (grub-configuration (target "/dev/nvme0n1")
				 (terminal-outputs '(console))
				 (terminal-inputs '(serial console))
				 (serial-speed 115200)
				 ))
 (initrd (lambda (file-systems . rest) (apply base-initrd file-systems
					      #:extra-modules '("raid1")
					      rest)))
 (mapped-devices (list (mapped-device
			(source '("/dev/nvme0n1p1" "/dev/sda1" "/dev/sdb1"))
			(target "/dev/md3")
			(type raid-device-mapping))))
 (file-systems (cons (file-system
		      (title 'device)
		      (device "/dev/md3")
		      (mount-point "/")
		      (type "ext4")
		      (dependencies mapped-devices))
		     %base-file-systems))
 (swap-devices '("/dev/nvme0n1p2" ))
 (users (cons* (user-account (name "g1")
			     (group "users")
			     (supplementary-groups '("wheel" "kvm"))
			     (home-directory (string-append "/home/" name)))
	       (user-account (name "admin")
			     (group "users")
			     (supplementary-groups '("wheel" "kvm"))
			     (home-directory (string-append "/home/" name)))
	       %base-user-accounts))
 (packages (cons*
	    cups
	    emacs-no-x-toolkit
	    emacs-guix
	    emacs-zenburn-theme
	    freeipmi
	    git
	    glibc-utf8-locales
	    gnu-make
	    mdadm
	    magit
	    nss-certs ;for HTTPS access
	    openssh
	    parted
	    qemu
	    rsync
	    screen
	    smartmontools
	    tree
	    wget
	    xauth
	    %base-packages))
 (services (cons* (dhcp-client-service)
		  (ntp-service)
		  (service openssh-service-type (openssh-configuration
						 (x11-forwarding? #t)))
		  %base-services)))

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

* bug#30467: GuixSD fails to display login prompt on headless server
  2018-02-22  1:35           ` George myglc2 Clemmer
@ 2018-02-22  3:29             ` George myglc2 Clemmer
  2018-02-22 11:41             ` Danny Milosavljevic
  1 sibling, 0 replies; 21+ messages in thread
From: George myglc2 Clemmer @ 2018-02-22  3:29 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 30467


In my previous message, please disregard comments that begin with ...

> So I tried that with a build from today (guix (GNU Guix)
> 0.13.0.5116-e272), and *no login* is raised on ttyS1 (My G46, sys.scm
> attached).

which is mistakenly based on an old commit :-|

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

* bug#30467: GuixSD fails to display login prompt on headless server
  2018-02-22  1:35           ` George myglc2 Clemmer
  2018-02-22  3:29             ` George myglc2 Clemmer
@ 2018-02-22 11:41             ` Danny Milosavljevic
  2018-02-23 15:46               ` George myglc2 Clemmer
  1 sibling, 1 reply; 21+ messages in thread
From: Danny Milosavljevic @ 2018-02-22 11:41 UTC (permalink / raw)
  To: George myglc2 Clemmer; +Cc: 30467

Hi George,

On Wed, 21 Feb 2018 20:35:34 -0500
George myglc2 Clemmer <myglc2@gmail.com> wrote:

> I think we got side-tracked to the serial port when my real issue is
> with the VGA port. Maybe my bug report was not clear. Let me clarify ...

Oh, that changes things.  Ludo is debugging some silly UTF-8 problem
with the virtual terminals on the VGA port right now - might be related,
or not.  Who knows...

> GNU with Linuxlibre ..." for a couple seconds, and then 4) a blank.

Is there still a cursor?

What happens when you don't use the serial (so no console=...) and then
try to write something to /dev/console ?  It should show up somewhere.
Where?  On the VGA port?

Let's try to find where in the chain it goes off the rails.

If writing to /dev/console manually works, try

ps -ef | grep mingetty

Are they running?

Also,

ls -l /dev/tty[123456] /dev/tty

> In either version, this config ...
> 
> (agetty-service (agetty-configuration (tty "ttyS1")
>                 (baud-rate "115200")))
> ... causes a login prompt to be raised on ttyS1 which, on my system, is
> mapped to IPMI Serial over Lan (SOL).

Yeah, okay.  So the actual tty-login-in works... *phiew*.

> g1@g1 ~/www$ sudo stty -F /dev/ttyS1
> speed 115200 baud; line = 0;
> -brkint -imaxbel

Looks good - login also works fine on the serial, so all is well there... :)

Now let's see what the problem with the VGA is...

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

* bug#30467: GuixSD fails to display login prompt on headless server
  2018-02-22 11:41             ` Danny Milosavljevic
@ 2018-02-23 15:46               ` George myglc2 Clemmer
  2018-02-24 14:51                 ` Danny Milosavljevic
  0 siblings, 1 reply; 21+ messages in thread
From: George myglc2 Clemmer @ 2018-02-23 15:46 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 30467


On 02/22/2018 at 11:41 Danny Milosavljevic writes:

> Hi George,
>
> On Wed, 21 Feb 2018 20:35:34 -0500
> George myglc2 Clemmer <myglc2@gmail.com> wrote:
>
>> I think we got side-tracked to the serial port when my real issue is
>> with the VGA port. Maybe my bug report was not clear. Let me clarify ...
>
> Oh, that changes things.  Ludo is debugging some silly UTF-8 problem
> with the virtual terminals on the VGA port right now - might be related,
> or not.  Who knows...

Well this problem goes back to November. The problem first appears in
my generation 19 ...

     19            GNU with Linux-Libre 4.14.2 (beta)           61 2017-11-30 19:18:15
     18            GNU with Linux-Libre 4.13.12 (beta)          62 2017-11-11 13:05:56

... which  correspond to ...

19 (GNU Guix) 0.13.0.5042-6e385
18 (GNU Guix) 0.13.0.4589-74bea6

Note: The results cited below are WRT my most recent build done
yesterday, guix (GNU Guix) 0.14.0.2455-26737.

>> GNU with Linuxlibre ..." for a couple seconds, and then 4) a blank.
>
> Is there still a cursor?

NO.

> What happens when you don't use the serial (so no console=...)

The VGA displays ...

- BIOS prompt
- grub menu
- 'Booting GNU linux-libre ...'
- ~1 seconds of messages
- Blank screen w/ no cursor

... which differers in that there are a couple seconds of boot messages.

> and then
> try to write something to /dev/console ?  It should show up somewhere.
> Where?  On the VGA port?

/home/g1# echo 123 > /dev/console

... shows nothing on the VGA or serial.

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

* bug#30467: GuixSD fails to display login prompt on headless server
  2018-02-23 15:46               ` George myglc2 Clemmer
@ 2018-02-24 14:51                 ` Danny Milosavljevic
  2018-02-26 17:02                   ` George myglc2 Clemmer
  0 siblings, 1 reply; 21+ messages in thread
From: Danny Milosavljevic @ 2018-02-24 14:51 UTC (permalink / raw)
  To: George myglc2 Clemmer; +Cc: 30467

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

> > Is there still a cursor?  
> 
> NO.

That's... bad.

The tool I'd need to debug this (fbset) is not available in Guix.

And my guix git checkout is a little under construction.

So can you please try to guix package -f the attached file?

Then please run fbset.

Does it work?  What does it say?

[-- Attachment #2: fbset.scm --]
[-- Type: text/x-scheme, Size: 1531 bytes --]


(use-modules (guix packages) (guix download) (guix build-system gnu) (guix licenses) (gnu packages bison) (gnu packages flex))
(package
    (name "fbset")
    (version "2.1")
    (source (origin
             (method url-fetch)
             (uri (string-append "http://users.telenet.be/geertu/Linux/fbdev/"
                                 name "-" version ".tar.gz"))
             (sha256
              (base32
               "080wnisi0jq7dp0jcwdp83rq8q8s3kw41vc712516xbv4jq4mzs0"))))
    (build-system gnu-build-system)
    (arguments
     `(#:tests? #f
       #:phases
       (modify-phases %standard-phases
        (add-after 'unpack 'patch-installer
          (lambda* (#:key outputs #:allow-other-keys)
            (let ((out (assoc-ref outputs "out")))
              (mkdir-p out)
              (mkdir-p (string-append out "/bin"))
              (mkdir-p (string-append out "/man"))
              (mkdir-p (string-append out "/man/man5"))
              (mkdir-p (string-append out "/man/man8"))
              (substitute* "Makefile"
                (("/usr/sbin") "/usr/bin")
                (("/usr") out)
                (("mknod ") "echo "))
              #t)))
        (delete 'configure))))
    (native-inputs
     `(("bison" ,bison)
       ("flex" ,flex)))
    (home-page "https://www.gnu.org/software/linux-libre/")
    (synopsis "Framebuffer device maintenance program")
    (description "@code{fbset} can be used to set the screen resolution
and virtual terminal association of a Framebuffer.")
    (license gpl2))

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

* bug#30467: GuixSD fails to display login prompt on headless server
  2018-02-24 14:51                 ` Danny Milosavljevic
@ 2018-02-26 17:02                   ` George myglc2 Clemmer
  2018-02-26 17:32                     ` Danny Milosavljevic
  0 siblings, 1 reply; 21+ messages in thread
From: George myglc2 Clemmer @ 2018-02-26 17:02 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 30467

Hi Danny,

On 02/24/2018 at 14:51 Danny Milosavljevic writes:

>> > Is there still a cursor?  
>> 
>> NO.
>
> That's... bad.
>
> The tool I'd need to debug this (fbset) is not available in Guix.
>
> And my guix git checkout is a little under construction.
>
> So can you please try to guix package -f the attached file?

Tried to but got this ...

g1@g1 ~/bug/bug#30467-vga-no-login$ guix package -f fbset.scm 
The following package will be installed:
   fbset	2.1	/gnu/store/kg15k6llj062gwg3jzymimas93pwwysw-fbset-2.1
[..]
phase `patch-usr-bin-file' succeeded after 0.0 seconds
starting phase `patch-source-shebangs'
patch-shebang: ./modeline2fb: warning: no binary for interpreter `perl' found in $PATH
phase `patch-source-shebangs' succeeded after 0.0 seconds
starting phase `patch-generated-file-shebangs'
patch-shebang: ./modeline2fb: warning: no binary for interpreter `perl' found in $PATH
phase `patch-generated-file-shebangs' succeeded after 0.0 seconds
starting phase `build'
gcc -Wall -O2 -I.    -c -o fbset.o fbset.c
bison -d modes.y
flex modes.l
make: *** No rule to make target 'modes.tab.h', needed by 'lex.yy.o'.  Stop.
make: *** Waiting for unfinished jobs....
phase `build' failed after 0.2 seconds
builder for `/gnu/store/hf71jn7x88dm77x1368ajai4l0gp276c-fbset-2.1.drv' failed with exit code 1
cannot build derivation `/gnu/store/nigbs3x4sxpix1dz16r1ypvkmp7s7p2c-profile.drv': 1 dependencies couldn't be built
guix package: error: build failed: build of `/gnu/store/nigbs3x4sxpix1dz16r1ypvkmp7s7p2c-profile.drv' failed

g1@g1 ~/bug/bug#30467-vga-no-login$ which perl
/home/g1/.guix-profile/bin/perl

>
> Then please run fbset.
>
> Does it work?  What does it say?

TIA - George

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

* bug#30467: GuixSD fails to display login prompt on headless server
  2018-02-26 17:02                   ` George myglc2 Clemmer
@ 2018-02-26 17:32                     ` Danny Milosavljevic
  2018-02-26 18:50                       ` George myglc2 Clemmer
  0 siblings, 1 reply; 21+ messages in thread
From: Danny Milosavljevic @ 2018-02-26 17:32 UTC (permalink / raw)
  To: George myglc2 Clemmer; +Cc: 30467

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

Try the attached one...

[-- Attachment #2: fbset.scm --]
[-- Type: text/x-scheme, Size: 1559 bytes --]


(use-modules (guix packages) (guix download) (guix build-system gnu) (guix licenses) (gnu packages bison) (gnu packages flex))
(package
    (name "fbset")
    (version "2.1")
    (source (origin
             (method url-fetch)
             (uri (string-append "http://users.telenet.be/geertu/Linux/fbdev/"
                                 name "-" version ".tar.gz"))
             (sha256
              (base32
               "080wnisi0jq7dp0jcwdp83rq8q8s3kw41vc712516xbv4jq4mzs0"))))
    (build-system gnu-build-system)
    (arguments
     `(#:tests? #f
       #:parallel-build? #f
       #:phases
       (modify-phases %standard-phases
        (add-after 'unpack 'patch-installer
          (lambda* (#:key outputs #:allow-other-keys)
            (let ((out (assoc-ref outputs "out")))
              (mkdir-p out)
              (mkdir-p (string-append out "/bin"))
              (mkdir-p (string-append out "/man"))
              (mkdir-p (string-append out "/man/man5"))
              (mkdir-p (string-append out "/man/man8"))
              (substitute* "Makefile"
                (("/usr/sbin") "/usr/bin")
                (("/usr") out)
                (("mknod ") "echo "))
              #t)))
        (delete 'configure))))
    (native-inputs
     `(("bison" ,bison)
       ("flex" ,flex)))
    (home-page "https://www.gnu.org/software/linux-libre/")
    (synopsis "Framebuffer device maintenance program")
    (description "@code{fbset} can be used to set the screen resolution
and virtual terminal association of a Framebuffer.")
    (license gpl2))

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

* bug#30467: GuixSD fails to display login prompt on headless server
  2018-02-26 17:32                     ` Danny Milosavljevic
@ 2018-02-26 18:50                       ` George myglc2 Clemmer
  2018-02-27 12:08                         ` Danny Milosavljevic
  0 siblings, 1 reply; 21+ messages in thread
From: George myglc2 Clemmer @ 2018-02-26 18:50 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 30467


On 02/26/2018 at 17:32 Danny Milosavljevic writes:

> Try the attached one...

g1@g1 ~/bug/bug#30467-vga-no-login$ sudo fbset

mode "1280x1024"
    geometry 1280 1024 1280 1024 32
    timings 0 0 0 0 0 0 0
    accel true
    rgba 8/16,8/8,8/0,0/0
endmode

g1@g1 ~/bug/bug#30467-vga-no-login$ 

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

* bug#30467: GuixSD fails to display login prompt on headless server
  2018-02-26 18:50                       ` George myglc2 Clemmer
@ 2018-02-27 12:08                         ` Danny Milosavljevic
  2018-02-27 13:39                           ` George myglc2 Clemmer
  0 siblings, 1 reply; 21+ messages in thread
From: Danny Milosavljevic @ 2018-02-27 12:08 UTC (permalink / raw)
  To: George myglc2 Clemmer; +Cc: 30467

> g1@g1 ~/bug/bug#30467-vga-no-login$ sudo fbset
> 
> mode "1280x1024"
>     geometry 1280 1024 1280 1024 32
>     timings 0 0 0 0 0 0 0
>     accel true
>     rgba 8/16,8/8,8/0,0/0
> endmode
> 
> g1@g1 ~/bug/bug#30467-vga-no-login$ 

Ok, so there is a screen there...

Does

sudo -i
echo foo >/dev/tty1

work and print something there?

What is output of the command "dmesg" ?

Also, please try

ps -ef |grep mingetty

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

* bug#30467: GuixSD fails to display login prompt on headless server
  2018-02-27 12:08                         ` Danny Milosavljevic
@ 2018-02-27 13:39                           ` George myglc2 Clemmer
  0 siblings, 0 replies; 21+ messages in thread
From: George myglc2 Clemmer @ 2018-02-27 13:39 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 30467

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


On 02/27/2018 at 12:08 Danny Milosavljevic writes:

> Does
>
> sudo -i
> echo foo >/dev/tty1
>
> work and print something there?

Shows no error and nothing on the VGA.

> What is output of the command "dmesg" ?
>
> Also, please try
>
> ps -ef |grep mingetty

Please see attached.

TIA, George


[-- Attachment #2: dmesg.log.gz --]
[-- Type: application/octet-stream, Size: 16748 bytes --]

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

* bug#30467: GuixSD fails to display login prompt on headless server
  2018-02-15 15:01 bug#30467: GuixSD fails to display login prompt on headless server George myglc2 Clemmer
  2018-02-15 15:54 ` Danny Milosavljevic
@ 2018-03-08 14:16 ` myglc2
  2018-03-09 23:23   ` Ludovic Courtès
  1 sibling, 1 reply; 21+ messages in thread
From: myglc2 @ 2018-03-08 14:16 UTC (permalink / raw)
  To: 30467

commit ...
c32e3dded * services: agetty: Call default-serial-port only when starting.
... fixed this here, thanks - George

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

* bug#30467: GuixSD fails to display login prompt on headless server
  2018-03-08 14:16 ` myglc2
@ 2018-03-09 23:23   ` Ludovic Courtès
  0 siblings, 0 replies; 21+ messages in thread
From: Ludovic Courtès @ 2018-03-09 23:23 UTC (permalink / raw)
  To: myglc2; +Cc: 30467-done

myglc2@gmail.com skribis:

> commit ...
> c32e3dded * services: agetty: Call default-serial-port only when starting.
> ... fixed this here, thanks - George

Awesome, thanks for confirming.

And thanks Danny for the fix!

Ludo’.

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

end of thread, other threads:[~2018-03-09 23:24 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-15 15:01 bug#30467: GuixSD fails to display login prompt on headless server George myglc2 Clemmer
2018-02-15 15:54 ` Danny Milosavljevic
2018-02-15 16:23   ` Leo Famulari
2018-02-15 21:29   ` George myglc2 Clemmer
2018-02-16  0:24     ` George myglc2 Clemmer
2018-02-16  0:53     ` Danny Milosavljevic
2018-02-16  1:38       ` George myglc2 Clemmer
2018-02-17 17:04         ` Danny Milosavljevic
2018-02-22  1:35           ` George myglc2 Clemmer
2018-02-22  3:29             ` George myglc2 Clemmer
2018-02-22 11:41             ` Danny Milosavljevic
2018-02-23 15:46               ` George myglc2 Clemmer
2018-02-24 14:51                 ` Danny Milosavljevic
2018-02-26 17:02                   ` George myglc2 Clemmer
2018-02-26 17:32                     ` Danny Milosavljevic
2018-02-26 18:50                       ` George myglc2 Clemmer
2018-02-27 12:08                         ` Danny Milosavljevic
2018-02-27 13:39                           ` George myglc2 Clemmer
2018-02-17 17:05         ` Danny Milosavljevic
2018-03-08 14:16 ` myglc2
2018-03-09 23:23   ` Ludovic Courtès

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).