I had some issues using the client in Arch Linux.
First, when installing the package, some errors are shown:
:: Running pre-transaction hooks...
(1/1) Creating Timeshift snapshot before upgrade...
==> skipping timeshift-autosnap due skipRsyncAutosnap in /etc/timeshift-autosnap.conf set to TRUE.
:: Processing package changes...
(1/1) upgrading twingate [#####################################################################] 100%
/tmp/alpm_f10XrM/.INSTALL: line 11: syntax error near unexpected token `fi'
/tmp/alpm_f10XrM/.INSTALL: line 11: ` fi'
/usr/bin/bash: line 1: post_upgrade: command not found
error: command failed to execute correctly
:: Running post-transaction hooks...
(1/2) Reloading system manager configuration...
(2/2) Arming ConditionNeedsUpdate...
these seem to be harmless, but just pointing out…
After using twingate for a while, when I try to start the systemd service I get another error, but this time the daemon fails to start:
Apr 12 14:17:14 jitterpad twingated[225746]: [2023-04-12T14:17:14.9043+0100] [WARNING] [client] [225746] Failed to open '/etc/twingate/user_intention_file': 'No such file or directory'
Apr 12 14:17:14 jitterpad twingated[225746]: array [
Apr 12 14:17:14 jitterpad twingated[225746]: dict_entry {
...
Apr 12 14:25:45 jitterpad twingated[227945]: [2023-04-12T14:25:45.333585+0100] [INFO] [libsdwan][227945] sdwan_state: Offline
Apr 12 14:25:45 jitterpad twingated[227945]: [2023-04-12T14:25:45.333601+0100] [INFO] [client] [227945] State: Offline
Apr 12 14:25:45 jitterpad twingated[227945]: [2023-04-12T14:25:45.333668+0100] [INFO] [libsdwan][227945] sdwan_state: Unrecoverable Error
Apr 12 14:25:45 jitterpad twingated[227945]: [2023-04-12T14:25:45.333680+0100] [INFO] [client] [227945] State: Unrecoverable Error
Apr 12 14:25:45 jitterpad twingated[227945]: [2023-04-12T14:25:45.333786+0100] [WARNING] [libsdwan][227945] [controller] run_state_machine: STATE_UNRECOVERABLE_ERROR has been activated
Apr 12 14:25:46 jitterpad twingated[227945]: [2023-04-12T14:25:46.439416+0100] [INFO] [libsdwan][227945] sdwan_state: Offline
Apr 12 14:25:46 jitterpad twingated[227945]: [2023-04-12T14:25:46.439463+0100] [INFO] [client] [227945] State: Offline
Apr 12 14:25:46 jitterpad twingated[227945]: [2023-04-12T14:25:46.439907+0100] [WARNING] [client] [227945] Failed to open '/etc/twingate/purge_file': 'No such file or directory'
Apr 12 14:25:46 jitterpad twingated[227945]: [2023-04-12T14:25:46.439942+0100] [INFO] [client] [227945] Exiting Twingate Client
Apr 12 14:25:46 jitterpad systemd[1]: twingate.service: Deactivated successfully.
but surprise, if I create the /etc/twingate/user_intention_file
manually with root:
[jitterpad ~]# echo "true" > /etc/twingate/user_intention_file
then surprise, I can start the daemon correctly.