使用Windows可下载的EXE进行内流。一直到今天早上都很好。
我今天启动了influxd,我在控制台中看到:
c:\Influx>influxd
2021-06-10T06:21:49.336269Z info Welcome to InfluxDB {"log_id": "0Ue9Baal000", "version": "2.0.7", "commit": "2a45f0c037", "build_date": "2021-06-04T19:17:40Z"}
2021-06-10T06:21:49.341178Z info Resources opened {"log_id": "0Ue9Baal000", "service": "bolt", "path": "C:\\Users\\guyl\\.influxdbv2\\influxd.bolt"}
2021-06-10T06:21:49.355301Z info Checking InfluxDB metadata for prior version. {"log_id": "0Ue9Baal000", "bolt_path": "C:\\Users\\guyl\\.influxdbv2\\influxd.bolt"}
2021-06-10T06:21:49.356219Z info Using data dir {"log_id": "0Ue9Baal000", "service": "storage-engine", "service": "store", "path": "C:\\Users\\guyl\\.influxdbv2\\engine\\data"}
2021-06-10T06:21:49.356219Z info Compaction settings {"log_id": "0Ue9Baal000", "service": "storage-engine", "service": "store", "max_concurrent_compactions": 4, "throughput_bytes_per_second": 50331648, "throughput_bytes_per_second_burst": 50331648}
2021-06-10T06:21:49.356219Z info Open store (start) {"log_id": "0Ue9Baal000", "service": "storage-engine", "service": "store", "op_name": "tsdb_open", "op_event": "start"}
2021-06-10T06:21:49.391834Z info index opened with 8 partitions {"log_id": "0Ue9Baal000", "service": "storage-engine", "index": "tsi"}
2021-06-10T06:21:49.392819Z info index opened with 8 partitions {"log_id": "0Ue9Baal000", "service": "storage-engine", "index": "tsi"}
2021-06-10T06:21:49.397817Z info Reading file {"log_id": "0Ue9Baal000", "service": "storage-engine", "engine": "tsm1", "service": "cacheloader", "path": "C:\\Users\\guyl\\.influxdbv2\\engine\\wal\\3198a3a2f58ea23a\\autogen\\2\\_00001.wal", "size": 1401771}
2021-06-10T06:21:49.397817Z info Reading file {"log_id": "0Ue9Baal000", "service": "storage-engine", "engine": "tsm1", "service": "cacheloader", "path": "C:\\Users\\guyl\\.influxdbv2\\engine\\wal\\3198a3a2f58ea23a\\autogen\\1\\_00001.wal", "size": 10498778}
2021-06-10T06:21:49.516021Z info Opened shard {"log_id": "0Ue9Baal000", "service": "storage-engine", "service": "store", "op_name": "tsdb_open", "index_version": "tsi1", "path": "C:\\Users\\guyl\\.influxdbv2\\engine\\data\\3198a3a2f58ea23a\\autogen\\2", "duration": "140.184ms"}
2021-06-10T06:21:50.165166Z info Reading file {"log_id": "0Ue9Baal000", "service": "storage-engine", "engine": "tsm1", "service": "cacheloader", "path": "C:\\Users\\guyl\\.influxdbv2\\engine\\wal\\3198a3a2f58ea23a\\autogen\\1\\_00002.wal", "size": 2714197}
2021-06-10T06:21:50.356368Z info Opened shard {"log_id": "0Ue9Baal000", "service": "storage-engine", "service": "store", "op_name": "tsdb_open", "index_version": "tsi1", "path": "C:\\Users\\guyl\\.influxdbv2\\engine\\data\\3198a3a2f58ea23a\\autogen\\1", "duration": "980.511ms"}
2021-06-10T06:21:50.357325Z info Open store (end) {"log_id": "0Ue9Baal000", "service": "storage-engine", "service": "store", "op_name": "tsdb_open", "op_event": "end", "op_elapsed": "1001.082ms"}
2021-06-10T06:21:50.359335Z info Starting retention policy enforcement service {"log_id": "0Ue9Baal000", "service": "retention", "check_interval": "30m"}
2021-06-10T06:21:50.359335Z info Starting precreation service {"log_id": "0Ue9Baal000", "service": "shard-precreation", "check_interval": "10m", "advance_period": "30m"}
2021-06-10T06:21:50.360336Z info Starting query controller {"log_id": "0Ue9Baal000", "service": "storage-reads", "concurrency_quota": 1024, "initial_memory_bytes_quota_per_query": 9223372036854775807, "memory_bytes_quota_per_query": 9223372036854775807, "max_memory_bytes": 0, "queue_size": 1024}
2021-06-10T06:21:50.362322Z info Configuring InfluxQL statement executor (zeros indicate unlimited). {"log_id": "0Ue9Baal000", "max_select_point": 0, "max_select_series": 0, "max_select_buckets": 0}
2021-06-10T06:21:50.684777Z info Starting {"log_id": "0Ue9Baal000", "service": "telemetry", "interval": "8h"}
2021-06-10T06:21:50.684777Z info Listening {"log_id": "0Ue9Baal000", "service": "tcp-listener", "transport": "http", "addr": ":8086", "port": 8086}
2021-06-10T06:21:57.610274Z info Unauthorized {"log_id": "0Ue9Baal000", "error": "authorization not found"}
2021-06-10T06:22:07.611932Z info Unauthorized {"log_id": "0Ue9Baal000", "error": "authorization not found"}
2021-06-10T06:22:17.616794Z info Unauthorized {"log_id": "0Ue9Baal000", "error": "authorization not found"}
2021-06-10T06:22:27.630195Z info Unauthorized {"log_id": "0Ue9Baal000", "error": "authorization not found"}
2021-06-10T06:22:37.643137Z info Unauthorized {"log_id": "0Ue9Baal000", "error": "authorization not found"}首先,我想可能是因为我的influx.conf文件有一个过时的令牌,所以我更新了它:
[default]
url = "http://localhost:8086"
token = "my updated token=="
org = "My company name"
active = true我又试了一次influxd,但是我得到了同样的结果。
我从一个Admin DOS弹壳里跑出来的。
数据库正在运行,因为我可以登录到这个网站,但我似乎无法进入我的桶:

这是我的两张代币:

"Load的令牌“对所有内容都进行了读写,就像我创建它一样。

这是我把这个标记放入我的influx.conf文件中的。(由于某种原因,情况发生了变化。)
我的load_bucket留用期现在是一年。我试着把它改变到永远,但是即使我保存了我的改变,它也会持续一年。
我还尝试创建一个新的桶,并从脚本中写入,但是脚本无法连接。
发布于 2021-06-10 08:34:24
您可以按照以下步骤操作:
auth列表并查看所有令牌列表,以及是否具有读写权限:influx.exe auth list
您还可以在dasboard中查看:

如果无法看到令牌,则可以生成具有读/写或所有访问权限的令牌。

influx.exe bucket create --name <Nameofyourdb> --org <Organistaion name> --description <"Your description"> --token <token string>influx.exe write --bucket <Nameofyourdb> --host http://localhost:8086 "m,host=host1 field1=1.2"https://stackoverflow.com/questions/67917118
复制相似问题