JFrog Artifactory — Production Administration, Errors and Mistakes
How Artifactory stores binaries, why disks fill and garbage collection does not free them, how to build dev-to-prod promotion and immutable Docker tags, and how to recover from the errors and mistakes seen in production.
Overview
Artifactory sits in the middle of every build and every deploy. When it fails, builds stop publishing, pipelines stop resolving dependencies, and Kubernetes cannot pull images. Most production incidents fall into a few groups: the filestore fills up, deletes do not free space, a permission is too narrow (deploys fail) or too wide (releases get overwritten), an upstream registry goes away, or someone deletes, overwrites or promotes the wrong thing.
The one idea to keep: Artifactory stores each binary once, by checksum, and keeps paths as database rows. Deleting a path removes a row. The bytes leave the disk only when no other path points at that checksum, the trash can has let go of it, and garbage collection has run. Almost every storage question in an interview comes back to that chain.
> [!NOTE] > Editions matter. JFrog Container Registry (JCR) covers Docker, Helm, OCI and Generic packages. Many REST operations used below (Move Item, Set Item Properties, Restore from Trash Can) are documented as requiring Artifactory Pro. Build promotion is listed from Pro X. High availability and Federated repositories need Enterprise X or Enterprise+. Package cleanup policies need Enterprise X or Enterprise+.
The pieces a request passes through
Before the symptoms, it helps to know where a request goes. Every client talks to one front door, and behind it the work splits between identity, the database and the disk.
Key concepts
- Checksum-based storage
- Local, remote, virtual, Federated
- Filestore and binary provider chain
- Trash Can
- Garbage collection
- Storage quota
- Delete/Overwrite permission
- Build promotion
- Docker Tag Retention and Max Unique Tags
- Enforce Strict Tag Overwrite
Interview questions
- Let's say your Artifactory instance file store hits 95% capacity on a weekend with no on-call engineer immediately available. And new builds start failing to publish. What's the fastest safe mitigation and what do you check before doing it?
- A build pipeline needs to publish a release artifact to production only after it passes QA sign off, but sign off happens manually sometimes days after the build. How do you structure the Artifactory repos and flow so a partially tested artifact can never accidentally reach the prod?
- A Docker image tag myapp:latest was overwritten in Artifactory and now a rollback to previous version is impossible. How should the repo have been configured to prevent this?
- Builds fail with 413 Request Entity Too Large. Is Artifactory full?
- You deleted 2 TB of old snapshots but the disk usage did not move. Why, and what do you do?
- Someone deleted a production repository. How do you recover, and how do you stop it happening again?
- A pipeline gets 403 when deploying, and another gets 404 from a remote repository for a package that exists upstream. What is going on?
- An upstream registry is down and builds that depend on it fail. What can Artifactory do for you?
- Clients report a checksum mismatch, or deploys fail with 409. How do you debug it?
- A cleanup policy deleted artifacts a team still needed. How should cleanup be set up?
- AQL queries are slow, return 429 or 408, and the database is under pressure. What do you change?
- How would you audit an Artifactory instance for over-broad access?
Sign up free to read the full topic
More DevOps topics
- Installation and Bootstrap
- Internal Developer Platforms
- Internal Developer Platforms (IDPs) & Backstage
- Jenkins
- Jenkins Controller vs Agent Architecture
- Jenkinsfile — Pipeline as Code
- JFrog Xray — Policies, Watches, Impact Analysis, Errors and Mistakes
- Karpenter — Node Autoscaling
- kubectl CLI Command Reference
- Kubernetes — Stuck Rollouts, Version Upgrades and Mistakes
- Kubernetes Admission Control
- Kubernetes AI and GPU Scheduling
Start free on Cariara · Coding problems · System design studio