Skip to content

Commit 51a28d0

Browse files
Merge pull request #4024 from raspberrypi/rpi-connect-doctor-screen-sharing
Update rpi-connect doctor documentation
2 parents 96f1aa5 + 0d3eaf7 commit 51a28d0

File tree

1 file changed

+41
-7
lines changed

1 file changed

+41
-7
lines changed

documentation/asciidoc/services/connect/troubleshooting.adoc

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,47 @@ Replacing globally-enabled rpi-connect services with user-enabled ones...
3535

3636
==== Screen sharing not available
3737

38-
If Connect states that screen sharing is unavailable, it cannot connect to the dedicated Connect WayVNC service.
38+
If Connect states that screen sharing is unavailable, one or more requirements for screen sharing support are not met. To help debug the problem, `rpi-connect` and `rpi-connect-lite` include the `doctor` command. Use `rpi-connect doctor` to identify issues with screen sharing.
3939

40-
To find out more about the cause of the issue, run the following commands to check the status of the Connect WayVNC service:
40+
Run the following command:
4141

4242
[source,console]
4343
----
44-
$ systemctl --user status rpi-connect-wayvnc
45-
$ journalctl --user --follow --unit rpi-connect-wayvnc
44+
$ rpi-connect doctor
45+
----
46+
47+
If all is well, you should see output similar to the following:
48+
49+
----
50+
Screen sharing is supported by this version of rpi-connect
51+
✓ Wayland compositor available
52+
✓ Screen sharing services enabled and active
53+
✓ Communication with Raspberry Pi Connect API
54+
✓ Authentication with Raspberry Pi Connect API
55+
✓ Peer-to-peer connection candidate via STUN
56+
✓ Peer-to-peer connection candidate via TURN
57+
----
58+
59+
If there is an issue, you will see something like so:
60+
61+
----
62+
Screen sharing is supported by this version of rpi-connect
63+
✓ Wayland compositor available
64+
✗ Screen sharing services enabled and active - Please run rpi-connect on to enable and start all required services
65+
✓ Communication with Raspberry Pi Connect API
66+
✓ Authentication with Raspberry Pi Connect API
67+
✓ Peer-to-peer connection candidate via STUN
68+
✓ Peer-to-peer connection candidate via TURN
69+
70+
✗ Some checks failed
71+
----
72+
73+
If you have repeated issues trying to run Connect's required services, run the following commands to check their status in more detail:
74+
75+
[source,console]
76+
----
77+
$ systemctl --user status rpi-connect-wayvnc.service rpi-connect-wayvnc-watcher.path
78+
$ journalctl --user --follow --unit rpi-connect-wayvnc.service --unit rpi-connect-wayvnc-watcher.path
4679
----
4780

4881
If the service fails to start or doesn't exist, ensure that your environment meets the following criteria:
@@ -63,7 +96,6 @@ For screen sharing, Connect can only share an existing graphical desktop session
6396

6497
Connect usually communicates between devices without requiring changes to your network or firewall. However, especially restrictive networks can sometimes block Connect communication. To help debug problems with such networks, `rpi-connect` and `rpi-connect-lite` include the `rpi-connect doctor` command. `rpi-connect doctor` runs a series of tests to check that Connect communication functions properly on your network.
6598

66-
6799
To run these tests on your device, run the following command:
68100

69101
[source,console]
@@ -74,6 +106,9 @@ $ rpi-connect doctor
74106
If Connect can communicate properly on your network, you should see output similar to the following:
75107

76108
----
109+
Screen sharing is supported by this version of rpi-connect
110+
✓ Wayland compositor available
111+
✓ Screen sharing services enabled and active
77112
✓ Communication with Raspberry Pi Connect API
78113
✓ Authentication with Raspberry Pi Connect API
79114
✓ Peer-to-peer connection candidate via STUN
@@ -82,8 +117,7 @@ If Connect can communicate properly on your network, you should see output simil
82117

83118
If Connect can't communicate properly on your network, you'll see an "x" instead of a check next to the failing test case. Ask your network administrator to enable the following connections on your network:
84119

85-
* unauthenticated HTTPS requests to the Raspberry Pi Connect API on port 443 of `api.connect.raspberrypi.com`
86-
* authenticated requests to the Raspberry Pi Connect API on port 443 of `api.connect.raspberrypi.com`
120+
* HTTPS requests to the Raspberry Pi Connect API on port 443 of `api.connect.raspberrypi.com`
87121
* requests to Raspberry Pi Connect STUN or TURN servers on UDP port 3478 of all of the following:
88122
** `stun.raspberrypi.com`
89123
** `turn1.raspberrypi.com`

0 commit comments

Comments
 (0)