Devuan logs - #138, boring messages


Message sent to devuan-bugs@lists.dyne.org, owner@bugs.devuan.org:


Subject: bug#138: chrony: is always offline at system start
From: Friedhelm Mehnert <friedhelm@friedhelms.net>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
Date: Mon, 21 Aug 2017 17:32:39 +0200

Package: chrony
Version: 1.30-2+deb8u2
Severity: normal

Dear Maintainer,

On *slower systems* like BananaPi chrony is always offline after system
start. To bring it online one has to do: "/etc/init.d/chrony restart".

The course of the problem is a timeout value within the startup-script.
On *slow machines" the startup of chrony takes more than 2 seconds.
The developers have been too optimistic (Developement systems are usualy
pretty fast). ;-)

/etc/init.d/chrony
>     1	#! /bin/sh
>     2	#
>     3	# Written by Miquel van Smoorenburg <miquels@drinkel.ow.org>.
>     4	# Modified for Debian GNU/Linux by Ian Murdock <imurdock@gnu.ai.mit.edu>.
>     5	# Modified for Debian by Christoph Lameter <clameter@debian.org>
>     6	# Modified for chrony by John Hasler <jhasler@debian.org> 1998-2010
>     7	
>     8	### BEGIN INIT INFO
>     9	# Provides:          chrony
>    10	# Required-Start:    $remote_fs
>    11	# Required-Stop:     $remote_fs
>    12	# Should-Start:      $syslog $network $named $hwclock
>    13	# Should-Stop:       $syslog $network $named $hwclock
>    14	# Default-Start:     2 3 4 5
>    15	# Default-Stop:      0 1 6
>    16	# Short-Description: Controls chronyd NTP time daemon
>    17	# Description:       Chronyd is the NTP time daemon in the Chrony package
>    18	### END INIT INFO
>    19	
>    20	PATH=/bin:/usr/bin:/sbin:/usr/sbin
>    21	DAEMON=/usr/sbin/chronyd
>    22	FLAGS="defaults"
>    23	NAME="chronyd"
>    24	DESC="time daemon"
>    25	
>    26	test -f $DAEMON || exit 0
>    27	
>    28	putonline ()
>    29	{ # Do we have a default route?  If so put chronyd online.
>    30	    if timelimit -q -s9 -t5 -- netstat -rn 2>/dev/null | grep UG | cut -f 1 -d ' ' | grep -q '0\.0\.0\.0' 
>    31	    then
>    32		sleep 2  # Chronyd can take a while to start.
                ^^^^^
THIS needs to be changed to 5!
=================================

>    33		KEY=$(awk '$1 ~ /^commandkey$/ { print $2; exit}' /etc/chrony/chrony.conf)
>    34		PASSWORD=`awk '$1 ~ /^'$KEY'$/ {print $2; exit}' /etc/chrony/chrony.keys`
>    35		# Make sure chronyc can't hang us up.
>    36		if timelimit -q -s9 -t5 -- /usr/bin/chronyc > /dev/null << EOF
>    37	password $PASSWORD
>    38	online
>    39	burst 5/10
>    40	quit
>    41	EOF
>    42	        then
>    43	                touch /var/run/chrony-ppp-up
>    44	                echo "$NAME is running and online."
>    45	        else
>    46	                rm -f /var/run/chrony-ppp-up
>    47	                echo "$NAME is running and offline."    
>    48	        fi
>    49	    else
>    50	        rm -f /var/run/chrony-ppp-up
>    51	        echo "$NAME is running and offline."
>    52	    fi
>    53	}
>    54	
>    55	case "$1" in
>    56	    start)
>    57		start-stop-daemon --start --verbose --exec $DAEMON
>    58		case "$?" in
>    59			0) # daemon successfully started
>    60	#			putonline
>    61				;;
>    62		        1) # daemon already running
>    63			        ;;
>    64			*) # daemon could not be started
>    65				echo "$DAEMON failed to start."
>    66				exit 1
>    67				;;
>    68		esac
>    69		;;
>    70	    stop)
>    71		start-stop-daemon --stop --verbose --oknodo --exec $DAEMON
>    72		rm -f /var/run/chrony-ppp-up
>    73		;;
>    74	    restart|force-reload)
>    75		echo -n "Restarting $DESC: "
>    76		start-stop-daemon --stop --quiet --exec $DAEMON
>    77		sleep 1
>    78		start-stop-daemon --start --verbose --exec $DAEMON -- -r
>    79		case "$?" in
>    80			0) # daemon successfully started
>    81	#			putonline
>    82				;;
>    83		        1) # still running
>    84			        ;;
>    85			*) # daemon could not be started
>    86				echo "$DAEMON failed to restart."
>    87				rm -f /var/run/chrony-ppp-up
>    88				exit 1
>    89				;;
>    90		esac
>    91		;;
>    92	    *)
>    93		echo "Usage: /etc/init.d/chrony {start|stop|restart|force-reload}"
>    94		exit 1
>    95		;;
>    96	esac
>    97	
>    98	exit 0
>

I have had the problem with 3 different machines. All architectures are
affected.

-- System Information:

DEVUAN Jessie.

I deleted the system-information, since Im writing this bug report from
another machine, and it does not make any difference anyway.

Best Regards 
and a BIG THANKYOU for all the good work.

Friedhelm


-- no debconf information


Message sent:


From: owner@bugs.devuan.org (Devuan bug Tracking System)
To: Friedhelm Mehnert <friedhelm@friedhelms.net>
Subject: bug#138: Acknowledgement (chrony: is always offline at system start)

Thank you for the problem report you have sent regarding Devuan.
This is an automatically generated reply, to let you know your message has
been received.  It is being forwarded to the developers mailing list for
their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 owner@bugs.devuan.org

If you wish to submit further information on your problem, please send
it to 138@bugs.devuan.org (and *not* to
submit@bugs.devuan.org).

Please do not reply to the address at the top of this message,
unless you wish to report a problem with the bug-tracking system.

Devuan Bugs Owner
(administrator, Devuan bugs database)


Message received at control@bugs.devuan.org:


Received: (at control) by bugs.devuan.org; 7 Dec 2017 21:50:06 +0000
Date: Thu, 7 Dec 2017 21:44:51 +0000
From: KatolaZ <katolaz@freaknet.org>
To: control@bugs.devuan.org
Subject: ...


--1p/8YZFQDK16REep
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

tags 133 ascii
tags 140 jessie
tags 90 jessie
tags 43 jessie
tags 167 ascii
tags 126 ascii
tags 151 jessie
tags 138 jessie
tags 117 jessie
tags 117 ascii
tags 127 jessie
tags 120 ascii
tags 20 jessie
tags 148 jessie
tags 148 ascii
tags 149 ascii
tags 149 jessie
tags 135 ascii
tags 136 jessie
tags 134 jessie
tags 134 ascii
tags 143 ascii
tags 143 jessie
tags 54 jessie
tags 54 ascii
tags 154 ascii
tags 154 jessie
tags 48 jessie
tags 87 ascii
tags 113 jessie
tags 141 ascii
tags 41 jessie
tags 119 jessie
tags 164 ascii
tags 64 jessie
tags 163 ascii
tags 158 jessie
tags 58 ascii
tags 58 jessie
tags 110 jessie
tags 160 jessie
tags 166 jessie
tags 99 jessie
tags 130 ascii
tags 130 jessie
tags 107 ascii
tags 162 ascii
tags 106 ascii
tags 155 jessie
tags 55 jessie
tags 131 jessie
tags 152 ascii
tags 79 jessie
tags 137 jessie
tags 36 jessie
tags 37 jessie
tags 145 ascii
tags 45 jessie
tags 49 jessie
close 30
close 68
close 64
merge 154 148
merge 90 22

--1p/8YZFQDK16REep
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAloptlMACgkQXyCzrgtfBi8qNwCffM2eYmJMgBkX3BOmYIkZZeAV
328AoIgAr1HPmqZKmB/wj/IgdUhbjAm4
=lI+l
-----END PGP SIGNATURE-----

--1p/8YZFQDK16REep--


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Sat, 20 Apr 2019 22:39:02 UTC