[solved] Can not connect cameras (Unable to open input ... No such file or directory)
Posted: Tue Oct 13, 2020 3:55 am
I have some Axis 207MW cameras that I am trying to use with Zoneminder but I can not get them connected. When I try to set them up the log is filled with repeating errors and the camera's entry in the console says it's not capturing and there is no video when I click on the camera's name.
If I enter the url into Firefox I get a live image from the camera and I can use the camera's web interface. (I've left it unencrypted and without a password for testing purposes for now.)
I am new to Zoneminder and somewhat new to Linux so I tried the Docker image. I found instructions to check ZM_PATH_ZMS and ScriptAlias in some configuration files but they did not exist on my system. (I assume this is because they are in inside the Docker container but I couldn't find out how to modify it.) I tried the native install which did leave some configuration files for me to find.
/etc/apache2/conf-enabled/zoneminder.conf contains ScriptAlias /zm/cgi-bin "/usr/lib/zoneminder/cgi-bin" (the last line is an existing directory)
As instructed by the readme file in /etc/zm/conf.d I added a new file containing ZM_PATH_ZMS=/cgi-bin/nph-zms (I also tried ZM_PATH_ZMS=/usr/lib/zoneminder/cgi-bin/nph-zms) but neither worked. The readme instruction sudo chown root:apache *.conf returned chown: invalid group: ‘root:apache’ apache2 also doesn't work, but I don't know if this is a problem because the permissions on that new file allow anyone to read it.
Ubuntu 20.04.1 LTS, Zoneminder v1.34.21, Firefox 81.0 (64-bit)
Code: Select all
zmc_m2 ERR Unable to open input 192.168.1.80/axis-cgi/mjpg/video.cgi?camera=&resolution=320x240 due to: No such file or directory zm_ffmpeg_camera.cpp 393
zmc_m2 ERR Failed to prime capture of initial monitor zmc.cpp 257
I am new to Zoneminder and somewhat new to Linux so I tried the Docker image. I found instructions to check ZM_PATH_ZMS and ScriptAlias in some configuration files but they did not exist on my system. (I assume this is because they are in inside the Docker container but I couldn't find out how to modify it.) I tried the native install which did leave some configuration files for me to find.
/etc/apache2/conf-enabled/zoneminder.conf contains ScriptAlias /zm/cgi-bin "/usr/lib/zoneminder/cgi-bin" (the last line is an existing directory)
As instructed by the readme file in /etc/zm/conf.d I added a new file containing ZM_PATH_ZMS=/cgi-bin/nph-zms (I also tried ZM_PATH_ZMS=/usr/lib/zoneminder/cgi-bin/nph-zms) but neither worked. The readme instruction sudo chown root:apache *.conf returned chown: invalid group: ‘root:apache’ apache2 also doesn't work, but I don't know if this is a problem because the permissions on that new file allow anyone to read it.
Ubuntu 20.04.1 LTS, Zoneminder v1.34.21, Firefox 81.0 (64-bit)