Knime Server fails to start (systemd service)

Hello

were trying to migrate knime to a internal cloud platform.
The active Server runs un Redhat 7 (both services knime-server and knime-executor)

The Cloud OS is:
[root@ede0gn ~]# cat /etc/os-release
NAME=“Red Hat Enterprise Linux”
VERSION=“8.8 (Ootpa)”
ID=“rhel”
ID_LIKE=“fedora”
VERSION_ID=“8.8”

The setup nearly identical, but the creation of the knime-server and knime-executor services make problems.
The knime-server service cannot be startet:
[root@ede0gn ~]# systemctl start knime-server
Job for knime-server.service failed because the control process exited with error code.
See “systemctl status knime-server.service” and “journalctl -xe” for details.

[root@ede0gn ~]# systemctl status knime-server
● knime-server.service - KNIME Server
Loaded: loaded (/usr/local/lib/systemd/system/knime-server.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2023-07-17 14:44:40 CEST; 11s ago
Process: 90611 ExecStart=/usr/local/bin/server start (code=exited, status=203/EXEC)
Process: 90608 ExecStartPre=/bin/chown $USER /var/run/apache-tomcat.pid (code=exited, status=0/SUCCESS)
Process: 90605 ExecStartPre=/bin/touch /var/run/apache-tomcat.pid (code=exited, status=0/SUCCESS)

Jul 17 14:44:40 ede0gn systemd[1]: Starting KNIME Server…
Jul 17 14:44:40 ede0gn systemd[1]: knime-server.service: Control process exited, code=exited status=203
Jul 17 14:44:40 ede0gn systemd[1]: knime-server.service: Failed with result ‘exit-code’.
Jul 17 14:44:40 ede0gn systemd[1]: Failed to start KNIME Server.

Greetings B.Kochs

Hello
further Information:

[root@ede0gn knime-server]# journalctl -xe

– Unit knime-server.service has begun starting up.
Jul 17 21:59:23 ede0gn systemd[92260]: knime-server.service: Failed to execute command: Permission denied
Jul 17 21:59:23 ede0gn systemd[92260]: knime-server.service: Failed at step EXEC spawning /usr/local/libexec/knime-server/server: Permission denied
– Subject: Process /usr/local/libexec/knime-server/server could not be executed

Even when I delete the script file :/usr/local/libexec/knime-server/server
the error message is the same.

Greetings B.Kochs

Hello,

  • How did you copy in the systemd scripts? Did you use the sudo cp -r command like in [1] ?
  • It looks like this line shows us the true issue:
    Jul 17 21:59:23 ede0gn systemd[92260]: knime-server.service: Failed at step EXEC spawning /usr/local/libexec/knime-server/server: Permission denied
    Check the permissions on the entire file structure that you copied in for the systemd scripts, and see if perhaps there is an ownership or permissions issue at hand. The files should be owned by root:root and readable by the user the process is being started as (knime, usually).
  • Alternatively, perhaps the ownership/permissions on the target directory are incorrect (like if you installed KS as root, but the startup user is knime, then it may be unable to read/write the files as it needs to.)

If you identify the directory and owner/permissions are incorrect, you can likely correct this with chown -R <owner>:<group> <directory>, where owner:group are probably root:root and directory is the directory where the systemd scripts were copied into. Care should be taken to make sure you won’t have inadvertent side effects with an improperly phrased command, though.

If you’d prefer to work together directly rather than via public forum on this issue, please reach out to support@knime.com and we can assist you directly.

Regards,
Nickolaus

[1] KNIME Server Installation Guide

Hello NDekay,

this chmod command was the solution.

As I have installed and updated Knime on Red Hat on multiple Servers , never had any issues with creating the knime-services any time, this one : Red Hat on a Cloud platform was a pain.
For the ‘server’ script , the conf and service - Files and every folder which leads to their storage location I altered the User-Rights to
chmod -R u=+r+w+x,go=+r+x /usr/local/libexec/ (or whatever)

[root@ede0gn system]# systemctl status knime-server
● knime-server.service - KNIME Server
Loaded: loaded (/usr/local/lib/systemd/system/knime-server.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/knime-server.service.d
└─override.conf
Active: active (running) since Tue 2023-07-18 09:02:26 CEST; 6s ago

Thanks.

Greetings B.Kochs

1 Like

Hello @b_kochs ,

Glad to hear you resolved it successfully. Good work!
Please let us know if you have any other issues or questions (on a new thread, of course!) :slight_smile:

Regards,
Nickolaus