Alachisoft / NCache

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

Cannot open Service Control Manager on computer #9

Open gigi81 opened 7 years ago

gigi81 commented 7 years ago

I have a fresh install of the opensource edition of NCache on a Windows 2012 R2 box. When running the following command to create a new cache: createcache.exe someCache /s 10.142.135.241 /S 128 /t local

The command returns with the following error: Alachisoft (R) NCache Utility CreateCache. Version 4.6 SP3 Copyright (C) Alachisoft 2017. All rights reserved. Creating cache 'someCache' on server '10.142.135.241'

Failed to create cache on server '10.142.135.241' . Error Detail: 'Cannot open Service Control Manager on computer '10.142.135.241'. The operation might require other privileges.'.

Any idea on what this means? Thanks

Kal-Alachisoft commented 7 years ago

Hi @gigi81

Please note that the command line tools send the request to the NCache Service which runs the required function. From the error you've shared it seems like that tool createcache does not have enough rights to request the NCache Service. Please open the command prompt as an Administrator and re run the command, this should let you create the cache.

Moreover, please also make sure your NCache service is up and running from the windows services.

Please let me know if this helped.

anaya-upadhyay commented 6 years ago

I do not have createcache tool available after installing NCache Open Source edition. And I cannot even start "NCacheSvc" on my windows 10. Please help. ncache error

Kal-Alachisoft commented 6 years ago

Hi Anaya, please note that the Create Cache tool is only available in the NCache Enterprise edition. To create caches please follow the steps mentioned in the link below.

http://www.alachisoft.com/resources/docs/ncache-com/admin-guide/create-a-cache.html

Furthermore, please check the error logged in the Event log Viewer and share that here as well. Most probably it is because the IP mentioned in the NCache Service configuration file is not currently available on the machine.

Moreover, when you install NCache it picks up one of the IPs from the machine and the NCache Service listens on that IP. You can verify the IP on which the NCache Service is currently listening on by viewing the value inside the tag within the NCache service configurations file located at "C:\Program Files\NCache\bin\service\Alachisoft.NCache.Service.exe.config". NCache needs a static IP on the machine to work just fine. If you make any changes then make sure to save the configuration file and try starting the NCache Service.