Events not Recording.

Forum for questions and support relating to the 1.29.x releases only.
Locked
jmuller1984
Posts: 4
Joined: Mon May 26, 2014 7:56 am

Events not Recording.

Post by jmuller1984 »

Hello,

I have zoneminder 1.29 running on a raspberry pi. (raspbian). I am using a standalone mysql database, on another computer.

Since upgrading it will not record events, stating :

Jan 29 11:36:41 securitypi zma[27210]: ERR [Can't make events: Permission denied]
Jan 29 11:36:41 securitypi zma[27210]: ERR [Can't make events/9: No such file or directory]
Jan 29 11:36:41 securitypi zma[27210]: FAT [Can't change directory to 'events': No such file or directory]
Jan 29 11:36:41 securitypi zmdc[27108]: ERR ['zma -m 9' exited abnormally, exit status 255]
Jan 29 11:36:44 securitypi zmdc[27108]: INF [Command 'zma -m 9' removed from pending list at 17/01/29 11:36:44]
Jan 29 11:36:44 securitypi zmdc[27108]: INF ['zmc -m 9' already running at 17/01/29 11:35:58, pid = 27147]
Jan 29 11:36:45 securitypi zmdc[27108]: WAR [Can't find process with command of 'zma -m 9']

When it's running I'll need to store the events on a separate hard drive. But I need to get it working first :
Contents of /var/share/zoneminder/www

drwxr-xr-x 15 www-data www-data 4.0K Jan 29 11:16 .
drwxr-xr-x 4 root root 4.0K Jan 28 16:38 ..
drwxr-xr-x 2 root root 4.0K Jan 28 16:38 ajax
drwxr-xr-x 4 root root 4.0K Jan 28 16:38 api
drwxr-xr-x 2 root root 4.0K Jan 28 16:38 css
drwxrwxrwx 2 www-data www-data 4.0K Jan 29 11:35 events
drwxr-xr-x 2 root root 4.0K Jan 28 16:38 graphics
drwxrwxrwx 2 www-data www-data 4.0K Jan 29 11:14 images
drwxrwxrwx 2 root root 4.0K Jan 29 11:16 images2
drwxr-xr-x 2 root root 4.0K Jan 28 16:38 includes
-rw-r--r-- 1 root root 6.3K Feb 4 2016 index.php
drwxr-xr-x 2 root root 4.0K Jan 28 16:38 js
drwxr-xr-x 2 root root 4.0K Jan 28 16:38 lang
drwxr-xr-x 5 root root 4.0K Jan 28 16:37 skins
lrwxrwxrwx 1 root root 26 Feb 21 2016 temp -> /var/cache/zoneminder/temp
drwxr-xr-x 3 root root 4.0K Jan 28 16:38 tools
drwxr-xr-x 2 root root 4.0K Jan 28 16:38 views

As you can see www-data owns both ./images and ./events.

I am using a remote database server. This was all working fine before the upgrade, so I doubt there's an issue, but still possible.

Creating a new monitor does create a new folder structure in ./events, so I know it's writable.

After reviewing this guide: http://zoneminder.readthedocs.io/en/sta ... erver.html I revisited the setup of my storage system, specifically :

All ZoneMinders Servers must share a common events folder. This can be done in any manner supported by the underlying operating system. From the Storage Server, share/export a folder to be used for ZoneMinder events.
From each ZoneMinder Server, mount the shared events folder on the Storage Server to the events folder on the local ZoneMinder Server.

So now I have set up folders so /usr/share/zoneminder/www/events points to the same folder on both systems. I figure any paths in the database need to point to the same folder. Which I think i have achieved.

Does anyone have any ideas ?
jmuller1984
Posts: 4
Joined: Mon May 26, 2014 7:56 am

Re: Events not Recording.

Post by jmuller1984 »

Ok,
So I have setup a new database locally.

Events are still not recording.
Therefore I suspect I need to check all my paths & permissions (again).
Locked