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

-bucket param doesn't work in conjunction with config file where bucket not specified #881

Closed
andreibaranouski opened this issue May 25, 2015 · 2 comments
Assignees
Milestone

Comments

@andreibaranouski
Copy link

config file doesn't have bucket but I try to set it as param

cat gateway_config_template_nobucket.json 
{
     "adminInterface": ":4985",
   "databases": {
         "db": {
           "server": "http://127.0.0.1:8091/",
          "users": {
            "GUEST": {"disabled": false, "admin_channels": ["*"] }
             }
        }
    }
 }

Andreis-MacBook-Pro:sync_gateway andrei$ ./bin/sync_gateway -bucket default gateway_config_template_nobucket.json
2015-05-25T23:48:38.840+03:00 ==== Couchbase Sync Gateway/master(8546803+CHANGES) ====
2015-05-25T23:48:38.840+03:00 Configured Go to use all 8 CPUs; setenv GOMAXPROCS to override this
2015-05-25T23:48:38.840+03:00 Opening db /db as bucket "db", pool "default", server <http://127.0.0.1:8091/>
2015-05-25T23:48:38.841+03:00 Opening Couchbase database db on <http://127.0.0.1:8091/>
2015-05-25T23:48:38.850+03:00 FATAL: Error opening database: 502 Unable to connect to server: No bucket named db -- rest.RunServer() at config.go:479
@zgramana
Copy link
Contributor

Need to consider this part of the config validation work.

@andreibaranouski
Copy link
Author

I close this bug since scenario is not entirely valid. because when we point bucket in parameters it does not have to override the bucket name in the config file. I fixed the test created by Li. more detailed inspection of all behaviors for config files will be made according to #826

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