Link to home
Start Free TrialLog in
Avatar of mxgong
mxgongFlag for Australia

asked on

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

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
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

[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 )
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.
Avatar of mxgong

ASKER

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]$
ASKER CERTIFIED SOLUTION
Avatar of girionis
girionis
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
[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)
btw is that running on an IP that's publicly visible or is it visible only to your LAN?
Avatar of mxgong

ASKER

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

Thanks CEHJ for your help and suggestion.
Avatar of mxgong

ASKER

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

Thanks CEHJ for your help and suggestion.
Thanks for accepting, glad I was of help.