synapse: error polling docker host http://localhost:4243: #<Docker::Error::ClientError: Expected(200..204) <=> Actual(400 Bad Request)
timerish opened this issue · 2 comments
Hello,
Is synapse incompatible with docker-api 1.20 , I got this warn when running synapse,
I attached environment info,and how to resolve it ?
root@VirtualBox:/var/lib/gems/1.9.1/gems/synapse-0.12.2# synapse -c /etc/synapse.json.conf
I, [2016-01-20T16:15:03.797821 #13184] INFO -- Synapse::Synapse: synapse: starting...
I, [2016-01-20T16:15:03.798011 #13184] INFO -- Synapse::Synapse: synapse: configuring haproxy
I, [2016-01-20T16:15:03.798862 #13184] INFO -- Synapse::Haproxy: synapse: reconfigured haproxy
W, [2016-01-20T16:15:03.807022 #13184] WARN -- Synapse::ServiceWatcher::DockerWatcher: synapse: error polling docker host http://localhost:4243: #<Docker::Error::ClientError: Expected(200..204) <=> Actual(400 Bad Request)
I, [2016-01-20T16:15:03.808142 #13184] INFO -- Synapse::Haproxy: synapse: restarted haproxy
W, [2016-01-20T16:15:18.815548 #13184] WARN -- Synapse::ServiceWatcher::DockerWatcher: synapse: error polling docker host http://localhost:4243: #<Docker::Error::ClientError: Expected(200..204) <=> Actual(400 Bad Request)
root@VirtualBox:/var/lib/gems/1.9.1/gems/synapse-0.12.2# docker version
Client:
Version: 1.8.2
API version: 1.20
Go version: go1.4.2
Git commit: 0a8c2e3
Built: Wed Oct 7 17:48:28 UTC 2015
OS/Arch: linux/amd64
Server:
Version: 1.8.2
API version: 1.20
Go version: go1.4.2
Git commit: 0a8c2e3
Built: Wed Oct 7 17:48:28 UTC 2015
OS/Arch: linux/amd64
root@VirtualBox:/var/lib/gems/1.9.1/gems/synapse-0.12.2# cat synapse.gemspec
-- encoding: utf-8 --
lib = File.expand_path('../lib', FILE)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'synapse/version'
Gem::Specification.new do |gem|
gem.name = "synapse"
gem.version = Synapse::VERSION
gem.authors = ["Martin Rhoads"]
gem.email = ["martin.rhoads@airbnb.com"]
gem.description = %q{: Write a gem description}
gem.summary = %q{: Write a gem summary}
gem.homepage = ""
gem.files = git ls-files
.split($/)
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.add_runtime_dependency "aws-sdk", "> 1.39"> 1.7.2"
gem.add_runtime_dependency "docker-api", "
gem.add_runtime_dependency "zk", "~> 1.9.4"
gem.add_development_dependency "rake"
gem.add_development_dependency "rspec", "~> 3.1.0"
gem.add_development_dependency "pry"
gem.add_development_dependency "pry-nav"
gem.add_development_dependency "webmock"
end
root@VirtualBox:/var/lib/gems/1.9.1/gems/synapse-0.12.2# uname -an
Linux VirtualBox 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Thanks in advance.