"could not read Auth username from stdin" during boot

Bug #1432681 reported by Clon
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openvpn (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

Lubuntu boot very slow after last update and sometimes it spontaneously crash and i must re-boot

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: systemd 219-4ubuntu5 [modified: usr/share/dbus-1/system-services/org.freedesktop.systemd1.service]
ProcVersionSignature: Ubuntu 3.19.0-9.9-generic 3.19.1
Uname: Linux 3.19.0-9-generic i686
ApportVersion: 2.16.2-0ubuntu3
Architecture: i386
CurrentDesktop: LXDE
Date: Mon Mar 16 15:46:50 2015
InstallationDate: Installed on 2013-03-16 (730 days ago)
InstallationMedia: Lubuntu 12.10 "Quantal Quetzal" - Release i386 (20121017.1)
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.19.0-9-generic root=/dev/mapper/lubuntu-root ro quiet splash vt.handoff=7
SourcePackage: systemd
UpgradeStatus: Upgraded to vivid on 2015-02-27 (16 days ago)
dmi.bios.date: 07/25/2005
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F2
dmi.board.name: K8T800-8237
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: 1.x
dmi.chassis.type: 3
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF2:bd07/25/2005:svn:pn:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnK8T800-8237:rvr1.x:cvn:ct3:cvr:

Revision history for this message
Clon (fillip1) wrote :
description: updated
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Thanks for your bug report and help to make ubuntu better. Journal logs will be helpful to know exactly what happens during your slow boot, do you mind pasting "journalctl -b" output here (and eventually boot in debug mode: add systemd.log_level=debug in grub to boot with it).

Please turn back the bug status to "new" once you have attached this, thanks!

Changed in systemd (Ubuntu):
status: New → Incomplete
Revision history for this message
Clon (fillip1) wrote :

Add reguired log

Changed in systemd (Ubuntu):
status: Incomplete → New
Revision history for this message
Martin Pitt (pitti) wrote :

Your system generally isn't the fastest, so there aren't many obvious gaps, except this blatant one:

bře 18 17:57:26 P-IV ntpd[1174]: Listening on routing socket on fd #22 for interface updates
bře 18 17:58:00 P-IV systemd-journal[268]: Forwarding to syslog missed 50 messages.
bře 18 17:58:47 P-IV ovpn-client[1100]: ERROR: could not read Auth username from stdin
bře 18 17:58:47 P-IV ovpn-client[1100]: Exiting due to fatal error
bře 18 17:58:47 P-IV openvpn[1060]: Timed out

So the timed out openvpn delays the boot by about 1.5 minutes. Do you regularly enter your OpenVPN password at boot under upstart? Can you temporarily disable openvpn and check if boot time is comparable to upstart?

summary: - Lubuntu boot very slow
+ "could not read Auth username from stdin" delays boot under systemd
affects: systemd (Ubuntu) → openvpn (Ubuntu)
tags: added: systemd-boot
Changed in openvpn (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Clon (fillip1) wrote : Re: "could not read Auth username from stdin" delays boot under systemd

It's been a long time since I last used OpenVPN, I thought that it is already uninstalled.
I turn it off and now boot seems faster not as fast as before update to Vivid but much more faster.

Thanks.

Revision history for this message
Martin Pitt (pitti) wrote :

Thanks for confirming. So it seems the issue is that openvpn's start scripts need to be adjusted to deal with interactive auth input during boot.

Changed in openvpn (Ubuntu):
status: New → Triaged
Revision history for this message
Martin Pitt (pitti) wrote :

Since it's not immediately obvious, can you explain to me or give me a documentation pointer how you set up openvpn so that it asks for a passphrase on boot? The Debian package has a much improved systemd integration (but one detail missing as far as I can see), and I'd like to test/fix/port that to vivid. Thanks!

Revision history for this message
Clon (fillip1) wrote :
Revision history for this message
Martin Pitt (pitti) wrote :

That helps, thanks! Can reproduce now.

Changed in openvpn (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Martin Pitt (pitti)
summary: - "could not read Auth username from stdin" delays boot under systemd
+ "could not read Auth username from stdin" during boot
Revision history for this message
Martin Pitt (pitti) wrote :

For the record, this is a simple config which reproduces this:

$ cat /etc/openvpn/client.conf
remote vpn.vutbr.cz
auth-user-pass
ca /etc/ssl/certs/spi-cacert-2008.pem
pull
tls-client
dev tap
verb 3

It works when you do "systemctl start openvpn" in a shell, but not during boot.

Revision history for this message
Martin Pitt (pitti) wrote :

The current version already works here with plymouth, but not without.

Revision history for this message
Martin Pitt (pitti) wrote :

With the systemd-ification in https://launchpad.net/ubuntu/+source/openvpn/2.3.2-9ubuntu3 this now works reasonably well at least under plymouth.

Changed in openvpn (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.