New install (1.26.3) on Slackware building but not running

Forum for questions and support relating to the 1.26.x releases only.
Post Reply
lpallard
Posts: 85
Joined: Fri Mar 05, 2010 10:59 pm

New install (1.26.3) on Slackware building but not running

Post by lpallard » Fri Oct 04, 2013 10:21 pm

Thanks to everyone who contributed to this great project, I could finally get ZM to run on my slackware64-14 server with version 1.26.3.

I however have serious issues to get it going. After a successful compilation and installation with

[code]./configure --with-ffmpeg=/usr/bin/ --with-webdir=/var/www/htdocs/zm --with-cgidir=/var/www/cgi-bin --enable-mmap=yes ZM_DB_PASS=XXXXX ZM_DB_NAME=zoneminder --with-libarch=/usr/lib64 --with-webuser=apache --with-webgroup=apache

make

make install[/code]

I started the main script by typing

[code]zmpkg.pl start[/code]

Added my Trendnet TV-IP572PI camera to the Monitor using the wiki's instructions, and was greeted by an orange "source" in the monitors list. The live feed also doesnt work. I went to the logs section to see whats going on, and saw these entries:

[code]2013-10-04 17:54:08.959325 web_php 11356 ERR socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory /var/www/htdocs/zm/includes/functions.php 2323
2013-10-04 17:54:03.359099 web_js 11443 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2013-10-04 17:54:02.939577 web_php 11443 ERR socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory /var/www/htdocs/zm/includes/functions.php 2323
2013-10-04 17:53:56.932616 web_js 11443 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2013-10-04 17:53:56.914512 web_php 11443 ERR socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory /var/www/htdocs/zm/includes/functions.php 2323
2013-10-04 17:53:50.912928 web_js 11443 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2013-10-04 17:53:50.895123 web_php 11443 ERR socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory /var/www/htdocs/zm/includes/functions.php 2323
2013-10-04 17:53:44.893555 web_js 11443 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2013-10-04 17:53:44.876057 web_php 11443 ERR socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory /var/www/htdocs/zm/includes/functions.php 2323
2013-10-04 17:53:43.275972 zmc_m1 17632 INF Monitor-1: 2000 - Capturing at 29.41 fps zm_monitor.cpp 2766
2013-10-04 17:53:38.874388 web_js 11443 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2013-10-04 17:53:38.856106 web_php 11443 ERR socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory /var/www/htdocs/zm/includes/functions.php 2323
2013-10-04 17:53:32.855783 web_js 11443 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2013-10-04 17:53:32.837707 web_php 11443 ERR socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory /var/www/htdocs/zm/includes/functions.php 2323
2013-10-04 17:53:26.836492 web_js 11443 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2013-10-04 17:53:26.818521 web_php 11443 ERR socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory /var/www/htdocs/zm/includes/functions.php 2323
2013-10-04 17:53:20.818513 web_js 11443 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2013-10-04 17:53:20.799901 web_php 11443 ERR socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory /var/www/htdocs/zm/includes/functions.php 2323
2013-10-04 17:53:14.798791 web_js 11443 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2013-10-04 17:53:14.781154 web_php 11443 ERR socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory /var/www/htdocs/zm/includes/functions.php 2323
2013-10-04 17:53:09.958029 zmc_m1 17632 INF Monitor-1: 1000 - Capturing at 28.57 fps zm_monitor.cpp 2766
2013-10-04 17:53:08.779177 web_js 11443 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2013-10-04 17:53:08.759625 web_php 11443 ERR socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory /var/www/htdocs/zm/includes/functions.php 2323
2013-10-04 17:53:02.759506 web_js 11443 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2013-10-04 17:53:02.741241 web_php 11443 ERR socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory /var/www/htdocs/zm/includes/functions.php 2323
2013-10-04 17:52:56.739747 web_js 11443 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2013-10-04 17:52:56.722121 web_php 11443 ERR socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory /var/www/htdocs/zm/includes/functions.php 2323
2013-10-04 17:52:50.720490 web_js 11443 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2013-10-04 17:52:50.702700 web_php 11443 ERR socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory /var/www/htdocs/zm/includes/functions.php 2323
2013-10-04 17:52:44.700908 web_js 11443 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2013-10-04 17:52:44.682773 web_php 11443 ERR socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory /var/www/htdocs/zm/includes/functions.php 2323
2013-10-04 17:52:38.680341 web_js 11443 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2013-10-04 17:52:38.663082 web_php 11443 ERR socket_sendto( /var/run/zm/zms-148439s.sock ) failed: No such file or directory[/code]

I tried everything I could think of.... Googling for these errors led to a potential misconfiguration in Apache's httpd.conf which I double checked and didnt see anything wrong. /var/run/zm is owned by apache:apache, /var/www/htdocs/zm is also owned by apache:apache..

some config files:

zm.conf:

[code]# ==========================================================================
#
# ZoneMinder Base Configuration, $Date$, $Revision$
#
# ==========================================================================
#
# This file is generated by 'configure'. Care should be taken if manually
# editing this file as an changes may be overwritten by subsequent configuration
# or installations.
#

# Current version of ZoneMinder
ZM_VERSION=1.26.3

# Path to build directory, used mostly for finding DB upgrade scripts
ZM_PATH_BUILD=/root/ZoneMinder-1.26.3

# Build time, used to record when to trigger various checks
ZM_TIME_BUILD=1380923324

# Path to ZoneMinder binaries
ZM_PATH_BIN=/usr/local/bin

# Path to ZoneMinder libraries (none at present, for future use)
ZM_PATH_LIB=/usr/local/lib

# Path to ZoneMinder configuration (this file only at present)
ZM_PATH_CONF=/usr/local/etc

# Path to ZoneMinder web files
ZM_PATH_WEB=/var/www/htdocs/zm

# Path to ZoneMinder cgi files
ZM_PATH_CGI=/var/www/cgi-bin

# Username and group that web daemon (httpd/apache) runs as
ZM_WEB_USER=apache
ZM_WEB_GROUP=apache

# ZoneMinder database hostname or ip address
ZM_DB_HOST=localhost

# ZoneMinder database name
ZM_DB_NAME=zoneminder

# ZoneMinder database user
ZM_DB_USER=XXXXXX

# ZoneMinder database password
ZM_DB_PASS=XXXXXX[/code]

Apache's httpd.conf

[code]ServerRoot "/usr"
ServerName local-server
Listen 80

LoadModule authn_file_module lib64/httpd/modules/mod_authn_file.so
LoadModule authn_dbm_module lib64/httpd/modules/mod_authn_dbm.so
LoadModule authn_anon_module lib64/httpd/modules/mod_authn_anon.so
LoadModule authn_dbd_module lib64/httpd/modules/mod_authn_dbd.so
LoadModule authn_socache_module lib64/httpd/modules/mod_authn_socache.so
LoadModule authn_core_module lib64/httpd/modules/mod_authn_core.so
LoadModule authz_host_module lib64/httpd/modules/mod_authz_host.so
LoadModule authz_groupfile_module lib64/httpd/modules/mod_authz_groupfile.so
LoadModule authz_user_module lib64/httpd/modules/mod_authz_user.so
LoadModule authz_dbm_module lib64/httpd/modules/mod_authz_dbm.so
LoadModule authz_owner_module lib64/httpd/modules/mod_authz_owner.so
LoadModule authz_dbd_module lib64/httpd/modules/mod_authz_dbd.so
LoadModule authz_core_module lib64/httpd/modules/mod_authz_core.so
LoadModule authnz_ldap_module lib64/httpd/modules/mod_authnz_ldap.so
LoadModule access_compat_module lib64/httpd/modules/mod_access_compat.so
LoadModule auth_basic_module lib64/httpd/modules/mod_auth_basic.so
LoadModule auth_form_module lib64/httpd/modules/mod_auth_form.so
LoadModule auth_digest_module lib64/httpd/modules/mod_auth_digest.so
LoadModule allowmethods_module lib64/httpd/modules/mod_allowmethods.so
LoadModule file_cache_module lib64/httpd/modules/mod_file_cache.so
LoadModule cache_module lib64/httpd/modules/mod_cache.so
LoadModule cache_disk_module lib64/httpd/modules/mod_cache_disk.so
LoadModule socache_shmcb_module lib64/httpd/modules/mod_socache_shmcb.so
LoadModule socache_dbm_module lib64/httpd/modules/mod_socache_dbm.so
LoadModule socache_memcache_module lib64/httpd/modules/mod_socache_memcache.so
LoadModule dbd_module lib64/httpd/modules/mod_dbd.so
LoadModule dumpio_module lib64/httpd/modules/mod_dumpio.so
LoadModule echo_module lib64/httpd/modules/mod_echo.so
LoadModule buffer_module lib64/httpd/modules/mod_buffer.so
LoadModule data_module lib64/httpd/modules/mod_data.so
LoadModule ratelimit_module lib64/httpd/modules/mod_ratelimit.so
LoadModule reqtimeout_module lib64/httpd/modules/mod_reqtimeout.so
LoadModule ext_filter_module lib64/httpd/modules/mod_ext_filter.so
LoadModule request_module lib64/httpd/modules/mod_request.so
LoadModule include_module lib64/httpd/modules/mod_include.so
LoadModule filter_module lib64/httpd/modules/mod_filter.so
LoadModule reflector_module lib64/httpd/modules/mod_reflector.so
LoadModule substitute_module lib64/httpd/modules/mod_substitute.so
LoadModule sed_module lib64/httpd/modules/mod_sed.so
LoadModule charset_lite_module lib64/httpd/modules/mod_charset_lite.so
LoadModule deflate_module lib64/httpd/modules/mod_deflate.so
LoadModule xml2enc_module lib64/httpd/modules/mod_xml2enc.so
LoadModule proxy_html_module lib64/httpd/modules/mod_proxy_html.so
LoadModule mime_module lib64/httpd/modules/mod_mime.so
LoadModule ldap_module lib64/httpd/modules/mod_ldap.so
LoadModule log_config_module lib64/httpd/modules/mod_log_config.so
LoadModule log_debug_module lib64/httpd/modules/mod_log_debug.so
LoadModule log_forensic_module lib64/httpd/modules/mod_log_forensic.so
LoadModule logio_module lib64/httpd/modules/mod_logio.so
LoadModule env_module lib64/httpd/modules/mod_env.so
LoadModule mime_magic_module lib64/httpd/modules/mod_mime_magic.so
LoadModule expires_module lib64/httpd/modules/mod_expires.so
LoadModule headers_module lib64/httpd/modules/mod_headers.so
LoadModule usertrack_module lib64/httpd/modules/mod_usertrack.so
LoadModule unique_id_module lib64/httpd/modules/mod_unique_id.so
LoadModule setenvif_module lib64/httpd/modules/mod_setenvif.so
LoadModule version_module lib64/httpd/modules/mod_version.so
LoadModule proxy_module lib64/httpd/modules/mod_proxy.so
LoadModule proxy_connect_module lib64/httpd/modules/mod_proxy_connect.so
LoadModule proxy_ftp_module lib64/httpd/modules/mod_proxy_ftp.so
LoadModule proxy_http_module lib64/httpd/modules/mod_proxy_http.so
LoadModule proxy_fcgi_module lib64/httpd/modules/mod_proxy_fcgi.so
LoadModule proxy_scgi_module lib64/httpd/modules/mod_proxy_scgi.so
LoadModule proxy_fdpass_module lib64/httpd/modules/mod_proxy_fdpass.so
LoadModule proxy_ajp_module lib64/httpd/modules/mod_proxy_ajp.so
LoadModule proxy_balancer_module lib64/httpd/modules/mod_proxy_balancer.so
LoadModule proxy_express_module lib64/httpd/modules/mod_proxy_express.so
LoadModule session_module lib64/httpd/modules/mod_session.so
LoadModule session_cookie_module lib64/httpd/modules/mod_session_cookie.so
LoadModule session_dbd_module lib64/httpd/modules/mod_session_dbd.so
LoadModule slotmem_shm_module lib64/httpd/modules/mod_slotmem_shm.so
LoadModule slotmem_plain_module lib64/httpd/modules/mod_slotmem_plain.so
LoadModule ssl_module lib64/httpd/modules/mod_ssl.so
LoadModule lbmethod_byrequests_module lib64/httpd/modules/mod_lbmethod_byrequests.so
LoadModule lbmethod_bytraffic_module lib64/httpd/modules/mod_lbmethod_bytraffic.so
LoadModule lbmethod_bybusyness_module lib64/httpd/modules/mod_lbmethod_bybusyness.so
LoadModule mpm_event_module lib64/httpd/modules/mod_mpm_event.so
LoadModule unixd_module lib64/httpd/modules/mod_unixd.so
LoadModule dav_module lib64/httpd/modules/mod_dav.so
LoadModule status_module lib64/httpd/modules/mod_status.so
LoadModule autoindex_module lib64/httpd/modules/mod_autoindex.so
LoadModule asis_module lib64/httpd/modules/mod_asis.so
LoadModule info_module lib64/httpd/modules/mod_info.so
LoadModule cgid_module lib64/httpd/modules/mod_cgid.so
LoadModule cgi_module lib64/httpd/modules/mod_cgi.so
LoadModule dav_fs_module lib64/httpd/modules/mod_dav_fs.so
LoadModule dav_lock_module lib64/httpd/modules/mod_dav_lock.so
LoadModule vhost_alias_module lib64/httpd/modules/mod_vhost_alias.so
LoadModule negotiation_module lib64/httpd/modules/mod_negotiation.so
LoadModule dir_module lib64/httpd/modules/mod_dir.so
LoadModule actions_module lib64/httpd/modules/mod_actions.so
LoadModule speling_module lib64/httpd/modules/mod_speling.so
LoadModule userdir_module lib64/httpd/modules/mod_userdir.so
LoadModule alias_module lib64/httpd/modules/mod_alias.so
LoadModule rewrite_module lib64/httpd/modules/mod_rewrite.so

<IfModule unixd_module>
</IfModule>

User apache
Group apache

ServerAdmin xxxx@xxxx.com

DocumentRoot "/srv/httpd/htdocs"

<Directory "/srv/httpd/htdocs">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
AddType application/x-httpd-php text/html .php .phps .php3
</Directory>

<Directory "/var/www/cgi-bin">
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AllowOverride All
php_value short_open_tag 1
</Directory>

<Directory /var/www/htdocs/zm>
Options FollowSymLinks
AllowOverride All
php_value short_open_tag 1
</Directory>

<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>

<Files ".ht*">
Require all denied
AcceptPathInfo On
</Files>

ErrorLog "/var/log/httpd_error.log"
LogLevel warn

<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common

<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>

CustomLog "/var/log/httpd_access.log" common

</IfModule>

<IfModule alias_module>
ScriptAlias /cgi-bin "/srv/httpd/cgi-bin"
</IfModule>

<IfModule cgid_module>
</IfModule>

<IfModule mime_module>
TypesConfig /etc/httpd/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
</IfModule>

<IfModule proxy_html_module>
Include /etc/httpd/extra/proxy-html.conf
</IfModule>

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

Include /etc/httpd/mod_php.conf[/code]

I am lost a little.... Can anybody point me in the right direction???

Thanks!

User avatar
knight-of-ni
Posts: 2353
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: New install (1.26.3) on Slackware building but not runni

Post by knight-of-ni » Fri Oct 04, 2013 10:54 pm

Out of all the badness in your logs, this is a good sign:

Code: Select all

2013-10-04 17:53:43.275972 zmc_m1 17632 INF Monitor-1: 2000 - Capturing at 29.41 fps zm_monitor.cpp 2766
It means your camera is likely recording fine. Although I recommend you crank down the fps. 5 fps is plenty for a typical security system. Change it in the camera, not in zoneminder.

Looking further and it looks like you have a script alias problem.

You've configured zoneminder with this:

Code: Select all

--with-cgidir=/var/www/cgi-bin
But your httpd.conf has the scriptalias looking in a different folder:

Code: Select all

<IfModule alias_module>
ScriptAlias /cgi-bin "/srv/httpd/cgi-bin"
</IfModule>
So anytime you click on a link with "zm/cgi-bin/zms" in it, it looks in /srv/httpd/cgi-bin for zms, but it isn't there because you told zoneminder to put zms into the /var/www/cgi-bin folder.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/

lpallard
Posts: 85
Joined: Fri Mar 05, 2010 10:59 pm

Re: New install (1.26.3) on Slackware building but not runni

Post by lpallard » Sat Oct 05, 2013 6:25 am

[quote="knnniggett"]Out of all the badness in your logs, this is a good sign:
[code]2013-10-04 17:53:43.275972 zmc_m1 17632 INF Monitor-1: 2000 - Capturing at 29.41 fps zm_monitor.cpp 2766[/code]

It means your camera is likely recording fine. Although I recommend you crank down the fps. 5 fps is plenty for a typical security system. Change it in the camera, not in zoneminder.

Looking further and it looks like you have a script alias problem.

You've configured zoneminder with this:
[code]--with-cgidir=/var/www/cgi-bin[/code]

But your httpd.conf has the scriptalias looking in a different folder:
[code]<IfModule alias_module>
ScriptAlias /cgi-bin "/srv/httpd/cgi-bin"
</IfModule>[/code]

So anytime you click on a link with "zm/cgi-bin/zms" in it, it looks in /srv/httpd/cgi-bin for zms, but it isn't there because you told zoneminder to put zms into the /var/www/cgi-bin folder.[/quote]

In slackware, /srv/httpd/cgi-bin is a symlink to /var/www/cgi-bin...

lpallard
Posts: 85
Joined: Fri Mar 05, 2010 10:59 pm

Re: New install (1.26.3) on Slackware building but not runni

Post by lpallard » Sat Oct 05, 2013 6:57 pm

I wonder if I should open new bug reports on the Github page... I have managed to install and make it run but Im having severe issues (still).

In monitor mode, the logs are crippled with errors such as:

2013-10-05 14:33:01.627221 web_php 20219 ERR socket_sendto( /var/run/zm/zms-582107s.sock ) failed: No such file or directory /var/www/htdocs/zm/includes/functions.php 2323
2013-10-05 14:32:56.103599 zms 9235 ERR Terminating, last frame sent time 1380997976.086872 secs more than maximum of 10.000000 zm_monitor.cpp 3994
2013-10-05 14:32:56.087450 zms 9235 ERR libjpeg-turbo is required for JPEG encoding directly from RGB32 source zm_image.cpp 827
2013-10-05 14:32:56.087195 zms 9235 ERR Unable to send stream frame: Success zm_monitor.cpp 3732
2013-10-05 14:32:56.086923 zms 9235 ERR libjpeg-turbo is required for JPEG encoding directly from RGB32 source
2013-10-05 14:33:35.487080 zmdc 9157 WAR Can't find process with command of 'zmf -m 1' zmdc.pl
2013-10-05 14:33:35.365580 zmdc 9157 WAR Can't find process with command of 'zma -m 1' zmdc.pl
2013-10-05 14:33:35.246780 zmdc 9157 WAR Can't find process with command of 'zmtrack.pl -m 1' zmdc.pl
2013-10-05 14:33:14.593510 zmdc 9157 WAR Can't find process with command of 'zmf -m 1' zmdc.pl
2013-10-05 14:33:14.472060 zmdc 9157 WAR Can't find process with command of 'zma -m 1' zmdc.pl
2013-10-05 14:33:14.351600 zmdc 9157 WAR Can't find process with command of 'zmtrack.pl -m 1' zmdc.pl

The socket_sendto error is VERY common, but suggestions have not worked out yet... Beats me!

"libjpeg-turbo is required for JPEG encoding directly from RGB32 source" -> I wonder about this one... I have libjpeg installed (with the official distro package, compiled on my server where ZM is running) but somehow, ZM doesnt detect it and complains.... Googling hasnt been too helpful on this one. Any ideas?

"Unable to send stream frame: Success" Success but tagged as ERR ? Should I worry about this?

"Can't find process with command of" These are tagged as warnings but annoy me to the point where Id like to see them fixed.. What are they?!

Switching to Modetect mode, the logs contain (for now) nothing urgent or worrysome (only a few yellow warnings)

Any pointers are greatly appreciated!! Especially on the "Can't find process with command of " & "socket_sendto" errors..

Thanks!

User avatar
knight-of-ni
Posts: 2353
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: New install (1.26.3) on Slackware building but not runni

Post by knight-of-ni » Sat Oct 05, 2013 7:08 pm

It's not a bug.
Zoneminder 1.26.x requires libjpeg-turbo, not the standard libjpeg library.
You will have to find a Slackware source for this library. You can get an rpm off sourceforge, but it puts it into a non-standard folder (you would have to override the library path to make sure .configure finds libjpeg-turbo and not libjpeg).

The socket sendto errors are caused by zms not being executed/found. That often means an httpd config problem. Recommend you look in the Wiki for a Slackware install guide. Even if it is for an older version, the httpd config should still apply.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/

lpallard
Posts: 85
Joined: Fri Mar 05, 2010 10:59 pm

Re: New install (1.26.3) on Slackware building but not runni

Post by lpallard » Sun Oct 06, 2013 2:48 pm

OK I figured out the libjpeg-turbo issue... Had to recompile ZM from scratch and reinstall it.. Strange though because if I am not mistaken, libjpeg-turbo is part of a full slackware install. Anyways, it was installed prior to installing ZM for the first time so it should have detected it.

The socket_sendto errors are somehow still popping up but much much less often than before... I believe you are right with the Apache misconfig. Ive modified the httpd.conf properly and I no longer see these errors on a continuous basis..

Now to the next issues, the application seems to be OK processing, capturing and what not until there is suddenly a torrent of these errors in the logs:

Socket closed at remote end
Can't connect to frame server: Connection refused
Only read 223960 bytes of 527548
Incomplete frame write: 224000 of 527588 bytes written
Frame server socket open, awaiting images
Can't connect to frame server: Connection refused
Socket closed at remote end
Can't connect to frame server: Connection refused
Only read 223960 bytes of 527233
Incomplete frame write: 224000 of 527273 bytes written
Frame server socket open, awaiting images
Can't connect to frame server: Connection refused
Socket closed at remote end
Can't connect to frame server: Connection refused
Only read 223960 bytes of 530254
Incomplete frame write: 224000 of 530294 bytes written

The "Socket closed at remote end" makes me believe ZM is trying to tell me that it has issues connecting to the camera. I started having these issues after I did a firmware upgrade on the TV-IP572PI but took the necessary steps and precautions to restore the config exactly as before with the factory frmware. Using VLC, I can stream the camera perfectly.

User avatar
knight-of-ni
Posts: 2353
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: New install (1.26.3) on Slackware building but not runni

Post by knight-of-ni » Sun Oct 06, 2013 4:48 pm

You're making progress. Looks like the toughest part is behind you.

My guess is that the frameserver isn't keeping up, possibly due to insufficient hardware resources (recall previous note about lowering your frame rate).

You could also try to disabling the frameserver altogether under options. Not sure if the frameserver is even needed any-more these days.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/

lpallard
Posts: 85
Joined: Fri Mar 05, 2010 10:59 pm

Re: New install (1.26.3) on Slackware building but not runni

Post by lpallard » Sun Oct 06, 2013 5:26 pm

"My guess is that the frameserver isn't keeping up, possibly due to insufficient hardware resources "

Possible, but why would that be? I have a dual Opteron 6 Cores (total 12 cores) at 3.4GHz with 64GB RAM DDR3 1600, caching and temp folders for ZM are on a fast SSD...

Right now, the framerate is set at 15FPS in the camera's webconfigurator

"Monitor-1: 11000 - Processing at 15.15 fps
Monitor-1: 119000 - Capturing at 15.15 fps
Monitor-1: 10000 - Processing at 14.93 fps
Monitor-1: 118000 - Capturing at 14.93 fps
Monitor-1: 9000 - Processing at 13.70 fps
Monitor-1: 117000 - Capturing at 14.93 fps
Monitor-1: 8413 - Closing event 332, alarm end
Monitor-1: 8413 - Left alarm state (332) - 102(2) images"

Ill try disabling the frameserver in the options and see if it helps.

The experience right now is sluggish.. There are numerous minor issues that are making my install of ZM unreliable for 24/7 surveillance.

I think I will try fixing the install up to the point where it works, then fine tune it to eliminate these anoyances ..

Thanks knnniggett !! Your help is very appreciated!

lpallard
Posts: 85
Joined: Fri Mar 05, 2010 10:59 pm

Re: New install (1.26.3) on Slackware building but not runni

Post by lpallard » Mon Oct 07, 2013 11:04 pm

Some more findings after a day fiddling with ZM:

1. On slackware64-14.0, ZM doesnt detect libjpeg-turbo.. period. I recompiled it manually (ver. 1.2.0), to no avail. when I select 32bit color in the source's config page, I get no real time playback, and I get

"libjpeg-turbo is required for JPEG encoding directly from RGB32 source"

in the logs.... I recompiled ZM but it doesnt help.

2. With 15FPS at 2Mbps (CBR) settings at the camera's level, the streams generated from the events are useless... FPS is way too low to make zoneminder a reliable surveillance system. I walked in front of the camera 4 times in 2 minutes and the system created only 2 events out of the 4 that it should have created. On these 2 events, my face is barely recognizable because the picture is blurry (low FPS) or whatever else..

3. Setting the playback (real time monitor) to mpeg instead of jpeg, I get a blank screen and a boatload of crashes in the logs:

getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-405304s.sock ) failed: Connection refused - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-405304s.sock ) failed: Connection refused
socket_sendto( /var/run/zm/zms-405304s.sock ) failed: Connection refused
Monitor-1: 21000 - Processing at 19.61 fps
Monitor-1: 21000 - Capturing at 19.61 fps
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-405304s.sock ) failed: Connection refused - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-405304s.sock ) failed: Connection refused
socket_sendto( /var/run/zm/zms-405304s.sock ) failed: Connection refused
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-405304s.sock ) failed: Connection refused - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-405304s.sock ) failed: Connection refused
socket_sendto( /var/run/zm/zms-405304s.sock ) failed: Connection refused
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-405304s.sock ) failed: Connection refused - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-405304s.sock ) failed: Connection refused
socket_sendto( /var/run/zm/zms-405304s.sock ) failed: Connection refused
Monitor-1: 20000 - Processing at 20.00 fps
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-405304s.sock ) failed: Connection refused - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-405304s.sock ) failed: Connection refused
socket_sendto( /var/run/zm/zms-405304s.sock ) failed: Connection refused
Monitor-1: 20000 - Capturing at 20.00 fps
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-405304s.sock ) failed: Connection refused - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-405304s.sock ) failed: Connection refused
addr2line -e /srv/httpd/cgi-bin/nph-zms() 0x7fd29ec0f4e0 0x7fd2a13bd747 0x7fd2a146f06b 0x7fd2a14205d9 0x4796a8 0x46f2a1 0x470029 0x4072d3 0x7fd29d929a95 0x407b8d
Backtrace complete, please execute the following command for more information
Backtrace: /srv/httpd/cgi-bin/nph-zms() [0x407b8d]
Backtrace: /lib64/libc.so.6(__libc_start_main+0xf5) [0x7fd29d929a95]
Backtrace: /srv/httpd/cgi-bin/nph-zms() [0x4072d3]
Backtrace: /srv/httpd/cgi-bin/nph-zms() [0x470029]
Backtrace: /srv/httpd/cgi-bin/nph-zms() [0x46f2a1]
Backtrace: /srv/httpd/cgi-bin/nph-zms() [0x4796a8]
Backtrace: /usr/lib64/libavformat.so.54(avformat_write_header+0x3c9) [0x7fd2a14205d9]
Backtrace: /usr/lib64/libavformat.so.54(+0xef06b) [0x7fd2a146f06b]
Backtrace: /usr/lib64/libavformat.so.54(avio_write+0x17) [0x7fd2a13bd747]
Backtrace: /lib64/libpthread.so.0(+0xf4e0) [0x7fd29ec0f4e0]
Signal address is 0x10206, no eip
Got signal 11 (Segmentation fault), crashing
Authenticated user 'admin'
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-405304s.sock ) failed: Connection refused - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-405304s.sock ) failed: Connection refused
addr2line -e /srv/httpd/cgi-bin/nph-zms() 0x7f8eb8e274e0 0x7f8ebb5d5747 0x7f8ebb68706b 0x7f8ebb6385d9 0x4796a8 0x46f2a1 0x470029 0x4072d3 0x7f8eb7b41a95 0x407b8d
Backtrace complete, please execute the following command for more information
Backtrace: /srv/httpd/cgi-bin/nph-zms() [0x407b8d]
Backtrace: /lib64/libc.so.6(__libc_start_main+0xf5) [0x7f8eb7b41a95]
Backtrace: /srv/httpd/cgi-bin/nph-zms() [0x4072d3]
Backtrace: /srv/httpd/cgi-bin/nph-zms() [0x470029]
Backtrace: /srv/httpd/cgi-bin/nph-zms() [0x46f2a1]
Backtrace: /srv/httpd/cgi-bin/nph-zms() [0x4796a8]
Backtrace: /usr/lib64/libavformat.so.54(avformat_write_header+0x3c9) [0x7f8ebb6385d9]
Backtrace: /usr/lib64/libavformat.so.54(+0xef06b) [0x7f8ebb68706b]
Backtrace: /usr/lib64/libavformat.so.54(avio_write+0x17) [0x7f8ebb5d5747]
Backtrace: /lib64/libpthread.so.0(+0xf4e0) [0x7f8eb8e274e0]
Signal address is 0x10206, no eip

What next? A real Surveillance system? ;)

lpallard
Posts: 85
Joined: Fri Mar 05, 2010 10:59 pm

Re: New install (1.26.3) on Slackware building but not runni

Post by lpallard » Tue Oct 08, 2013 3:52 am

OK I went ahead and got tempted by others on this forum when they talked about 1.26.4 from the Github page... So far:

Everything feels more "fluid", but I am stuck with a massive problem:

Upon starting the main daemon (zmpkg.pl start), I first got dozens of false alarms (like one every 2 seconds). Upon reviewing the events, I realized that for an unknown reason, ZM was detecting a change in the picture big enough to deserve an event recognition. Most of these changes were actually glitches in the camera stream like the picture suddenly moving to the right... I rebooted the camera and this issue got away.

Then, I went to the logs and saw this:

Mezzanine: 4000 - Processing at 90.91 fps
Buffer overrun at index 170, image 570, slow down capture, speed up analysis or increase ring buffer size
Buffer overrun at index 165, image 565, slow down capture, speed up analysis or increase ring buffer size
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
Mezzanine: 3000 - Processing at 83.33 fps
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
Buffer overrun at index 109, image 309, slow down capture, speed up analysis or increase ring buffer size
getCmdResponse stream error: Timed out waiting for msg - checkStreamForErrors()
Timed out waiting for msg
Buffer overrun at index 44, image 244, slow down capture, speed up analysis or increase ring buffer size
Mezzanine: 2000 - Processing at 33.33 fps
Mezzanine: 1432 - Closing event 30, alarm end
Mezzanine: 1432 - Left alarm state (30) - 94(26) images
Mezzanine: 1397 - Gone into alert state
Mezzanine: 1394 - Gone back into alarm state
Mezzanine: 1389 - Gone into alert state
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
Mezzanine: 1388 - Gone back into alarm state
Mezzanine: 1368 - Gone into alert state
Buffer overrun at index 145, image 1345, slow down capture, speed up analysis or increase ring buffer size
Mezzanine: 1351 - Gone back into alarm state
Mezzanine: 1344 - Gone into alert state
Mezzanine: 1331 - Gone back into alarm state
Mezzanine: 1301 - Gone into alert state
Mezzanine: 1286 - Opening new event 30, alarm start
Event 30 has zero time, setting to current
Mezzanine: 1286 - Gone into alarm state

90 frames per second??? The camera settings are as the attached picture
[attachment=0]ISS12.jpg[/attachment]

I tried increasing the "ring buffer" as the error message suggests, no avail..

All I can tell for now:

Event detection is null. I walk in front of the camera, someone sitting at the computer tells me that I am on the stream, but ZM doesnt generate an event
False events are created because of numerous underlying problems (ffmpeg, apache, what not,.....)
The application issues thousands of error messages per minute (see below what was generated in about 30seconds
I cannot use zoneminder as it is.

Someone having issues like this as well???

getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory
Mezzanine: 5000 - Processing at 100.00 fps
Mezzanine: 22000 - Processing at 100.00 fps
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory
Mezzanine: 3000 - Capturing at 8.55 fps
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
Mezzanine: 4000 - Processing at 83.33 fps
Mezzanine: 21000 - Processing at 83.33 fps
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
Mezzanine: 3000 - Processing at 111.11 fps
Mezzanine: 20000 - Processing at 111.11 fps
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
Mezzanine: 19000 - Processing at 111.11 fps
Mezzanine: 2000 - Processing at 111.11 fps
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory
Mezzanine: 18000 - Processing at 111.11 fps
Mezzanine: 1000 - Processing at 111.11 fps
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
Mezzanine: 17000 - Processing at 125.00 fps
In mode 3/1, warming up
'zma -m 1' started at 13/10/07 23:56:28
'zma -m 1' starting at 13/10/07 23:56:28, pid = 20927
Starting pending process, zma -m 1
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory
Mezzanine: 16000 - Processing at 100.00 fps
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory
Mezzanine: 15000 - Processing at 111.11 fps
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory
Mezzanine: 14000 - Processing at 111.11 fps
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
Mezzanine: 13000 - Processing at 111.11 fps
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory
Mezzanine: 1000 - Capturing at 8.40 fps
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory
Mezzanine: 12000 - Processing at 111.11 fps
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
Mezzanine: 11000 - Processing at 111.11 fps
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory
Mezzanine: 10000 - Processing at 100.00 fps
Buffer overrun at index 1, image 801, slow down capture, speed up analysis or increase ring buffer size
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
Buffer overrun at index 137, image 737, slow down capture, speed up analysis or increase ring buffer size
Mezzanine: 9000 - Processing at 111.11 fps
Mezzanine: 2000 - Capturing at 8.47 fps
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory - checkStreamForErrors()
socket_sendto( /var/run/zm/zms-092226s.sock ) failed: No such file or directory
Mezzanine: 8000 - Processing at 100.00 fps
Approaching buffer overrun, consider slowing capture, simplifying analysis or increasing ring buffer size
Attachments
ISS12.jpg
ISS12.jpg (92.93 KiB) Viewed 5570 times

lpallard
Posts: 85
Joined: Fri Mar 05, 2010 10:59 pm

Re: New install (1.26.3) on Slackware building but not runni

Post by lpallard » Thu Oct 10, 2013 4:33 pm

I think the best course of action for me will be to do a clean sweep(recompile with proper flags and options) both ffmpeg and zm, and reinstall them, and retry.

I realize that I experienced different issues. Perhaps it would be better to start using the github bug report feature to report my issues?!

lpallard
Posts: 85
Joined: Fri Mar 05, 2010 10:59 pm

Re: New install (1.26.3) on Slackware building but not runni

Post by lpallard » Tue Oct 29, 2013 3:03 am

This topic is now closed as far as I am concerned. ZM now works on my slackware box.

The key element to remember was: install and compile everything from scratch using the latest releases....

Configure command for ZM was:

CFLAGS="-g -Ofast -march=???? -mtune=????" CXXFLAGS="-D__STDC_CONSTANT_MACROS -g -Ofast -march=???? -mtune=????" ./configure --with-ffmpeg=/usr/bin/ --with-webdir=/var/www/htdocs/zm --with-cgidir=/var/www/cgi-bin --enable-mmap=yes ZM_DB_USER=???? ZM_DB_PASS=???? ZM_DB_NAME=???? --with-libarch=/usr/lib64 --with-webuser=apache --with-webgroup=apache --disable-debug --disable-crashtrace --with-extralibs="-lfreetype -lmp3lame -lopenjpeg -lrtmp -lspeex -ltheora -lvorbis -lvorbisenc -lx264 -lfaac -lgsm -lopenjpeg -lv4l2"

ffmpeg was compiled using the standard slackware slackbuilds way using AlienBob's ffmpeg slackbuilds script modified to use the latest ffmpeg tarball.

I also had to make sure that libjpeg-turbo was compiled with the "PREFIX=/usr" flag so ZM detects it during configure step.

Other than that, I think this is it!

I have an average load of 0.28 to 0.35 with an IP camera set at 1280x800 at 30fps and using 4Mbps CBR compression. Other than some remaining bugs and a few showstoppers that still are to be fixed, ZZM seems to be happy! :)

nuck
Posts: 148
Joined: Tue Nov 11, 2008 1:43 am
Location: Canada

Re: New install (1.26.3) on Slackware building but not runni

Post by nuck » Fri Nov 01, 2013 8:13 am

I'm about to embark on a Slackware-14 build and will be picking the brains of others wherever I can. Can you (lpallard) shed any light on which base packages need to be upgraded, as well as added?

lpallard - Would you be so good as to do a Slackware-14 how-to for the wiki? I will if you don't. heh heh.

Any help appreciated.

lpallard
Posts: 85
Joined: Fri Mar 05, 2010 10:59 pm

Re: New install (1.26.3) on Slackware building but not runni

Post by lpallard » Fri Nov 01, 2013 1:57 pm

I am more than willing to write a Howto for slack14 but right now my time is very limited.... Post your questions and if my help is useful, we can work together to write a complete how to?

hows' that?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest