Alachisoft / NCache

NCache: Highly Scalable Distributed Cache for .NET
http://www.alachisoft.com
Apache License 2.0
647 stars 123 forks source link

NCache Open Source 5.0 SP1- Unable to start cache after installation. Throw 'Specified cacheId is not registered' exception. #51

Closed DamienLaw closed 4 years ago

DamienLaw commented 4 years ago

image

I've uninstalled the previous Open Source version (5.0) and installed this version (5.0 SP1). The cache won't even start. I already copied over the client.ncconf and config.ncconf which I backed up from the previous version.

Kal-Alachisoft commented 4 years ago

Hi @DamienLaw , from the error it seems like the name you're specifying in the start-cache command is not present within the configs the NCache service is looking in.

You mentioned that you've copied the older configs into the new installed directory, please confirm if you restarted the NCache Service after that? The NCache service may be using an older copy of the config.ncconf which it loaded at service started up.

Furthermore, the Cache names are not case sensitive but please make sure the name you're specifying within the command is also present within the configs,

I hope this helps.

DamienLaw commented 4 years ago

As it turns out, the latest version 5.0 SP1, requires that the <cache-config> node in config.ncconf to have an additional attribute - config-id.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<configuration>
    <cache-config cache-name="myCache" config-id="7d4709e2-eb28-4599-b778-4b2138a0c468">
....

There's no documentation or "What's new in 5.0 SP1" to be found that mention this breaking change.

korau commented 3 years ago

The above mentioned config-id solution does not appear to resolve this error in OSS 5.0 SP3.

50sp3oss

The cache itself is listed when running a Get-Caches cmdlet on the server, so it is being detected to some extent.