Problem with improper shutdown

Forum for questions and support relating to the 1.30.x releases only.
Locked
timelyfiasco
Posts: 12
Joined: Sun Jul 30, 2017 5:22 am

Problem with improper shutdown

Post by timelyfiasco »

Hi, I have been running zoneminder for a few days and it was working without orange or red warning in the log for hours. But we had a black out last night, and I think when zoneminder is not exited properly it says it has no permission to write in the events folder.
I run ubuntu and added to fstab my samba drive to var/cache/events. To remedy this, I ran chown again and I lost the cant write to folder error.
Then upon checking the events in the homepage, it went to zero. But the files are still in the hard drive. I did nothing but chown and mysqlcheck database.
So never mind that, but I got another error again in the log which says, can someone help me?
My other question is, is it normal for me to encounter problem after an improper shutdown? Thank you.

Code: Select all

2017-07-30 13:27:30.239630	zmwatch		2216	ERR	Error getting last capture time for Monitor-1	zmwatch.pl	
2017-07-30 13:27:30.026951	zmc_dvideo1		4481	INF	Monitor-2: 37000 - Capturing at 4.63 fps	zm_monitor.cpp	3125
2017-07-30 13:27:20.194360	zmdc		2058	INF	'zma -m 1' exited normally	zmdc.pl	
2017-07-30 13:27:20.106417	zma_m1		6706	INF	Monitor-1: 119 - Closing event 1412, shutting down	zm_monitor.cpp	625
2017-07-30 13:27:20.080817	zma_m1		6706	INF	Got signal 15 (Terminated), exiting	zm_signal.cpp	40
2017-07-30 13:27:20.025420	zmdc		2058	INF	'zma -m 1' sending stop to pid 6706 at 17/07/30 13:27:20	zmdc.pl	
2017-07-30 13:27:19.331450	zmwatch		2216	INF	Restarting analysis daemon for Monitor-1	zmwatch.pl	
2017-07-30 13:27:16.367900	zmwatch		2216	INF	Analysis daemon for Monitor-1 needs restarting, time since last analysis 9 seconds (1501392436-1501392427)	zmwatch.pl	
2017-07-30 13:27:14.776359	zmc_dvideo0		6439	WAR	Buffer overrun at index 18, image 3483, slow down capture, speed up analysis or increase ring buffer size	zm_monitor.cpp	3094
2017-07-30 13:27:13.953855	zmc_dvideo1		4481	WAR	Buffer overrun at index 20, image 36945, slow down capture, speed up analysis or increase ring buffer size	zm_monitor.cpp	3094
 
rockedge
Posts: 1177
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: Problem with improper shutdown

Post by rockedge »

I think something happened to the database and mysql when the sudden shutdown occurred. Can you stop zoneminder then stop Apache and mysql. Restart mysql then apache and ZM. ALSO make sure the system clock and time/date is properly set! this can also cause what you are experiencing.
timelyfiasco
Posts: 12
Joined: Sun Jul 30, 2017 5:22 am

Re: Problem with improper shutdown

Post by timelyfiasco »

Hi rockedge, thank you for trying to help. It is not really a serious concern since I was able to fix it right away. I was just curious if zoneminder is able to start again after an improper shutdown. But upon further consideration, I was able to run zoneminder on boot after pulling the plug on my rasp pi several times. So I guess my question is not clear as I cant get particular with what happened.
mikb
Posts: 655
Joined: Mon Mar 25, 2013 12:34 pm

Re: Problem with improper shutdown

Post by mikb »

Please don't pull the plug on your rasp-pi, you may well permanently/semi-permanently trash the SD card, leading to all sorts of unreliability and ultimately, death :(
Locked