> For the complete documentation index, see [llms.txt](https://docs.vega365.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vega365.com/surestream/management-client/fixing-camera-problems.md).

# Fixing Camera Problems

SureStream tests each camera in this order: network, ONVIF time, ONVIF login, video profile, clock, and the video stream (RTSP). The first problem found becomes the camera's **Status** on the dashboard, with the details and how to fix it under the list. After fixing it, select the camera and click **Check selected** (or right-click > **Check again**).

<figure><img src="https://2606467887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrW97Kdzpc3CRKor6jdzu%2Fuploads%2Fgit-blob-ccbfff8a598e178a244b4841f99c9045bd3a7502%2Fmc-dashboard-fix-time-not-allowed.png?alt=media" alt=""><figcaption><p>A camera's status, details and how to fix it</p></figcaption></figure>

## Statuses

| Status                  | What it means                                                                                                                                                              | What to do                                                                                                                                                                                                                |
| ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **OK**                  | Passed the last test: streams directly to Smart Clients.                                                                                                                   | Nothing.                                                                                                                                                                                                                  |
| **Unreachable**         | No answer on the network (HTTP port and ping).                                                                                                                             | Check that the camera is powered on and connected, and that the Management Server can reach it.                                                                                                                           |
| **Port closed**         | Answers ping, but its HTTP port is closed, or it doesn't answer on its RTSP port (554).                                                                                    | Check that the camera's web server (or RTSP) is on and that no firewall blocks the port. Smart Clients need the RTSP port for multicast video. See [Ports](https://docs.vega365.com/surestream/getting-started/ports.md). |
| **No ONVIF response**   | The camera answers HTTP but not ONVIF, ONVIF returned an error, or XProtect has no valid address for it.                                                                   | Enable ONVIF on the camera. Some makes (such as Axis) keep ONVIF users separate from web users: add the ONVIF user on the camera. Check the hardware address in XProtect.                                                 |
| **No credentials**      | XProtect has no user name and password for this camera, or its Camera access has no ONVIF user name.                                                                       | Enter them for the hardware in XProtect, or set **Camera access** (right-click) to the camera's ONVIF user.                                                                                                               |
| **ONVIF user needed**   | The camera refused SureStream's ONVIF login.                                                                                                                               | See [ONVIF user needed](#onvif-user-needed).                                                                                                                                                                              |
| **ONVIF rights needed** | The login works, but the ONVIF user may not change the camera's streaming settings.                                                                                        | See [ONVIF rights needed](#onvif-rights-needed).                                                                                                                                                                          |
| **No video profile**    | No ONVIF media service, no media profile with video, or the camera was too slow to send them. Also after **Sync with XProtect** when the camera can't give the new stream. | Enable ONVIF media (Profile S), or create a media profile with a video source on the camera. A busy multi-sensor camera may just need checking again.                                                                     |
| **Time out of sync**    | The camera's clock is more than 5 seconds off this PC's, or its time zone or daylight saving differs.                                                                      | See [Time out of sync](#time-out-of-sync).                                                                                                                                                                                |
| **Deleted in XProtect** | Still in SureStream (and using a licence), but XProtect no longer lists it: deleted or disabled there. Found by **Refresh list**.                                          | Right-click > **Remove from SureStream (deleted in XProtect)** to free the licence (the camera isn't contacted). If it was only disabled, enable it in XProtect and click **Refresh list**.                               |

## ONVIF user needed

The camera refused the ONVIF login SureStream used. The details say which:

* **The camera refused XProtect's account as an ONVIF login.** SureStream can use XProtect's account only when XProtect uses its **ONVIF driver** for the camera; with a universal or native driver it isn't an ONVIF account. Give SureStream its own ONVIF account: right-click > **Change the camera access...** (create the account on the camera first if there is none).
* **The camera refused the ONVIF login for user '...'.** If the ONVIF user's password was changed on the camera, enter the new one in **Camera access**. Check that the user still exists on the camera.
* **The camera accepted the ONVIF login but refused it for video (RTSP).** SureStream plays the video with the ONVIF login. Allow that user to stream (for example, give it video/viewer rights), or choose a user that can.

## ONVIF rights needed

SureStream creates its own streaming profile on each camera, so its ONVIF user must be allowed to change the camera's streaming settings. When a camera is added, SureStream checks this (it writes the encoder settings back unchanged and creates and deletes a test profile). If the camera refuses:

> The camera accepts the ONVIF user '...', but doesn't let it change the camera's streaming settings, so SureStream can't set up its profile.

**Fix:** on the camera's web page (Users or ONVIF users), give that ONVIF user **Administrator** rights, or choose another login with those rights in **Camera access**; then test it again. On some cameras (such as Axis) an Operator is not enough.

With *Keep its password the same as XProtect's*, the ONVIF user must also be an Administrator, so that SureStream can change its password. Otherwise give it Administrator rights, or choose *I change its password myself*.

## Time out of sync

ONVIF logins depend on the camera's clock, so SureStream needs each camera's clock within **5 seconds** of the Management Server PC, with the same time zone and daylight saving.

First check that the Management Server PC's own clock is right. Then select the cameras and click **Fix time** (or right-click > **Fix the time...**):

<figure><img src="https://2606467887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrW97Kdzpc3CRKor6jdzu%2Fuploads%2Fgit-blob-799ff3d678427ce61e59fcc43e6251d186031a74%2Fmc-dialog-fix-time.png?alt=media" alt=""><figcaption><p>Set the time on cameras</p></figcaption></figure>

1. Enter the **NTP server** (a name or IPv4 address, for example *pool.ntp.org*).
2. Leave **Test the NTP server first** ticked to check that the server answers (UDP port 123). Untick it if this PC can't reach the server but the cameras can.
3. Check the cameras to set, and click **Set the time**.

For each camera, SureStream sets the camera's clock to this PC's time (with its time zone and daylight saving) straight away, then switches the camera to the NTP server so it stays in time, and checks the clock again. This can take a few minutes. The result says which cameras were set and why any weren't; the cameras are then tested again.

### When the camera doesn't allow it

If the camera's ONVIF user may not change the time (for example an Axis *Operator*), the camera stays **Time out of sync** and its details say:

> Fix time couldn't set the clock: the ONVIF user '...' doesn't have permission to change the camera's time. Do one of these, then check it again:
>
> * Give '...' Administrator rights on the camera.
> * Use a login with Administrator rights (right-click > Change the camera access).
> * Set the time on the camera's web page.

{% hint style="info" %}
To check that an NTP server answers from a PC, run:\
`w32tm /stripchart /computer:<ntp server> /dataonly /samples:5`
{% endhint %}

## When a camera can't give XProtect's stream

SureStream streams the same stream XProtect uses (codec, resolution, frame rate), using H.265 when XProtect does and the camera supports ONVIF Media 2. If the camera can't give that stream over ONVIF (for example because its encoders are all in use), SureStream streams the closest one it offers, and the camera's details on the dashboard say so. To match XProtect again, choose a stream in XProtect that the camera can also give over ONVIF (or free an encoder on the camera), then click **Sync with XProtect**.
