Page 1 of 1

Connection Timed Out

Posted: Sun Nov 04, 2018 12:37 am
by sslxhuang
Hi - I am currently running ZM 1.32.2 on my Ubuntu 18.04 + LAMP. I bought a new SV3C camera but couldn't make it work in ZM.
I tried VLC and it works; then I copy the same address to ZM, it shows "Unable to open input ... due to: Connection timed out"
From forum noticed some precedent solution may involve aligning Path_ZMS but I checked /etc/zm/conf.d/01-system-paths.conf and noticed "ZM_PATH_ZMS=/zm/cgi-bin/nph-zms" which is in line with Apache. Also tried ONVIF but nothing is detected. I tried libvlc still not working. I tried all ways that I could but it is still showing red in console and not capturing...

Below log
2018-11-04 00:39:32 zmc_m7 31411 ERR Unable to open input RTSP://username:password@IP/11 due to: Connection timed out zm_ffmpeg_camera.cpp 357
2018-11-04 00:39:32 zmc_m7 31411 ERR Failed to prime capture of initial monitor zmc.cpp 253
2018-11-04 00:39:32 zmdc 31411 INF 'zmc -m 7' started at 18/11/04 00:39:32 zmdc.pl
2018-11-04 00:39:32 zmdc 29594 INF 'zmc -m 7' starting at 18/11/04 00:39:32, pid = 31411 zmdc.pl
2018-11-04 00:39:32 zmdc 29594 INF Starting pending process, zmc -m 7 zmdc.pl
2018-11-04 00:39:29 zmdc 29594 ERR 'zma -m 7' exited abnormally, exit status 255 zmdc.pl
2018-11-04 00:39:28 zmdc 29594 INF Starting pending process, zma -m 7 zmdc.pl
2018-11-04 00:39:28 zmdc 29594 INF 'zma -m 7' starting at 18/11/04 00:39:28, pid = 31406 zmdc.pl
2018-11-04 00:39:28 zmdc 31406 INF 'zma -m 7' started at 18/11/04 00:39:28 zmdc.pl
2018-11-04 00:39:28 zma_m7 31406 ERR Got empty memory map file size 0, is the zmc process for this monitor running? zm_monitor.cpp 538
2018-11-04 00:39:27 zmdc 29594 ERR 'zma -m 7' exited abnormally, exit status 255 zmdc.pl
2018-11-04 00:39:27 zma_m7 31404 ERR Got empty memory map file size 0, is the zmc process for this monitor running? zm_monitor.cpp 538
2018-11-04 00:39:27 zmdc 31404 INF 'zma -m 7' started at 18/11/04 00:39:27 zmdc.pl
2018-11-04 00:39:27 zmdc 29594 INF 'zma -m 7' starting at 18/11/04 00:39:27, pid = 31404 zmdc.pl
2018-11-04 00:39:27 zmdc 29594 INF 'zmc -m 7' exited normally zmdc.pl
2018-11-04 00:39:27 zmc_m7 31383 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2018-11-04 00:39:27 zmdc 29594 INF 'zmc -m 7' sending stop to pid 31383 at 18/11/04 00:39:27 zmdc.pl
2018-11-04 00:39:27 zmdc 29594 INF 'zma -m 7' exited, signal 14 zmdc.pl
2018-11-04 00:39:26 zmdc 29594 INF 'zma -m 7' sending stop to pid 31386 at 18/11/04 00:39:26 zmdc.pl
2018-11-04 00:39:26 zmwatch 29651 INF Restarting capture daemon for Monitor-7, no image since startup. Startup time was 1541291957 - now 1541291966 > 5 zmwatch.pl
2018-11-04 00:39:19 zmfilter_1 29633 INF Checking filter PurgeWhenFull delete returned 0 events zmfilter.pl
2018-11-04 00:39:19 zmfilter_2 29638 INF Checking filter Update DiskSpace update disk space returned 0 events zmfilter.pl
2018-11-04 00:39:18 zmdc 29594 INF 'zma -m 7' starting at 18/11/04 00:39:18, pid = 31386 zmdc.pl
2018-11-04 00:39:18 zmdc 31386 INF 'zma -m 7' started at 18/11/04 00:39:18 zmdc.pl
2018-11-04 00:39:17 zmc_m7 31383 INF Starting Capture version 1.32.2 zmc.cpp 223
2018-11-04 00:39:17 zmc_m7 31383 INF Priming capture from RTSP://username:password@IP/11 zm_ffmpeg_camera.cpp 163

Any help will be much appreciated!! Thanks

Re: Connection Timed Out

Posted: Sun Nov 04, 2018 12:54 am
by bbunge
Camera resolution in Zoneminder does not match camera output. Use VLC (Tools, Media Information, Codec) to check camera Display Resolution.

Re: Connection Timed Out

Posted: Sun Nov 04, 2018 8:00 pm
by sslxhuang
Thanks, bbunge. The configuration incl the resolution are the same as VLC but still not working :(

Re: Connection Timed Out

Posted: Sun Nov 04, 2018 10:36 pm
by sslxhuang
Could anyone please tell me how to fix this below? Perhaps that's one of the potential reasons? I have seen a post saying if you install as root then you will get the right access... but I installed using root based on the official installation guide...

018-11-04 00:39:27 zma_m7 31404 ERR Got empty memory map file size 0, is the zmc process for this monitor running? zm_monitor.cpp 538

Re: Connection Timed Out

Posted: Sun Nov 04, 2018 11:56 pm
by sslxhuang
Actually, after reinstalling ZM it works now!! Thanks a lot!