Open rmloveland opened 4 years ago
cc @knz -- should there be a docs FAQ page in resolving these issues?
(if testing geospatial, i think you can set COCKROACH_INCONSISTENT_TIME_ZONES=true
as an environment variable temporarily).
cc @knz -- should there be a docs FAQ page in resolving these issues?
This is a regression.
(if testing geospatial, i think you can set COCKROACH_INCONSISTENT_TIME_ZONES=true as an environment variable temporarily).
I think that's not applicable. windows remains unsupported for geospatial since there's no dll support?
I think that's not applicable. windows remains unsupported for geospatial since there's no dll support?
the DLLs are there, haven't been able to test yet because I haven't had time to grab a windows VM.
@otan @rmloveland sorry I can't be of help right now, but the way to troubleshoot this is to remove this condition from pkg/util/timeutil/zoneinfo.go
:
if err != nil && strings.Contains(err.Error(), "zoneinfo.zip") {
err = errTZDataNotFound
}
(otherwise the code masks the exact cause of the problem)
And then inspect the error reported on windows for more details. Only when we know exactly what's wrong, can we expect to fix it.
Alternatively, try renaming your .zip
file to somethingelse.zip
(i.e. not "zoneinfo.zip"),
then point the ZONEINFO env var to that
then try again
it should bypass the condition above
Hi @rmloveland, please add a C-ategory label to your issue. Check out the label system docs.
While you're here, please consider adding an A- label to help keep our repository tidy.
:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan.
This still fails using v20.1.6
.\cockroach.exe version
Build Tag: v20.1.6
Build Time: 2020/09/24 18:28:05
Distribution: CCL
Platform: windows amd64 (x86_64-w64-mingw32)
Go Version: go1.13.9
C Compiler: gcc 6.3.0
Build SHA-1: be8c0a720e98a147263424cc13fc9bfc75f46013
Build Type: release
Workaround from above helped
set COCKROACH_INCONSISTENT_TIME_ZONES=true
@otan I think your change fixed this issue right? If so feel free to close this.
Following the instructions to Install CockroachDB on Windows on a Windows laptop:
ZONEINFO
env var on Windows (I did this at the "user" level and later tried at the "system" level)ZONEINFO
even though I have confirmed (via PowerShell commands below) that (a) the file exists, and (b) it is pointed to by theZONEINFO
variable(The Powershell session pasted below also checks my specific Windows 10 version, since the laptop just updated recently. I have no idea if that matters here or not.)
See also:
Jira issue: CRDB-6305