Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add removal of ~root/.cache/nix to uninstall instructions (backport #11407) #12205

Open
wants to merge 1 commit into
base: 2.24-maintenance
Choose a base branch
from

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jan 10, 2025

Motivation

When uninstalling nix it is important to also remove the cache located at ~root/.cache/nix on linux systems.

In my situation, the cache had become corrupted and all nix builds were failing after hours of rebuilding packages that should have been fetched instead. Following the uninstall instructions at https://nix.dev/manual/nix/2.18/installation/uninstall#uninstalling-nix and then reinstalling did not fix the issue.

In order to fix the issue, I had to remove ~root/.cache/nix during uninstall and then a clean installation of nix resolved the problem.

The current documentation does not mention removing this folder, so I added this to the list of folders that should be removed during uninstall.

Context

The greater context around the situation that led to the cache being corrupted on my machine can be addressed separately. I believe it was caused by reaching OOM during a build, but I'm still investigating how this led to subsequent failures.

Priorities and Process

Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.


This is an automatic backport of pull request #11407 done by [Mergify](https://mergify.com).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant