Jboss failed start jboss-cli.sh:  java.lang.RuntimeException: broken pipe

mxgong
mxgong used Ask the Experts™
on
Hi,

I am trying startup jboss-cli.sh, however, i keep getting the following errors.

the domain controller service is up without issues, I can login http://<dc_ip>:9990

JBOSS: EAP 6.4 update 21

======================================
[jboss@domainController bin]$ ./jboss-cli.sh
Exception in thread "Thread-2" java.lang.RuntimeException: broken pipe
      at org.jboss.aesh.console.reader.ConsoleInputSession$2.run(ConsoleInputSession.java:95)
You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
[disconnected /]
[jboss@domainController bin]$
====================================

anyone can help? much appreciated
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016

Commented:
[quote][jboss@domainController bin]$ ./jboss-cli.sh [/quote]

Open in new window

Shouldn't you  be doing something more like:
$ ./jboss-cli.sh --connect controller=IP_ADDRESS

Open in new window

?

( https://docs.jboss.org/author/display/AS71/CLI+Recipes )
Distinguished Expert 2018

Commented:
Open your jboss-cli.xml and see where the <host> element points to (also have a look at the <port> element and make sure it is the right port). If the domain controller is in another host from where you're running cli from, you will need to point to that controller in your jboss-cli.xml file.

Author

Commented:
HI Girionis and CEHJ

The server which is running that jboss-cli.sh is domain controller.

i run the following command, same error

[jboss@domainController bin]$ ./jboss-cli.sh --connect  <IP of domainController >
Exception in thread "Thread-2" java.lang.RuntimeException: broken pipe
      at org.jboss.aesh.console.reader.ConsoleInputSession$2.run(ConsoleInputSession.java:95)
You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
[disconnected /]
[jboss@domainController bin]$
Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

Distinguished Expert 2018
Commented:
Can you try to increase the memory of JBoss?
Top Expert 2016

Commented:
[jboss@domainController bin]$

Open in new window


Suggests that you are running the command line client ON the machine to which you want to connect, in which case it will be your machine's IP address or 'localhost' [127.0.0.1] (depending on which address it's bound to)
Top Expert 2016

Commented:
btw is that running on an IP that's publicly visible or is it visible only to your LAN?

Author

Commented:
Thanks Girionis, i give 512mb for domain controller, it works now.

Thanks CEHJ for your help and suggestion.

Author

Commented:
Thanks Girionis, i give 512mb for domain controller, it works now.

Thanks CEHJ for your help and suggestion.
Distinguished Expert 2018

Commented:
Thanks for accepting, glad I was of help.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial