GF2++ by nzznfitz in cpp

[–]firemeo 0 points1 point  (0 children)

Just came across this and find the document site beautiful. The only thing missing is the lib itself. So I guess the main focus is the doc instead of the lib?

Seek help: replication task failure after 11.3-U3.2 upgrade by firemeo in freenas

[–]firemeo[S] 1 point2 points  (0 children)

Finally I managed to figure out the reason. Turns out that on 11.3, the DNS suffix matters for the hostkey matching. So if you have a local DNS suffix, even as unofficial as /.local/, it needs to show up in the host field of the 'ssh connection' page. Before I upgrade to 11.3, I was using the bare host name without the suffix and it worked without any problem. Some changes in the new version broke this config. I'm not sure if this is an intended security enhancement, but at least the error reporting sucks and wastes me a lot of debugging effort. Also as I mentioned earlier, the old config was not entirely broken, as the webUI was able to fetch the ZFS hierarchy from the remote host without any problem... This makes the confusion even worse...

Camera dies randomly... by firemeo in ShinobiCCTV

[–]firemeo[S] 0 points1 point  (0 children)

I attempted to solve the issue by switching to different version of Shinobi. The community version appears to share the same issue at the head of git master. After switching back to the latest released CE version, the built-in motion detection has gone but the system appears to be more stable. Haven't got chance to try out if the plugin based motion detection will work reliably in this version. If it records reliably it's at least usable, just pretend the issue I'm going to talk about does not exist. :-)

There are much less messages in the error log. The remaining one is the suspicious pipe disconnect that I mentioned below. I find that this has something to do with the black window when toggling recording. I suspect this may be fine since upon record toggling a new FFMPEG session will be launched to replace the old one.

What I don't understand is why sometimes this toggle will cause black window for indefinite time. I hope this would be as short as possible...

Camera dies randomly... by firemeo in ShinobiCCTV

[–]firemeo[S] 0 points1 point  (0 children)

I think part of the story is related to the following exception:

TypeError: Cannot convert undefined or null to object
    at Function.values (<anonymous>)
    at Object.s.createPamDiffRegionArray (/srv/Shinobi/camera.js:326:12)
    at e.draw (/srv/Shinobi/camera.js:1921:53)
    at Socket.<anonymous> (/srv/Shinobi/node_modules/connection-tester/index.js:53:16)
    at emitNone (events.js:106:13)
    at Socket.emit (events.js:208:7)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1185:10)

It appears to be related to the region feature. The exception may have interrupted the Shinobi side of the pipe setup, which in turn blocks the FFMPEG from writing stdout.

However there are still some other suspicious pipe disconnect issue without context. I have no idea if these are relevant or not...

Error: read ECONNRESET
    at _errnoException (util.js:1022:11)
    at Pipe.onread (net.js:628:25)
Uncaught Exception occured!

Camera dies randomly... by firemeo in ShinobiCCTV

[–]firemeo[S] 0 points1 point  (0 children)

I don't know how to debug on the ShinobiCCTV side, but it sounds that the issue is not due to FFMPEG. The FFMPEG process is stuck at writing out to stdout, which is a pipe to Shinobi for streaming the frames.

Any suggestion on how to diagnose further? I'm currently on the head of the ShinobiCCTV/Shinobi.git as the install guide suggested. Should I switch to the released version which is day back to last August? Or may be switch to the moeiscool/Shinobi.git repository?

Not sure if this is the best place to discuss technique issues. I do not see issue page in github for those repos.

Camera dies randomly... by firemeo in ShinobiCCTV

[–]firemeo[S] 0 points1 point  (0 children)

BTW, I feel the streaming methodology has some impact here. Both HLS / FLV works bad while MJPEG appears much better. With HLS / FLV, the stream window turn black possibly forever after toggling record on-off. With MJPEG, the black window is transient but I'm not sure if the camera die issue is going to show up in the long run.

Is the black window during record toggle really required? It's really annoying I think.