-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sql: time zone name not recognized when running CockroachDB on windows #32415
Comments
I now changed the settings on my machines to UTC, this works.. So the question is how can I properly change the timezone in crdb on windows? |
@BramGruneir could you take a look at this and determine 1) if you can repro the issue 2) what do you think the cause is (you don't need to actually solve the issue at this point - we just need a clear picture of what is going on) |
@pungggi until we investigate this, could you consider running CockroachDB inside a Linux container/VM, and connect to it over the network from the Windows DBeaver? |
@knz I can actually run cockroach no problems there, just the connection to dbeaver is not working because I cannot change the timezone. But i will change the timezone of the machine to be aligned with the driver (UTC) and then reset again. |
I am facing the same issue here when connecting from the Java program.
What is the correct TimeZone value? |
The state of this is that the Go runtime system on Windows does not maintain the same timezone database as on other systems. As a result the "name" timezones do not work on Windows. To fix this would require a non-trivial investment in the way the CockroachDB binary is built on windows. To work around:
|
This is an annoying trap in the go standard library: if the go toolchain is installed, it will use timezone data from that toolchain even on windows. This is why our testing on windows didn't uncover this, because we haven't done much testing on machines that didn't have go installed. The place-name time zones are important (numeric time zones are not a substitute because they don't specify which DST rules to use), so I think we're going to have to embed a copy of the zoneinfo database into CRDB to address this. |
I'm getting the same issue on v 2.1.5 running the server on Ununtu Linux, and the Java client (42.2.5) on a Windows box. |
@JAC2703 Do you have the |
@bdarnell tzdata was missing on one of the nodes which was likely what I was connecting to. Installing it fixed the issue. Can we update the pre-req's on the installation page to require this also? Thanks for the pointer.
|
Yeah, we should document that. I thought |
I'm using a VPS variant (scaleway.com) that's likely stripped it out. If it's happened once though, I'm sure someone else will hit the same issue. It does, however, show up on the 18.04 manifest for server: http://releases.ubuntu.com/bionic/ubuntu-18.04.2-live-server-amd64.manifest |
Also update time zone dependency data more generally. Addresses cockroachdb/cockroach#32415.
Also update time zone dependency data more generally. Addresses cockroachdb/cockroach#32415.
Also update time zone dependency data more generally. Addresses cockroachdb/cockroach#32415.
The discussion should continue on #36864. |
Is there an update on this issue ? As much as possible I would like to run my cockroach cluster in Windows directly. |
Time zone issues are only maybe 5% or less of the work needed to make CockroachDB production-ready on Windows. |
Closing in favor of #36864 |
Cannot connect to DB under Windows:
Other users have similar problem with founding timezone see> #31297 (comment)
Environment:
The text was updated successfully, but these errors were encountered: