All metar fetches fail due to NOAA 302 redirect

Bug #1610210 reported by Peter Frost
62
This bug affects 9 people
Affects Status Importance Assigned to Milestone
metar (Debian)
Fix Released
Unknown
metar (Ubuntu)
Fix Released
Medium
Unassigned
Xenial
Fix Released
Medium
Unassigned

Bug Description

[Impact]

 * NOAA changed the URL for the service metar relies on to retrieve weather information
 * This has been fixed in 20061030.1-2.2 that is in YY and ZZ (LP: #1610210)
   but not yet in XX (16.04 LTS) and previous releases
 * justification: the metar program will not display any weather information
   anymore without the fix (complete functionality loss for users)
 * remedy: update URL in the source (it is hardcoded)
   (a work-around is to set the environment variable to the new URL
    METARURL=http://tgftp.nws.noaa.gov/data/observations/metar/stations)

[Test Case]

 * install metar # 20061030.1-2ubuntu2
 * metar FACT # metar information for Cape Town Airport (CPT)
   -> METAR pattern not found in NOAA data
   (correct would be something like: FACT 251000Z 18020KT CAVOK 22/13 Q1017 NOSIG)

[Regression Potential]

 * just a hardcoded URL fix, no program change otherwise
 * works in Debian sid & testing, Ubuntu YY and ZZ

[Other Info]

 * Stable upload in progress as well for next Debian Jessie point-release

-----------------------------------------------------------------------------

All metar fetches are failing:

$ metar LSZH
METAR pattern not found in NOAA data.

Requests for http://weather.noaa.gov/pub/data/observations/metar/stations/XXXX.TXT are now receiving a 302 redirect to http://tgftp.nws.noaa.gov/data/observations/metar/stations/XXXX.TXT

metar needs an updated METARURL, or to set CURLOPT_FOLLOWLOCATION

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in metar (Ubuntu):
status: New → Confirmed
tags: added: xenial yakkety
Revision history for this message
lix (lix-lix) wrote :

btw: I stress for a *international*, *independent*, *non-US* solution reference here.

Changed in metar (Debian):
status: Unknown → New
Changed in metar (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Peter Frost (k-4eter-a) wrote :

For a workaround, metar checks the METARURL environment variable:

METARURL=http://tgftp.nws.noaa.gov/data/observations/metar/stations metar LSZH
LSZH 261320Z 03008KT 9999 SCT036 21/12 Q1020 NOSIG

Changed in metar (Debian):
status: New → Fix Released
Revision history for this message
Jeremy Bícha (jbicha) wrote :

This bug was fixed in the package metar - 20061030.1-2.2

---------------
metar (20061030.1-2.2) unstable; urgency=medium

  * Non-maintainer upload.
  * Import patch for new METAR URL from Kees Leune. Closes: #833655

 -- Daniel Lange <email address hidden> Mon, 22 Aug 2016 16:25:57 +0200

Changed in metar (Ubuntu Xenial):
status: New → Triaged
importance: Undecided → Medium
Changed in metar (Ubuntu):
status: Confirmed → Fix Released
Graham Inggs (ginggs)
description: updated
Revision history for this message
Daniel Lange (dlange) wrote :

Minimal debdiff for Xenial SRU attached.

Graham Inggs (ginggs)
Changed in metar (Ubuntu Xenial):
status: Triaged → In Progress
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Peter, or anyone else affected,

Accepted metar into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/metar/20061030.1-2ubuntu3 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in metar (Ubuntu Xenial):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
lix (lix-lix) wrote : Re: [Bug 1610210] Re: All metar fetches fail due to NOAA 302 redirect

Works like a charm for me, Brian

Thank you!

Best, Lix
--
Lx // 40AD 1EA7 F945 D307 7CB0 2783 3D83 4D8D 18F8 0934
"so long and thanks for all the fish"
On Wed, Dec 07, 2016 at 01:26:02PM -0000, Brian Murray wrote:
> Hello Peter, or anyone else affected,
>
> Accepted metar into xenial-proposed. The package will build now and be
> available at
> https://launchpad.net/ubuntu/+source/metar/20061030.1-2ubuntu3 in a few
> hours, and then in the -proposed repository.
>
> Please help us by testing this new package. See
> https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
> enable and use -proposed. Your feedback will aid us getting this update
> out to other Ubuntu users.
>
> If this package fixes the bug for you, please add a comment to this bug,
> mentioning the version of the package you tested, and change the tag
> from verification-needed to verification-done. If it does not fix the
> bug for you, please add a comment stating that, and change the tag to
> verification-failed. In either case, details of your testing will help
> us make a better decision.
>
> Further information regarding the verification process can be found at
> https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
> advance!
>
> ** Changed in: metar (Ubuntu Xenial)
> Status: In Progress => Fix Committed
>
> ** Tags added: verification-needed
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1626633).
> https://bugs.launchpad.net/bugs/1610210
>
> Title:
> All metar fetches fail due to NOAA 302 redirect
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/metar/+bug/1610210/+subscriptions

Revision history for this message
Peter Frost (k-4eter-a) wrote :

20061030.1-2ubuntu3 works for me on Xenial too, thanks!

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package metar - 20061030.1-2ubuntu3

---------------
metar (20061030.1-2ubuntu3) xenial; urgency=medium

  * SRU of 20061030.1-2.2 from Yakkety Yak and later,
    fixes new upstream URL (LP: #1610210)

 -- Daniel Lange <email address hidden> Fri, 02 Dec 2016 09:58:27 +0100

Changed in metar (Ubuntu Xenial):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for metar has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.