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

error saving features in stable #5649

Closed
sentry-io bot opened this issue May 2, 2019 · 3 comments
Closed

error saving features in stable #5649

sentry-io bot opened this issue May 2, 2019 · 3 comments
Labels
bug the issue is regarding one of our programs which faces problems when a certain task is executed

Comments

@sentry-io
Copy link

sentry-io bot commented May 2, 2019

Sentry Issue: PLOTS2-6Y

Mysql2::Error: Duplicate entry '0' for key 'index_node_vid'
  app/controllers/features_controller.rb:43:in `block in create'
    @node.save!
  app/controllers/features_controller.rb:42:in `create'
    ActiveRecord::Base.transaction do
...
(150 additional frame(s) were not displayed)

ActiveRecord::RecordNotUnique: Mysql2::Error: Duplicate entry '0' for key 'index_node_vid': INSERT INTO `node` (`type`, `title`, `uid`, `changed`, `path`, `slug`) VALUES ('feature', 'home-intro-test', 1, 1556811072, '/feature/home-intro-test', 'home-intro-test')

ActiveRecord::RecordNotUnique: Mysql2::Error: Duplicate entry '0' for key 'index_node_vid': INSERT INTO `node` (`type`, `title`, `uid`, `changed`, `path`, `slug`) VALUES ('feature', 'home-intro-test', 1, 1556811072, '/feature/home-intro-test', 'home-intro-test')
@jywarren
Copy link
Member

jywarren commented May 2, 2019

Thank you Sentry! This was caught in stable, actually!

Follow-up from #5612

@jywarren
Copy link
Member

jywarren commented May 2, 2019

Aha! I think there's a stray entry in the stable database -- a node record with vid=0. This could also be stopping #5605 on stable and not in tests!

@jywarren jywarren added the bug the issue is regarding one of our programs which faces problems when a certain task is executed label May 2, 2019
@jywarren
Copy link
Member

jywarren commented May 2, 2019

Solved!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug the issue is regarding one of our programs which faces problems when a certain task is executed
Projects
None yet
Development

No branches or pull requests

1 participant