zoneminder нет картинки
Есть пробелема. версия zoneminder 1.25
При попытке просмотреть изображение с камеры вместо картинки - крестик.
Jan 31 21:12:11 kzban zmwatch[16075]: ERR [Can't get shared memory id '7a6d0002', 2: Нет такого файла или каталога]
Jan 31 21:12:16 kzban zma_m2[16177]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Jan 31 21:12:16 kzban zmc_m2[16180]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Jan 31 21:12:16 kzban zmdc[16005]: ERR ['zma -m 2' exited abnormally, exit status 255]
Jan 31 21:12:16 kzban zmdc[16005]: ERR ['zmc -m 2' exited abnormally, exit status 255]
Jan 31 21:12:21 kzban zmwatch[16075]: ERR [Can't get shared memory id '7a6d0002', 2: Нет такого файла или каталога]
пути к CGI проверял
/etc/sysctl.conf
kernel.shmall = 134217728
kernel.shmmax = 134217728
в /usr/bin/zmdc.pl
$ENV{LD_PRELOAD} = '/usr/lib/libv4l/v4l1compat.so';
$ENV{LD_PRELOAD} = '/usr/lib/libv4l/v4l2convert.so';
настройка apache
ScriptAlias /cgi-bin/zms "/var/www/zoneminder/cgi-bin/zms"
ScriptAlias /cgi-bin/nph-zms "/var/www/zoneminder/cgi-bin/nph-zms"
AllowOverride All
Options ExecCGI
Order allow,deny
Allow from all
Alias /zoneminder "/var/www/zoneminder/htdocs"
Options -Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
#
DocumentRoot "/var/www/zoneminder/htdocs"
ServerName zoneminder.ru
ServerAlias zoneminder.ru
AssignUserID apache apache
ErrorLog "/var/www/zoneminder/log/zoneminder.ru-error.log"
CustomLog "/var/www/zoneminder/log/zoneminder.ru-access.log" combined
авторизация отключена.
Насколько мне известно если проблема с получением картинке то должна быть просто синяя картинка.
Уже третий день бьюсь все бестолку.
- Для комментирования войдите или зарегистрируйтесь
:)
Попробуй в /etc/sysctl.conf добавить
и потом
Если не пойдет - пробуй увеличивать еще.
emerge --info, please
emerge --info, please
and command output :
emerge -av zoneminder
Compute:
Bosch M2.8.1 -> custom Bosch M2.8.3 clone from Russia.
Speed about 260 km,Ram 2 pers.,HDD - 70 kg,210 FLOPS ;)
Portage 2.1.10.41
Portage 2.1.10.41 (default/linux/amd64/10.0, gcc-4.4.5, glibc-2.12.2-r0, 2.6.38-gentoo-r6 x86_64)
=================================================================
System uname:
Timestamp of tree: Fri, 20 Jan 2012 07:45:01 +0000
app-shells/bash: 4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python: 2.7.1-r1, 3.1.3-r1
dev-util/cmake: 2.8.4-r1
dev-util/pkgconfig: 0.25-r2
sys-apps/baselayout: 2.1
sys-apps/openrc: 0.8.2-r1
sys-apps/sandbox: 2.4
sys-devel/autoconf: 2.13, 2.65-r1
sys-devel/automake: 1.11.1
sys-devel/binutils: 2.21.1-r1
sys-devel/gcc: 4.4.5, 4.5.3-r1
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool: 2.2.10
sys-devel/make: 3.82-r1
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc: 2.12.2
Repositories: gentoo vdr-testing vdr-devel zugaina
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -mtune=nocona -march=nocona -msse3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -mtune=nocona -march=nocona -msse3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans"
FFLAGS=""
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.mneisen.org/ "
LANG="ru_RU.utf-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru en"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/vdr-testing /var/lib/layman/vdr-devel /var/lib/layman/zugaina"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl amd64 automount berkdb bzip2 cdr cli consolekit cracklib crypt cups cxx dbus djvu dri dvd dvdr fortran gdbm gnome gpm gtk hal iconv ipv6 jpeg kerberos ldap lzma mmx modules mudflap multilib nautilus ncurses nls nptl nptlonly opengl openmp pam pcre pppd raw readline session sse sse2 sse3 sse4 ssl sysfs tcpd tiff tls unicode xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="itk" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
[ebuild R ~] www-misc/zoneminder-1.25.0 USE="ffmpeg -debug -mmap" 0 kB [1]
Total: 1 package (1 reinstall), Size of downloads: 0 kB
Portage tree and overlays:
[0] /usr/portage
[1] /var/lib/layman/zugaina
sysctl крутил по разному,
sysctl крутил по разному, бесполезно. Да и написал про него в первом посте.
Feb 1 13:38:34 kzban
Feb 1 13:38:34 kzban zmwatch[14552]: ERR [Can't get shared memory id '7a6d0002', 2: Нет такого файла или каталога]
Feb 1 13:38:35 kzban zms[15014]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results]
Feb 1 13:38:37 kzban zmu[15019]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results]
Feb 1 13:38:37 kzban zmu[15022]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results]
Feb 1 13:38:40 kzban zms[15031]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results]
Feb 1 13:38:40 kzban zmu[15036]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results]
Feb 1 13:38:40 kzban zmu[15039]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results]
Feb 1 13:38:40 kzban zmc_m2[15025]: INF [Starting Capture]
Feb 1 13:38:41 kzban zmc_m2[15025]: ERR [Unsupported media type 'application' in SDP media attribute 'application 0 RTP/AVP 107']
Feb 1 13:38:50 kzban zmc_m2[15025]: FAT [No RTSP sources]
Feb 1 13:38:50 kzban zmdc[14501]: ERR ['zmc -m 2' exited abnormally, exit status 255]
Feb 1 13:38:52 kzban zmu[15075]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results]
Feb 1 13:38:54 kzban zmwatch[14552]: ERR [Can't get shared memory id '7a6d0002', 2: Нет такого файла или каталога]
Feb 1 13:38:55 kzban zms[15078]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results]
Feb 1 13:38:55 kzban zmu[15083]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results]
после значительно увелечения и правки fstab none /dev/shm tmpfs size=16G 0 0 (спасибо за помошь другу) появился черный квадрат малевича. а в логах выше приведенная хорень. Ну что ему еще не нравится? То что поток есть я проверял с помошью vlc. если выставлять большее разрешение чем 640*480 (камера подключена HD) то опять крести. Как лечить?
эта шляпа вроде разгреблась.
эта шляпа вроде разгреблась. Появилась новая уже проблема с подключением камеры а может и в ZM. В общем такой вот лог.
Feb 7 11:41:45 kzban zmc_m2[25132]: ERR [Unsupported media type 'application' in SDP media attribute 'application 0 RTP/AVP 107']
Feb 7 11:41:54 kzban zmc_m2[25132]: FAT [No RTSP sources]
Feb 7 11:41:54 kzban zmdc[22658]: ERR ['zmc -m 2' exited abnormally, exit status 255]
Feb 7 11:51:54 kzban zmc_m2[25178]: INF [Starting Capture]
Feb 7 11:51:55 kzban zmc_m2[25178]: ERR [Unsupported media type 'application' in SDP media attribute 'application 0 RTP/AVP 107']
Feb 7 11:52:04 kzban zmc_m2[25178]: FAT [No RTSP sources]
Feb 7 11:52:04 kzban zmdc[22658]: ERR ['zmc -m 2' exited abnormally, exit status 255]
Feb 7 12:02:04 kzban zmc_m2[25224]: INF [Starting Capture]
Feb 7 12:02:05 kzban zmc_m2[25224]: ERR [Unsupported media type 'application' in SDP media attribute 'application 0 RTP/AVP 107']
Даёш каждой новой шляпе по
Даёш каждой новой шляпе по теме!
И еще бы пояснить, как первая
И еще бы пояснить, как первая решилась... ;)