ZMAUDIT is removing my events and I can't figure out why.
I recently upgraded from 1.28 to 1.29.
Whole story. I have zoneminder running on Ubuntu 12.04. I wanted to move to a faster computer.
I set up a new system and went through the steps.
- Installed Ubuntu 16.04 and LAMP then followed the guide to install zoneminder from the wiki.
- Exported zm db from 1.28.
- Copied over all events to /var/cache/zoneminder/events from 1.28 computer to new 1.29 installation.
- chown -R www-data:www-data /var/cache/zoneminder/events
- Imported the new database mysql -uroot -p zm < zm.sql
- Ran zmupdate --migrate-events
- Ran zmupdate
- Logged into db and checked to make sure "USE_DEEP_STORAGE" is set to '1'.
This is a partial of the zmaudit.log
Code: Select all
05/17/2016 11:04:53.273516 zmaudit[24342].INF [Database event '1/15482' does not exist in filesystem]
05/17/2016 11:04:53.400063 zmaudit[24342].INF [deleting]
05/17/2016 11:04:54.016672 zmaudit[24342].INF [Database event '1/679' does not exist in filesystem]
05/17/2016 11:04:54.075084 zmaudit[24342].INF [deleting]
05/17/2016 11:04:54.517148 zmaudit[24342].INF [Database event '1/12302' does not exist in filesystem]
05/17/2016 11:04:54.592276 zmaudit[24342].INF [deleting]
05/17/2016 11:04:55.017805 zmaudit[24342].INF [Database event '1/15447' does not exist in filesystem]
05/17/2016 11:04:55.109664 zmaudit[24342].INF [deleting]
05/17/2016 11:04:55.359926 zmaudit[24342].INF [Database event '1/4482' does not exist in filesystem]
Here is my events directory
Code: Select all
user@user-domain:~$ ls -alh /var/cache/zoneminder/events/
total 36K
drwxr-xr-x 9 www-data www-data 4.0K May 17 13:35 .
drwxr-xr-x 5 www-data www-data 4.0K May 13 10:19 ..
drwxr-xr-x 6 www-data www-data 4.0K May 16 22:27 1
drwxr-xr-x 5 www-data www-data 4.0K May 16 22:35 2
drwxr-xr-x 5 www-data www-data 4.0K May 16 22:40 3
drwxr-xr-x 3 www-data www-data 4.0K May 16 22:40 4
drwxr-xr-x 5 www-data www-data 4.0K May 17 12:50 5
drwxr-xr-x 2 www-data www-data 4.0K May 17 13:35 7
drwxr-xr-x 3 www-data www-data 4.0K May 16 23:00 8
lrwxrwxrwx 1 www-data www-data 1 May 17 13:34 Driveway -> 5
lrwxrwxrwx 1 www-data www-data 1 May 17 13:34 Entry-Room-Cam -> 1
lrwxrwxrwx 1 www-data www-data 1 May 17 13:34 Foscam-1 -> 4
lrwxrwxrwx 1 www-data www-data 1 May 17 13:34 Living-Room -> 2
lrwxrwxrwx 1 www-data www-data 1 May 17 13:34 Patio-pool -> 3
lrwxrwxrwx 1 www-data www-data 1 May 17 13:35 test -> 8
lrwxrwxrwx 1 www-data www-data 1 May 17 13:35 trendnet -> 7