Dahua DVR - HDCVI Locking up

Check the system logs. Typically a random lockup / reboot is hard drive or power supply related.

Power supply more so if you have an external brick (typical 12VDC / 3-5 Amp). A bad power supply can mimic a failing hard drive since the hard drive is powered by the motherboard and not the power supply directly. If the board isn't getting enough power it will starve the drive(s) of power.

Here are a few reboot codes:

0x00: The DVR has rebooted normally, probably due to a maintenance routine or it was just a user reboot for any other reason.

0x01: Abnormal reboot due to some issue with power loss, system crash, or another type of problem that is not related to the normal operation.
Resolution: Examine the outlet, adapter, UPS, and any other components that might impact the unit's power supply. Verify that the appropriate voltage is being applied.

0x02: The system log is stuck.
Resolution: Clear the DVR's log

0x03: This error code is related to issues with the speed of the hard drive, which means the DVR can't read and write into the disc as fast as it used to do.
Resolution: Ensure you're using a hard drive recommended for CCTV and review its condition. Navigate to the storage settings and check the HDD Mgmt section to inspect for any errors.

0x04: Abnormal recording, some channels are not recording due to video loss. Indicates over 3 minutes with no stream on the recording channel.
Resolution: Ensure that all cameras are fully powered and functioning correctly. Additionally, inspect the camera cables and connectors for any issues.

0x05: Bad track, The hard drive has a bad track which compromises the read/write capability of the DVR.
Resolution: Replace the hard drive

0x06: Video decoding abnormal.
Resolution: You might be exceeding the SoC GPU video decoding capability. Try lowering the resolution of the display output then lower the resolution, fps, & bit rate of your camera streams to test.

0x06a: Video storage abnormal.
Resolution: Probably a failing hard drive. It is recommended to replace it. A unit from 2014 won't have the ability to check the drive for any bad sectors.

0x06F: Restart caused by illegal access to memory. Security feature reboot for backend failed access.
Resolution: Identify which devices are logging into the recorder and, if necessary, modify the settings or credentials to prevent unauthorized access by the device.

0x011: A hard drive hot swapping issue/Disk Problem.
Resolution: Replace the hard drive

Agreed that’s why the first thing I told him to check was power supply.

But if disconnecting from the Internet solves it, it’s not the power supply or hard drives
 
Well I thought I had this figured out but the DVR has been running with the ethernet cable disconnected for a few weeks and has locked up twice. There are no bread crumbs in the log files when this happens, the only thing I see is a 01 reboot code that happens when I have to cycle the power supply in order to force reboot it.

The power supply has been replaced, it still happens.

If there's any malicious code on the DVR would a factory reset remove it? This is the reason I was looking for firmware, I wanted to do something to eliminate any malicious code that may now be on the DVR - not that I know updating firmware would do this.

With nothing in the logs and the S.M.A.R.T. Info in the logs showing all the statuses as "OK" I have nothing to go on. Any reason to replace the hard drive? Thanks again for all of the assistance.
 
Do you have your DVR connected to a UPS? IF you do have a UPS is it a Pure Sinewave UPS? Have you tested your Power Outlet that you hardware is connected to? If not connected to a IG or UPS I would double check the power supply and Voltage at the outlet. If you are using a Arc Fault breaker I would make sure to use some type of protection for your devices and a Pure Sinewave UPS is a good starting point. Arc Fault breakers can damage things that are connected so best to use a UPS..
 
How are you determining its “locking up”?
initially I would try to remote view and PSS couldn't connect, I would get to the DVR and viewing the TV connected to the HDMI port would show nothing, plugging/un-plugging the HDMI cable wouldn't bring it back - I'd have to power cycle to bring it back. Other times I have been home when it happens, the buzzer comes on and holds until I cycle the power. Now that I am not port forwarding anymore I occasionally just go to the TV and there's nothing on the screen. I can't bring it back without power cycling.

Do you have your DVR connected to a UPS? IF you do have a UPS is it a Pure Sinewave UPS? Have you tested your Power Outlet that you hardware is connected to? If not connected to a IG or UPS I would double check the power supply and Voltage at the outlet. If you are using a Arc Fault breaker I would make sure to use some type of protection for your devices and a Pure Sinewave UPS is a good starting point. Arc Fault breakers can damage things that are connected so best to use a UPS..
I have not tested the power, it's just connected to the wall outlet thought a surge protector. I have swapped it to a different surge protector to see if that has an impact... no difference.
Before it was lasting 2 days, unplug from internet now two + weeks.
It absolutely does stay alive longer not connected to the internet.
 
Hmmm The fact that there's a noticeable change when disconnected from the Interwebs is still suspicious. No FW wont fix it and you wont find updated FW for a 10+ year old DVR. They don't/didn't update DVR FW very often and quit when it goes EOL, Factory reset will typically do it

HD doesnt seem to be the problem , error code doesnt point that way and SMART says ok

Power still possible but doesnt make sense with the disconnect from the Internet

At the age it is, I'd be shopping. I have 3, manage 2 more, and friends have 3 more that are all 2017-2018 and still going strong. If it makes it to 10 I'll likely upgrade whether it needs it or not, the technology makes most of this stuff obsolete in 2-3 years anyway, certainly at 10.
 
@bigredfish - could it be the hacker coded something that is still trying to get out to the internet, but since it isn't connected it keeps failing and retrying and over time all the attempts builds up and locks it up, whereas when it was connected to the internet, it was able to make the connection and use it for DDoS or bots or whatever it is doing?
 
  • Like
Reactions: bigredfish
:idk: Possible I suppose, they say we put a man on the moon a while back.

Still a reset should clear it I would think

Whats the model # on the tag on your DVR?
 
:idk: Possible I suppose, they say we put a man on the moon a while back.

Still a reset should clear it I would think

Whats the model # on the tag on your DVR?
HCVR7408L, which took me a while to figure out as GenIV Technology did everything they could to hide this. In the software it just says the model is HCVR
 
  • Like
Reactions: bigredfish
Found some FW, not sure what Version you have, and I can't guarantee it will take or not brick your machine..


Under Downloads/FW
From 2017 9/22

And it may be buried in here but I cant be sure what version your DVR can handle
Pretty sure its the S2 but again I cant be sure and there is a risk

This chart would seem to suggest thats the latest
 
  • Like
Reactions: Tondar