James2
March 22, 2021, 2:28pm
1
MacOS Big Sur, following the steps in the Get started with InfluxDB
brew install influxdb # v2.0.4 installed
influxd # confirmed messages in Security and Privacy
2021-03-22T13:56:17.290672Z info Listening {“log_id”: “0T2ZOs1G000”, “transport”: “http”, “addr”: “:8086”, “port”: 8086}
influx setup # user name, bucket, retention configured ok
Opening http://localhost:8086 always returns 500 Internal Server Error
I run LuLu for port monitoring, but it successfully recognized influxd and created and Allow rule. I also tried disabling LuLu altogether, same result.
1 Like
I am having this same problem, I have seen a few people ask on slack but there is no response anywhere.
spro
April 10, 2021, 9:24pm
3
Same issue with a fresh install from homebrew. Appears to be listening but not seeing anything from the influxd
logs…
~/P/learn-influxdb ❯ lsof -i tcp:8086
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
influxd 72917 sean 23u IPv6 0xfbe449acd2b7966f 0t0 TCP *:8086 (LISTEN)
~/P/learn-influxdb ❯ curl localhost:8086
500 Internal Server Error
PeterV
April 12, 2021, 10:55am
4
Same issue trying to install on Mac OS 10.14.6 Mojave
when i try to do the setup using the terminal, i enter my data and get
Confirm? (y/n): y
Error: failed to setup instance: unauthorized access
Thanks for letting us know, can somebody open an issue on our Github to track this?
This issue is being tracked here:
opened 04:42PM - 03 Apr 21 UTC
closed 06:25PM - 21 May 21 UTC
area/packaging
os/darwin
area/2.x
Following this guide:
https://docs.influxdata.com/influxdb/v2.0/get-started/
…
I
1. Installed with homebrew
2. ran `influxd` in a terminal
3. 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
and here…
opened 01:34PM - 16 Apr 21 UTC
closed 10:26AM - 31 May 21 UTC
bug
outdated
### `brew gist-logs <formula>` link OR `brew config` AND `brew doctor` output
`… ``shell
$ brew config
HOMEBREW_VERSION: 3.1.2
ORIGIN: https://github.com/Homebrew/brew
HEAD: bc9b98aa0ba777889218ac51f67ccc76b0be6a28
Last commit: 2 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 147fdabb3101aaedd59c22511f61f8a11ff12432
Core tap last commit: 53 seconds ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 12
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: dodeca-core 64-bit kabylake
Clang: 12.0 build 1200
Git: 2.31.1 => /usr/local/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.2.3-x86_64
CLT: 12.4.0.0.1.1610135815
Xcode: N/A
$ brew doctor
Your system is ready to brew.
```
###
- [X] I ran `brew update` and am still able to reproduce my issue.
- [X] I have resolved all warnings from `brew doctor` and that did not fix my problem.
### What were you trying to do (and why)?
Users have been [reporting](https://github.com/influxdata/influxdb/issues/21133) in the `influxdb` repo that our [getting started guide](https://docs.influxdata.com/influxdb/v2.0/get-started/) doesn't work when installing `influxd` via Homebrew.
1. `brew install influxdb`
2. `influxd` to start the server
### What happened (include all command output)?
First, this error:
```
$ influxd
2021-04-16T13:25:39.901762Z info Welcome to InfluxDB {"log_id": "0TYi_gkG000", "version": "2.0.4", "commit": "none", "build_date": "2021-04-16T13:25:35Z"}
2021-04-16T13:25:39.901941Z error Failed opening bolt {"log_id": "0TYi_gkG000", "error": "unable to create directory /root/.influxdbv2/influxd.bolt: mkdir /root: read-only file system"}
Error: unable to create directory /root/.influxdbv2/influxd.bolt: mkdir /root: read-only file system
See 'influxd -h' for help
```
I can override the config to write outside of `/root`:
```
$ export INFLUXD_BOLT_PATH=~/.influxdbv2/influxd.bolt
$ export INFLUXD_ENGINE_PATH=~/.influxdbv2/engine
$ influxd
2021-04-16T13:29:06.680240Z info Welcome to InfluxDB {"log_id": "0TYimJU0000", "version": "2.0.4", "commit": "none", "build_date": "2021-04-16T13:29:02Z"}
2021-04-16T13:29:06.777856Z info Resources opened {"log_id": "0TYimJU0000", "service": "bolt", "path": "/Users/dan/.influxdbv2/influxd.bolt"}
2021-04-16T13:29:06.825796Z info Bringing up metadata migrations {"log_id": "0TYimJU0000", "service": "migrations", "migration_count": 14}
2021-04-16T13:29:11.075184Z info Using data dir {"log_id": "0TYimJU0000", "service": "storage-engine", "service": "store", "path": "/Users/dan/.influxdbv2/engine/data"}
2021-04-16T13:29:11.075859Z info Compaction settings {"log_id": "0TYimJU0000", "service": "storage-engine", "service": "store", "max_concurrent_compactions": 6, "throughput_bytes_per_second": 50331648, "throughput_bytes_per_second_burst": 50331648}
2021-04-16T13:29:11.075900Z info Open store (start) {"log_id": "0TYimJU0000", "service": "storage-engine", "service": "store", "op_name": "tsdb_open", "op_event": "start"}
2021-04-16T13:29:11.076208Z info Open store (end) {"log_id": "0TYimJU0000", "service": "storage-engine", "service": "store", "op_name": "tsdb_open", "op_event": "end", "op_elapsed": "0.310ms"}
2021-04-16T13:29:11.076926Z info Starting retention policy enforcement service {"log_id": "0TYimJU0000", "service": "retention", "check_interval": "30m"}
2021-04-16T13:29:11.077306Z info Starting precreation service {"log_id": "0TYimJU0000", "service": "shard-precreation", "check_interval": "10m", "advance_period": "30m"}
2021-04-16T13:29:11.078239Z info Starting query controller {"log_id": "0TYimJU0000", "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-16T13:29:11.080795Z info Configuring InfluxQL statement executor (zeros indicate unlimited). {"log_id": "0TYimJU0000", "max_select_point": 0, "max_select_series": 0, "max_select_buckets": 0}
2021-04-16T13:29:11.532488Z info Starting {"log_id": "0TYimJU0000", "service": "telemetry", "interval": "8h"}
2021-04-16T13:29:11.532532Z info Listening {"log_id": "0TYimJU0000", "transport": "http", "addr": ":8086", "port": 8086}
```
But then if I navigate to `http://localhost:8086`, the webpage returns:
```
500 Internal Server Error
```
### What did you expect to happen?
I expected:
1. The `influxd` binary installed via `brew` to be configured so that it doesn't try to write data into `/root` by default
2. The `influxd` binary installed via `brew` to successfully serve up UI assets
### Step-by-step reproduction instructions (by running `brew` commands)
```shell
brew install influxdb
mkdir test-data
INFLUXD_BOLT_PATH=./test-data/influxd.bolt INFLUXD_ENGINE_PATH=./test-data/engine influxd &
# Wait for a log containing 'Listening...'
open http://localhost:8086
```
1 Like