"environment variable `TZ` is missing, using `/etc/localtime`"

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。

  • 【TiDB 版本】:v3.0.8
  • 【问题描述】: tikv-importer 启动报如下错误

[2020/03/04 11:11:21.002 +08:00] [INFO] [tikv-importer.rs:41] [“Welcome to TiKV Importer.”] [2020/03/04 11:11:21.003 +08:00] [INFO] [tikv-importer.rs:43] [] [2020/03/04 11:11:21.003 +08:00] [INFO] [tikv-importer.rs:43] [“Release Version: 3.0.8”] [2020/03/04 11:11:21.003 +08:00] [INFO] [tikv-importer.rs:43] [“Git Commit Hash: a9f1e2dc6d20284a2c61b57f7bcfd84d161268f2”] [2020/03/04 11:11:21.003 +08:00] [INFO] [tikv-importer.rs:43] [“Git Commit Branch: release-3.0”] [2020/03/04 11:11:21.003 +08:00] [INFO] [tikv-importer.rs:43] [“UTC Build Time: 2019-12-31 01:01:07”] [2020/03/04 11:11:21.003 +08:00] [INFO] [tikv-importer.rs:43] [“Rust Version: rustc 1.37.0-nightly (0e4a56b4b 2019-06-13)”] [2020/03/04 11:11:21.003 +08:00] [INFO] [tikv-importer.rs:45] [] [2020/03/04 11:11:21.003 +08:00] [WARN] [lib.rs:545] ["environment variable TZ is missing, using /etc/localtime"] [2020/03/04 11:11:21.024 +08:00] [FATAL] [lib.rs:499] [“called Result::unwrap() on an Err value: AddrParseError(())”] [backtrace=“stack backtrace:\n 0: 0x55e0b882c3bd - backtrace::backtrace::trace::hcb2647c6d67dfa4f”] [location=src/libcore/result.rs:999] [thread_name=main]

tikv-importer.toml (591 字节)

能上传一下完整的日志文件吗,看 FATAL 信息似乎不完整

已经是完整的日子,https://github.com/pingcap/tidb/pull/14086 不知道是不是和这个有关系

nohup.out (152 字节) tikv-importer.log (1.1 KB)

localtime (388 字节)

已解决,addr 变量不能用域名,谢谢!

尝试修改一下配置文件试下

addr变量只能用ip,不能用0.0.0.0 或者域名,谢谢!

1赞

:+1::+1::+1: