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

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
8ace
Posts: 104
Joined: Tue May 31, 2005 3:38 pm

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

Post 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!
dougmccrary
Posts: 1172
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

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

Post 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?
8ace
Posts: 104
Joined: Tue May 31, 2005 3:38 pm

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

Post 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
dougmccrary
Posts: 1172
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

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

Post by dougmccrary »

Probably www-data not root
Needs to match what ZM created at install.
8ace
Posts: 104
Joined: Tue May 31, 2005 3:38 pm

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

Post by 8ace »

thx Doug :D .... I no longer have that error in the log (I did # chown www-data /newhdd)
dougmccrary
Posts: 1172
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

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

Post by dougmccrary »

8)
Post Reply