Can't connect to remote camera: Connection timed out

Support and queries relating to all previous versions of ZoneMinder
Locked
ubell
Posts: 53
Joined: Sun Jul 24, 2005 9:05 pm

Can't connect to remote camera: Connection timed out

Post by ubell »

I am dealing with either a flakey camera or wireless AP. I hope to solve that problem soon. In the meantime it appears that when zmc times out on a select it gets restarted:
Jul 31 11:05:59 rascal zmwatch[6606]: INF ['zmc -m 1' started at 06/07/31 11:05:59]
Jul 31 11:06:03 10.0.0.253 Wireless PC connected 00-01-36-09-29-b4^M
Jul 31 11:12:30 rascal zmc_m1[20582]: ERR [Select timed out]
Jul 31 11:12:30 rascal zmdc[6567]: ERR ['zmc -m 1' exited abnormally, exit status 255]
Jul 31 11:12:39 rascal zmwatch[6606]: INF [Restarting capture daemon for web, time since last capture 12 seconds (1154369559-1154369547)]
Jul 31 11:12:40 rascal zmdc[20857]: INF ['zmc -m 1' started at 06/07/31 11:12:40]

But if when it restarts it gets a time out, it does not get restarted:
Jul 31 11:12:40 rascal zmc_m1[20857]: INF [Debug Level = 0, Debug Log = <none>]
Jul 31 11:12:40 rascal zmc_m1[20857]: INF [Starting Capture]
Jul 31 11:15:49 rascal zmc_m1[20857]: ERR [Can't connect to remote camera: Connection timed out]
Jul 31 11:15:49 rascal zmdc[6567]: ERR ['zmc -m 1' exited abnormally, exit status 255]

Jul 31 11:23:50 rascal zmpkg[21321]: INF [Command: restart]

Is there anyway to get zm to retry the startup of zmc? I am using v1.22.1.

Mike
dyuen
Posts: 16
Joined: Mon Jul 10, 2006 5:58 pm

Post by dyuen »

Just a question about the question you posted.
What problem does this cause aside from having exit status 255 and restarting something?
I mean does it cause any problem on front-end (frame capturing, web interface, etc.)

Daniel
ubell
Posts: 53
Joined: Sun Jul 24, 2005 9:05 pm

Post by ubell »

The problem is that it seems that if it timesout on startup of the zmc process it does not restart it and I have restart zm by hand. The problem with this is that it is not doing any capture on that camera until I notice it is down and restart. I would like it to just keep retrying.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

I'm not sure of the exact name but I think you drop the check capture demon time and that will do it for you, its one of the capture demon settings anyway, my memory is awful these days plus with some of the other questions we have had on here latly search is obviously broken!
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
ubell
Posts: 53
Joined: Sun Jul 24, 2005 9:05 pm

Post by ubell »

Ill try that, but I don't think thats the problem.

Now after the thing has been bouncing up and down a lot I am getting:
Jul 31 20:30:09 rascal zmwatch[13610]: INF [Restarting capture daemon for web, shared memory not valid]


Jul 31 20:32:00 rascal zmwatch[13610]: ERR [Can't get shared memory id '7a6d2001', 1: No such file or directory]
Jul 31 20:32:00 rascal zmwatch[13610]: INF [Restarting capture daemon for web, shared memory not valid]

I think I will need to reboot my system.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

yeah there not right. But the shared mem not valid usually mernas you are trying to live view from a cam that currently cant get images. If your having wireless issues this would be correct
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Locked