Hi,
I'm getting intermittent 409 Conflict errors ("Simultaneous state updates") on my self-hosted runners.
My Setup:
Single Mac machine running multiple runner processes.
Custom run.sh script: I launch the runner by passing all configurations (UUID, OAuth, WorkingDir) directly via command-line arguments.
Verification:
Unique Configs: I manually verified that every script passes a unique UUID, Client ID, and working directory.
Process Check: ps -ef confirms no duplicate processes are running for the same UUID.
Since I am strictly using unique CLI arguments for each process, I don't understand why the server detects a conflict. Has anyone faced this issue?
[Error Log]
[2026-01-26 16:52:36,488] ...
com.atlassian.pipelines.stargate.client.core.exceptions.StargateConflictException: ...
"message":"Simultaneous state updates were attempted for runner with id: {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}"Thanks.
Hello, runner-wrangler!
That 409 "Simultaneous state updates" on the multi-runner configuration on your Mac? Classic gotcha: processes can collide while racing to heartbeat to Bitbucket's Stargate service, even with distinct UUIDs and CLI arguments.
Fast fixes:
pkill -f runner, then restart each one individually, looking for dupes in the tail logs.
To serialize starts, use staggered delays or the --once flag in run.sh.
Use lsof | grep runner or shared locks (such as /tmp state) to look for zombie processes.
Worked for others on a Mac; if the runner version is out of date, update that as well. Are you still stuck? Share the entire run.sh snippet!
Go for those insects! @Shane_Yoo If this works kindly let me know.
I'll try your solution and let you know if this works or not.
Thank you for quick response!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.