influxdb: Following Docs to Create and Setup InfluxDB 2.0 on MacOS leads to server internal error
Following this guide:
https://docs.influxdata.com/influxdb/v2.0/get-started/
I
- Installed with homebrew
- ran
influxdin a terminal - Navigated to localhost:8086
This resulted in a 500 Internal Server Error
I see nothing in the logging in the terminal that would indicate whats wrong, and searching the usual places for logs yielded no influx log file.
The contents of the term are:
$ influxd
2021-04-03T16:16:09.492923Z info Welcome to InfluxDB {"log_id": "0TI8AN50000", "version": "2.0.4", "commit": "none", "build_date": "2021-04-03T16:16:06Z"}
2021-04-03T16:16:09.540755Z info Resources opened {"log_id": "0TI8AN50000", "service": "bolt", "path": "/Users/bryant/.influxdbv2/influxd.bolt"}
2021-04-03T16:16:09.869427Z info Using data dir {"log_id": "0TI8AN50000", "service": "storage-engine", "service": "store", "path": "/Users/bryant/.influxdbv2/engine/data"}
2021-04-03T16:16:09.869543Z info Compaction settings {"log_id": "0TI8AN50000", "service": "storage-engine", "service": "store", "max_concurrent_compactions": 8, "throughput_bytes_per_second": 50331648, "throughput_bytes_per_second_burst": 50331648}
2021-04-03T16:16:09.869573Z info Open store (start) {"log_id": "0TI8AN50000", "service": "storage-engine", "service": "store", "op_name": "tsdb_open", "op_event": "start"}
2021-04-03T16:16:09.869826Z info Open store (end) {"log_id": "0TI8AN50000", "service": "storage-engine", "service": "store", "op_name": "tsdb_open", "op_event": "end", "op_elapsed": "0.255ms"}
2021-04-03T16:16:09.869894Z info Starting retention policy enforcement service {"log_id": "0TI8AN50000", "service": "retention", "check_interval": "30m"}
2021-04-03T16:16:09.869932Z info Starting precreation service {"log_id": "0TI8AN50000", "service": "shard-precreation", "check_interval": "10m", "advance_period": "30m"}
2021-04-03T16:16:09.870082Z info Starting query controller {"log_id": "0TI8AN50000", "service": "storage-reads", "concurrency_quota": 10, "initial_memory_bytes_quota_per_query": 9223372036854775807, "memory_bytes_quota_per_query": 9223372036854775807, "max_memory_bytes": 0, "queue_size": 10}
2021-04-03T16:16:09.870771Z info Configuring InfluxQL statement executor (zeros indicate unlimited). {"log_id": "0TI8AN50000", "max_select_point": 0, "max_select_series": 0, "max_select_buckets": 0}
2021-04-03T16:16:10.299117Z info Starting {"log_id": "0TI8AN50000", "service": "telemetry", "interval": "8h"}
2021-04-03T16:16:10.299100Z info Listening {"log_id": "0TI8AN50000", "transport": "http", "addr": ":8086", "port": 8086}
Environment info:
Env:
Darwin 20.3.0 x86_64
version: InfluxDB 2.0.4 (git: none) build_date: 2021-04-03T16:40:31Z
Config:
All default. I literally ran brew install influxdb and then influxd
Logs:
I was unable to find the log file, and searching the web documentation did not yield its location. Perhaps put the path in the template?
I should also mention that configuring the system with influx setup worked, but I still cannot log into the UI, I am greeted only with the 500 internal server error. This prevents me from accessing the auth token that was created at setup
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 6
- Comments: 15 (5 by maintainers)
If anyone else is having a similar issue - I was able to use docker as a workaround, install docker desktop if you haven’t, and run
with pwd being the directory where you want to store data associated with the InfluxDB container.
Fixes have merged into
homebrew-core, closing this.Homebrew/homebrew-core#77226 should address this