I’m trying to install the first parent of Netdata on Windows, and I want to move the cache database directory to a different disk.
When I tried setting it up as N:\Netdata\cache, the service fails to start and crashes immidiatly without writing anything to logs. What am I missing?
my netdata.conf file contains
[directories]
cache = N:\Netdata\Cache
another option is moving the whole directory of netdata to drive N. I did not see it is possible to install netdata to a different folder and Nedi told me it is impossible to change the install directory.
Netdata started a migration last week to add full support for Windows standards with PR https://github.com/netdata/netdata/pull/21972, which I set ready for review today. While we are working to achieve this support, it is still necessary to work with our configuration file as if it were a Linux directory. As a consequence of this, you will have to change your netdata.conf like this:
[directories]
cache = /n/Netdata/cache
Please let us know if you have any other questions.
This usually comes down to how Windows services handle paths + permissions.
A couple of things to check that often cause exactly what you’re seeing:
First, Windows services don’t always handle mapped drives or secondary drives the same way, especially if N: is a mapped/network drive. If that’s the case, the service (often running as LocalSystem) won’t “see” it, so it just fails silently. If possible, try using a local physical disk path (like D:\Netdata\Cache) or make sure the service account has explicit access to that drive.
Second, try changing the path format in netdata.conf. Some Windows services don’t like single backslashes in config parsing. This is safer:
[directories]
cache = N:/Netdata/Cache
or sometimes:
cache = N:\\Netdata\\Cache
Also make sure the folder actually exists and permissions are set before starting the service—Netdata won’t always create it cleanly on Windows.
Finally, on Windows builds of Netdata, moving only the cache sometimes breaks startup depending on how the service wrapper was built. In those cases, moving the entire install directory (or reinstalling to the target drive) is the more reliable option.
You might also find it helpful to generate consistent paths or test variations quickly using a tool like a name generator, especially if you’re creating multiple Netdata directories/environments and want a clean naming scheme.
If N: is a network drive, I’d strongly suspect that’s the root cause.