xxx@yyyy:/var/cache$ ls -larockedge wrote: ↑Thu Jan 18, 2018 6:18 pm while experimenting running ZM with other operating systems I have run across this error occasionally. I think it was a path and permissions problem. Somehow this was related to an event Export function failure where ZM could not write to the /var/cache/zoneminder/temp folder. Corrupting the path creations for the symlink. I will have to replicate it to remember what I did to fix it.
total 92
...
drwxr-xr-x 5 www-data www-data 4096 Dec 22 17:27 zoneminder
xxx@yyyy:/var/cache$ cd zoneminder
xxx@yyyy:/var/cache/zoneminder$ ls -la
total 20
drwxr-xr-x 5 www-data www-data 4096 Dec 22 17:27 .
drwxr-xr-x 21 root root 4096 Dec 18 11:14 ..
drwxr-xr-x 10 www-data www-data 4096 Jan 18 12:33 events
drwxr-xr-x 2 www-data www-data 4096 May 9 2017 images
drwxr-xr-x 8 www-data www-data 4096 Jan 18 11:24 temp
xxx@yyyy:/var/cache/zoneminder$ cd temp
xxx@yyyy:/var/cache/zoneminder/temp$ ls -la
total 32
drwxr-xr-x 8 www-data www-data 4096 Jan 18 11:24 .
drwxr-xr-x 5 www-data www-data 4096 Dec 22 17:27 ..
drwxr-xr-x 2 www-data www-data 4096 Jan 18 12:02 zmswap-m1
drwxr-xr-x 2 www-data www-data 4096 Jan 16 12:05 zmswap-m3
drwxr-xr-x 3 www-data www-data 4096 Jan 18 13:10 zmswap-m4
drwxr-xr-x 2 www-data www-data 4096 Jan 18 11:25 zmswap-m5
drwxr-xr-x 4 www-data www-data 4096 Jan 18 13:11 zmswap-m7
drwxr-xr-x 3 www-data www-data 4096 Jan 18 13:10 zmswap-m8
xxx@yyyy:/var/cache/zoneminder/temp$
Permissions and ownership seem good, here.
I still think it has something to do with zoneminder attempting to traverse the directory structure via symlink rather than going directly to the monitor number directory, but, again, I could be incorrect.