Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tzupdater failures with 2020b & 2020c

Today iana released timezone db update for 2020b version. Java's tzupdater tool (2.3.1) from oracle fails to patch OpenJDK8u265.

$ java -jar tzupdater.jar -v -u -f -l file:tzdata-latest.tar.gz
Using file:tzdata-latest.tar.gz as source for tzdata bundle.
java.home: /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre
java.vendor: AdoptOpenJDK
java.version: 1.8.0_265
tzupdater version 2.3.1-b02
JRE tzdata version: tzdata2020a
Downloaded file to /var/folders/k4/d4wwf5sd71b0hnp7lvrv1wk40000gn/T/tz.tmp_6/tzdata.tar.gz
tzupdater tool would update with tzdata version: tzdata2020b
Source directory does not contain source file: pacificnew
$ echo $?
1

with 2020c update

tzupdater tool would update with tzdata version: tzdata2020c
Source directory does not contain source file: africa

Update

This was recognized as a bug by Oracle https://bugs.openjdk.java.net/browse/JDK-8255747 and it is fixed as part of tzupdater release 2.3.2 - still waiting for the release to be published.

like image 245
jmj Avatar asked Oct 08 '20 01:10

jmj


3 Answers

We had the same issue, we used to use the https://www.iana.org/time-zones/repository/tzdata-latest.tar.gz URL and they apparently deployed a new version recently.

Quick fix: Try to use the previous version: https://data.iana.org/time-zones/releases/tzdata2020a.tar.gz :)

like image 96
Vitor Duque Avatar answered Oct 18 '22 20:10

Vitor Duque


This issue is fixed with tzupdater at version 2.3.2 as part of JDK-8254226

like image 27
jmj Avatar answered Oct 18 '22 20:10

jmj


A workaround if you need the updates is to take the file pacificnew from the tarfile tzdata2020a.tar.gz and add it to the tar file you want to use.

Update Timezone Updater 2.3.2 was released today

like image 1
mabo Avatar answered Oct 18 '22 21:10

mabo