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

GitPoller uses constant workdir by default leading to crash with other GitPoller instances when it is not overridden #5890

Open
aliceinwire opened this issue Mar 11, 2021 · 3 comments
Labels

Comments

@aliceinwire
Copy link
Contributor

command ['init', '--bare', '/var/lib/buildbot/gitpoller-work'] in None on repourl
https://github.com/GKernelCI/linux-patches.git failed with exit code 128: error: 
could not lock config file /var/lib/buildbot/gitpoller-work/config: File exists
@p12tic
Copy link
Member

p12tic commented Mar 12, 2021

Could it be that multiple gitpollers share the same directory?

@aliceinwire
Copy link
Contributor Author

@p12tic
Copy link
Member

p12tic commented Mar 12, 2021

@aliceinwire Right, so if multiple gitpollers are used, you need to set the workdir to different paths otherwise multiple gitpollers will use the same directory which leads to the error you're seeing.

It's still a bug in Buildbot, we should do this by default.

@p12tic p12tic changed the title failed with exit code 128: error: could not lock config file /var/lib/buildbot/gitpoller-work/config: File exists GitPoller uses constant workdir by default leading to crash with other GitPoller instances when it is not overridden Mar 12, 2021
@p12tic p12tic added the bug label Mar 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants