I might be wrong here - just guessing...
My intuition tells me that aesh can't find the console (System.out or
System.in). Perhaps you're running the image in non-interactive mode
(without `-it`) or in a non-interactive environment (maybe an S2I build or
something, stage build or anything similar to that). In such a case, you'd
need to use the embedded server mode for the cli. Here's how I did it ages
ago for the Cache Service (Red Hat Data Grid) [1].
[1]
https://github.com/jboss-container-images/datagrid-7-image/blob/datagrid-...
On Thu, Feb 7, 2019 at 1:59 PM Lorenzo Luconi Trombacchi <
lorenzo.luconi(a)iit.cnr.it> wrote:
For me it works:
$ docker run -it --rm --name keycloak jboss/keycloak:4.8.3.Final
$ docker exec -it keycloak /opt/jboss/keycloak/bin/jboss-cli.sh --connect
[standalone@localhost:9990 /]
Lorenzo
> Il giorno 7 feb 2019, alle ore 13:49, Meissa M'baye Sakho <
msakho(a)redhat.com> ha scritto:
>
> I'm trying to connect to the cli inside a docker container built on the
> keycloak:4.8.3.Final docker image.
> When I'm inside the container, once I execute the following command i the
> keycloak bin directory.
> ./jboss-cli.sh --connect
> I'm getting the following eroors when I try to type anything.
> [standalone@localhost:9990 /] Exception in thread "CLI Terminal
Connection
> (uninterruptable)" java.lang.ArithmeticException: / by zero
> at org.aesh.readline.Buffer.printInsertedData(Buffer.java:582)
> at org.aesh.readline.Buffer.insert(Buffer.java:231)
> at
> org.aesh.readline.AeshConsoleBuffer.writeChar(AeshConsoleBuffer.java:130)
> at
> org.aesh.readline.Readline$AeshInputProcessor.parse(Readline.java:262)
> at
>
org.aesh.readline.Readline$AeshInputProcessor.access$100(Readline.java:174)
> at org.aesh.readline.Readline.readInput(Readline.java:95)
> at org.aesh.readline.Readline.access$1000(Readline.java:57)
> at
>
org.aesh.readline.Readline$AeshInputProcessor.lambda$start$1(Readline.java:333)
> at org.aesh.terminal.EventDecoder.accept(EventDecoder.java:118)
> at org.aesh.terminal.EventDecoder.accept(EventDecoder.java:31)
> at org.aesh.io.Decoder.write(Decoder.java:133)
> at
>
org.aesh.readline.tty.terminal.TerminalConnection.openBlocking(TerminalConnection.java:216)
> at
>
org.aesh.readline.tty.terminal.TerminalConnection.openBlocking(TerminalConnection.java:203)
> at
>
org.jboss.as.cli.impl.ReadlineConsole$CLITerminalConnection.lambda$null$1(ReadlineConsole.java:176)
> Any advice?
>
> MEISSA SAKHO
> _______________________________________________
> keycloak-user mailing list
> keycloak-user(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/keycloak-user
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user