Can't open PID file /var/run/teamviewerd.pid (yet?) after start: No such file or directory

Viewed 11967

I have installed and configured and also used TV the first time today in Nvidia jetson Xavier,

but after restart Im getting this issue:

teamviewerd.service: Can't open PID file /var/run/teamviewerd.pid (yet?) after start: No such file or directory

Please tell me why and how to fix it, it is of extreme importance !

3 Answers

I use TeamViewer to connect to a machine (Ubuntu 20.04) that not always have a graphical user session started and I noticed that even with teamviewerd running the machine is offline.

I fixed the problem running:

sudo teamviewer setup

From teamviewer --help:

teamviewer setup Configure headless modes (non-gui/console)

Without running this, the only way for me was to start manually a graphical user session and open the TeamViewer GUI on the host I wanted to use.

Make sure you enable/start gdm.service or another supported login manager

Found this question via a search when facing the same issue on Fedora 30 x86_64.

Solution for me was to edit /etc/systemd/system/teamviewerd.service and comment out the line that says:

PIDFile = /run/teamviewerd.pid

So it reads:

# PIDFile = /run/teamviewerd.pid

(or whatever PIDFile it specifies)

then run:

systemctl daemon-reload
systemctl start teamviewerd
systemctl status teamviewerd
Related