Page 1 of 1

Added a new HDD - failed creating event etc. etc.

Posted: Thu Dec 02, 2021 7:36 pm
by 8ace
Hey folks, I added a new disk. Seems to have been successful as I am storing recordings/events there as I would expect.

But I get this happening in the log:

"2021-12-02 14:30:00",zmc_m1,,31366,WAR,"Failed creating event dir at /newhdd",zm_event.cpp,134
"2021-12-02 14:30:00",zmc_m1,,31366,ERR,"Can't mkdir /newhdd/1: Permission denied",zm_event.cpp,630

Clearly something simple... any thoughts appreciated!

Re: Added a new HDD - failed creating event etc. etc.

Posted: Thu Dec 02, 2021 8:35 pm
by dougmccrary
Recheck permissions.
According to the error you aren’t getting monitor 1 recordings because it can’t make a directory for it. Do you have more than one camera?

Re: Added a new HDD - failed creating event etc. etc.

Posted: Thu Dec 02, 2021 8:41 pm
by 8ace
Hey Doug - it's a fresh install, just one camera for now. I wanted to verify that my new disk was working first.

If it fails to work on my new location, would that mean it will revert back to "Default" storage?

root@z:/#ls -l /newhdd
total 16
drwx------ 2 root root 16384 Dec 2 10:55 lost+found

Re: Added a new HDD - failed creating event etc. etc.

Posted: Thu Dec 02, 2021 8:55 pm
by dougmccrary
Probably www-data not root
Needs to match what ZM created at install.

Re: Added a new HDD - failed creating event etc. etc.

Posted: Thu Dec 02, 2021 9:53 pm
by 8ace
thx Doug :D .... I no longer have that error in the log (I did # chown www-data /newhdd)

Re: Added a new HDD - failed creating event etc. etc.

Posted: Fri Dec 03, 2021 10:28 am
by dougmccrary
8)