Skip to content
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

error parsing query: unable to find time zone #10196

Closed
CoderOverflow opened this issue Aug 15, 2018 · 10 comments
Closed

error parsing query: unable to find time zone #10196

CoderOverflow opened this issue Aug 15, 2018 · 10 comments

Comments

@CoderOverflow
Copy link

CoderOverflow commented Aug 15, 2018

System info: [Include InfluxDB version, operating system name, and other relevant details]
1.6.1 window 2003
Steps to reproduce:

5v l2lc aojs8vy0 v 74w

I used tz(), but it cannot run correctly.

received status code 400 from server: err: error parsing query: unable to find time zone Europe/Athens

dzz41e _f46y4tl8mzulp q

@kabua
Copy link

kabua commented Sep 4, 2018

I got the same thing when trying to use America/Chicago or America/New_York

Here's some example code:

> select * from "computerInfo1"
name: computerInfo1
time                Host      Region  cpu              ram
----                ----      ------  ---              ---
1536016386197803300 some-host west-eu 0.29180121807931 1122304810
>
> select * from "computerInfo1" tz('America/New_York')
ERR: error parsing query: unable to find time zone America/New_York
> select * from "computerInfo1" tz('America/Chicago')
ERR: error parsing query: unable to find time zone America/Chicago

@steinelg
Copy link

steinelg commented Sep 14, 2018

+1 It would be great to have this feature back, any help much appreciated.

Running windows 7 and InfluxDB 1.6.0 i get the same issue. This is perhaps windows-specific?

@zhgqiang
Copy link

zhgqiang commented Nov 1, 2018

因为InfluxDB开发语言是go,我测试了一下配置go环境变量,就没有问题了,主要依赖go下边的lib库。

@dgnorton dgnorton added the 1.x label Jan 7, 2019
@zheng7yan
Copy link

zheng7yan commented Mar 12, 2019

@zhgqiang 你好,请问您是在windows机器上配置的go环境变量来解决这个问题的吗?如果是的话,能大体告知一下吗?
ps:我用的influxd版本是1.7.4.1,系统是win server 2016


已经解决了,安装一下golang的安装包,重启一下influxd就可以了

@stale
Copy link

stale bot commented Jul 23, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jul 23, 2019
@stale
Copy link

stale bot commented Jul 30, 2019

This issue has been automatically closed because it has not had recent activity. Please reopen if this issue is still important to you. Thank you for your contributions.

@stale stale bot closed this as completed Jul 30, 2019
@bomerzz
Copy link

bomerzz commented Aug 7, 2019

Any updates on the above issue? Still present on windows for 1.7.7

@sbhenderson
Copy link

sbhenderson commented Sep 18, 2019

This describes what's happening in more detail: Golang TZ issue

Turns out, this is a general issue with Go on Windows platforms, but anyone who is Googling may at least find out the answer from the referenced issue. Personally, I was able to resolve it by getting the zoneinfo.zip from installing Go locally (not necessary on the Windows machine running InfluxDB) and placing it into the correct folder.

@ashishtaldeokar
Copy link

In case, anyone has this issue in Ubuntu systems,
you probably are missing Timezone data in OS that is timedatectl list-timezones returns only UTC format. In this case, you can just install the tzdata package, ex apt install tzdata or if it is already installed you can just reconfigure using dpkg-reconfigure tzdata
This worked for me, as a fresh VM from gcp did not have tzdata and my influx setup came across this error.

@henjoe
Copy link

henjoe commented Dec 6, 2023

This describes what's happening in more detail: Golang TZ issue

Turns out, this is a general issue with Go on Windows platforms, but anyone who is Googling may at least find out the answer from the referenced issue. Personally, I was able to resolve it by getting the zoneinfo.zip from installing Go locally (not necessary on the Windows machine running InfluxDB) and placing it into the correct folder.

Hi I know this is a little bit old, but I can't find proper solutions for this. I am using influxdb 1.8 on windows machine using the tz command gives me error. Have you resolve it? You said on windows machine, it is not necessary to install Go locally? and you get the zone.info? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests