Failed to start Twingate Arch Linux

I seem to have a problem with auth verification on arch linux, Im just recently switching back from ubuntu and am having the same error i had a few months ago. Here is my trouble shooting process and logs. /usr/bin/twingate-notifier console  INT ✘  took 5m 58s   14:34:06 [ERROR] Error: auth.sock socket is not found 14:34:11 [ERROR] Error: auth.sock socket is not found ^C

Aug 20 16:24:46 trashbin systemd[1]: twingate.service: Main process exited, code=exited, status=1/FAILURE
Aug 20 16:24:46 trashbin systemd[1]: twingate.service: Failed with result 'exit-code'.
Aug 20 16:24:51 trashbin systemd[1]: twingate.service: Scheduled restart job, restart counter is at 11.


    ~  sudo mkdir -p /var/lib/twingate                                                                       INT ✘  took 10s  
sudo chown -R bowyn /var/lib/twingate


    ~  sudo systemctl restart twingate                                                                                        ✔ 

    ~  systemctl status twingate                                                                                              ✔ 
● twingate.service - Twingate Remote Access Client
     Loaded: loaded (/usr/lib/systemd/system/twingate.service; enabled; preset: disabled)
     Active: activating (auto-restart) (Result: exit-code) since Sun 2023-08-20 16:26:40 CEST; 1s ago
    Process: 97462 ExecStart=/usr/sbin/twingated /etc/twingate/config.json (code=exited, status=1/FAILURE)
   Main PID: 97462 (code=exited, status=1/FAILURE)
        CPU: 20ms

    ~                                                                                                                       3 ✘ 

    ~  ls -ld /etc/twingate                                                                                               INT ✘ 
drwxr-xr-x bowyn bowyn 506 B Sun Aug 20 16:22:39 2023  /etc/twingate

    ~  sudo chmod 755 /etc/twingate                                                                                           ✔ 


    ~  ls -l /etc/twingate                                                                                                    ✔ 
.rw-r--r-- bowyn bowyn  1 B Sun Aug 20 16:23:29 2023  autostart.conf
.rw-r--r-- bowyn bowyn  1 B Sun Aug 20 16:18:47 2023  autostart.conf.pacsave
.rw-r--r-- bowyn bowyn  1 B Sun Aug 20 16:10:02 2023  autostart.conf.pacsave.1
.rw-r--r-- bowyn bowyn 78 B Tue Aug 15 13:47:19 2023  config.json
.rw-r--r-- bowyn bowyn 13 B Tue Aug 15 13:47:19 2023  controller_url.conf
.rw-r--r-- bowyn bowyn 12 B Sun Aug 20 16:23:27 2023  network.conf
.rw-r--r-- bowyn bowyn 12 B Sun Aug 20 16:18:45 2023  network.conf.pacsave
.rw-r--r-- bowyn bowyn 12 B Sun Aug 20 16:09:56 2023  network.conf.pacsave.1
.rw-r--r-- root  root   1 B Sun Aug 20 16:23:30 2023  save_auth_data.conf
.rw-r--r-- bowyn bowyn  1 B Sun Aug 20 16:23:30 2023  sentry_user_consent.conf
.rw-r--r-- bowyn bowyn  1 B Sun Aug 20 16:18:51 2023  sentry_user_consent.conf.pacsave
.rw-r--r-- bowyn bowyn  1 B Sun Aug 20 16:10:07 2023  sentry_user_consent.conf.pacsave.1

    ~                                                                                                                         ✔ 

    ~  sudo systemctl restart twingate                                                                                    INT ✘ 

    ~  systemctl status twingate                                                                                              ✔ 
● twingate.service - Twingate Remote Access Client
     Loaded: loaded (/usr/lib/systemd/system/twingate.service; enabled; preset: disabled)
     Active: activating (auto-restart) (Result: exit-code) since Sun 2023-08-20 16:27:41 CEST; 2s ago
    Process: 106369 ExecStart=/usr/sbin/twingated /etc/twingate/config.json (code=exited, status=1/FAILURE)
   Main PID: 106369 (code=exited, status=1/FAILURE)
        CPU: 22ms

    ~                                                                                                                       3 ✘ 

    ~  su root                                                                                                            INT ✘ 
Password:

    _/_/_/_/                            _/  _/                  _/_/      _/_/_/
   _/        _/    _/    _/_/      _/_/_/        _/_/_/      _/    _/  _/
  _/_/_/      _/_/    _/    _/  _/    _/  _/  _/    _/      _/    _/    _/_/
 _/        _/    _/  _/    _/  _/    _/  _/  _/    _/      _/    _/        _/
_/_/_/_/  _/    _/    _/_/      _/_/_/  _/    _/_/_/        _/_/    _/_/_/                                                              

[powerlevel10k] fetching gitstatusd .. [ok]

    /home/bowyn  twingate start                                                                          ✔  with root@trashbin 
Starting Twingate service
Failed to start twingated```

Hi DRM,

Can you please have a look at this thread: Issue connecting after installation on fresh linux system - #5 by jimb0 and tell me if anything this post says mirrors your own experience?

Thanks,

-arthur

Arthur,

Not sure if you meant to send this to me? As I am jimb0.

Jim

Apologies, Jim! Wasn’t intending to tag you specifically as much as point someone at your post as a potential solution! :slight_smile:

Hi all, not sure if this is the right place (I’m new here) but I am in the same situation.

Running twingate start gives as a result:

Failed to start twingated

The output of systemctl status twingate.service is:

○ twingate.service - Twingate Remote Access Client
Loaded: loaded (/usr/lib/systemd/system/twingate.service; enabled; preset: disabled)
Active: inactive (dead) (Result: exit-code) since Thu 2024-01-18 11:49:30 CET; 9min ago
Duration: 23ms
Process: 6056 ExecStart=/usr/sbin/twingated /etc/twingate/config.json (code=exited, status=1/FAILURE)
Main PID: 6056 (code=exited, status=1/FAILURE)
CPU: 22ms

Jan 18 11:49:30 <user> systemd[1]: Stopped Twingate Remote Access Client.

Any advice on how to solve or at least better troubleshoot it?

Hey @jschiavon - can you run the following:

sudo twingate config log-leve debug
twingate start
twingate report

the last command will generate a timestamped .gz file - if you can email me that file to arthur @twingate.com I can take a look at the logs and see what might be going on (you’re also welcome to take a look if you want to see if its something obvious!)

Thanks,

-arthur

I am sending the report via email as requested, but I noticed something: it appears like there is a problem related to directory ownership. What does twingate need? Would a simple chmod solve everything?