Added Camera, But cannot write to storage

Forum for questions and support relating to the 1.32.x releases only.
Post Reply
wh33lz
Posts: 24
Joined: Tue Aug 15, 2017 8:19 pm
Location: Toronto

Added Camera, But cannot write to storage

Post by wh33lz »

Added new Camera but Storage directory not created.
Tried creating manually, but did not help

Can't open /CamDrive/5/2018-09-16/184818/00744-capture.jpg: No such file or directory
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Added Camera, But cannot write to storage

Post by bbunge »

Linux distro and version? What kind of storage are you trying to write to?
wh33lz
Posts: 24
Joined: Tue Aug 15, 2017 8:19 pm
Location: Toronto

Re: Added Camera, But cannot write to storage

Post by wh33lz »

Ubuntu 16.04.10 Linux version 4.4.0-135-generic
Trying to write to local drive..same drive and directory as the other 2 cameras (1 HikVision, 1 Foscam) are writing to all the time.

After the 1.32 update, 1 out of my 3 cameras (an Hikvision) would create 30+ minute events (6GB) every once in a while, even though there were only a few alarm frames.

So I tried updating it's firmware, but afterwards the usual HikVision source string (same as the other HikVision camera) would not work.
So I tried the source string I use for the Foscam camera...and it worked, but I still had the problem with the odd huge capture.

Next I deleted the camera (HiKVision) from Zoneminder, and re-added it. That's when I got the cannot write to storage error.

Only thing left to do was to purge Zoneminder and database, and re-install.
But so far I have not located the 1.32 versions installation guide, and the 1.30 version installation guide no longer applies.
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Added Camera, But cannot write to storage

Post by bbunge »

One thing you can try is to remove the entry in the my.cnf:
In the [mysqld] section remove the following for ZM 1.32.0

sql_mode = NO_ENGINE_SUBSTITUTION

then
service zoneminder stop
service mysql restart
service zoneminder start

If you need to reinstall Zoneminder 1.30.4 see:

https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way
wh33lz
Posts: 24
Joined: Tue Aug 15, 2017 8:19 pm
Location: Toronto

Re: Added Camera, But cannot write to storage

Post by wh33lz »

Thanks bbunge,
Unfortunately I had already purged the app, www-data and the database, so the script was not to happy about that.
It is a dedicated server, so it is best that I start from scratch.

Just not sure whether to go to Ubuntu 18, PHP 7.0, Zoneminder 1.32, or go back to Ubuntu 16.04, PHP 5.7, Zoneminder 1.30.

Any thoughts?
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Added Camera, But cannot write to storage

Post by bbunge »

Bionic uses PHP 7.2
Xenial uses PHP 7.0
The WIKI has current install procedures for both using 1.30.4 64 bit.
There are reasons to use either Bionic or Xenial. For my production server I run Xenial, Mariadb, PHP, Apache2, ZM 1.30.4 and Webmin. Xenial is a bare bones install. No server utils from tasksel.
wh33lz
Posts: 24
Joined: Tue Aug 15, 2017 8:19 pm
Location: Toronto

Re: Added Camera, But cannot write to storage

Post by wh33lz »

Well I stuck with it and managed to get the script to work with no errors.

But I am back to the problem of the live view on Zoneminder breaking up every 5-10 seconds and generating events.
Connecting directly to the camera's web interface is fine no matter how I set it up.

Next I will try an older firmware for the camera.
Post Reply