Installed a few weeks ago, failed to notice recordings weren't saving...

Forum for questions and support relating to the 1.32.x releases only.
Post Reply
raydude
Posts: 65
Joined: Sun Jul 21, 2013 6:09 pm

Installed a few weeks ago, failed to notice recordings weren't saving...

Post by raydude »

I upgraded my gentoo server to 1.32.2 a few weeks ago thanks to a bunch of folks in the gentoo forums who worked out various ebuild and mariadb issues.

But I didn't notice at the time that the recordings were not being stored.

I'm getting this warning:

Cannot write to content dirs('/var/lib/zoneminder/events','/var/lib/zoneminder/images'). Check that these exist and are owned by the web account user

/etc/zm.conf is in the apache group.

zm.conf points to a completely different directory for storing the events:

Code: Select all

snip... 
# Path to installed data directory, used mostly for finding DB upgrade scripts 
ZM_PATH_DATA=/usr/share/zoneminder 

# Path to ZoneMinder binaries 
ZM_PATH_BIN=/usr/bin 

# Path to ZoneMinder libraries (none at present, for future use) 
ZM_PATH_LIB=/usr/lib64 

# Path to ZoneMinder configuration (this file only at present) 
ZM_PATH_CONF=/etc 

# Path to ZoneMinder web files 
ZM_PATH_WEB=/usr/share/zoneminder/www 
# Path to installed data directory, used mostly for finding DB upgrade scripts 
ZM_PATH_DATA=/usr/share/zoneminder 

# Path to ZoneMinder binaries 
ZM_PATH_BIN=/usr/bin 

# Path to ZoneMinder libraries (none at present, for future use) 
ZM_PATH_LIB=/usr/lib64 

# Path to ZoneMinder configuration (this file only at present) 
ZM_PATH_CONF=/etc 

# Path to ZoneMinder web files 
ZM_PATH_WEB=/usr/share/zoneminder/www 
snip...
And the permissions on those folders are correct also...

I checked the settings in the gui and there was indeed a stoage folder specified as /var/lib/zoneminder/events, and I changed it to /usr/share/zoneminder/www/events, but restarting zoneminder didn't make the message go away.

What am I doing wrong this time?

Thanks in advance.
raydude
Posts: 65
Joined: Sun Jul 21, 2013 6:09 pm

Re: Installed a few weeks ago, failed to notice recordings weren't saving...

Post by raydude »

This looks important... It happens every few minutes. Deleting the pid file does not help.

2018-11-17 09:01:45 zmaudit 14444 FAT zmaudit.pl appears to already be running at pid 10787. If not, please delete /var/run/zm/zmaudit.pid or use the --force command line option. zmaudit.pl
2018-11-17 09:01:45 zmdc 14151 ERR 'zmaudit.pl -c' exited abnormally, exit status 255 zmdc.pl
2018-11-17 09:01:45 zmdc 14151 ERR 'zmfilter.pl --filter_id=2 --daemon' exited abnormally, exit status 9 zmdc.pl
2018-11-17 09:01:45 zmdc 14151 ERR 'zmfilter.pl --filter_id=1 --daemon' exited abnormally, exit status 9 zmdc.pl
raydude
Posts: 65
Joined: Sun Jul 21, 2013 6:09 pm

Re: Installed a few weeks ago, failed to notice recordings weren't saving...

Post by raydude »

Okay. The recordings are there. For some reason Chrome does not do playback anymore. Firefox works fine...

Any clues as to why?
raydude
Posts: 65
Joined: Sun Jul 21, 2013 6:09 pm

Re: Installed a few weeks ago, failed to notice recordings weren't saving...

Post by raydude »

Okay. It's recording now...

But it's storing in the wrong place...

Damnit.

Where do I set the path information?
bbunge
Posts: 2930
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Installed a few weeks ago, failed to notice recordings weren't saving...

Post by bbunge »

In the GUI: Options - Storage
raydude
Posts: 65
Joined: Sun Jul 21, 2013 6:09 pm

Re: Installed a few weeks ago, failed to notice recordings weren't saving...

Post by raydude »

Thanks bbunge. I changed it there and it is still looking in the wrong location.

Perhaps I shouldn't have added a new storage, deleted the default and then renamed the newstorage as default?
raydude
Posts: 65
Joined: Sun Jul 21, 2013 6:09 pm

Re: Installed a few weeks ago, failed to notice recordings weren't saving...

Post by raydude »

I fixed the location issue. /etc/conf.d/zmcustom.conf contained the actual directory locations. I updated them. That is a gentoo thing, I think.

Now I can't get zoneminder to use deep directory structure. It's looking for medium or shallow (I don't know how to tell the difference. It's looking for YYYY-MM-DD/ instead of yy/mm/dd.

I checked the zm database and verified that ZM_USE_DEEP_STORAGE is set to 1.

I'm so stuck...
Post Reply