POST /api/:version/projects/:id/archive fails with exclusive lease error

Summary

The POST /api/:version/projects/:id/archive endpoint fails to archive a project and returns an error related to obtaining an exclusive lease.

Steps to Reproduce

  1. Call the project archive API endpoint: POST /api/:version/projects/:id/archive
  2. Observe the error response

Current Behavior

The API request fails with the error message:

Cannot obtain an exclusive lease. There must be another instance already in execution.

Kibana - https://log.gprd.gitlab.net/app/r/s/Aqkbs

This prevents the project from being archived successfully.

Expected Behavior

The project should be archived successfully without lease-related errors.

Environment

  • GitLab.com
  • GitLab Version - GitLab Enterprise Edition 18.9.0-pre 5f518030
  • Deployment Type: GitLab.com
  • API Endpoint: POST /api/:version/projects/:id/archive

Relevant Logs

Cannot obtain an exclusive lease. There must be another instance already in execution.
Edited Jan 19, 2026 by Filip Aleksic
Assignee Loading
Time tracking Loading