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

RuntimeError: Nonexistent Shard Name: slave1 #259

Closed
DanielZhangQingLong opened this issue Jul 29, 2014 · 3 comments
Closed

RuntimeError: Nonexistent Shard Name: slave1 #259

DanielZhangQingLong opened this issue Jul 29, 2014 · 3 comments

Comments

@DanielZhangQingLong
Copy link

this is my config.
octopus:
replicated: true
#environments:

- development

- production

development:
slave1:
host: 159.226.67.89
adapter: mysql2
database: testmirror
username: root
password: root
production:
slave1:
host: 159.226.67.89
adapter: mysql2
database: testmirror
username: root
password: root

and I got "RuntimeError: Nonexistent Shard Name: slave1" error. Do I have something wrong?

@mumoshu
Copy link
Contributor

mumoshu commented Jul 31, 2014

Hi,

Are you on Rails?
In that case, I recommend you ensuring that Rails.env is development or production.
Also you shouldn't comment out environments section in your config.

@mumoshu
Copy link
Contributor

mumoshu commented Aug 8, 2014

@DanielZhangQingLong Have you had any luck to fix the error, w/ or w/o my recommendation?

@thiagopradi
Copy link
Owner

Hi @DanielZhangQingLong ,

I hope that @mumoshu comments solved your problem.

I'm closing this issue, if you have any additional problems please feel free to reopen.

Thiago

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

3 participants