Page 1 of 2
SOLVED: Install Zoneminder on Ubuntu 18.04 with shell script (from Wiki)
Posted: Mon May 14, 2018 10:25 pm
by jrf
I did a fresh install, using the above mentioned method.
I defined 3 monitors, only defined a MODECT for the first monitor so far. Now I have the following LOG output:
Code: Select all
2018-05-15 00:17:35.598921 zms 2829 ERR Unable to validate swap image path, disabling buffered playback zm_monitor.cpp 4025
2018-05-15 00:17:35.543612 web_js 2604 ERR ReferenceError: monitorType is not defined http://192.168.178.28/zm/skins/classic/views/js/watch.js 108
2018-05-15 00:17:35.490178 zms 2829 ERR Can't stat '/tmp/zm': No such file or directory zm_monitor.cpp 3493
2018-05-15 00:17:28.736240 zmdc 2740 ERR 'zmc -m 3' exited abnormally, exit status 255 zmdc.pl
2018-05-15 00:17:28.469390 zmdc 2740 ERR 'zmc -m 2' exited abnormally, exit status 255 zmdc.pl
2018-05-15 00:17:28.256820 zmdc 2740 ERR 'zma -m 1' exited abnormally, exit status 255 zmdc.pl
2018-05-15 00:17:28.204877 zma_m1 2774 ERR Shared data not initialised by capture daemon for monitor Balkon zm_monitor.cpp 442
2018-05-15 00:17:27.992870 zmdc 2740 ERR 'zmc -m 1' exited abnormally, exit status 255 zmdc.pl
2018-05-15 00:17:24.121880 zmsystemctl 2710 INF Redirecting command through systemctl zmsystemctl.pl
What setup step is missing or what did I do wrong?
Code: Select all
Filesystem Size Used Avail Use% Mounted on
udev 1,9G 0 1,9G 0% /dev
tmpfs 395M 1,2M 394M 1% /run
/dev/sda2 458G 6,4G 428G 2% /
tmpfs 2,0G 132M 1,8G 7% /dev/shm
tmpfs 5,0M 0 5,0M 0% /run/lock
tmpfs 2,0G 0 2,0G 0% /sys/fs/cgroup
/dev/loop0 87M 87M 0 100% /snap/core/4486
/dev/loop1 87M 87M 0 100% /snap/core/4571
tmpfs 395M 0 395M 0% /run/user/1000
Re: Install Zoneminder on Ubuntu 18.04 with shell script (from Wiki)
Posted: Tue May 15, 2018 12:31 am
by bbunge
Which script did you use? What is your camera configuration?
Re: Install Zoneminder on Ubuntu 18.04 with shell script (from Wiki)
Posted: Tue May 15, 2018 5:30 am
by jrf
I did use the script for "Script for Ubuntu with LAMP (MySQL)"
https://wiki.zoneminder.com/Ubuntu_Serv ... ell_script. I installed Ubuntu 18.04 server, set the timezone to Europe/Berlin, used tasksel to install LAMP and then created the install file (BTW: the description says: "chmod 755 zm-install-bionic", but because the file is named "install", I used "chmod 755 install"). I changed the path to be "/zm/cgi-bin/nph-zms" in options-path.
Code: Select all
Camera configuration:
Name Balkon
Server None
Source Type Remote
Function Modect
Enabled Yes
Linked Monitors
Analysis FPS
Maximum FPS (?)
Alarm Maximum FPS (?)
Reference Image Blend %ge 12.5% (Outdoor)
Alarm Reference Image Blend %ge 6,25%
Triggers None available
Remote Protocol HTTP
Remote Method Simple
Remote Host Name 192.168.178.25
Remote Host Port 80
Remote Host Path /videostream.cgi?user=DELETED&pwd=DELETED&rate=4
Target colorspace 24 bit color
Capture Width (pixels) 640
Capture Height (pixels) 480
Preserve Aspect Ratio
Orientation Normal
Deinterlacing Disabled
Additional information: the montage window is also not displaying any information.
Re: Install Zoneminder on Ubuntu 18.04 with shell script (from Wiki)
Posted: Tue May 15, 2018 3:17 pm
by bbunge
Image blend settings must be the same. With most modern cameras use ffmpeg. Use VLC to test string to use and resolution to use. Problem is the cam settings not the install.
Re: Install Zoneminder on Ubuntu 18.04 with shell script (from Wiki)
Posted: Tue May 15, 2018 3:52 pm
by jrf
Thank you, I had the three cameras with the above settings running for two to three years. I had a IConnor PPA installation but that got upgraded to 1.31.44 and was not running stable anymore, so I did a new complete new install with the stable version 1.30.4 using the script.
I do have three Foscam FI8906W IP MJPEG cameras around my house and I don't know how to handle ffmpeg and if they are able for that. Later today I might be able to do a research on how I could adapt settings.
I used the settings I found here so far:
https://wiki.zoneminder.com/Foscam_FI8905W
Re: Install Zoneminder on Ubuntu 18.04 with shell script (from Wiki)
Posted: Tue May 15, 2018 7:38 pm
by bbunge
jrf wrote: ↑Tue May 15, 2018 3:52 pm
Thank you, I had the three cameras with the above settings running for two to three years. I had a IConnor PPA installation but that got upgraded to 1.31.44 and was not running stable anymore, so I did a new complete new install with the stable version 1.30.4 using the script.
I do have three Foscam FI8906W IP MJPEG cameras around my house and I don't know how to handle ffmpeg and if they are able for that. Later today I might be able to do a research on how I could adapt settings.
I used the settings I found here so far:
https://wiki.zoneminder.com/Foscam_FI8905W
https://wiki.zoneminder.com/Foscam_FI9805W has settings for ffmpeg. I have a couple of those working very well.
Re: Install Zoneminder on Ubuntu 18.04 with shell script (from Wiki)
Posted: Tue May 15, 2018 9:03 pm
by jrf
FI9805W is newer than the FI8906W and already has H264. I was not able to get a stream with VLC using rtsp://<username>:<password>@<ip_address>:<port>/videoSub or /videoMain. Thx for supporting me.
Re: Install Zoneminder on Ubuntu 18.04 with shell script (from Wiki)
Posted: Wed May 16, 2018 8:48 am
by jrf
I am still on the hunt why I am not getting any montage window. Meanwhile I did a complete new install, with the script it is just done easily...
What does these error messages tell me? The directory is there... Permissions? How to set?
Code: Select all
2018-05-16 10:36:31.032209 zms 2180 ERR Unable to validate swap image path, disabling buffered playback zm_monitor.cpp 4025
2018-05-16 10:36:30.974646 zms 2180 ERR Can't stat '/tmp/zm': No such file or directory zm_monitor.cpp 3493
Re: Install Zoneminder on Ubuntu 18.04 with shell script (from Wiki)
Posted: Wed May 16, 2018 11:45 am
by bbunge
jrf wrote: ↑Wed May 16, 2018 8:48 am
I am still on the hunt why I am not getting any montage window. Meanwhile I did a complete new install, with the script it is just done easily...
What does these error messages tell me? The directory is there... Permissions? How to set?
Code: Select all
2018-05-16 10:36:31.032209 zms 2180 ERR Unable to validate swap image path, disabling buffered playback zm_monitor.cpp 4025
2018-05-16 10:36:30.974646 zms 2180 ERR Can't stat '/tmp/zm': No such file or directory zm_monitor.cpp 3493
They tell you that Bionic does tmp directories differently from prior versions. Error is not fatal. Set Path_swap to /dev/shm if you want to.
Re: Install Zoneminder on Ubuntu 18.04 with shell script (from Wiki)
Posted: Wed May 16, 2018 4:27 pm
by jrf
Thank you, this error is gone now. I still don't get a montage display though
I do get an empty screen, where to look at?
Re: Install Zoneminder on Ubuntu 18.04 with shell script (from Wiki)
Posted: Wed May 16, 2018 7:44 pm
by bbunge
jrf wrote: ↑Wed May 16, 2018 4:27 pm
Thank you, this error is gone now. I still don't get a montage display though
I do get an empty screen, where to look at?
Can you view each monitor? Does Montage work in Firefox? Chrome, IE and edge can be problem. With more than a couple of monitors you will have to "fix" Firefox to see all the cameras.
Re: Install Zoneminder on Ubuntu 18.04 with shell script (from Wiki)
Posted: Thu May 17, 2018 9:25 am
by jrf
Still no success (empty screen) with the montage window (three cameras) on Win10-Firefox and Android8.1.0-Firefox. What did I do:
Firefox, about:config:
Code: Select all
browser.cache.check_doc_frequency;1
browser.cache.disk.enable;false
network.http.max-connections;900 (value network.http.max-connections-per-server is not existent in Firefox ESR 52.8.0)
network.http.max-persistent-connections-per-proxy;100
network.http.max-persistent-connections-per-server;100
Bionic
Code: Select all
Copy cambozola.jar to /usr/share/zoneminder
sudo chmod 775 cambozola.jrf
Zoneminder, Options - Images
Code: Select all
OPT_CAMBOZOLA Yes
PATH_CAMBOZOLA /usr/share/zoneminder/cambozola.jar
RELOAD_CAMBOZOLA 3
I can see the montage on Android8.1.0-Chrome (and I could before I copied cambozola.jar), but the important view would be the Win10 - Firefox.
Re: Install Zoneminder on Ubuntu 18.04 with shell script (from Wiki)
Posted: Thu May 17, 2018 1:52 pm
by bbunge
You do not need cambozola on modern browsers like Firefox and Chrome. With cambozola you need to install JRE on your viewing system and last I knew Java JRE was still a security risk.
Firefox "fix"
Enter about:config in the address bar
scroll down to
browser.cache.check_doc_frequency 3
change the 3 to a 1
browser.cache.disk.enable True -> False
network.http.max-connections-per-server -> put a value of 100
network.http.max-persistent-connections-per-proxy -> 100 again
network.http.max-persistent-connections-per-server -> 100 again
I am using Firefox ESR 52.8 with no issues. Had my test PC running Bionic LAMP with ZM 1.30.4 since the weekend with no issues. Do you have security enabed in ZM? If so set AUTH_RELAY to none
Re: Install Zoneminder on Ubuntu 18.04 with shell script (from Wiki)
Posted: Thu May 17, 2018 3:04 pm
by jrf
Thx bbunge,
I did all of the above (see also my previous post) but still have no success. I will remove cambozola later today when I am back home. I assume it is just one little thing that I might have done wrong/omitted. And my firefox was already displaying the montage with 1.31.xx before it was updated to 1.31.44 and broke.
I will fiddle again another day, for now the surveillance is running, authentication is enabled, I can access the system from outside. Thx again for your repeated support.
Re: Install Zoneminder on Ubuntu 18.04 with shell script (from Wiki)
Posted: Fri May 18, 2018 12:17 am
by bbunge
Was beginning to think there was something wonky with the Zoneminder install. I ran the install again today on Bionic with the script for Apache, mariadb, php and Zoneminder. Install was done on what I call a bare install from the Netinstall CD. Basically the OS with OpenSSL Server and basic utilities. No server software or LAMP. I was able to get 4 cameras running, 2 USB and 2 IP cameras (one in Spain!). Am able to see all cameras in the montage/montage review. Enabled authentication and everything still works as it should. Just to add that I've run that script on a Bionic Desktop to add Zoneminder.
Unless you have changed something in Apache I'm at a loss to recommend something else to try other than going back to Ubuntu 16.04 and seeing if that works.
Suppose it is possible my Englisch script does not Fair spielen with your Deutsche install (it has been over 60 years since my grandfather spoke to me in Deutsche and the Amish and Mennonite neighbors here in Pennsylvania have their own dialect that I can't understand).