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
mxgongAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CEHJCommented:
[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 )
girionisCommented:
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.
mxgongAuthor 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]$
Active Protection takes the fight to cryptojacking

While there were several headline-grabbing ransomware attacks during in 2017, another big threat started appearing at the same time that didn’t get the same coverage – illicit cryptomining.

girionisCommented:
Can you try to increase the memory of JBoss?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CEHJCommented:
[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)
CEHJCommented:
btw is that running on an IP that's publicly visible or is it visible only to your LAN?
mxgongAuthor Commented:
Thanks Girionis, i give 512mb for domain controller, it works now.

Thanks CEHJ for your help and suggestion.
mxgongAuthor Commented:
Thanks Girionis, i give 512mb for domain controller, it works now.

Thanks CEHJ for your help and suggestion.
girionisCommented:
Thanks for accepting, glad I was of help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Application Servers

From novice to tech pro — start learning today.