{"action":"created","issue":{"url":"https://api.github.com/repos/influxdb/influxdb/issues/4903","labels_url":"https://api.github.com/repos/influxdb/influxdb/issues/4903/labels{/name}","comments_url":"https://api.github.com/repos/influxdb/influxdb/issues/4903/comments","events_url":"https://api.github.com/repos/influxdb/influxdb/issues/4903/events","html_url":"https://github.com/influxdb/influxdb/issues/4903","id":118850605,"number":4903,"title":"no leader error after upgrade from 0.9.2 to 0.9.5","user":{"login":"gucki","id":175494,"avatar_url":"https://avatars.githubusercontent.com/u/175494?v=3","gravatar_id":"","url":"https://api.github.com/users/gucki","html_url":"https://github.com/gucki","followers_url":"https://api.github.com/users/gucki/followers","following_url":"https://api.github.com/users/gucki/following{/other_user}","gists_url":"https://api.github.com/users/gucki/gists{/gist_id}","starred_url":"https://api.github.com/users/gucki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gucki/subscriptions","organizations_url":"https://api.github.com/users/gucki/orgs","repos_url":"https://api.github.com/users/gucki/repos","events_url":"https://api.github.com/users/gucki/events{/privacy}","received_events_url":"https://api.github.com/users/gucki/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-25T14:42:27Z","updated_at":"2015-11-25T20:09:38Z","closed_at":"2015-11-25T20:09:38Z","body":"    # service influxdb start\r\n    Starting the process influxdb [ OK ]\r\n    influxdb process was started [ OK ]\r\n\r\n    ----\r\n\r\n    root@monitoring:/var/log/influxdb# cat influxd.log\r\n    2015/11/25 15:36:09 InfluxDB starting, version 0.9.5, branch 0.9.5, commit 770b0ecf9f1f61a9d3a97136d5b6d7dd21afea1e, built 2015-11-20T15:30:37+0000\r\n    2015/11/25 15:36:09 Go version go1.4.2, GOMAXPROCS set to 2\r\n    2015/11/25 15:36:09 Using configuration at: /etc/influxdb/influxdb.conf\r\n    [metastore] 2015/11/25 15:36:09 Using data dir: /var/lib/influxdb/meta\r\n    [metastore] 2015/11/25 15:36:09 Skipping cluster join: already member of cluster: nodeId=1 raftEnabled=true peers=[127.0.0.1:8088 localhost:8088]\r\n    [metastore] 2015/11/25 15:36:09 Node at localhost:8088 [Follower]\r\n    [metastore] 2015/11/25 15:36:10 Node at localhost:8088 [Leader]. peers=[127.0.0.1:8088 localhost:8088]\r\n    [metastore] 2015/11/25 15:36:10 Node at localhost:8088 [Follower]. peers=[127.0.0.1:8088 localhost:8088]\r\n    [metastore] 2015/11/25 15:36:10 spun up monitoring for 1\r\n    [store] 2015/11/25 15:36:10 Using data dir: /var/lib/influxdb/data\r\n    [wal] 2015/11/25 15:36:11 WAL starting with 30720 ready series size, 0.50 compaction threshold, and 52428800 partition size threshold\r\n    [wal] 2015/11/25 15:36:11 WAL writing to /var/lib/influxdb/wal/xyz/default/2428\r\n    [metastore] 2015/11/25 15:36:12 Node at localhost:8088 [Leader]. peers=[127.0.0.1:8088 localhost:8088]\r\n    [metastore] 2015/11/25 15:36:12 Node at localhost:8088 [Follower]. peers=[127.0.0.1:8088 localhost:8088]\r\n    [metastore] 2015/11/25 15:36:14 Node at localhost:8088 [Leader]. peers=[127.0.0.1:8088 localhost:8088]\r\n    [metastore] 2015/11/25 15:36:14 Node at localhost:8088 [Follower]. peers=[127.0.0.1:8088 localhost:8088]\r\n    [metastore] 2015/11/25 15:36:16 Node at localhost:8088 [Leader]. peers=[127.0.0.1:8088 localhost:8088]\r\n    [metastore] 2015/11/25 15:36:16 Node at localhost:8088 [Follower]. peers=[127.0.0.1:8088 localhost:8088]\r\n    [metastore] 2015/11/25 15:36:18 Node at localhost:8088 [Leader]. peers=[127.0.0.1:8088 localhost:8088]\r\n    [metastore] 2015/11/25 15:36:18 Node at localhost:8088 [Follower]. peers=[127.0.0.1:8088 localhost:8088]\r\n    [handoff] 2015/11/25 15:36:18 Starting hinted handoff service\r\n    [monitor] 2015/11/25 15:36:18 'hh' registered for diagnostics monitoring\r\n    [handoff] 2015/11/25 15:36:18 Using data dir: /var/lib/influxdb/hh\r\n    [subscriber] 2015/11/25 15:36:18 opened service\r\n    [monitor] 2015/11/25 15:36:18 Starting monitor system\r\n    [monitor] 2015/11/25 15:36:18 'build' registered for diagnostics monitoring\r\n    [monitor] 2015/11/25 15:36:18 'runtime' registered for diagnostics monitoring\r\n    [monitor] 2015/11/25 15:36:18 'network' registered for diagnostics monitoring\r\n    [monitor] 2015/11/25 15:36:18 'system' registered for diagnostics monitoring\r\n    [cluster] 2015/11/25 15:36:18 Starting cluster service\r\n    [shard-precreation] 2015/11/25 15:36:18 Starting precreation service with check interval of 10m0s, advance period of 30m0s\r\n    [registration] 2015/11/25 15:36:18 Starting registration service\r\n    [monitor] 2015/11/25 15:36:18 Storing statistics in database '_internal' retention policy '', at interval 10s\r\n    [monitor] 2015/11/25 15:36:18 'registration' registered for diagnostics monitoring\r\n    [snapshot] 2015/11/25 15:36:18 Starting snapshot service\r\n    [copier] 2015/11/25 15:36:18 Starting copier service\r\n    [admin] 2015/11/25 15:36:18 Starting admin service\r\n    [admin] 2015/11/25 15:36:18 Listening on HTTP: [::]:8083\r\n    [continuous_querier] 2015/11/25 15:36:18 Starting continuous query service\r\n    [httpd] 2015/11/25 15:36:18 Starting HTTP service\r\n    [httpd] 2015/11/25 15:36:18 Authentication enabled: false\r\n    [httpd] 2015/11/25 15:36:18 Listening on HTTP: [::]:8086\r\n    [retention] 2015/11/25 15:36:18 Starting retention policy enforcement service with check interval of 30m0s\r\n    [run] 2015/11/25 15:36:18 Listening for signals\r\n    [http] 2015/11/25 15:36:18 x.x.x.x - - [25/Nov/2015:15:36:18 +0100] POST /write?db=xyz&precision=s HTTP/1.1 500 95 - Ruby e3c37ca4-9381-11e5-8001-000000000000 12.502527ms\r\n    [http] 2015/11/25 15:36:18 x.x.x.x - - [25/Nov/2015:15:36:18 +0100] POST /write?db=xyz&precision=s HTTP/1.1 500 95 - Ruby e3cda03c-9381-11e5-8002-000000000000 12.233458ms\r\n    [http] 2015/11/25 15:36:18 x.x.x.x - - [25/Nov/2015:15:36:18 +0100] POST /write?db=xyz&precision=s HTTP/1.1 500 95 - Ruby e3d58518-9381-11e5-8003-000000000000 12.751398ms\r\n    [http] 2015/11/25 15:36:18 x.x.x.x - - [25/Nov/2015:15:36:18 +0100] POST /write?db=xyz&precision=s HTTP/1.1 500 95 - Ruby e3ef46a9-9381-11e5-8004-000000000000 13.302598ms\r\n\r\nI cannot issue any query, I always get \"no leader\" errors:\r\n\r\n    > USE xyz\r\n    Using database xyz\r\n\r\n    > SHOW RETENTION POLICIES ON \"xyz\"\r\n    ERR: error fetching meta data: rpc Error failed: no leader detected during proxyLeader\r\n\r\n    > SELECT * FROM \"xyz\".\"1m\".\"derivative\" WHERE host = 'h100' and interface = '1'\r\n    ERR: error fetching meta data: no leader detected during fetchMetaData\r\n\r\n    > SELECT * FROM \"xyz\".\"1m\".\"derivative\" WHERE host = 'h100' and interface = '1'\r\n    ERR: error fetching meta data: no leader detected during fetchMetaData\r\n\r\nThe log is filling with:\r\n\r\n    [metastore] 2015/11/25 15:42:02 Node at localhost:8088 [Leader]. peers=[127.0.0.1:8088 localhost:8088]\r\n    [metastore] 2015/11/25 15:42:02 Node at localhost:8088 [Follower]. peers=[127.0.0.1:8088 localhost:8088]\r\n\r\nI compared the config files and they look identical in the relevant sections (I used the sample configuration before and just upgraded it to the latest one). How can I get it fixed asap?\r\n"},"comment":{"url":"https://api.github.com/repos/influxdb/influxdb/issues/comments/159718939","html_url":"https://github.com/influxdb/influxdb/issues/4903#issuecomment-159718939","issue_url":"https://api.github.com/repos/influxdb/influxdb/issues/4903","id":159718939,"user":{"login":"gucki","id":175494,"avatar_url":"https://avatars.githubusercontent.com/u/175494?v=3","gravatar_id":"","url":"https://api.github.com/users/gucki","html_url":"https://github.com/gucki","followers_url":"https://api.github.com/users/gucki/followers","following_url":"https://api.github.com/users/gucki/following{/other_user}","gists_url":"https://api.github.com/users/gucki/gists{/gist_id}","starred_url":"https://api.github.com/users/gucki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gucki/subscriptions","organizations_url":"https://api.github.com/users/gucki/orgs","repos_url":"https://api.github.com/users/gucki/repos","events_url":"https://api.github.com/users/gucki/events{/privacy}","received_events_url":"https://api.github.com/users/gucki/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T20:09:38Z","updated_at":"2015-11-25T20:09:38Z","body":"@beckettsean That's strange, because I double checked it and it's the same:\r\n\r\nOld:\r\n    [meta]\r\n      dir = \"/var/opt/influxdb/meta\"\r\n      hostname = \"localhost\"\r\n      bind-address = \":8088\"\r\n      retention-autocreate = true\r\n      election-timeout = \"1s\"\r\n      heartbeat-timeout = \"1s\"\r\n      leader-lease-timeout = \"500ms\"\r\n      commit-timeout = \"50ms\"\r\n\r\nNew:\r\n    [meta]\r\n      dir = \"/var/lib/influxdb/meta\"\r\n      hostname = \"localhost\"\r\n      bind-address = \":8088\"\r\n      retention-autocreate = true\r\n      election-timeout = \"1s\"\r\n      heartbeat-timeout = \"1s\"\r\n      leader-lease-timeout = \"500ms\"\r\n      commit-timeout = \"50ms\"\r\n      cluster-tracing = false\r\n\r\nAnyway your fix worked and deleting \"peers.json\" solved it! :+1: \r\n"}}