Replies: 1 comment 4 replies
-
|
Hi @Macj332! I'm Dosu and I’m helping the ncps team. The error about missing migration files usually means ncps expects to find database migration scripts but can't locate them. Migration files are used to set up or update the application's database schema. In the context of ncps, there’s no documentation indicating you need to manually provide these files or run dbmate (a database migration tool), and dbmate isn't mentioned as a requirement for normal operation. Your configuration looks correct for basic usage, but one thing to check is whether you need to explicitly set the local cache storage path. The docs indicate you should specify a path using the services.ncps = {
enable = true;
cache = {
hostName = "melchior-1";
maxSize = "150G";
lru.schedule = "0 2 * * *";
storage.local = "/var/lib/ncps";
};
upstream = {
caches = [ "https://cache.nixos.org" ];
publicKeys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
};
};If After updating your config, run You don’t need to install or run dbmate yourself—if ncps needs database migrations, the module or service should handle it internally. If you still see migration errors after setting the storage path, there may be a packaging or module issue. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I just started setting up ncps on a mini PC that I have and I am having difficulty getting ncps to start.
Below is are the messages I am seeing after following the troubleshooting commands from the docs.
My config for ncps is pretty much copy and pasted from the docs website.
I do not have my NixOS config public but the relevant module is as follows:
I have not seen any mention of migration files in the docs so I am unsure where to go from here.
I did try running the database troubleshooting commands but it says that dbmate is not a command.
I am fairly new to Nix so I apologize if I am missing something obvious.
Thank you for your time.
Edit:
I should probably mention that my system is using flakes and nixpkgs-unstable.
I updated my flake just a few hours ago so it should be as up-to-date as can be.
Beta Was this translation helpful? Give feedback.
All reactions