Web Gui stops working when console is started

Forum for questions and support relating to the 1.29.x releases only.
Locked
patdaman45
Posts: 2
Joined: Wed Mar 02, 2016 2:22 am

Web Gui stops working when console is started

Post by patdaman45 »

When the zoneminder service is stopped and apache2 is running, I am able to access the web gui just fine and view events. When the zoneminder service is started, the web gui quickly stops working. "service zoneminder stop" will not stop zoneminder, it will just hang at "Stopping zoneminder". I have to go through and manually kill the zma and zmc processes. I assume this is related to the warnings in the log below. As soon as zoneminder service (or zma, zmc) is stopped, the web gui will work fine again only showing "Stopped" for the monitor.

I am running 16 cameras, all set to record function. Ubuntu 14.04 LTS, load is about 50%, and allocated ram 61%.

Code: Select all

Mar  1 21:25:05 BestTile-NVR zmc[12690]: INF [Closeout3: 16000 - Capturing at 14.93 fps]
Mar  1 21:25:06 BestTile-NVR zmc[12750]: INF [Outside: 16000 - Capturing at 14.93 fps]
Mar  1 21:25:06 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:06. Sending KILL to pid 12398]
Mar  1 21:25:06 BestTile-NVR zmc[12743]: INF [Closeout2: 16000 - Capturing at 14.93 fps]
Mar  1 21:25:07 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:07. Sending KILL to pid 12398]
Mar  1 21:25:08 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:08. Sending KILL to pid 12398]
Mar  1 21:25:10 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:10. Sending KILL to pid 12398]
Mar  1 21:25:11 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:11. Sending KILL to pid 12398]
Mar  1 21:25:12 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:12. Sending KILL to pid 12398]
Mar  1 21:25:14 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:14. Sending KILL to pid 12398]
Mar  1 21:25:15 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:15. Sending KILL to pid 12398]
Mar  1 21:25:16 BestTile-NVR zma[12347]: INF [Closeout: 16000 - Analysing at 14.71 fps]
Mar  1 21:25:16 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:16. Sending KILL to pid 12398]
Mar  1 21:25:17 BestTile-NVR zma[12400]: INF [Kitchen: 16000 - Analysing at 14.93 fps]
Mar  1 21:25:18 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:18. Sending KILL to pid 12398]
Mar  1 21:25:18 BestTile-NVR zma[12447]: INF [Back-Showroom1: 16000 - Analysing at 14.93 fps]
Mar  1 21:25:19 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:19. Sending KILL to pid 12398]
Mar  1 21:25:19 BestTile-NVR zma[12445]: INF [New-Section: 16000 - Analysing at 14.71 fps]
Mar  1 21:25:19 BestTile-NVR zma[12495]: INF [Counter: 16000 - Analysing at 14.71 fps]
Mar  1 21:25:19 BestTile-NVR zma[12548]: INF [Door: 16000 - Analysing at 14.93 fps]
Mar  1 21:25:20 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:20. Sending KILL to pid 12398]
Mar  1 21:25:21 BestTile-NVR zma[12591]: INF [Warehouse-Rear: 16000 - Analysing at 14.71 fps]
Mar  1 21:25:21 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:21. Sending KILL to pid 12398]
Mar  1 21:25:22 BestTile-NVR zma[12369]: INF [Warehouse-Front: 16000 - Analysing at 14.93 fps]
Mar  1 21:25:22 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:22. Sending KILL to pid 12398]
Mar  1 21:25:24 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:24. Sending KILL to pid 12398]
Mar  1 21:25:24 BestTile-NVR zma[12635]: INF [Warehouse-Rear1: 16000 - Analysing at 14.93 fps]
Mar  1 21:25:24 BestTile-NVR zma[12741]: INF [Back-Showroom3: 16000 - Analysing at 14.71 fps]
Mar  1 21:25:25 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:25. Sending KILL to pid 12398]
Mar  1 21:25:26 BestTile-NVR zma[12708]: INF [Closeout3: 16000 - Analysing at 14.71 fps]
Mar  1 21:25:26 BestTile-NVR zma[12801]: INF [Back-Showroom2: 16000 - Analysing at 14.71 fps]
Mar  1 21:25:26 BestTile-NVR zma[12746]: INF [Closeout2: 16000 - Analysing at 14.71 fps]
Mar  1 21:25:26 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:26. Sending KILL to pid 12398]
Mar  1 21:25:27 BestTile-NVR zma[12761]: INF [Outside: 16000 - Analysing at 14.71 fps]
Mar  1 21:25:27 BestTile-NVR zma[12703]: INF [Warehouse-Front1: 16000 - Analysing at 14.71 fps]
Mar  1 21:25:27 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:27. Sending KILL to pid 12398]
Mar  1 21:25:29 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:29. Sending KILL to pid 12398]
Mar  1 21:25:30 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:30. Sending KILL to pid 12398]
Mar  1 21:25:31 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:31. Sending KILL to pid 12398]
Mar  1 21:25:33 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:33. Sending KILL to pid 12398]
Mar  1 21:25:34 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:34. Sending KILL to pid 12398]
Mar  1 21:25:36 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:36. Sending KILL to pid 12398]
Mar  1 21:25:37 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:37. Sending KILL to pid 12398]
Mar  1 21:25:38 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:38. Sending KILL to pid 12398]
Mar  1 21:25:40 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:40. Sending KILL to pid 12398]
Mar  1 21:25:41 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:41. Sending KILL to pid 12398]
Mar  1 21:25:42 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:42. Sending KILL to pid 12398]
Mar  1 21:25:44 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:44. Sending KILL to pid 12398]
Mar  1 21:25:45 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:45. Sending KILL to pid 12398]
Mar  1 21:25:47 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:47. Sending KILL to pid 12398]
Mar  1 21:25:48 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:48. Sending KILL to pid 12398]
Mar  1 21:25:49 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:49. Sending KILL to pid 12398]
Mar  1 21:25:51 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:51. Sending KILL to pid 12398]
Mar  1 21:25:52 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:52. Sending KILL to pid 12398]
Mar  1 21:25:54 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:54. Sending KILL to pid 12398]
Mar  1 21:25:55 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:55. Sending KILL to pid 12398]
Mar  1 21:25:56 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:56. Sending KILL to pid 12398]
Mar  1 21:25:58 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:58. Sending KILL to pid 12398]
Mar  1 21:25:59 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:59. Sending KILL to pid 12398]
Mar  1 21:26:00 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:26:00. Sending KILL to pid 12398]
Mar  1 21:26:02 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:26:02. Sending KILL to pid 12398]
Mar  1 21:26:03 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:26:03. Sending KILL to pid 12398]
Mar  1 21:26:04 BestTile-NVR zmc[12345]: INF [Closeout: 17000 - Capturing at 14.93 fps]
Mar  1 21:26:05 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:26:05. Sending KILL to pid 12398]
Mar  1 21:26:05 BestTile-NVR zmc[12367]: INF [Warehouse-Front: 17000 - Capturing at 15.15 fps]
Mar  1 21:26:05 BestTile-NVR zmc[12395]: INF [Kitchen: 17000 - Capturing at 14.93 fps]
Mar  1 21:26:06 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:26:06. Sending KILL to pid 12398]
Mar  1 21:26:06 BestTile-NVR zmc[12440]: INF [Back-Showroom1: 17000 - Capturing at 14.93 fps]
Mar  1 21:26:06 BestTile-NVR zmc[12442]: INF [New-Section: 17000 - Capturing at 14.93 fps]
Mar  1 21:26:06 BestTile-NVR zmc[12393]: INF [Contractor: 17000 - Capturing at 15.15 fps]
Mar  1 21:26:07 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:26:07. Sending KILL to pid 12398]
Mar  1 21:26:08 BestTile-NVR zmc[12537]: INF [Back-Showroom2: 17000 - Capturing at 14.93 fps]
Mar  1 21:26:08 BestTile-NVR zmc[12474]: INF [Back-Showroom3: 17000 - Capturing at 14.93 fps]
Mar  1 21:26:08 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:26:08. Sending KILL to pid 12398]
Mar  1 21:26:09 BestTile-NVR zmc[12532]: INF [Door: 17000 - Capturing at 15.15 fps]
Mar  1 21:26:09 BestTile-NVR zmc[12484]: INF [Counter: 17000 - Capturing at 14.93 fps]
Mar  1 21:26:09 BestTile-NVR zmc[12589]: INF [Warehouse-Rear: 17000 - Capturing at 15.15 fps]
Mar  1 21:26:10 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:26:10. Sending KILL to pid 12398]
Mar  1 21:26:11 BestTile-NVR zmc[12624]: INF [Warehouse-Rear1: 17000 - Capturing at 15.15 fps]
Mar  1 21:26:11 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:26:11. Sending KILL to pid 12398]
Mar  1 21:26:12 BestTile-NVR zmc[12690]: INF [Closeout3: 17000 - Capturing at 15.15 fps]
Mar  1 21:26:12 BestTile-NVR zmc[12679]: INF [Warehouse-Front1: 17000 - Capturing at 15.15 fps]
Mar  1 21:26:12 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:26:12. Sending KILL to pid 12398]
Mar  1 21:26:12 BestTile-NVR zmc[12750]: INF [Outside: 17000 - Capturing at 15.15 fps]
Mar  1 21:26:13 BestTile-NVR zmc[12743]: INF [Closeout2: 17000 - Capturing at 14.93 fps]
Mar  1 21:26:13 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:26:13. Sending KILL to pid 12398]
Mar  1 21:26:14 BestTile-NVR zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:26:14. Sending KILL to pid 12398]
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Web Gui stops working when console is started

Post by bbunge »

How much ram do you have? It is possible that with 16 cameras you are running out of ram. Your database may also be grabbing a lot of ram. I run 16 cameras on 12 gig of ram with the resolution turned down to 320x240
patdaman45
Posts: 2
Joined: Wed Mar 02, 2016 2:22 am

Re: Web Gui stops working when console is started

Post by patdaman45 »

I have 8gb. After some troubleshooting / messing around i found that if i disable monitor id #3 it seems to solve the problem. In my log above it was the device causing the following:

Code: Select all

zmdc[12314]: WAR ['zma -m 3' has not stopped at 16/03/01 21:25:07. Sending KILL to pid 12398]
What could cause a monitor to hang the entire application? I don't think ram is an issue because things run perfectly without this camera enabled.
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Web Gui stops working when console is started

Post by bbunge »

Well, it could be the one that pushes your system over the edge. Ubuntu, by default, uses half of the RAM for tmpfs or RAM drive. ZM uses this memory space (/run/shm in 14.04) to process images. Do a "df" to see how much of this space is being used. The higher the camera resolution the more space in tmpfs is used. If this is the case there are several things you can do: more RAM, lower the camera resolution or give /run/shm more space (of course this could cause issues elsewhere). I have also learned that MySQL running innodb can gobble up RAM as the number of events builds up. On my 17 camera system I have had to set innodb_buffer_pool_size to 2G. You can install and run mysqltuner to see what is going on with MySQL.
Let us know how you make out.

bb
Locked