The "freebsd-update cron" command in 10.2-RELEASE produces the following output when run if the src component of the OS is not installed. <output> src component not installed, skipped </output> This is not desirable when using the cron option because the output causes an email to be generated. Patch that introduced the issue: https://reviews.freebsd.org/rS284425
Hi, (In reply to Jason from comment #0)
(In reply to Jason from comment #0) Hi, I have done some initial investigation and my first reaction is that this is actually a feature. The default /etc/freebsd-update.conf says: """ Components src world kernel """ And, if src/ is not installed, it seems to be reasonable to keep warning you until the either configuration is changed, or src/ gets installed. However, from a usability point of view, it does seem reasonable that the installer should make the change for the user if they elected not to install system source code.
(In reply to Xin LI from comment #2) A quick look at things and I see that most of what freebsd-update interactively prints is from the fetch_run() function and this is normally dumped to a file when `freebsd-update cron` runs (line 3315). It looks like most of the echo statements outside of this are error conditions and followed by an exit 1. These error conditions we would want an email from cron to let us know our configuration is wrong. However we don't want cron to email us a routine notice that the src component is not installed.
https://reviews.freebsd.org/D3527
This trouble also happen on a: # freebsd-update install src component not installed, skipped
batch change: For bugs that match the following - Status Is In progress AND - Untouched since 2018-01-01. AND - Affects Base System OR Documentation DO: Reset to open status. Note: I did a quick pass but if you are getting this email it might be worthwhile to double check to see if this bug ought to be closed.
Subscribing here, I am somewhat tired of getting hundreds of one line cron mails every night.
Does https://reviews.freebsd.org/D26432 do what you expect?
I do not know, does it stop outputting "src component not installed, skipped" when running freebsd-update cron ?
(In reply to Mathieu Arnold from comment #9) That message should now only appear in the email which is sent when updates have been downloaded and are ready to be installed. But it would be good to have some independent confirmation that the code does what I think it does. ;-)
A commit references this bug: Author: cperciva Date: Sat Sep 19 02:15:56 UTC 2020 New revision: 365898 URL: https://svnweb.freebsd.org/changeset/base/365898 Log: Move finalize_components_config from get_params to cmd_*. This allows us to redirect its output in cmd_cron, so that the "src component not installed, skipped" message will be treated the same way as other output from freebsd-update cron: Sent in an email to root (or other address specified) if there are updates to install, and silenced otherwise. PR: 202492 MFC After: 1 week Differential Revision: https://reviews.freebsd.org/D26432 Changes: head/usr.sbin/freebsd-update/freebsd-update.sh
Believed fixed by commit 9a63bbc93e574d1f93c1583a5f51ae3bbace476a (r365898). Please reopen if the issue persists.