Sorry I sent an email last night but forgot to prefix the subject line. Since Elasticsearch doesn't provide binaries for running as a service in an x64 environment, I thought I might try Commons Daemon. Setup isn't complicated. But for whatever reason I've been having a heck of a time. Hours of goggling and troubleshooting have been pretty futile so far. Any help would be appreciated.
I believe the pertinent error messages appearing in my log are: "Missing service ImageFile" and "The data area passed to a system call is too small." These occur in the same startup sequence. Neither of these messages seem to appear in meaningful ways in any Google searches I've performed. ====================== c:\elasticsearch>ElasticSearch.exe start The data area passed to a system call is too small. Failed to start service c:\elasticsearch> ====================== [2012-12-26 15:43:17] [debug] ( prunsrv.c:1681) [ 2084] Commons Daemon procrun log initialized [2012-12-26 15:43:17] [info] ( prunsrv.c:1685) [ 2084] Commons Daemon procrun (1.0.11.0 64-bit) started [2012-12-26 15:43:17] [info] ( prunsrv.c:724 ) [ 2084] Starting service 'ElasticSearch' ... [2012-12-26 15:43:17] [debug] ( prunsrv.c:1681) [ 2816] Commons Daemon procrun log initialized [2012-12-26 15:43:17] [info] ( prunsrv.c:1685) [ 2816] Commons Daemon procrun (1.0.11.0 64-bit) started [2012-12-26 15:43:17] [info] ( prunsrv.c:1598) [ 2816] Running 'ElasticSearch' Service... [2012-12-26 15:43:17] [debug] ( prunsrv.c:1379) [ 1016] Inside ServiceMain... [2012-12-26 15:43:17] [debug] ( prunsrv.c:843 ) [ 1016] reportServiceStatus: 2, 0, 3000, 0 [2012-12-26 15:43:17] [info] ( prunsrv.c:1123) [ 1016] Starting service... [2012-12-26 15:43:17] [error] ( prunsrv.c:1186) [ 1016] Missing service ImageFile [2012-12-26 15:43:17] [error] ( prunsrv.c:1541) [ 1016] ServiceStart returned 1 [2012-12-26 15:43:17] [debug] ( prunsrv.c:843 ) [ 1016] reportServiceStatus: 1, 1066, 0, 1 [2012-12-26 15:43:17] [info] ( prunsrv.c:1600) [ 2816] Run service finished. [2012-12-26 15:43:17] [info] ( prunsrv.c:1766) [ 2816] Commons Daemon procrun finished [2012-12-26 15:43:18] [error] ( prunsrv.c:745 ) [ 2084] Failed to start 'ElasticSearch' service [2012-12-26 15:43:18] [error] ( prunsrv.c:745 ) [ 2084] The data area passed to a system call is too small. [2012-12-26 15:43:18] [info] ( prunsrv.c:753 ) [ 2084] Start service finished. [2012-12-26 15:43:18] [error] ( prunsrv.c:1757) [ 2084] Commons Daemon procrun failed with exit value: 5 (Failed to start service) [2012-12-26 15:43:18] [error] ( prunsrv.c:1757) [ 2084] The data area passed to a system call is too small. =================== Here is my installation script. Forgive me I know its large. =========== ElasticSearch.exe install ElasticSearch --DisplayName="ElasticSearch" --Description="Distributed RESTful Full-Text Search Engine based on Lucene (http:\\www.elasticsearch.org\)" --Install=C:\elasticsearch\ElasticSearch.exe --Classpath="C:\elasticsearch\lib\elasticsearch-0.19.8.jar;C:\elasticsearch\lib\*;C:\elasticsearch\lib\sigar*" --Jvm="C:\Program Files\Java\jdk1.7.0_10\jre\bin\server\jvm.dll" --JvmMs=512 --JvmMx=2048 --JvmOptions="-XX:+UseCompressedOops;-XX:+UseParNewGC;-XX:+UseConcMarkSweepGC;-XX:+CMSParallelRemarkEnabled;-XX:SurvivorRatio=8;-XX:MaxTenuringThreshold=1;-XX:CMSInitiatingOccupancyFraction=75;-XX:+UseCMSInitiatingOccupancyOnly;-XX:+HeapDumpOnOutOfMemoryError;-Djline.enabled=false;-Delasticsearch;-Des-foreground=yes;-Des.path.home=C:\elasticsearch\" --StartMode=jvm --StartClass=org.elasticsearch.bootstrap.Bootstrap --StartMethod=main --StartParams="" --StopMode=jvm --StopClass=org.elasticsearch.bootstrap.Bootstrap --StopMethod=main --StdOutput=C:\elasticsearch\logs --StdError=C:\elasticsearch\logs --LogPath="C:\elasticsearch\logs" --LogPrefix=service --LogLevel=Debug --ServiceUser="myserviceuser" --ServicePassword="myserviceuserpassword" --Startup=auto =========== Things I've done so far: * Made sure I was running 64bit java with the amd64 version of procrun.exe (renamed to ElasticSearch.exe) * Made sure all my paths were full system paths with backslashes * Made sure my user has full permissions to the C:\elasticsearch directory * Checked the ElasticSearchw.exe(procmgr.exe), all properties appeared like they should except all the fields in the Startup tab appears blank. Filling them in then starting elicits different messages:" Could not create instance of java/io/FileOutputStream" and "Exit hook with exit code 3"," Start exit hook called ..."," VM exit code: 3" Brian Pickens | Snap Fitness Corporate | Application Developer | Be Well.
