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

Client side is not reading the hosts.config file #69

Closed
VhLucena opened this issue Oct 16, 2018 · 2 comments
Closed

Client side is not reading the hosts.config file #69

VhLucena opened this issue Oct 16, 2018 · 2 comments

Comments

@VhLucena
Copy link

The client code is not reading the server configurations (ip and port) from hosts.config file. Why it's happening?

@jcs47
Copy link

jcs47 commented Oct 16, 2018

Probably because it is fetching the server configuration from the config/currentView file instead. Check the log messages. If you are getting this message during start-up:

-- Creating current view from configuration file

It is because that file does not exist yet, so it will be created based on the contents of hosts.config and system.config. If instead you get this message:

-- Using view stored on disk

It is ignoring the *.config files and reading from config/currentView. From the README file:

Important tip 6: Never forget to delete the config/currentView file after you modify config/hosts.config or config/system.config. If config/currentView exists, BFT-SMaRt always fetches the group configuration from this file first. Otherwise, BFT-SMaRt fetches information from the other files and creates config/currentView from scratch. Note that config/currentView only stores information related to the group of replicas. You do not need to delete this file if, for instance, you want to enable the debugger or change the value of the request timeout.

@VhLucena
Copy link
Author

Perfect! I forgot to delete the curentView file. Thanks so much

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