Elasticsearch installation failed on windows - elasticsearch

I am trying to install Elasticsearch 7.16.2 on windows server but while installation I am getting below error.
Installing service : "elasticsearch-service-x64"
Using ES_JAVA_HOME (64-bit): "C:\Program Files\Java\jdk-17.0.1"
-Des.networkaddress.cache.ttl=60;-Des.networkaddress.cache.negative.ttl=10;-XX:+AlwaysPreTouch;-Xss1m;-Djava.awt.headless=true;-Dfile.encoding=UTF-8;-Djna.nosys=true;-XX:-OmitStackTraceInFastThrow;-XX:+ShowCodeDetailsInExceptionMessages;-Dio.netty.noUnsafe=true;-Dio.netty.noKeySetOptimization=true;-Dio.netty.recycler.maxCapacityPerThread=0;-Dio.netty.allocator.numDirectArenas=0;-Dlog4j.shutdownHookEnabled=false;-Dlog4j2.disable.jmx=true;-Dlog4j2.formatMsgNoLookups=true;-Djava.locale.providers=SPI,COMPAT;--add-opens=java.base/java.io=ALL-UNNAMED;-XX:+UseG1GC;-Djava.io.tmpdir=C:\Users\jioapp\AppData\Local\Temp\2\elasticsearch;-XX:+HeapDumpOnOutOfMemoryError;-XX:+ExitOnOutOfMemoryError;-XX:HeapDumpPath=data;-XX:ErrorFile=logs/hs_err_pid%p.log;-Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m;-Xms31744m;-Xmx31744m;-XX:MaxDirectMemorySize=16642998272;-XX:InitiatingHeapOccupancyPercent=30;-XX:G1ReservePercent=25
Failed installing 'elasticsearch-service-x64' service
Thanks,
Shashikant

Whoever has the same problem, try 'elasticsearch-service.bat remove'. I actually had the same error, checked the log files and it said that the service already existed and that's why it was failing to install. Once I removed it I was able to reinstall it and then I had issues starting it but I think it was because of some typos in the elasticsearch.yml file.
If that doesn't work, maybe try 'elasticsearch-service.bat manager' for some information and check your environment variables.

Related

Permission error when starting a microservice with Micro.mu

I have just created a new microservice with micro new <microservice_name> using Micro. I have then installed the needed dependencies (protobuf) and run make proto, as specified in the official documentation. However, when I run micro run ., I get Fork/exec /usr/local/Cellar/go: permission denied:.
I have already tried:
running the same command with sudo;
checking the permissions for /usr/local/Cellar/go (drwxr-xr-x);
checking the permissions for $HOME/bin/micro (.rwxr-xr-x);
reinstalling Go (brew reinstall go).
Nothing changed: I still get the same error message.
I have just found a solution. The issue I was experiencing was related to Homebrew. After uninstalling Go with brew uninstall go and installing it with the official installer for Mac (available at the official download page) I finally managed to start my microservice with micro server and micro run .

{"init terminating in do_boot",{'cannot get bootfile','start_clean.boot'}} init terminating in do_boot ({cannot get bootfile,start_clean.boot})

when I run command rabbitmq-plugins.bat enable rabbitmq_management in windows 10. I got below error
{"init terminating in do_boot",{'cannot get bootfile','start_clean.boot'}}
init terminating in do_boot ({cannot get bootfile,start_clean.boot})
. I have windows 10.
. ERLANG is installed and ERLANG_HOME varaible is set
Please help me in resolving this
I also faced this issue and solved it by reinstalling it. Steps I followed on Windows 10:
Uninstall RabbitMQ
Delete the folder %APPDATA%\RabbitMQ
Delete folder RabbitMQ Server from C:\ProgramFiles
set ERLANG_HOME
Reinstall RabbitMQ via administrator account
Assuming you installed ERLANG via administrator account as well. If not then first reinstall Erlang before reinstalling RabbitMQ.
For me, the problem was that I was installing the latest (version 23) of ERLANG... which has the bin folder one level deeper and that caused issues for RabbitMQ... even if I set the ERLANG_HOME environment variable that one level deeper.
What worked was installing the latest of version 22 (22.3 at the time of this post) of ERLANG.
why?:
1.when you specify the installation path and do not follow the default path
2.the installer will create a C:Program Files\rabbitmq_server-3.11.1\Rabbit MQ\plugins folder,the path you specified will be missing these files
solve:
merge the files in C:Program Files\Rabbit MQ\rabbitmq_server-3.11.1\plugins into the directory you specify,likeD:\RabbitMQ\rabbitmq_server-3.11.1\plugins

I re-installed ICP and I got the following error CWOAU0061E

My last ICP installation had no issues but this one is giving me this error.
“CWOAU0061E: The OAuth service provider could not find the client because the client name is not valid. Contact your system administrator to resolve the problem.”
During my installation of ICP-EE 2.1.0.1, I had no errors but it is when I tried to log into the console, I got the error:
I even waited an hour and the error was still happening.
It seems that the problem was related to the following directories:
/opt/ibm
/opt/kubernetes
The two directories listed above were installed from my previous ICP environment but the official uninstall steps of ICP didn't remove them.
I uninstall ICP again
Made sure the two directories were gone
Reinstalled ICP again and it worked

CouchDB will not install as a service on Azure Windows VM

I have previously installed CouchDB on my Azure Windows VM (Classic) without any problems using the installer setup-couchdb-1.6.1_R16B02.exe downloaded from http://couchdb.apache.org/
Today I have uninstalled the existing CouchDB installation and service with the intention of installing it again from scratch. Unfortunately, whenever I run the installer now it fails to create a windows service. More info:
I am running the installer and the command tool as Administrator
I have removed existing services using the SC command and by editing the registry (tried both methods)
I have tried creating the service after installing CouchDB using the installer by running the command:
erlsrv.exe add "Apache CouchDB" -workdir "%COUCH%\bin" -onfail
restart_always -args "-sasl errlog_type error -s couch +A 4 +W w"
-comment "Apache CouchDB 1.6.1"
This seems to create a service (which you can see in the Windows Services) but any attempt to start the service results in an error:
Windows could not start the Apache CouchDB service on Local Computer.
Error 1067: The process terminated unexpectedly.
I have tried uninstalling the CouchDB application, restarting the server, re-installing CouchDB using the installer again. No joy. Also then tried running the command to create the service. Still no joy.
When I use the command
erlsrv list
I can see the services that I've tried to add in the past. Any attempt to remove them results in the error message:
erosrv: Unable to remove service (not enough privileges?)
Error: The handle is invalid
(I am using the handle as provided by the erlsrv list command)
there are no events in the events log that I can find that explain why this is failing
How can I get CouchDB to install as a service correctly?
TL;DR: Re-install in a directory path with no spaces in it, then manually create the service.
OK so at some point in my Googling today I came across this answer which gave me the clue that I should install in a path without spaces in it. So my solution was to:
uninstall the CouchDB application via Windows Control Panel.
run the uninstall.exe in any remaining installations of CouchDB and delete those directories.
remove the existing services using the SC command.
reinstall using the installer into C:\CouchDB (note: no spaces!). Select the option to install as a service (even though this doesn't quite work).
run the command to manually create the service. Note that I'm not using the %COUCH% variable as it doesn't seem to exist on my system at this point:
erlsrv.exe add "CouchDB" -workdir "C:\CouchDB\bin" -onfail restart_always -args "-sasl errlog_type error -s couch +A 4 +W w" -comment "CouchDB 1.6.1"
This command finally managed to properly create a windows service for CouchDB that started correctly. Browsing to http://localhost:5984/_utils/ now brings me to the Futon UI. And relax!

Installing sensu, sensu-dashboard does not install

I am installing a sensu server inside a docker container running ubuntu 14.04 but when I install it for some reason it does not install the sensu-dashboard.
When I run the following command to set up the defaults I get a file does not exist error
> Command: update-rc.d sensu-dashboard defaults
Error: update-rc.d: /etc/init.d/sensu-dashboard: file does not exist
I have searched for the file but does not seem to be installed anywhere.
Has anyone else had this problem before when installing sensu or know how to fix it?
Thank you
The default Dashboard was removed on July 28th so you missed it by a day!! :( You now have to use a different dashboard. Uchiwa is a great choice and is under very heavy development, so I am sure it will continue to become more feature rich.
link to uchiwa's github page
The default Dashboard was removed that is true but if want to use sensu-dashboard then go for Sensu-Enterprise.
Here is the link: http://sensuapp.org/enterprise

Resources