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

RunJobs check contstraint failed #1309

Closed
umglurf opened this issue Jun 10, 2021 · 6 comments · Fixed by #1310
Closed

RunJobs check contstraint failed #1309

umglurf opened this issue Jun 10, 2021 · 6 comments · Fixed by #1310
Assignees

Comments

@umglurf
Copy link

umglurf commented Jun 10, 2021

Describe the bug

Since boundary 0.2.3 I've started getting these errors in the controller logs:

[ERROR] controller: error getting jobs to run from repo: error="job.(Repository).RunJobs: db.DoTx: job.(Repository).RunJobs: wt_private_id_check constraint failed: check constraint violated: integrity violation: error #1000"

I upgraded to 0.3.0 hoping the issue was solved, but still the same. I then deleted the database and recreated it, but still the error occurs.

To Reproduce
Steps to reproduce the behavior:

  1. Start boundary-controller
  2. See error

Expected behavior

Additional context
Running with 3 boundary controllers and 4 workers. 3 workers on the same servers as the controllers, and one worker on another server.

@louisruch louisruch self-assigned this Jun 10, 2021
@louisruch
Copy link
Collaborator

Hi @umglurf
Thank you for trying Boundary! I noticed this issue when running boundary dev and discovered it was a race between the server upsert and the new job scheduler requesting work. I resolved this in a wip branch with other work, but I forgot to merge this fix into main - sorry about that. However, since you are not running Boundary in dev mode it might not be the same race I found, do you see this error consistently or only once when starting the server?

@umglurf
Copy link
Author

umglurf commented Jun 10, 2021

Hi

I see it consistently, not only when starting the server. It's been logged about 50 times per server since the last restart one hour ago.

@louisruch
Copy link
Collaborator

@umglurf 50 times in an hour is about what I would expect from this, you mentioned that you have 3 controllers are you providing the name in the controller stanza. If so can you please confirm what the three names are?

@umglurf
Copy link
Author

umglurf commented Jun 10, 2021

controller 1:

name = "kara"

controller 2:

name = "sharon"

controller 3:

name = "laura"

@louisruch
Copy link
Collaborator

Thank you!

There is a bug in the Postgres job_run table where we are incorrectly enforcing a check constraint on the length on the controller name to be greater than 10. I have a PR that should resolve this issue.

@umglurf
Copy link
Author

umglurf commented Jun 11, 2021

Great, hoping this will make it into 0.3.1

hugoghx pushed a commit that referenced this issue Dec 6, 2024
Merge Boundary OSS branch oss/main at commit 69b60c8
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

Successfully merging a pull request may close this issue.

2 participants