Greetings. It has been months since I started using NixOS for my hosting environment, specifically a Lenovo IdeaPad S145-15IWL 81S90005BR with total of 20GB RAM [4GB + 16GB DDR4] (Kingston Fury Impact), 1TB Gen3x4 M.2 NVMe SSD (KOOTION) and 1TB HDD (Western Digital), together with the Intel Core I5-8265U processor and Intel UHD Graphics 620 as the integrated GPU, and I mostly use it for programming and self-hosting.
But when I have decided to attempt an upgrade on all the NixOS packages and the NixOS itself in the last few weeks by using “sudo nix-channel --update” and “sudo nixos-rebuild switch --upgrade”, some packages associated with Logrotate and the system itself is showing up errors when attempting to build them, consequently preventing me from pushing changes through “configuration.nix” and “hardware-configuration.nix” into NixOS, which is affecting my environment a lot, since I cannot install any package anymore, as these errors will always follow me like a goddamn stalker.
I tried everything I could to fix the damn issue, like these for example:
- Running “sudo nix-collect-garbage -d”
- Configuring Logrotate on configuration.nix
- Trying to find the exact cause of the issue
- Attempting to migrate from NixOS 24.11 to the unstable release
- Continuously trying to update the system
- Just running “sudo nixos-rebuild switch” without the “–upgrade” thingy.
- Adding the latest URL of Nixpkgs together with the NixOS 24.11 URL
None of those attempts worked, the errors keeps continuously appearing, preventing me from pushing changes and doing updates, which is really frustrating and makes me wish to migrate to another Linux distributions for the 2737648374837th time. And yeah, I do not use Nix Flakes because I thought it was not necessary at all, but now I see how it could have benefited me if I ever enabled it, and even if I enable it, I cannot push the changes because of the damn errors.
If somebody knows the origins of the issue and knows the solution for it, I would appreciate it a lot, as I do not want to risk my environment through another migration of Linux distributions.
Therefore, I am sending some content from when I tried fixing the issue by myself.
configuration.nix: https://bin.arielaram.xyz/raw/oluwurayem
hardware-configuration.nix: https://bin.arielaram.xyz/raw/uxefozorut
My attempt to fix the issue using “sudo nix-collect-garbage -d”:
https://bin.arielaram.xyz/raw/naluniruwe
My desperate attempts to find out the origins of the issue:
https://bin.arielaram.xyz/raw/rifobomeha
The logs when I tried running “sudo nixos-rebuild switch --upgrade-all --verbose --show-trace” for the last time today:
https://bin.arielaram.xyz/raw/cisewaseke
The errors so far:
/nix/store/440q5scq8paszj2sdgz98hxl1rz12i88-coreutils-9.5/bin/id: cannot find name for group ID 30000
error: builder for '/nix/store/7yas4a5dyyy3s2xf5r1jhfd9z9g8y7f9-logrotate.conf.drv' failed with exit code 1
error: 1 dependencies of derivation '/nix/store/qgyhqgkbpm1lv4r8ikyqfc60m9725pfb-unit-logrotate-checkconf.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/6xmhx8m6wkk29g4v5kvygxs1qfr0vca9-system-units.drv' failed to build
error: 1 dependencies of derivation '/nix/store/3pgvwk2qygr52a42f67h70c6mpsldh3p-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/70jyqra3kp8axgr85faxkkarz9p1bqgh-nixos-system-nixos-24.11.717738.1d3aeb5a193b.drv' failed to build
As you may see, I am self-hosting Hastebin and publishing the logs and content here, together with the errors and configurations, and just to remind, if my Hastebin website is down, then it is because I rebooted my NixOS environment or it just collapsed entirely due to the continuous issues.
But well, if nobody knows why this issue is happening, then probably it might be only happening with my environment or this is an generalized issue on the latest update of NixOS or something.
And lastly, as I mentioned earlier, if somebody knows why these errors are happening, please inform me because I really need help on solving the issue.