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

synapse: error polling docker host http://localhost:4243: #<Docker::Error::ClientError: Expected(200..204) <=> Actual(400 Bad Request) #158

Open
timerish opened this issue Jan 20, 2016 · 2 comments

Comments

@timerish
Copy link

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 = ["[email protected]"]
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"
gem.add_runtime_dependency "docker-api", "
> 1.7.2"
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.

@jolynch
Copy link
Collaborator

jolynch commented Jan 21, 2016

I imagine #149 will fix this, I'll merge that tomorrow.

@jolynch
Copy link
Collaborator

jolynch commented Jan 21, 2016

@timerish Can you try with latest master?

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