Executor won't start (Link to http://127.0.0.1:8080/knime/rest/v4/profiles/contents not working)

Hello

I installed (extracted) Executor knime-full_4.2.4.linux.gtk.x86_64.tar.gz
and Knime Server knime-server-installer-4.11.4.0178-5005c61.jar
on a Rhel Production Machine yesterday and cannot remember any faults I made during install.

Testing
http://ProdMachine:8080/
and Tomcat-Site is displayed

testing
http://ProdMachine:8080/knime/
I am getting HTTP Status 404

testing on our Knime TestMachine
http://TestMachine:8080/knime/
I am getting the Knime-Portal Site

Starting executor on out ProdMachine reveals that the executor cant get a resource he needs:
Could not download profiles from http://127.0.0.1:8080/knime/rest/v4/profiles/contents

When I try to download it via browser from the ProdMachine
http://ProdMachine:8080/knime/rest/v4/profiles/contents
the browser responds:

HTTP Status 404

The same attempt on the TestMachine
http://TestMachine:8080/knime/rest/v4/profiles/contents
And the Browser downloads a File preferences.zip

Seems the executor is missing something makes a few attemps an finally stops.

In the right order:
-bash-4.2$ ./startup.sh
Using CATALINA_BASE: /knime_storage/home/knime/apache-tomcat-9.0.36
Using CATALINA_HOME: /knime_storage/home/knime/apache-tomcat-9.0.36
Using CATALINA_TMPDIR: /knime_storage/home/knime/apache-tomcat-9.0.36/temp
Using JRE_HOME: /usr/lib/jvm/zulu-8
Using CLASSPATH: /knime_storage/home/knime/apache-tomcat-9.0.36/bin/bootstrap.jar:/knime_storage/home/knime/apache-tomcat-9.0.36/bin/tomcat-juli.jar
Tomcat started.


pwd
/knime_storage/home/knime/knime-full_4.2.4
./start-executor.sh

-bash-4.2$ ./start-executor.sh
CompilerOracle: exclude javax/swing/text/GlyphView.getBreakSpot
log4j:WARN No appenders could be found for logger (org.apache.http.client.protocol.RequestAddCookies).
log4j:WARN Please initialize the log4j system properly.
Jan 14, 2021 11:16:29 AM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-transports-http (521) [org.apache.cxf.transport.http.HTTPTransportFactory, org.apache.cxf.transport.http .HTTPWSDLExtensionLoader, org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder, org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder, org.apache .cxf.transport.http.policy.NoOpPolicyInterceptorProvider]
Jan 14, 2021 11:16:29 AM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-transports-http-hc (522) [org.apache.cxf.transport.http.HTTPConduitFactory, org.apache.cxf.transport.Con duitInitiator]
ERROR main ProfileManager Could not download profiles from http://127.0.0.1:8080/knime/rest/v4/profiles/contents: <!doctype html>H TTP Status 404 Not Foundbody {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font- size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}

HTTP Status 404 Not Found


Type Status Report

Message The requested resource [/knime/rest/v4/pr ofiles/contents] is not available

Description The origin server did not find a current representation for the target resource or is not willing to di sclose that one exists.


Apache Tomcat

. No profiles will be applied.
java.io.IOException: <!doctype html>HTTP Status 404 Not Foundbody {font-family:Tahoma,Arial,sans-serif ;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {he ight:1px;background-color:#525D76;border:none;}

HTTP Status 404 Not Found


Type Status Report

Mes sage The requested resource [/knime/rest/v4/profiles/contents] is not available

Description The origin server did not find a curr ent representation for the target resource or is not willing to disclose that one exists.


Apache Tomcat


at org.knime.product.profiles.ProfileManager.downloadProfiles(ProfileManager.java:396)
at org.knime.product.profiles.ProfileManager.fetchProfileContents(ProfileManager.java:268)
at org.knime.product.profiles.ProfileManager.applyProfiles(ProfileManager.java:168)
at com.knime.enterprise.executor.KNIMEExecutorApplication.start(KNIMEExecutorApplication.java:44)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
at org.eclipse.equinox.launcher.Main.run(Main.java:1447)
at org.eclipse.equinox.launcher.Main.main(Main.java:1420)
SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
WARN main RabbitMQHandler Couldn’t connect to message queue, retry to connect in 10000ms
java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:607)
at com.rabbitmq.client.impl.SocketFrameHandlerFactory.create(SocketFrameHandlerFactory.java:60)
at com.rabbitmq.client.impl.recovery.RecoveryAwareAMQConnectionFactory.newConnection(RecoveryAwareAMQConnectionFactory.java:62)
at com.rabbitmq.client.impl.recovery.AutorecoveringConnection.init(AutorecoveringConnection.java:156)
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:1104)
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:1063)
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:885)
at com.knime.enterprise.executor.msgq.RabbitMQHandler.createConnection(RabbitMQHandler.java:172)
at com.knime.enterprise.executor.msgq.RabbitMQHandler.(RabbitMQHandler.java:138)
at com.knime.enterprise.executor.KNIMEExecutorApplication.start(KNIMEExecutorApplication.java:59)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
at org.eclipse.equinox.launcher.Main.run(Main.java:1447)
at org.eclipse.equinox.launcher.Main.main(Main.java:1420)
WARN main RabbitMQHandler Couldn’t connect to message queue, retry to connect in 10000ms
java.net.ConnectException: Connection refused (Connection refused)

Greeings Bernhard Kochs dt. Telekom

hi @b_kochs,

you installed the server and executor on one/same computer, right?
also your tried to installe the executor manually and not via install routine during the server setup?

br,
sven

Yes Executor and Server are on the same computer.
The computer itself has no internet access.
The Executor was extracted at a location and this was given to the installer , when it asked for it.

Hi @b_kochs,

The executor fails to access a proper executor profile. Per default the KNIME Server installs a basic/sample executor profile under

<workflow_repository>/config/client-profiles.template/executor/executor.epf

This should contain all configurations from the former used preferences.epf and has to be linked by the following lines within the knime.ini of the executor:

-profileLocation
http://127.0.0.1:8080/knime/rest/v4/profiles/contents
-profileList
executor

After adding/editing these lines in the knime.ini should work to start the executor at all.

But there might be a second issue present as you cannot reach out to http://ProdMachine:8080/knime/ even though it should work without a running executor.

Could you try to change the profile to the executor.epf first, then we will proceed further with the other issue.

Best regards,
Michael

Hello Michael,

so I added the lines to the existing one but nothing changed.


/knime_storage/home/knime/workflow_repository/config/client-profiles.template/executor/executor.epf

/instance/org.knime.workbench.core/database_timeout=120
-profileLocation
http://127.0.0.1:8080/knime/rest/v4/profiles/contents
-profileList
executor


The content /knime is not available

Maybe Tomcat is bound to inapropriate ip / ipv6

Starting the executor results in this output
-bash-4.2$ ./start-executor.sh
CompilerOracle: exclude javax/swing/text/GlyphView.getBreakSpot
log4j:WARN No appenders could be found for logger (org.apache.http.client.protocol.RequestAddCookies).
log4j:WARN Please initialize the log4j system properly.
Jan 14, 2021 5:49:18 PM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-transports-http (521) [org.apache.cxf.transport.http.HTTPTransportFactory, org.apache.cxf.transport.http.HTTPWSDLExtensionLoader, org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder, org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder, org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider]
Jan 14, 2021 5:49:18 PM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-transports-http-hc (522) [org.apache.cxf.transport.http.HTTPConduitFactory, org.apache.cxf.transport.ConduitInitiator]
ERROR main ProfileManager Could not download profiles from http://127.0.0.1:8080/knime/rest/v4/profiles/contents: <!doctype html>HTTP Status 404 ��� Not Foundbody {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}

HTTP Status 404 ��� Not Found


Type Status Report

Message The requested resource [/knime/rest/v4/profiles/contents] is not available

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.


Apache Tomcat

. No profiles will be applied.
java.io.IOException: <!doctype html>HTTP Status 404 ��� Not Foundbody {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}

HTTP Status 404 ��� Not Found


Type Status Report

Message The requested resource [/knime/rest/v4/profiles/contents] is not available

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.


Apache Tomcat


at org.knime.product.profiles.ProfileManager.downloadProfiles(ProfileManager.java:396)
at org.knime.product.profiles.ProfileManager.fetchProfileContents(ProfileManager.java:268)
at org.knime.product.profiles.ProfileManager.applyProfiles(ProfileManager.java:168)
at com.knime.enterprise.executor.KNIMEExecutorApplication.start(KNIMEExecutorApplication.java:44)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
at org.eclipse.equinox.launcher.Main.run(Main.java:1447)
at org.eclipse.equinox.launcher.Main.main(Main.java:1420)
SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

Greetings B.Kochs

Hi @b_kochs,

I deleted the two withdrawn messages.

Are you using RabbitMQ or QPID for the KNIME Server <-> Executor connection? As it is logged that the connection is refused either the RabbitMQ is not started, the connection option within the knime-server.config is configured wrong or the port is blocked by an other software.

I will get in contact with you via our ticket system and ask for configuration files.

Kind regards,
Michael