We are facing issues while running RabbitMQ service, the service when ran through cmd, we are getting below stacktrace:
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.4\sbin>rabbitmq-server.bat
15:53:13.906 [error]
15:53:13.906 [error] Supervisor net_sup had child net_kernel started with net_kernel:start_link([rabbit_prelaunch_5364#localhost,shortnames], false, net_sup_dynamic) at undefined exit with reason {'EXIT',nodistribution} in context start_error
BOOT FAILED
===========
15:53:13.906 [error] CRASH REPORT Process <0.200.0> with 0 neighbours exited with reason: {error,badarg} in gen_server:init_it/6 line 401
Exception during startup:
15:53:13.922 [error] BOOT FAILED
15:53:13.922 [error] ===========
supervisor:children_map/4 line 1171
15:53:13.922 [error] Exception during startup:
supervisor:'-start_children/2-fun-0-'/3 line 355
supervisor:do_start_child/2 line 371
15:53:13.922 [error]
supervisor:do_start_child_i/3 line 385
15:53:13.922 [error] supervisor:children_map/4 line 1171
rabbit_prelaunch:run_prelaunch_first_phase/0 line 27
15:53:13.922 [error] supervisor:'-start_children/2-fun-0-'/3 line 355
rabbit_prelaunch:do_run/0 line 108
15:53:13.922 [error] supervisor:do_start_child/2 line 371
rabbit_prelaunch_dist:setup/1 line 15
15:53:13.922 [error] supervisor:do_start_child_i/3 line 385
rabbit_prelaunch_dist:duplicate_node_check/1 line 51
15:53:13.922 [error] rabbit_prelaunch:run_prelaunch_first_phase/0 line 27
error:{badmatch,
15:53:13.923 [error] rabbit_prelaunch:do_run/0 line 108
{error,
15:53:13.923 [error] rabbit_prelaunch_dist:setup/1 line 15
{{shutdown,
15:53:13.923 [error] rabbit_prelaunch_dist:duplicate_node_check/1 line 51
{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}},
15:53:13.923 [error] error:{badmatch,
{child,undefined,net_sup_dynamic,
15:53:13.923 [error] {error,
{erl_distribution,start_link,
15:53:13.923 [error] {{shutdown,
[[rabbit_prelaunch_5364#localhost,shortnames],
15:53:13.923 [error] {failed_to_start_child,net_kernel,{'EXIT',nodistribution}}},
false,net_sup_dynamic]},
15:53:13.923 [error] {child,undefined,net_sup_dynamic,
permanent,1000,supervisor,
15:53:13.923 [error] {erl_distribution,start_link,
[erl_distribution]}}}}
15:53:13.923 [error] [[rabbit_prelaunch_5364#localhost,shortnames],
15:53:13.923 [error] false,net_sup_dynamic]},
15:53:13.924 [error] permanent,1000,supervisor,
15:53:13.924 [error] [erl_distribution]}}}}
15:53:13.924 [error]
15:53:14.924 [error] Supervisor rabbit_prelaunch_sup had child prelaunch started with rabbit_prelaunch:run_prelaunch_first_phase() at undefined exit with reason {badmatch,{error,{{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}},{child,undefined,net_sup_dynamic,{erl_distribution,start_link,[[rabbit_prelaunch_5364#localhost,shortnames],false,net_sup_dynamic]},permanent,1000,supervisor,[erl_distribution]}}}} in context start_error
15:53:14.924 [error] CRASH REPORT Process <0.152.0> with 0 neighbours exited with reason: {{shutdown,{failed_to_start_child,prelaunch,{badmatch,{error,{{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}},{child,undefined,net_sup_dynamic,{erl_distribution,start_link,[[rabbit_prelaunch_5364#localhost,shortnames],false,net_sup_dynamic]},permanent,1000,supervisor,[erl_distribution]}}}}}},{rabbit_prelaunch_app,start,[normal,[]]}} in application_master:init/4 line 138
{"Kernel pid terminated",application_controller,"{application_start_failure,rabbitmq_prelaunch,{{shutdown,{failed_to_start_child,prelaunch,{badmatch,{error,{{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}},{child,undefined,net_sup_dynamic,{erl_distribution,start_link,[[rabbit_prelaunch_5364#localhost,shortnames],false,net_sup_dynamic]},permanent,1000,supervisor,[erl_distribution]}}}}}},{rabbit_prelaunch_app,start,[normal,[]]}}}"}
Kernel pid terminated (application_controller) ({application_start_failure,rabbitmq_prelaunch,{{shutdown,{failed_to_start_child,prelaunch,{badmatch,{error,{{shutdown,{failed_to_start_child,net_kernel,
Crash dump is being written to: erl_crash.dump...done
We are running the service on Windows 10 pro.
We tried checking the ports if being used by another process, but that's not an issue.
Checked if epmd.exe process is also running.
Both erl.exe and epmd.exe are allowed in windows firewall settings.
While installing RabbitMQ we can see an error like unexpected arguments neighbors string on the step of service installation, but the service installation status was successful.
I encountered a similar issue that was related to Proxifier. The problem was resolved by simply closing the Proxifier application.
It is recommended to close all proxy apps before trying again.
I am getting the following error when I debug in Eclipse.
I have debugged configuration where goal = -Dmaven.surefire.debug clean install
and remote java application configuration where host=localhost and port=5005.
This was working where it would let me debug the junit test case and stop working.
ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] ExecutionException The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was cmd.exe /X /C "C:\JAVA\jdk8\jre\bin\java -Xmx1024m -XX:MaxPermSize=256m -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005 -jar C:\Users\AppData\Local\Temp\surefire425261856307162974\surefirebooter7580221845135250781.jar C:\Users\AppData\Local\Temp\surefire425261856307162974 2019-04-19T18-06-49_005-jvmRun1 surefire891482895950174726tmp surefire_05373426221847918704tmp"
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 2
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: ExecutionException The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was cmd.exe /X /C "C:\JAVA\jdk8\jre\bin\java -Xmx1024m -XX:MaxPermSize=256m -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005 -jar C:\Users\AppData\Local\Temp\surefire425261856307162974\surefirebooter7580221845135250781.jar C:\Users\AppData\Local\Temp\surefire425261856307162974 2019-04-19T18-06-49_005-jvmRun1 surefire891482895950174726tmp surefire_05373426221847918704tmp"
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 2
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.awaitResultsDone(ForkStarter.java:511)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.runSuitesForkOnceMultiple(ForkStarter.java:383)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:298)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:247)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1161)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1002)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:848)
[ERROR] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
[ERROR] at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
[ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
[ERROR] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
[ERROR] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
[ERROR] at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:498)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[ERROR] Caused by: org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
This usually happens when the port 5005 is already in use.
assuming that you are using windows you can use the below command to find the PID of the process listening to the port 5005, you will get the list of all the listening pids and ports and you have to check the 5005 one
netstat -aon | find /i "listening"
on linux it is easy
lsof -i:5005
once you have the PID you can kill it using below
on windows
taskkill /F /PID {PID}
on linux/mac
kill -9 {PID}
then try to debug the maven test and it should work.
Folks,
I am getting error while starting the wsems # 443 port on windows 10 machine.
when I type wsems in cmd (with admin), I get following error:
C:\Users\<path> microserver>wsems
[INFO ] 2018-10-05 10:27:27,617 wsems: Using config file: C:\Users\<path>\Desktop\Thingworkx\Thingworx microserver\etc\config.json
[FORCE] 2018-10-05 10:27:27,617 wsems: Starting up ....
[ERROR] 2018-10-05 10:27:27,617 jsonConfigurator::initialize: Error parsing JSON.
[ERROR] 2018-10-05 10:27:27,617 Main: Error initializing configurator with C:\Users\<path>\Desktop\Thingworkx\Thingworx microserver\etc\config.json
[WARN ] 2018-10-05 10:27:27,617 Main: Trying .booted config file
[ERROR] 2018-10-05 10:27:27,617 jsonConfigurator::initialize: Error reading file. Error: No such file or directory [C:\Users\<path>\Desktop\Thingworkx\Thingworx microserver\etc\config.json.booted]
[ERROR] 2018-10-05 10:27:27,617 Main: Error initializing configurator with C:\Users\<path>\Desktop\Thingworkx\Thingworx microserver\etc\config.json.booted
[WARN ] 2018-10-05 10:27:27,617 Main: Failed to load .booted config file. Reverting back to original.
[ERROR] 2018-10-05 10:27:27,632 Main: Failed to load any configuration file. Exiting...
can anyone help me out with this, how to get around with .booted file error?
Yes, error indicate that there is issue with your config.json file and non-availability of .booted config file which will be generated upon successful startup & configuration.
I downloaded Pig from apache, I have installed it, tried to run it using pig -x local
This is what I get:
15/12/10 15:06:26 INFO pig.ExecTypeProvider: Trying ExecType : LOCAL
15/12/10 15:06:26 INFO pig.ExecTypeProvider: Trying ExecType : MAPREDUCE
15/12/10 15:06:26 INFO pig.ExecTypeProvider: Picked MAPREDUCE as the ExecType
2015-12-10 15:06:26,063 [main] INFO org.apache.pig.Main - Apache Pig version 0.15.0 (r1682971) compiled Jun 01 2015, 11:44:35
2015-12-10 15:06:26,063 [main] INFO org.apache.pig.Main - Logging error messages to: /usr/local/pig/pig_1449756386061.log
2015-12-10 15:06:26,097 [main] INFO org.apache.pig.impl.util.Utils - Default bootup file /home/ubuntu/.pigbootup not found
2015-12-10 15:06:26,132 [main] ERROR org.apache.pig.Main - ERROR 2998: Unhandled internal error. Found interface jline.Terminal, but class was expected
Details at logfile: /usr/local/pig/pig_1449756386061.log
2015-12-10 15:06:26,157 [main] INFO org.apache.pig.Main - Pig script completed in 206 milliseconds (206 ms)
My log file contains the following:
Error before Pig is launched
----------------------------
ERROR 2998: Unhandled internal error. Found interface jline.Terminal, but class was expected
java.lang.IncompatibleClassChangeError: Found interface jline.Terminal, but class was expected
at jline.ConsoleReader.<init>(ConsoleReader.java:174)
at jline.ConsoleReader.<init>(ConsoleReader.java:169)
at org.apache.pig.Main.run(Main.java:556)
at org.apache.pig.Main.main(Main.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
================================================================================
After I downloaded and extracted the package, I did the following (pig is in /usr/local/pig):
export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_79
196 export PIG_PREFIX=/usr/local/pig
197 export PATH=$PATH:$PIG_PREFIX/bin
Any ideas what is wrong?
Thanks,
Serban
Add this -
export HADOOP_USER_CLASSPATH_FIRST=true
Refer
https://issues.apache.org/jira/browse/PIG-3851
hive startup -[ERROR] Terminal initialization failed; falling back to unsupported