Skip to content

Create agent plan content directory for backups - #3293

Open
loglapa wants to merge 1 commit into
sameersbn:masterfrom
loglapa:agent/create-agent-plan-content-directory
Open

Create agent plan content directory for backups#3293
loglapa wants to merge 1 commit into
sameersbn:masterfrom
loglapa:agent/create-agent-plan-content-directory

Conversation

@loglapa

@loglapa loglapa commented Aug 18, 2026

Copy link
Copy Markdown

What changed

Create ${GITLAB_SHARED_DIR}/agent_plan_content during data-directory initialization with the expected git:git ownership and 0700 permissions.

Why

GitLab backups from 19.1 can fail with ENOENT when the agent plan content directory has not been created yet. The directory is a configured backup path, but docker-gitlab does not currently initialize it.

This implements the working directory-creation workaround reported in #3269 as an idempotent container lifecycle step. The related upstream GitLab bug remains open: https://gitlab.com/gitlab-org/gitlab/-/work_items/604413

Impact

Fresh and upgraded installations get the expected directory before a backup runs, avoiding a backup failure without requiring a manual workaround.

Validation

  • bash -n assets/runtime/functions
  • git diff --check
  • Executed the install -d command twice in a sameersbn GitLab container and verified directory type, git:git ownership, and mode 0700

Fixes #3269

@loglapa
loglapa marked this pull request as ready for review August 19, 2026 07:06
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 this pull request may close these issues.

Backup failed since GitLab version 19.1.0

1 participant