Unable to Start the Fivetran Proxy Agent Service on Linux
Issue
When running systemctl start fivetran_proxy.service to start the Fivetran Proxy Service on Linux, the following error appears:
Unit configuration has fatal error, unit will not be started. /etc/systemd/system/fivetran_proxy.service:11: Neither a valid executable name nor an absolute path: ${HVR_HOME}/jre/bin/java
Environment
- Connection option: Fivetran Proxy Agent
- Operating system: Linux
Resolution
To resolve this issue:
- Open the service file located at
/etc/systemd/system/fivetran_proxy.service. - In the
ExecStartdirective, replace${HVR_HOME}and any similar variables with the full absolute path to the executable. For example, replace:with the following:ExecStart=${HVR_HOME}/jre/bin/java ...ExecStart=/home/fivetran/hvr_home/jre/bin/java ... - Apply the updated service configuration by running:
systemctl daemon-reload - Enable and start the service as root by running:
systemctl enable fivetran_proxy.service systemctl start fivetran_proxy.service systemctl status fivetran_proxy.service
Cause
Systemd doesn't expand shell-style environment variables, such as ${HVR_HOME}, in the ExecStart directive. As a result, systemd can't locate the Java executable when environment variables are used instead of absolute paths.