True NAS as a NAS for hikvision camera

BogdanNN

Cadet
Joined
Jul 13, 2023
Messages
8
Hello All,

Nice to meet this community.
I have a strange situation with a hikvision camera and maybe your advices will help me to solve it.
I am trying to use true Nas as a NAS for my camera.
The first situation strange that I meet is that:
When I configure the NFS parameters my camera don't find the path. But when I configure also the samba parameters my camera are able to find the NFS path. That is strange for my because on camera I am configure the NFS.
After I configure both protocols, I added the true Nas as a NAS on camera but after I formated the storage the camera keep the Nas on normal stage for 30 seconds and after that is switch the status on unregistered. It's looks like they have a keep alive message and one of them is not sincronize correct.
Somebody meet this issue before?
What I am planing to try is to switch camera from hikvision protocol to UDP protocol directly. Is a new ideea that I have in this days. Did somebody have any other advice for me?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Most folks who use their NAS as a DVR use an app/plugin (zoneminder, agentdvr, frigate, motioneye, etc) for that to poll the cameras, not the way that you're doing it where the camera saves to the NAS by itself.

I don't know what the barrier is for your cameras' connections, but it seems to me that using CCTV/DVR software is a better solution anyway.
 

BogdanNN

Cadet
Joined
Jul 13, 2023
Messages
8
Most folks who use their NAS as a DVR use an app/plugin (zoneminder, agentdvr, frigate, motioneye, etc) for that to poll the cameras, not the way that you're doing it where the camera saves to the NAS by itself.

I don't know what the barrier is for your cameras' connections, but it seems to me that using CCTV/DVR software is a better solution anyway.
Hello,
Thank you for your advice. My goal is not to use zone minder or any other app because I don't need it. I have a IVMS server that are doing a great job with my IP Cameras. The issue is that. I want to see from past the camera records on the phone app. And on IVMS this function is not available. As I discussed with hikvision engineer they told me that I need a nas where to storage the camera directly and in this mode I când control it with IVMS and also see from the past the recorded videos.
So I want to use true Nas just as a simple Nas not a NVR.
An clasic nvr is not ok for me because I need to storage 30 cameras from an year so I have 60TB storage now.
This is my desire nou
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
I do have a (rebranded) hikvision camera and was able to get it to "work" with nfs... what settings are you providing in the camera?

By default, the nfs share should probably use a mapall user with permissions to write and then specify no user in the nfs settings in the camera.
 

BogdanNN

Cadet
Joined
Jul 13, 2023
Messages
8
I do have a (rebranded) hikvision camera and was able to get it to "work" with nfs... what settings are you providing in the camera?

By default, the nfs share should probably use a mapall user with permissions to write and then specify no user in the nfs settings in the camera.
In the camera I can configure only the server IP address and the path ne user and anything else. And in the truenas I configure the user root with read/write and all rights. Did you think that I need to use another user? Not the root user ?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
is this the screen you're working in?

1689251411751.png


What's currently there works for me.
 

BogdanNN

Cadet
Joined
Jul 13, 2023
Messages
8
I do have a (rebranded) hikvision camera and was able to get it to "work" with nfs... what settings are you providing in the camera?

By default, the nfs share should probably use a mapall user with permissions to write and then specify no user in the nfs settings in the camera.
In the camera I can configure only the server IP address and the path ne user and anything else. And in the truenas I configure the user root with read/write and all rights. Did you think that I need to use another user? Not the root user
is this the screen you're working in?

View attachment 68291

What's currently there works for me.
Yes here I configure also. Same interface. But to my camera for NFS is not allowing me to add username and password
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
But to my camera for NFS is not allowing me to add username and password
And you should not do that... the NFSv3 protocol doesn't require a user for the mount. You can see in my screenshot, those are blank and it works fine.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
I am using the root:wheel combination for the mapall user details, so those are fine too.
 

BogdanNN

Cadet
Joined
Jul 13, 2023
Messages
8
I am using the root:wheel combination for the mapall user details, so those are fine too.
Can you show me in a screenshot how you configure NFS ? Maybe I made a mistake or I can try your configuration. If you can
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
1689253357887.png


Did you tick the "All dirs" option?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Turns out that under NFS service settings, I have NFSv4 enabled on that server (the only option that's ticked).
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
We didn't go into the version of TrueNAS that you're running (we're in the legacy section here, so maybe that's part of the issue).
 

BogdanNN

Cadet
Joined
Jul 13, 2023
Messages
8
We didn't go into the version of TrueNAS that you're running (we're in the legacy section here, so maybe that's part of the issue).
The true Nas server version was the latest one. I checked the all dir but I don't remember the users configuration îți is possible to don't configure like this. I will check in this weekend when I will go on the location with your settings and I will test again. Be back with news until Monday I hope. Thank you very much for your time
 

BogdanNN

Cadet
Joined
Jul 13, 2023
Messages
8
hi,

i tryed your configuration but without any change. the issue is the same. unregistered. any other advice?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
OK, well it took a bit of testing and I'm not sure really which of the things I did resulted in the final success, but here are the things I did:

Every time I tried to format the storage, it would get stuck at 25% and report "Device Error".

1. Under Services | NFS, change the mode to turn off NFSv4 (meaning NFSv3 is enabled).
2. Modified the dataset to have a quota.
3. Modified the dataset to hide the snapshots (I suspect this may have something to do with it, since the format operation would want to delete all contents, but that one can't be deleted)

Even after all of that, it didn't work, but after adding the storage, then rebooting the camera, the next try to format succeeded.
 
Last edited:

BogdanNN

Cadet
Joined
Jul 13, 2023
Messages
8
OK, well it took a bit of testing and I'm not sure really which of the things I did resulted in the final success, but here are the things I did:

Every time I tried to format the storage, it would get stuck at 25% and report "Device Error".

1. Under Services | NFS, change the mode to turn off NFSv4 (meaning NFSv3 is enabled).
2. Modified the dataset to have a quota.
3. Modified the dataset to hide the snamshots (I suspect this may have something to do with it, since the format operation would want to delete all contents, but that one can't be deleted)

Even after all of that, it didn't work, but after adding the storage, then rebooting the camera, the next try to format succeeded.
hi. thank you verry much for your reserch. could you make some screenshots with this settings to be sure that i will reproduce correct and test it? :D
 
Top