Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#846256: failure on boot

129 views
Skip to first unread message

Ognyan Kulev

unread,
Nov 29, 2016, 11:40:02 AM11/29/16
to
Package: console-setup
Version: 1.154

On a Debian testing inside virt-manager, console-setup always fails on
boot with the following error messages:

Unit console-screen.service could not be found.

● console-setup.service - Set console font and keymap
Loaded: loaded (/lib/systemd/system/console-setup.service; enabled;
vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2016-11-29 11:28:36
EET; 6h ago
Main PID: 428 (code=exited, status=1/FAILURE)

ное 29 11:28:36 miranda systemd[1]: Starting Set console font and keymap...
ное 29 11:28:36 miranda console-setup.sh[428]: /bin/setupcon: 866:
/bin/setupcon: cannot open /tmp/tmpkbd.xTd9cX: No such file
ное 29 11:28:36 miranda systemd[1]: console-setup.service: Main process
exited, code=exited, status=1/FAILURE
ное 29 11:28:36 miranda systemd[1]: Failed to start Set console font and
keymap.
ное 29 11:28:36 miranda systemd[1]: console-setup.service: Unit entered
failed state.
ное 29 11:28:36 miranda systemd[1]: console-setup.service: Failed with
result 'exit-code'.

Around line 866 is the following code that fails "gzip -9n <$TMPFILE":

if [ "$savekbdfile" ]; then
case "$kernel" in
linux)
tempfile || { echo setupcon: Can not create temporary file
>&2; exit 1; }
{
$installdir/bin/ckbcomp -backspace "$backspace"
$acm_option \
$rules_option -model "$XKBMODEL" \
"$XKBLAYOUT" "$XKBVARIANT" "$XKBOPTIONS" >$TMPFILE \
&& gzip -9n <$TMPFILE >"$savekbdfile"
} || exit 1
;;
freebsd)
$installdir/bin/ckbcomp -freebsd -backspace "$backspace" \
$acm_option $rules_option -model "$XKBMODEL" \
"$XKBLAYOUT" "$XKBVARIANT" "$XKBOPTIONS" >"$savekbdfile" \
|| exit 1
;;
esac
fi

I didn't try to investigate further.

Just starting the service later works but on boot it always fails.

Best regards,
Ognyan

Arnaud Rebillout

unread,
Jul 19, 2018, 11:10:02 PM7/19/18
to
I also experience this bug.

I got in touch with the debian maintainers for systemd at:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=904079

According to the maintainer, the issue should be solved by using the
`After=` directive in the unit file for console-setup.

Regards,
  Arnaud

Marcel Partap

unread,
Mar 31, 2020, 7:00:03 AM3/31/20
to
Package: console-setup
Version: 1.194
Followup-For: Bug #846256

see https://bugs.launchpad.net/ubuntu/+source/console-setup/+bug/1824227

--- console-setup_1.178ubuntu12_all/bin/setupcon 2019-04-10
21:51:56.000000000 +0200
+++ console-setup_1.195_all/bin/setupcon 2020-03-26 14:34:12.000000000
+0100
@@ -60,8 +60,11 @@
trap "exit 2" 1 2 3 13 15
tempfile () {
if \
- TMPFILE=`mktemp /run/tmpkbd.XXXXXX 2>/dev/null` \
- || TMPFILE=`mktemp /tmp/tmpkbd.XXXXXX 2>/dev/null`
+ TMPFILE=`mktemp /tmp/tmpkbd.XXXXXX 2>/dev/null` \
+ || TMPFILE=`mktemp /run/tmpkbd.XXXXXX 2>/dev/null` \
+ || TMPFILE=`mktemp /dev/.tmpkbd.XXXXXX 2>/dev/null` \
+ || TMPFILE=`mktemp /lib/init/rw/tmpkbd.XXXXXX 2>/dev/null` \
+ || TMPFILE=`mktemp 2>/dev/null`

but specifying After=systemd-tmpfiles-setup.service is also a good option.
Anything against shipping that?



-- System Information:
Debian Release: bullseye/sid
APT prefers unstable
APT policy: (510, 'unstable'), (510, 'testing'), (509, 'experimental'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.4.0-4-amd64 (SMP w/12 CPU cores)
Kernel taint flags: TAINT_CRAP, TAINT_FIRMWARE_WORKAROUND
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8), LANGUAGE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages console-setup depends on:
ii console-setup-linux 1.194
ii debconf 1.5.73
ii keyboard-configuration 1.194
ii xkb-data 2.26-2

console-setup recommends no packages.

Versions of packages console-setup suggests:
ii locales 2.29-3
ii lsb-base 11.1.0

Versions of packages keyboard-configuration depends on:
ii debconf 1.5.73
ii liblocale-gettext-perl 1.07-4

Versions of packages console-setup-linux depends on:
ii init-system-helpers 1.57
ii kbd 2.0.4-4
ii keyboard-configuration 1.194

console-setup-linux suggests no packages.

Versions of packages console-setup is related to:
pn console-common <none>
pn console-data <none>
pn console-tools <none>
pn gnome-control-center <none>
ii kbd 2.0.4-4
ii systemd 244.3-1

-- debconf information excluded

Bernhard Walle

unread,
Jan 18, 2022, 8:30:04 AM1/18/22
to


Dipl.-Inf. (FH) Bernhard Walle
Tech Lead Configuration Management
bernhar...@ncp-e.com
Phone: +49 911 9968-0
www.ncp-e.com

Headquarters Germany: NCP engineering GmbH • Dombuehler Str. 2 • 90449 • Nuremberg
North American HQ: NCP engineering Inc. • 601 Cleveland Str., Suite 501-25 • Clearwater, FL 33755

Authorized representatives: Peter Soell, Patrick Oliver Graf, Beate Dietrich
Registry Court: Lower District Court of Nuremberg
Commercial register No.: HRB 7786 Nuremberg, VAT identification No.: DE 133557619

This e-mail message including any attachments is for the sole use of the intended recipient(s) and may contain privileged
or confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient,
please immediately contact the sender by reply e-mail and delete the original message and destroy all copies thereof.
On Mon, 26 Jun 2017 19:37:02 +0200 "Badics, Alex" <alex....@balabit.com> wrote:
> > 2. If they finish in time, this is ok. Suppose however that
> > systemd-tmpfiles-setup starts before the scripts of console-setup
> > finish their work. (Is this possible?)
> Yes. We have seen this happen. Although it being a race condition,
> it's hard to reproduce, and we've only seen it happen on at least 8
> core servers.

We’re also facing that issue here. It’s not 100 % reproducible, but after installing a custom-built Debian image (with debootstrap), it mostly happens after the first boot in vmware.

Adding the dependency Marc Haber suggested, seems to fix the issue.


Regards,
Bernhard

Laurence Hurst

unread,
Nov 8, 2022, 4:40:04 AM11/8/22
to
Just a +1 to being affected by this bug, Debian Bullseye (console-setup
package version 1.205) on a Dell XPS laptop (4-core i7).

I've applied Marc's workaround:

# /etc/systemd/system/console-setup.service.d/override.conf
[Unit]
After=systemd-tmpfiles-setup.service

and

# /etc/systemd/system/keyboard-setup.serviceoverride.conf
[Unit]
After=systemd-tmpfiles-setup.service

(I've not seen it with keyboard-setup, only console-setup, but applied
both based on Marc's recommendation in his post.)

Jean Honlet

unread,
Sep 20, 2023, 7:30:05 AM9/20/23
to
Side note for anybody coming here...

On Ubuntu, with snapd, the keyboard-setup.serviceoverride.conf create a loop in dependencies.

$ systemd-analyze verify default.target

local-fs.target: Found ordering cycle on snap-chromium-2623.mount/start
local-fs.target: Found dependency on local-fs-pre.target/start
local-fs.target: Found dependency on keyboard-setup.service/start
local-fs.target: Found dependency on systemd-tmpfiles-setup.service/start
local-fs.target: Found dependency on local-fs.target/start
local-fs.target: Job snap-chromium-2623.mount/start deleted to break ordering cycle starting with local-fs.target/start
local-fs.target: Found ordering cycle on local-fs-pre.target/start
local-fs.target: Found dependency on keyboard-setup.service/start
local-fs.target: Found dependency on systemd-tmpfiles-setup.service/start
local-fs.target: Found dependency on local-fs.target/start
local-fs.target: Job local-fs-pre.target/start deleted to break ordering cycle starting with local-fs.target/start

For info only since this is a Debian thread.
0 new messages