unable to start rabbitmq and exits with reason {'EXIT',nodistribution} in context start_error - rabbitmq

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.

Related

Debugging with Maven SureFire Plugin in Eclipse

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.

unable to compile Maven ,not creating testng file & throws [ERROR]Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin

I am getting this error while executing maven trying to fix this code for 5 days non of the solution working
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test
(default-test) on project com.learn.selenium: Execution default-test
of goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test
failed: There was an error in the forked process
[ERROR] org.testng.TestNGException: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.
[ERROR] at org.testng.TestNG.initializeSuitesAndJarFile(TestNG.java:325)
[ERROR] at org.testng.TestNG.run(TestNG.java:1036)
[ERROR] at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:281)
[ERROR] at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
[ERROR] at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:121)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
[ERROR] Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.
[ERROR] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
[ERROR] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177)
[ERROR] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400)
[ERROR] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)
[ERROR] at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1472)
[ERROR] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1014)
[ERROR] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
[ERROR] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
[ERROR] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
[ERROR] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842)
[ERROR] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)
[ERROR] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
[ERROR] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
[ERROR] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
[ERROR] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:327)
[ERROR] at javax.xml.parsers.SAXParser.parse(SAXParser.java:195)
[ERROR] at org.testng.xml.XMLParser.parse(XMLParser.java:39)
[ERROR] at org.testng.xml.SuiteXmlParser.parse(SuiteXmlParser.java:16)
[ERROR] at org.testng.xml.SuiteXmlParser.parse(SuiteXmlParser.java:9)
[ERROR] at org.testng.xml.Parser.parse(Parser.java:172)
[ERROR] at org.testng.TestNG.initializeSuitesAndJarFile(TestNG.java:305)
[ERROR] ... 7 more
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
Where is pom.xml?
Ok,fine
solve it using -U option along with mvn command as
mvn clean install -U
hope it helps.

Unable to import a giter project in IntellliJ

I have created starter projects from the following link - https://www.playframework.com/documentation/2.6.x/Tutorials
Now I want to import these projects in IntelliJ.I am trying to follow the instructions from this link but I get this error. What is the mistake? I tried importing by first selecting the complete directory and later by selecting only build.sbt . IntelliJ versiokn is 2016.3.4
https://www.jetbrains.com/help/idea/getting-started-with-play-2-x.html#import_project
Error
Error while importing SBT project: ...
[error] at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:37)
[error] at sbt.MainLoop$.runLogged(MainLoop.scala:29)
[error] at sbt.StandardMain$.runManaged(Main.scala:104)
[error] at sbt.xMain.run(Main.scala:71)
[error] at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
[error] at xsbt.boot.Launch$.withContextLoader(Launch.scala:128)
[error] at xsbt.boot.Launch$.run(Launch.scala:109)
[error] at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
[error] at xsbt.boot.Launch$.launch(Launch.scala:117)
[error] at xsbt.boot.Launch$.apply(Launch.scala:18)
[error] at xsbt.boot.Boot$.runImpl(Boot.scala:41)
[error] at xsbt.boot.Boot$.main(Boot.scala:17)
[error] at xsbt.boot.Boot.main(Boot.scala)
[error] java.lang.ClassNotFoundException: org.jetbrains.sbt.CreateTasks$
[error] Use 'last' for the full log.
[error] Not a valid key: dump-structure (similar: buildStructure)
[error] */*:dump-structure
[error] ^
[INFO] [12/22/2017 05:46:39.234] [Thread-5] [CoordinatedShutdown(akka://sbt-web)] Starting coordinated shutdown from JVM shutdown hook
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=384M; support was removed in 8.0
See complete log in C:\Users\Manu\.IntelliJIdea2016.3\system\log\sbt.last.log Consult IDE log for more details (Help | Show Log)

Error while running simple app in Titanium Studio

Am new to Titanium App Development and am using Fedora Operating System and Titanium Studio with Titanium sdk 3.1.2.GA to develop App. When I create and run a sample program, its showing the following issue.
[ERROR] Exception occured while building Android project:
[ERROR] Traceback (most recent call last):
[ERROR] File "/root/.titanium/mobilesdk/linux/3.1.2.GA/android/builder.py", line 2596, in <module>
[ERROR] builder.build_and_run(False, avd_id, debugger_host=debugger_host, profiler_host=profiler_host)
[ERROR] File "/root/.titanium/mobilesdk/linux/3.1.2.GA/android/builder.py", line 2400, in build_and_run
[ERROR] launched, launch_failed = self.package_and_deploy()
[ERROR] File "/root/.titanium/mobilesdk/linux/3.1.2.GA/android/builder.py", line 1881, in package_and_deploy
[ERROR] self.keystore_alias], protect_arg_positions=(6,))
[ERROR] File "/root/.titanium/mobilesdk/linux/3.1.2.GA/android/run.py", line 45, in run
[ERROR] process = subprocess.Popen(args, stderr=subprocess.PIPE, stdout=subprocess.PIPE)
[ERROR] File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
[ERROR] errread, errwrite)
[ERROR] File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
[ERROR] raise child_exception
[ERROR] OSError: [Errno 2] No such file or directory
[ERROR] : Build process exited with code 1
[ERROR] : Project failed to build after 29s 938ms
[ERROR] Application Installer abnormal process termination. Process exit value was 1
Please do help me out of this.
Try clearing out the build folder and attempting to rebuild it again.
It seems that this happens quite a bit especially when upgrading to new versions

java.lang.IllegalArgumentException: already added: Lorg/w3c/dom/UserDataHandler;

I try to integrate my module(for Android) to titanium app.
I Integrade it and after i added in tiapp.xml:
<modules>
<module platform="android" version="1">com.android.manager</module>
</modules>
I get error:
[ERROR] System Error while compiling Android classes.dex
[ERROR]
[ERROR] UNEXPECTED TOP-LEVEL EXCEPTION:
[ERROR] java.lang.IllegalArgumentException: already added: Lorg/w3c/dom/UserDataHandler;
[ERROR] at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)
[ERROR] at com.android.dx.dex.file.DexFile.add(DexFile.java:163)
[ERROR] at com.android.dx.command.dexer.Main.processClass(Main.java:486)
[ERROR] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:455)
[ERROR] at com.android.dx.command.dexer.Main.access$400(Main.java:67)
[ERROR] at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:394)
[ERROR] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:245)
[ERROR] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:131)
[ERROR] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:109)
[ERROR] at com.android.dx.command.dexer.Main.processOne(Main.java:418)
[ERROR] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:329)
[ERROR] at com.android.dx.command.dexer.Main.run(Main.java:206)
[ERROR] at com.android.dx.command.dexer.Main.main(Main.java:174)
[ERROR] at com.android.dx.command.Main.main(Main.java:91)
[ERROR] 1 error; aborting
the main problem was, that the name in: {code} #Kroll.module(name="SensorManager", id="com.android.manager") the id was not the same it was: com.android.manager.Name......