Motion not being detected and no recordings - help needed

hid3nax

n3wb
Jan 29, 2022
1
0
EU
Hello everyone.

Long time reader, posting first time, as seems I hit a problem which I cannot resolve...

Camera: Hikvision DS-2CD2022-I
Firmware: V5.4.41 build 170312

Server: Linux Debian v9.13 running Samba 4.5.16.
Separate mountpoint of ~80 GB disk passed as samba share 'new' (see smb.conf below).

Problem: I obtained this camera and I am trying to make a video recoding based on event (motion detection).
However, this doesn't seems to work. All my logs, recordings, etc are empty no matter of what.

Also, I tried setting up the Storage. As HDD #1, I add my server, /new as share, select SMB/CIFS protocol, enter credentials and hit Test button. Test passes fine.
Then I go to HDD Management menu, select that HDD and select Format. It initialises (yes, the share is absolutely empty and user has got read/write access there!) and creates directory structure inside.
At this point 'Status' is shown as normal.

However, when I go to other menu items and then return back , the Status is now show as 'Uninitialized'.

Could anyone please help me figure out where the problem is?

Thanks

Here's my smb.conf:

Code:
[global]

# disable printing
    load printers = no
    printing = bsd
    printcap name = /dev/null
    disable spoolss = yes
# end of disable
    acl allow execute always = true
    log level = 3
#    server min protocol = SMB2_02
#    server max protocol = SMB3_11
#    server min protocol = smb2
    server max protocol = smb3
    # Required for HikVision
    ntlm auth = yes
#
    kernel change notify = no
    workgroup = WORKGROUP
    security = user
    map to guest = Bad User
    guest account = nobody
    guest ok = no
    guest only = no
    browsable = no
    domain master = no
    local master = no
    preferred master = no
    os level = 2
    dns proxy = no
    bind interfaces only = yes
    interfaces = eno1 ens1f1 ens1f2
    hosts deny = ALL
    hosts allow = 127.0.0.1 192.168.2.0/23 192.168.4.0/24
    create mask = 0640
    directory mask = 0750
    oplocks = no
    level2oplocks = no
    read only = no
    unix extensions = no
    follow symlinks = yes
    wide links = yes
# Samba performance tuning
   strict allocate = yes
   allocation roundup size = 4096
   read raw = yes
   write raw = yes
   strict locking = no
   socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072
   min receivefile size = 16384
   use sendfile = yes
   aio read size = 16384
   aio write size = 16384
# end of Samba performance tuning

[new]
    path = /data/security/newdsk/cam
    guest ok = yes
    force user = camera
    force group = grupe
    hosts allow = 192.168.2.253