Date: Tue, 28 Nov 2017 21:18:04 +0100 From: "Ronald Klop" <ronald-lists@klop.ws> To: freebsd-stable@freebsd.org, "Cy Schubert" <cy@freebsd.org> Subject: Re: Fwd: rpi2 daily run weird output (480.leapfile-ntpd) Message-ID: <op.zafj0efokndu52@klop.ws> In-Reply-To: <op.zafjhkdmkndu52@klop.ws> References: <5a1cc620.102e4.37872ca3@rpi2> <op.zafh0jpjkndu52@klop.ws> <op.zafjhkdmkndu52@klop.ws>
next in thread | previous in thread | raw e-mail | index | archive | help
------------nGENO37RwxpAppysUyIX8Q Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit The attached diff fixes the issue for me. NB: The variable is also used in ntpd_precmd() if you used chroot. I guess that use case was broken too. Regards, Ronald. On Tue, 28 Nov 2017 21:06:46 +0100, Ronald Klop <ronald-lists@klop.ws> wrote: > Ah, it comes from the script after it. > > [ronald@rpi2 /etc/periodic/daily]$ ./480.leapfile-ntpd > usage: fetch [-146AadFlMmnPpqRrsUv] [-B bytes] [--bind-address=host] > [--ca-cert=file] [--ca-path=dir] [--cert=file] [--crl=file] > [-i file] [--key=file] [-N file] [--no-passive] [--no-proxy=list] > [--no-sslv3] [--no-tlsv1] [--no-verify-hostname] > [--no-verify-peer] > [-o file] [--referer=URL] [-S bytes] [-T seconds] > [--user-agent=agent-string] [-w seconds] URL ... > fetch [-146AadFlMmnPpqRrsUv] [-B bytes] [--bind-address=host] > [--ca-cert=file] [--ca-path=dir] [--cert=file] [--crl=file] > [-i file] [--key=file] [-N file] [--no-passive] [--no-proxy=list] > [--no-sslv3] [--no-tlsv1] [--no-verify-hostname] > [--no-verify-peer] > [-o file] [--referer=URL] [-S bytes] [-T seconds] > [--user-agent=agent-string] [-w seconds] -h host -f file [-c dir] > > Apparently $ntp_tmp_leapfile is empty on this line in /etc/rc.d/ntpd: > fetch $ntp_leapfile_fetch_opts -o > $ntp_tmp_leapfile $url && break > > [ronald@rpi2 ~]$ sh -x /etc/rc.d/ntpd onefetch > <snip a lot of output> > + fetch -mq -o https://www.ietf.org/timezones/data/leap-seconds.list > usage: fetch [-146AadFlMmnPpqRrsUv] [-B bytes] [--bind-address=host] > > > The variable $ntp_tmp_leapfile is missing since the fetch method was > split in r325256. > https://svnweb.freebsd.org/base/stable/11/etc/rc.d/ntpd?r1=325256&r2=325255&pathrev=325256 > > Cc-ing the committer. > > Regards, > > Ronald. > > > On Tue, 28 Nov 2017 20:34:57 +0100, Ronald Klop <ronald-lists@klop.ws> > wrote: > >> Isn't this very weird in the output of last night: >> "Checking for rejected mail hosts: >> usage: fetch [-146AadFlMmnPpqRrsUv] [-B bytes] [--bind-address=host]" >> >> I don't see yet how the script >> /etc/periodic/daily/460.status-mail-rejects can try to call fetch. >> >> Any thoughts on this? >> >> For the record. I run dma instead of sendmail. >> $ cat /etc/mail/mailer.conf >> # $FreeBSD: stable/11/libexec/dma/dmagent/mailer.conf 289087 2015-10-09 >> 22:09:44Z bapt $ >> >> sendmail /usr/libexec/dma >> send-mail /usr/libexec/dma >> mailq /usr/libexec/dma >> >> on >> FreeBSD rpi2 11.1-STABLE FreeBSD 11.1-STABLE #2 r325879: Thu Nov 16 >> 02:03:21 CET 2017 >> root@rpi2:/mnt/usbdisk/usr/obj/mnt/usbdisk/usr/src/sys/RPI2 arm >> >> Ronald. >> >> >> >> ------- Forwarded message ------- >> From: root@klop.ws >> To: root >> Cc: >> Subject: rpi2 daily run output >> Date: Tue, 28 Nov 2017 03:12:48 +0100 >> >> >> Removing stale files from /var/preserve: >> >> Cleaning out old system announcements: >> >> Removing stale files from /var/rwho: >> >> Removing stale entries from sendmail host status cache: >> mailwrapper: no mapping in /etc/mail/mailer.conf >> >> Backup passwd and group files: >> >> Verifying group file syntax: >> /etc/group is fine >> >> Backing up mail aliases: >> >> Disk status: >> Filesystem Size Used Avail Capacity Mounted on >> /dev/ufs/rootfs 1.8G 1.4G 242M 86% / >> devfs 1.0K 1.0K 0B 100% /dev >> /dev/msdosfs/MSDOSBOOT 50M 7.4M 43M 15% /boot/msdos >> tmpfs 128M 628K 127M 0% /tmp >> /dev/da0s1a 14G 7.8G 4.7G 62% /mnt/usbdisk >> tmpfs 512M 4.0K 512M 0% >> /var/tmp/ports-build >> >> Network interface status: >> Name Mtu Network Address Ipkts Ierrs Idrop >> Opkts >> Oerrs Coll Drop >> lo0 16384 <Link#1> lo0 0 0 0 >> 0 0 0 0 >> lo0 - localhost localhost 0 - - >> 0 - - - >> lo0 - fe80::%lo0/64 fe80::1%lo0 0 - - >> 0 - - - >> lo0 - your-net localhost 0 - - >> 0 - - - >> ue0 1500 <Link#2> b8:27:eb:77:37:63 581144 0 0 >> 95090 0 0 0 >> ue0 - 192.168.1.0/2 192.168.1.148 95132 - - >> 84713 - - - >> >> Local system status: >> 3:01AM up 11 days, 11:05, 2 users, load averages: 0.36, 0.09, 0.03 >> >> Mail in local queue: >> Mail queue is empty >> >> Mail in submit queue: >> mailq: invalid arguments >> >> Security check: >> (output mailed separately) >> >> Checking for rejected mail hosts: >> usage: fetch [-146AadFlMmnPpqRrsUv] [-B bytes] [--bind-address=host] >> [--ca-cert=file] [--ca-path=dir] [--cert=file] [--crl=file] >> [-i file] [--key=file] [-N file] [--no-passive] >> [--no-proxy=list] >> [--no-sslv3] [--no-tlsv1] [--no-verify-hostname] >> [--no-verify-peer] >> [-o file] [--referer=URL] [-S bytes] [-T seconds] >> [--user-agent=agent-string] [-w seconds] URL ... >> fetch [-146AadFlMmnPpqRrsUv] [-B bytes] [--bind-address=host] >> [--ca-cert=file] [--ca-path=dir] [--cert=file] [--crl=file] >> [-i file] [--key=file] [-N file] [--no-passive] >> [--no-proxy=list] >> [--no-sslv3] [--no-tlsv1] [--no-verify-hostname] >> [--no-verify-peer] >> [-o file] [--referer=URL] [-S bytes] [-T seconds] >> [--user-agent=agent-string] [-w seconds] -h host -f file [-c >> dir] >> >> Checking userland and kernel versions: >> Userland and kernel are in sync. >> >> Backing up pkgng database: >> >> -- End of daily output -- >> _______________________________________________ >> freebsd-stable@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-stable >> To unsubscribe, send any mail to >> "freebsd-stable-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" ------------nGENO37RwxpAppysUyIX8Q Content-Disposition: attachment; filename=ntpd.diff Content-Type: application/octet-stream; name=ntpd.diff Content-Transfer-Encoding: Base64 LS0tIC91c3Ivc3JjL2V0Yy9yYy5kL250cGQJMjAxNy0xMS0wOSAyMzowMDoyNi4x MjM3OTcwMDAgKzAxMDAKKysrIC9ldGMvcmMuZC9udHBkCTIwMTctMTEtMjggMjE6 MjM6MTIuNTkwMTM1MDAwICswMTAwCkBAIC0yMCw2ICsyMCw4IEBACiBuZWVkZmV0 Y2hfY21kPSJudHBkX25lZWRmZXRjaF9sZWFwZmlsZSIKIHN0YXJ0X3ByZWNtZD0i bnRwZF9wcmVjbWQiCiAKK250cF90bXBfbGVhcGZpbGU9Ii92YXIvcnVuL250cGQu bGVhcC1zZWNvbmRzLmxpc3QiCisKIGxvYWRfcmNfY29uZmlnICRuYW1lCiAKIG50 cGRfcHJlY21kKCkKQEAgLTkyLDcgKzk0LDcgQEAKIH0KIAogbnRwZF9uZWVkZmV0 Y2hfbGVhcGZpbGUoKSB7Ci0JbG9jYWwgbnRwX3RtcF9sZWFwZmlsZSByYyB2ZXJi b3NlCisJbG9jYWwgcmMgdmVyYm9zZQogCQogCWlmIGNoZWNreWVzbm8gbnRwX2xl YXBmaWxlX2ZldGNoX3ZlcmJvc2U7IHRoZW4KIAkJdmVyYm9zZT1lY2hvCkBAIC0x MDAsOCArMTAyLDYgQEAKIAkJdmVyYm9zZT06CiAJZmkKIAotCW50cF90bXBfbGVh cGZpbGU9Ii92YXIvcnVuL250cGQubGVhcC1zZWNvbmRzLmxpc3QiCi0KIAludHBf dmVyX25vX3NyYz0kKGdldF9udHBfbGVhcGZpbGVfdmVyICRudHBfc3JjX2xlYXBm aWxlKQogCW50cF9leHBpcnlfc3JjPSQoZ2V0X250cF9sZWFwZmlsZV9leHBpcnkg JG50cF9zcmNfbGVhcGZpbGUpCiAJbnRwX3Zlcl9ub19kYj0kKGdldF9udHBfbGVh cGZpbGVfdmVyICRudHBfZGJfbGVhcGZpbGUpCg== ------------nGENO37RwxpAppysUyIX8Q--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.zafj0efokndu52>