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

Users are unable to post Questions #7441

Closed
icarito opened this issue Feb 5, 2020 · 2 comments
Closed

Users are unable to post Questions #7441

icarito opened this issue Feb 5, 2020 · 2 comments
Labels
bug the issue is regarding one of our programs which faces problems when a certain task is executed high-priority

Comments

@icarito
Copy link
Member

icarito commented Feb 5, 2020

The logs show an error with a non unique index: index_node_vid

[40293e6b-e44c-4a76-aa6b-deaadd433e81] Started POST "/notes/create?rich=true" for 181.67.173.136 at 2020-02-05 16:15:27 +0000
[40293e6b-e44c-4a76-aa6b-deaadd433e81] Processing by NotesController#create as */*
[40293e6b-e44c-4a76-aa6b-deaadd433e81]   Parameters: {"title"=>"Is the Ask Question feature working?", "body"=>"We've had reports of failure to post questions, this is a test!", "authenticity_token"=>"ndcajKRpcHwJg+Yfwg8nLc97OY3RQGVyBPYaROI9+yByvc0YqeOkMASw7ts5OeoqKFvige9f+M7E4KqBQwHhsg==", "draft"=>"false", "tags"=>"sysadmin", "has_main_image"=>"", "main_image"=>"", "node_images"=>"", "image"=>{"photo"=>""}, "rich"=>"true"}
[40293e6b-e44c-4a76-aa6b-deaadd433e81] Completed 500 Internal Server Error in 54ms (ActiveRecord: 37.0ms)
[40293e6b-e44c-4a76-aa6b-deaadd433e81] Sending event a7f6fc8f277148a3b2dad687e15df508 to Sentry
[40293e6b-e44c-4a76-aa6b-deaadd433e81]
[40293e6b-e44c-4a76-aa6b-deaadd433e81] ActiveRecord::RecordNotUnique (Mysql2::Error: Duplicate entry '0' for key 'index_node_vid': INSERT INTO `node` (`type`, `title`, `uid`, `changed`, `comment`, `path`, `slug`) VALUES ('note', 'Is the Ask Question feature working?', 448589, 1580919327, 2, '/notes/icarito/02-05-2020/is-the-ask-question-feature-working', 'is-the-ask-question-feature-working')):
[40293e6b-e44c-4a76-aa6b-deaadd433e81]
[40293e6b-e44c-4a76-aa6b-deaadd433e81] app/models/node.rb:663:in `block in new_note'
[40293e6b-e44c-4a76-aa6b-deaadd433e81] app/models/node.rb:662:in `new_note'
[40293e6b-e44c-4a76-aa6b-deaadd433e81] app/controllers/notes_controller.rb:410:in `new_note'
[40293e6b-e44c-4a76-aa6b-deaadd433e81] app/controllers/notes_controller.rb:86:in `create'
@icarito icarito added bug the issue is regarding one of our programs which faces problems when a certain task is executed high-priority labels Feb 5, 2020
@icarito
Copy link
Member Author

icarito commented Feb 5, 2020

This seems to be a reincidence of issue #7062 - looking at how it was fixed then it seems there's a draft note with index_node_vid=0 causing this issue.

@icarito
Copy link
Member Author

icarito commented Feb 6, 2020

I deleted the invalid draft and this allowed posting again. I'll be working on the underlaying issue #3007

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 high-priority
Projects
None yet
Development

No branches or pull requests

1 participant