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

Registry port setting #484

Open
rakshasa opened this issue Jul 26, 2016 · 1 comment
Open

Registry port setting #484

rakshasa opened this issue Jul 26, 2016 · 1 comment

Comments

@rakshasa
Copy link
Contributor

    class Registry < Fuguta::Configuration
      param :adapter, :default => "redis"
      param :host, :default => '127.0.0.1'
      param :port, :default => 6379
    end

Even when the 'port' is changed in the common.conf file it still uses the default port number.

@Metallion
Copy link
Contributor

I tried to reproduce this just now and the bug didn't occur.

common.conf contents

registry {
  adapter "redis"
  host "127.0.0.1"
  #port 6379
  port 6380
}

vna.log contents

E, [2016-08-19T16:31:21.988064 #3836] ERROR -- : Actor crashed!
Redis::CannotConnectError: Error connecting to Redis on 127.0.0.1:6380 (Errno::ECONNREFUSED)
        /opt/axsh/openvnet/vnet/vendor/bundle/ruby/2.1.0/gems/redis-3.3.0/lib/redis/client.rb:345:in `rescue in establish_connection'
        /opt/axsh/openvnet/vnet/vendor/bundle/ruby/2.1.0/gems/redis-3.3.0/lib/redis/client.rb:331:in `establish_connection'
        /opt/axsh/openvnet/vnet/vendor/bundle/ruby/2.1.0/gems/redis-3.3.0/lib/redis/client.rb:101:in `block in connect'
        /opt/axsh/openvnet/vnet/vendor/bundle/ruby/2.1.0/gems/redis-3.3.0/lib/redis/client.rb:293:in `with_reconnect'
        /opt/axsh/openvnet/vnet/vendor/bundle/ruby/2.1.0/gems/redis-3.3.0/lib/redis/client.rb:100:in `connect'
        /opt/axsh/openvnet/vnet/vendor/bundle/ruby/2.1.0/gems/redis-3.3.0/lib/redis/client.rb:364:in `ensure_connected'

You can see that OpenVNet correctly tried to connect to the port specified in common.conf. Redis wasn't running there so it got a connection refused as expected.

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

No branches or pull requests

2 participants