Back to Geneos FAQ

Gateway unable to start

Problem Copied

Possible causes Copied

Possible solutions Copied

Verify if the Gateway ports are available with the netstat command. The default Gateway ports are 7039 for insecure channel and 7038 for secure channel. For example, a fatal entry like Gateway listen port is unavailable will be logged in the Gateway log.

2021-09-07 14:59:10.070-0400 FATAL: Gateway New INSECURE listen port (51101) is unavailable.

Update the Gateway setup file to use other free ports if needed. Remove the cache directory and restart the Gateway.

Verify if the Gateway partition is full with the df command. If it is, you would need to add or free up more disk space or install the Gateway to a different disk partition.

Verify the location of the Gateway setup file. At startup, the Gateway searches its current directory for a default file named gateway.setup.xml. For example, a fatal entry will be logged in the Gateway log when the Gateway is unable to locate the setup file.

2021-09-07 15:08:17.646-0400 FATAL: SetupManager Could not load setup: (1,1) invalid document structure

If your Gateway setup file is named differently, or not in the current directory then you can use the -setup flag when launching the Gateway binary. For more details, see Gateway Setup Files.

In the templates folder within the gateway directory, there is a gateway.setup.xml.tmpl file that you can update and save it as gateway.setup.xml in the gateway’s startup directory.

Check to make sure the user running the gateway has the required access rights to start up the Gateway binary and the Gateway configuration files.

The fix can be found on the Support article, The gateway is not able to start because for cache setup file.

Verify the Gateway is able to access the required system libraries to run. Check if you are using the correct Gateway package for the server.

For example, for RHEL8, you will need to use the geneos-gatweay-5.9.0-el8-linux.x64.tar.gz instead of geneos-gatweay-5.9.0-linux.x64.tar.gz.

Gateway resources for Linux

You can use the ldd command to verify if the Gateway can locate the required system libraries.

[klee@rhel8 gateway]$ cat /etc/redhat-release
Red Hat Enterprise Linux release 8.4 (Ootpa)
[klee@rhel8 gateway]$

[klee@rhel8 gateway]$ **ldd gateway2.linux\_64**
linux-vdso.so.1 (0x00007ffec67fb000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007f4414782000)
libnsl.so.2 => /lib64/libnsl.so.2 (0x00007f4414568000)
libcrypto.so.1.1 => /lib64/libcrypto.so.1.1 (0x00007f4414082000)
libssl.so.1.1 => /lib64/libssl.so.1.1 (0x00007f4413dee000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f4413bce000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f44139ca000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f44137a1000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f441358a000)
libz.so.1 => /lib64/libz.so.1 (0x00007f4413373000)
librt.so.1 => /lib64/librt.so.1 (0x00007f441316b000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f4412dd6000)
libm.so.6 => /lib64/libm.so.6 (0x00007f4412a54000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f441283c000)
libc.so.6 => /lib64/libc.so.6 (0x00007f4412477000)
/lib64/ld-linux-x86-64.so.2 (0x00007f4414986000)
libtirpc.so.3 => /lib64/libtirpc.so.3 (0x00007f4412244000)
libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007f4411fef000)
libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007f4411d06000)
libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007f4411aef000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f44118eb000)
libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007f44116da000)
libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007f44114d6000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f44112ac000)
libpcre2-8.so.0 => /lib64/libpcre2-8.so.0 (0x00007f4411028000)
[klee@rhel8 gateway]$

For a minimal setup, ensure the Gateway name and Gateway port are defined in the Gateway setup file.

If the setup is edited outside of the Gateway Setup Editor, you can use the Gateway binary to validate the content. For more details, see File format.

[klee@rhel8 GW2_klee_el8_7001]$ **./gateway2.linux\_64 -setup gateway.setup.xml -validate**
2021-08-21 12:43:34.026-0500 *****
2021-08-21 12:43:34.026-0500 Geneos EMF2 Gateway GA5.9.0-210805 (c) 1995-2021 ITRS Group
2021-08-21 12:43:34.026-0500 *****
2021-08-21 12:43:34.026-0500 INFO: Build type: linux_64:Release
2021-08-21 12:43:34.026-0500 INFO: Running from: /home/klee/Geneos/Gateways/GW2_klee_el8_7001
2021-08-21 12:43:34.026-0500 INFO: User/uid/gid: klee/1001/1001
2021-08-21 12:43:34.026-0500 INFO: Current path: /home/klee/.local/bin:/home/klee/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin
2021-08-21 12:43:34.026-0500 INFO: LD_LIBRARY_PATH has not been set
2021-08-21 12:43:34.026-0500 INFO: Gateway Gateway statistics collection is off.
2021-08-21 12:43:34.029-0500 INFO: SSLContext TLS version 1.0 and upwards accepted for secure connections.
2021-08-21 12:43:34.031-0500 INFO: CURL libcurl version: 7.61.1
2021-08-21 12:43:34.031-0500 INFO: CURL ssl version: OpenSSL/1.1.1g
2021-08-21 12:43:34.031-0500 INFO: CURL Support for: SSL NTLM IPv6 SPNEGO; Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
2021-08-21 12:43:34.033-0500 INFO: HostInfo: Hostname rhel8.stillevande.local, HostId 000a2100, HostIPAddress 10.0.0.33, Version #1 SMP Mon Jul 26 08:06:24 EDT 2021, Platform Linux, Release 4.18.0-305.12.1.el8_4.x86_64, Machine x86_64, HostOS Linux 4.18.0-305.12.1.el8_4.x86_64
2021-08-21 12:43:34.167-0500 INFO: Gateway Setup validation mode.
2021-08-21 12:43:34.176-0500 INFO: Gateway Setup validation succeeded.
[klee@rhel8 GW2_klee_el8_7001]$

For more information, see Gateway Installation Guide and Gateway Setup Files.

["Geneos"] ["Geneos > Gateway"] ["FAQ"]

Was this topic helpful?