Skip to content
Latchkey

Gitea Actions artifacts upload fails (artifacts server) in CI

Gitea stores workflow artifacts through its own artifacts endpoint, gated by [actions] ARTIFACT_STORAGE and the artifacts setting in app.ini. If it is not enabled or storage is misconfigured, upload-artifact fails.

What this error means

An upload-artifact step fails with an artifacts API error or a storage failure, while other steps succeed. Downloads later report the artifact was never stored.

Gitea Actions
Failed to upload artifact: unexpected status 500 from artifacts endpoint
# Gitea artifacts storage not enabled/configured

Common causes

Artifact storage is not enabled on the instance

Without the artifacts setting configured in app.ini, the artifacts endpoint has no backend and uploads fail.

A misconfigured storage path or backend

A local path that is not writable, or an object-storage backend with bad credentials, makes the upload error.

How to fix it

Enable artifacts storage in app.ini

  1. Configure the artifacts storage under [actions] (and storage section).
  2. Point it at a writable local path or valid object storage.
  3. Restart Gitea and re-run the upload step.
app.ini
[actions]
ENABLED = true

[storage.actions_artifacts]
STORAGE_TYPE = local
PATH = /var/lib/gitea/artifacts

Fix storage permissions or credentials

Ensure the Gitea process can write the artifacts path, or that object-storage credentials are valid.

Terminal
chown -R git:git /var/lib/gitea/artifacts

How to prevent it

  • Configure artifacts storage when enabling Actions.
  • Verify the storage path is writable by the Gitea user.
  • Test an upload/download after configuring storage.

Frequently asked questions

What causes "artifacts upload fails"?
Without the artifacts setting configured in app.ini, the artifacts endpoint has no backend and uploads fail.
How do I fix artifacts upload fails?
Enable artifacts storage in app.ini

Related guides

References

Latchkey auto-heals failures like this one - detected, fixed, and retried without you. Start free → 30-day trial · No credit card