Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

/Stage[main]/Gitlab::Install/Package[gitlab-omnibus]/ensure: created\nError: Could not enable gitlab-runsvdir: #300

Open
GrabAByte opened this issue Mar 4, 2019 · 4 comments

Comments

@GrabAByte
Copy link

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 4.10
  • Ruby:
  • Distribution: RedHat 7.2
  • Module version: 3.0.2

How to reproduce (e.g Puppet code you use)

Run puppet on fresh install of Gitlab using this module

What are you seeing

gitlab appears to attempt to enable the gitlab-runsvdir service before it is ready.

What behaviour did you expect instead

the runsvdir service is enabled and the puppet run is successful

Output log

11:36:20 [Deploy - RedHat (Default)] "Notice: /Stage[main]/Gitlab::Install/Package[gitlab-omnibus]/ensure: created",
11:36:20 [Deploy - RedHat (Default)] "Error: Could not enable gitlab-runsvdir: ",
11:36:20 [Deploy - RedHat (Default)] "Error: /Stage[main]/Gitlab::Service/Service[gitlab-runsvdir]/enable: change from false to true failed: Could not enable gitlab-runsvdir: ",
11:36:20 [Deploy - RedHat (Default)] "Notice: /Stage[main]/Gitlab::Service/Exec[gitlab_reconfigure]: Dependency Service[gitlab-runsvdir] has failures: true",

Any additional information you'd like to impart

@LongLiveCHIEF
Copy link
Contributor

What happens if you run the agent again right after this failure? I have a hunch I'd like to confirm...

@GrabAByte
Copy link
Author

The problem I have is this integrated into our Jenkins Build pipeline - the puppet run itself is controlled via an ansible task, the puppet code is packaged into a deployable artefact (ISO), which requires a clean run it without failure. The pipeline fails if the puppet run task returns an exit 1.

If we deploy onto an existing box with gitlab installed for an upgrade it is successful. But on a fresh installation it always fails, which is always the scenario for CI Build.

@GrabAByte
Copy link
Author

@LongLiveCHIEF if this is ran again right after it works, but this is not the solution I need..

@LongLiveCHIEF
Copy link
Contributor

I know it's not the solution. I should have clarified that that's not why I was asking. The hunch I had was around what causes the issue, and how it would present itself.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants