boggie1688
Explorer
- Joined
- Jul 9, 2015
- Messages
- 58
Hi Everyone,
I recently installed the zoneminder plugin. Easy enough. I connected my IP cam, and confirmed it is pulling a live video stream correctly.
Next I created a dataset in my pool, and assigned it to username 'media' and group 'media'.
/mnt/Toshiba5TB/Security
Next I created two mounting points for zoneminder for the iocage:
/var/db/zoneminder/events
/var/db/zoneminder/images
I assume this is were zoneminder wants to save its recorded files. FWIW this camera will record 24/7.
Lastly, in the zoneminder jail I did the following:
Unfortunately, inside the zoneminder logs I keep getting this error:
Cannot write to content dirs('/var/db/zoneminder/events','/var/db/zoneminder/images'). Check that these exist and are owned by the web account user
Previously in my other jails, I've change the jail user to media (like above) and had no issues with the plugin writing to the mounting point.
Any help is greatly appreciated.
Thanks!
I recently installed the zoneminder plugin. Easy enough. I connected my IP cam, and confirmed it is pulling a live video stream correctly.
Next I created a dataset in my pool, and assigned it to username 'media' and group 'media'.
/mnt/Toshiba5TB/Security
Next I created two mounting points for zoneminder for the iocage:
/var/db/zoneminder/events
/var/db/zoneminder/images
I assume this is were zoneminder wants to save its recorded files. FWIW this camera will record 24/7.
Lastly, in the zoneminder jail I did the following:
- In the jail, add a user with a matching UID as the owner of the data dataset/folders.
- Code:
pw useradd -n media -u 818 -d /nonexistent -s /usr/sbin/nologin
- Code:
- In the jail, change the user the plugin runs as, and change ownership of the data-directory.
- Code:
service zoneminder onestop
chown -R media:media /var/db/zoneminder
sysrc 'zoneminder_user=media'
service zoneminder start
- Code:
Unfortunately, inside the zoneminder logs I keep getting this error:
Cannot write to content dirs('/var/db/zoneminder/events','/var/db/zoneminder/images'). Check that these exist and are owned by the web account user
Previously in my other jails, I've change the jail user to media (like above) and had no issues with the plugin writing to the mounting point.
Any help is greatly appreciated.
Thanks!