Bug 204115

Summary: freebsd-update: Add support for better user messaging from server/service
Product: Base System Reporter: Kubilay Kocak <koobs>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Some People CC: cperciva, delphij, emaste, security-officer
Priority: --- Keywords: feature
Version: CURRENTFlags: koobs: mfc-stable10?
koobs: mfc-stable9?
Hardware: Any   
OS: Any   
URL: https://twitter.com/aikchar/status/659589693445533696
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197308
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=120552
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=135444

Description Kubilay Kocak freebsd_committer freebsd_triage 2015-10-29 05:14:11 UTC
Currently freebsd-update fails in the following manner for unsupported $ARCH's: 

# freebsd-update fetch
Fetching public key from http://update6.freebsd.org failed.

In order to improve the user experience, and provide additional context/information for particular failure scenarios, freebsd-update(8) should support returning messaging for errors/notifications/warnings from the server.

This would also allow for a much better user experience in additional situations, such as when the service is experiencing issues, during maintenance and for other uses we cant think of yet.
Comment 1 Ed Maste freebsd_committer freebsd_triage 2016-12-20 21:59:54 UTC
The server is just a plain web server and doesn't have a convenient way to return a specific error message for e.g. an unsupported arch. However, I suspect that the two common errors here are unsupported arch and unsupported release, and it should be straightforward to detect those two cases in FreeBSD-update itself and report a more direct error.
Comment 2 commit-hook freebsd_committer freebsd_triage 2019-01-24 18:51:21 UTC
A commit references this bug:

Author: emaste
Date: Thu Jan 24 18:51:15 UTC 2019
New revision: 343411
URL: https://svnweb.freebsd.org/changeset/base/343411

Log:
  freebsd-update: Clarify unsupported upgrade message

  PR:		204115
  Submitted by:	Gerald Aryeetey <aryeeteygerald_rogers.com>
  Reviewed by:	delphij
  MFC after:	1 month
  Sponsored by:	The FreeBSD Foundation
  Differential Revision:	https://reviews.freebsd.org/D18916

Changes:
  head/usr.sbin/freebsd-update/freebsd-update.sh
Comment 3 commit-hook freebsd_committer freebsd_triage 2019-03-05 18:27:36 UTC
A commit references this bug:

Author: emaste
Date: Tue Mar  5 18:26:35 UTC 2019
New revision: 344807
URL: https://svnweb.freebsd.org/changeset/base/344807

Log:
  MFC r343411: freebsd-update: Clarify unsupported upgrade message

  PR:		204115
  Submitted by:	Gerald Aryeetey <aryeeteygerald_rogers.com>
  Reviewed by:	delphij
  Sponsored by:	The FreeBSD Foundation

Changes:
_U  stable/12/
  stable/12/usr.sbin/freebsd-update/freebsd-update.sh
Comment 4 commit-hook freebsd_committer freebsd_triage 2019-03-05 18:27:38 UTC
A commit references this bug:

Author: emaste
Date: Tue Mar  5 18:27:30 UTC 2019
New revision: 344808
URL: https://svnweb.freebsd.org/changeset/base/344808

Log:
  MFC r343411: freebsd-update: Clarify unsupported upgrade message

  PR:		204115
  Submitted by:	Gerald Aryeetey <aryeeteygerald_rogers.com>
  Reviewed by:	delphij
  Sponsored by:	The FreeBSD Foundation

Changes:
_U  stable/11/
  stable/11/usr.sbin/freebsd-update/freebsd-update.sh