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

Running configuration different from configuration file #6617

Closed
denis-arruda opened this issue May 12, 2016 · 2 comments
Closed

Running configuration different from configuration file #6617

denis-arruda opened this issue May 12, 2016 · 2 comments

Comments

@denis-arruda
Copy link

denis-arruda commented May 12, 2016

Bug report

System info:
InfluxDB 0.12.2
Fedora 23
Kernel 4.2.3-300.fc23.x86_64
In Oracle VM VirtualBox

Steps to reproduce:

  1. Install InfluxDB using file "influxdb-0.12.2-1.x86_64.rpm"
  2. Change the configuration file in /etc/influxdb/influxdb.conf
  3. Restart influxd service

Expected behavior:
When I execute the command "influxd config" the configuration shown should be same of the file /etc/influxdb/influxdb.conf

Actual behavior:
The configuration shown with "influxd config" command is different from the configuration in file /etc/influxdb/influxdb.conf

Additional info:

  1. The head of file /etc/influxdb/influxdb.conf
[root@fedora54 ~]# cat /etc/influxdb/influxdb.conf | more
### Welcome to the InfluxDB configuration file.

# Once every 24 hours InfluxDB will report anonymous data to m.influxdb.com
# The data includes raft id (random 8 bytes), os, arch, version, and metadata.
# We don't track ip addresses of servers reporting. This is only used
# to track the number of instances running and the versions, which
# is very helpful for us.
# Change this option to true to disable reporting.
reporting-disabled = true

# we'll try to get the hostname automatically, but if it the os returns somethin
g
# that isn't resolvable by other servers in the cluster, use this option to
# manually set the hostname
hostname = ""

###
### [meta]
###
### Controls the parameters for the Raft consensus group that stores metadata
### about the InfluxDB cluster.
###

[meta]
  # Where the metadata/raft database is stored
  dir = "/var/lib/influxdb/meta"

  retention-autocreate = true

--More--
  1. The running configuration:
[root@fedora54 ~]# influxd config | more
reporting-disabled = false
bind-address = ":8088"
hostname = ""
join = ""

[meta]
  dir = "/root/.influxdb/meta"
  retention-autocreate = true
  logging-enabled = true
  pprof-enabled = false
  lease-duration = "1m0s"

[data]
  dir = "/root/.influxdb/data"
  engine = "tsm1"
  wal-dir = "/root/.influxdb/wal"
  wal-logging-enabled = true
  query-log-enabled = true
  cache-max-memory-size = 524288000
  cache-snapshot-memory-size = 26214400
  cache-snapshot-write-cold-duration = "1h0m0s"
  compact-full-write-cold-duration = "24h0m0s"
  max-points-per-block = 0
--More--
  1. The running process:
[root@fedora54 ~]# ps aux | grep influxdb
influxdb   926  0.0  0.3 117512  2752 ?        Ss   14:58   0:00 /bin/sh -c /usr/bin/influxd -config /etc/influxdb/influxdb.conf  >>/dev/null 2>>/var/log/influxdb/influxd.log
influxdb   930  1.0  2.6 203944 21432 ?        Sl   14:58   0:04 /usr/bin/influxd -config /etc/influxdb/influxdb.conf
root      1418  0.0  0.2 117020  2240 pts/0    S+   15:05   0:00 grep --color=auto influxdb
  1. Environment variable:
[root@fedora54 ~]# echo $INFLUXDB_CONFIG_PATH

[root@fedora54 ~]#
  1. Configuration file properties:
[root@fedora54 ~]# ls -oa /etc/influxdb/influxdb.conf
-rw-r--r--. 1 influxdb 10001 Mai 12 14:57 /etc/influxdb/influxdb.conf
[root@fedora54 ~]#
@denis-arruda
Copy link
Author

I installed InfluxDB version 0.13.0 in the same environment and now the configuration is working!

@jsternberg
Copy link
Contributor

Support was added for this in #6444. If you want to use another configuration location or need to have this work in 0.12, use influxd config -config /etc/influxdb/influxdb.conf.

I'm glad it's working now for you!

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

No branches or pull requests

2 participants