Hello guys!
Today I will share with you a solution to the issue that the alarm snapshot does not exist.
ISSUE DESCRIPTION
When I check the alarm, the picture cannot be shown:

Product information: IVS1800 9.1.0.
ALARM FEATURE PROCESS

ANALYSIS PROCESS
1. Log in to the IVS1800 and use the tcpdump tool to capture the packet.
Command: tcpdump -i lo -s0 -vv -w xxx.cap
2. Search the alarm which cannot show the picture and click the alarm to check the background.
3. After that, stop the capture action and then analyze the packet.

From the logs, we can learn that the picture ID is 59339442159537 and the result is 339190004. 339190004 means that it failed to download the picture.
4. Move the image ID right by 32 bits to obtain the block ID 13816.
5. Check the IMGU logs; the logs are stored at opt/log/ivs_imgu/run.

From the logs we can see that the block the picture is stored in has been reclaimed. Also, the start time and end time for block 13816 are 2021-06-29. Yes, they are the same.
REASON
Due to storage time being reached (90 days), the block storing the image is recycled and the image is recycled too.
The start time and end time of the block are the same, indicating that the block space is not fully occupied and new images are still written. So the new images are also recycled.
SOLUTION
In the case of Software-Defined Cameras:
1. Choose Maintenance Management > Video Device > Device List > Main Devices on the iClient S100 homepage.
2. Right-click a certain IVS1800 device and choose Storage Management.
3. Change the Image Storage (days) to 365.
In the case of generic cameras:
Change the retention period in the database to 365 days.
Command: update scuadmin.TBL_DEVICE_RECORD_PARAMETER set METADATA_TTL = 365;
Note:
Unharden the database before running the command. After running the command, harden the database.
Hope you could learn something from my post. Best wishes!



