Qnap Hikvision

1 view
Skip to first unread message

Terry Chavarin

unread,
Jul 26, 2024, 12:01:00 AM7/26/24
to Unipalmares Administração 2007

Another weird thing is that the camera reports 0.00GB of free space, but correctly displays total capacity. I've checked with smbclient and dir that capacity and free space are reported correctly by Samba server. I've seen some discussions at CCTV suggesting to set a particular quota for the share, but I'm not aware if it is at all possible with Samba on Linux.

Did anyone face this issue? Any suggestions to try? Any alternatives to consider? I have also an FTP server at the same machine and it works fine, but the camera seems only can upload images over FTP, not videos

It's amazing how many people have this issue, as have I. Hikvision must be underestimating how many people are using this feature for them not to have fixed this, or at least published a correct guide.

I successfully got mine setup using SMB/CIFS setting on the camera to my Qnap NAS. I had a similar error scenario to what you report, until I added a quota to the Hikvision user I had created on my NAS. Then it worked. I've no idea how or if you can set per-user quotas on Linux. Perhaps you can try setting a quota or max size on the share/disk you're pointing the camera to? I would have tried that first, but QNAP only allow per-user/group quotas and not per-share.

I was able to get my DS-2CD2432F-IW setup and working nicely with my Qnap NAS, using SMB. I initially tried SMB and then NFS, failing at both attempts. I was repeatedly formatting the share/directory, but then immediately having the camera tell me it was "uninitialized," as many have reported.

The specific number probably doesn't matter; I picked it because I saw some mention of hikvisions having trouble with NAS drives over 500 gb. It seems that the failures are due to the camera either seeing too big of a "drive" (in this case all 1.5 terabytes of my NAS) --which seems unlikely-- or because the camera looked at the share/drive and couldn't get any value for free space, only total space...or something like that. After setting the quota to 300gb, that value showed up right away as the disk size in the Hikvision setup screen.

On the other side, my problem is not related to a too large disk as it is definitely not the case. Can anyone try to play with quota/partition size and check which is the smallest one when camera still works? I failed to find any information from user manual.

I guess it is trying to be smart and use min(user_quota, free_space) as a free space, so changing quota may do the trick. Could you try to start with 5GB and check if it formats successfully? If doesn't - double the quota and so on (5GB, 10GB, 20GB, 40GB).

It is possible 5gb would have worked and it was just a temporary network error causing the failure. But I did try it several times. Something to note: when returning to the "Nas" settings tab and 'testing' the directory and user/password --which I did each time I changed the quota size, just in case-- each time the test failed; I had to reenter the password for it to work. I don't think it actually lost authentication to the NAS, but rather it is just a bug/feature causing the password to need to be reentered once you click to edit the NAS directory settings.

I use one of those cloud computing providers to backup video remotely. It is a bit expensive if I use too much of HDD, so I needed to know minimal CIFS share size before upgrading to another package. As I only write video on motion and it is a camera directed to an entrance door of the apartment, there will be around 300-500Mb per day, which means I can keep around 2 weeks of video with a 10Gb share - this is even more than I would like to have.

That's not a bad price and solution at all. I suppose the main downside is no internet = no footage. Too bad these cameras can't write to onboard SD and NAS simultaneously. Although you are now protected from a worst-case-scenario, like someone stealing all the equipment or burning down the place. Seems like a fair trade off.

It's interesting mine showed almost a gigabyte of quota usage in formatting, with yours using a tenth of that. It makes me wonder if I simply read the units wrong...although I'm not sure how that would have happened. In any case a gig is a lot of overhead on a 10gb drive. I'm glad yours didn't take up that much on the cloud server.

If you do want to try giving us more info I'd start on what you are trying to do rather than how you are trying to do it, and I'd maybe look at support groups for the cameras. Most (not all) security camera systems are pretty simple to set up and keep secure just so long as you follow the manufacturer's instructions like a true pedant!

Hi the Hikvision bullet ip cameras are going to a net gear switch which is hard wired from loft to downstairs Nas qnap drive which has surveillance Station installed and out of the Nas to black Bt disk with Ethernet cable.

I can't say for sure, but I see no reason to be setting up the cameras in this fashion, or the need to poke these holes through your firewall - this is probably why support was reluctant to talk you through port forwarding.

Surveillance station does not need the cameras to have static IPs, and once set up you can use the Surveillance station app to view the camera feeds without poking those holes in your firewall! What you seem to be describing is unnecessarily complex, and less secure!

Reply all
Reply to author
Forward
0 new messages