Fórum

Cannot connect to 11311 OSGI [ SOLVED ]

Johnny Hujol, modificado 6 Anos atrás.

Cannot connect to 11311 OSGI [ SOLVED ]

New Member Postagens: 5 Data de Entrada: 21/05/17 Postagens Recentes
Hi,
I cannot connect to 11311 there are no errors.
How do I know Felix is up and running?

Best,
Johnny
thumbnail
David H Nebinger, modificado 6 Anos atrás.

RE: Cannot connect to 11311 OSGI

Liferay Legend Postagens: 14914 Data de Entrada: 02/09/06 Postagens Recentes
Gogo is only available on localhost. From localhost you can telnet in.









Come meet me at the 2017 LSNA!
Johnny Hujol, modificado 6 Anos atrás.

RE: Cannot connect to 11311 OSGI

New Member Postagens: 5 Data de Entrada: 21/05/17 Postagens Recentes
David,
thx for the info.

So if I need to deploy a bundle I need to be on the host where LR runs - in my case inside the docker container - to do so, is that correct?

Best,
Johnny
thumbnail
David H Nebinger, modificado 6 Anos atrás.

RE: Cannot connect to 11311 OSGI

Liferay Legend Postagens: 14914 Data de Entrada: 02/09/06 Postagens Recentes
No.

All deployments (outside of your development environment) are done by copying the artifact(s) (jars, wars, etc.) to the $LIFERAY_HOME/deploy directory.








Come meet me at the 2017 LSNA!
Johnny Hujol, modificado 6 Anos atrás.

RE: Cannot connect to 11311 OSGI

New Member Postagens: 5 Data de Entrada: 21/05/17 Postagens Recentes
Thx.

Maybe I should give a little more background to what I'm trying to do here 'cause I feel I'm doing something wrong then.
I followed the doc to deploy a module:
https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/starting-module-development

1/ I created a module: blade create toto,
2/ I built: blade gw jar
3/ I want to deploy on LR: blade deploy

Nothing happened so I figured Felix must not be up and I checked: telnet localhost 11311 just did not connect.

So, with this in mind, you're saying that I should just copy all artifacts to the $LIFERAY_HOME/deploy directory, is that correct?
thumbnail
David H Nebinger, modificado 6 Anos atrás.

RE: Cannot connect to 11311 OSGI

Liferay Legend Postagens: 14914 Data de Entrada: 02/09/06 Postagens Recentes
The portal must be running for gogo to be accessible.

When you speak of a docker container I heard that as some other system, not localhost, that you had Liferay running under.

On the system that you are doing development, whether your local computer or within a docker container, when the portal is running you can use gogo, blade deploy, etc. when the portal is running.

If there is any kind of network between the Liferay portal and the system that you are on, you cannot use gogo, blade deploy, etc because gogo does not allow network access.









Come meet me at the 2017 LSNA!
Johnny Hujol, modificado 6 Anos atrás.

RE: Cannot connect to 11311 OSGI

New Member Postagens: 5 Data de Entrada: 21/05/17 Postagens Recentes
Sorry long weekend here in France.

I was on the same machine, whether inside the docker container or on the host with the port mapped.

But one thing that I understood is that gogo or blade talk to Felix the OSGI container via TCP 11311, so I should be able to at least have a telnet connection to it and I was not able to connect to it.

I will double check all that this week and come back to you.

David,
Thx for all the help so far.
Johnny Hujol, modificado 6 Anos atrás.

RE: Cannot connect to 11311 OSGI (Resposta)

New Member Postagens: 5 Data de Entrada: 21/05/17 Postagens Recentes
David,
I finally got it to work in Docker. I installed Blade CLI and I could deploy on Liferay.

Thx for the help.
Cheers,
Johnny
Jason Lehmer, modificado 6 Anos atrás.

RE: Cannot connect to 11311 OSGI

New Member Postagens: 3 Data de Entrada: 02/08/11 Postagens Recentes
Johnny,

I'm running into the same issue where I can't telnet from the host OS to the gogo shell running in a Docker container (running on the same machine). When you say you installing Blade fixed your issue, did you install it in the Docker image?

I'm most concerned with being able to access the gogo shell from the host OS.

Thanks!
sarath thatavarthy, modificado 5 Anos atrás.

RE: Cannot connect to 11311 OSGI

New Member Postagens: 5 Data de Entrada: 07/12/17 Postagens Recentes
I did change ports in my server.xml in my LR_HOME/tomcat*/conf/server.xml. From that time GOGO shell cannot be accessed on my machine. Can you please help. Thanks in advance!