Hi Andre,

do you start with no data folder ?

I just tried and it works fine for me.

ConfigAdmin service has be started before SSH (which is the case by default).

Do you use a Karaf 4.3.6 vanilla ?

Regards
JB

On 28/01/2022 07:18, Andre Schlegel-Tylla wrote:
Hello,

We are using environment variables to override the karaf ports (https://karaf.apache.org/manual/latest/#_environment_variables_system_properties <https://karaf.apache.org/manual/latest/#_environment_variables_system_properties>). We have some tests where we make a fresh installation with some changed ports. In this case we have seen port conflicts with a parallel vanilla installation on the same machine (ssh port and http port). It seems that the override by the environment variables didn't work. After a restart of the installation all was fine.

I can reproduce the problem on my machine. I have downloaded the current 4.3.6 release. Set there env vars:

export ORG_APACHE_KARAF_SHELL_SSHPORT=18101
export ORG_APACHE_KARAF_MANAGEMENT_RMIREGISTRYPORT=11099
export ORG_APACHE_KARAF_MANAGEMENT_RMISERVERPORT=14444
export ORG_OPS4J_PAX_WEB_ORG_OSGI_SERVICE_HTTP_PORT=18181
export ORG_OPS4J_PAX_WEB_ORG_OSGI_SERVICE_HTTP_PORT_SECURE=18282

When I start the fresh karaf (bin/karaf) the ssh port is open on 8101 and not on 18101. When I stop the karaf and start again the ssh port is open on 18101.

Kind regards
Andre

Reply via email to