Foren

Cannot connect to 11311 OSGI [ SOLVED ]

Johnny Hujol, geändert vor 6 Jahren.

Cannot connect to 11311 OSGI [ SOLVED ]

New Member Beiträge: 5 Beitrittsdatum: 21.05.17 Neueste Beiträge
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, geändert vor 6 Jahren.

RE: Cannot connect to 11311 OSGI

Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
Gogo is only available on localhost. From localhost you can telnet in.









Come meet me at the 2017 LSNA!
Johnny Hujol, geändert vor 6 Jahren.

RE: Cannot connect to 11311 OSGI

New Member Beiträge: 5 Beitrittsdatum: 21.05.17 Neueste Beiträge
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, geändert vor 6 Jahren.

RE: Cannot connect to 11311 OSGI

Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
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, geändert vor 6 Jahren.

RE: Cannot connect to 11311 OSGI

New Member Beiträge: 5 Beitrittsdatum: 21.05.17 Neueste Beiträge
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, geändert vor 6 Jahren.

RE: Cannot connect to 11311 OSGI

Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
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, geändert vor 6 Jahren.

RE: Cannot connect to 11311 OSGI

New Member Beiträge: 5 Beitrittsdatum: 21.05.17 Neueste Beiträge
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, geändert vor 6 Jahren.

RE: Cannot connect to 11311 OSGI (Antwort)

New Member Beiträge: 5 Beitrittsdatum: 21.05.17 Neueste Beiträge
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, geändert vor 6 Jahren.

RE: Cannot connect to 11311 OSGI

New Member Beiträge: 3 Beitrittsdatum: 02.08.11 Neueste Beiträge
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, geändert vor 5 Jahren.

RE: Cannot connect to 11311 OSGI

New Member Beiträge: 5 Beitrittsdatum: 07.12.17 Neueste Beiträge
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!