after emerge of zoneminder, trying to login gives me a login but always comes back to login page. Reproducible: Always Steps to Reproduce: 1.emerge zoneminder-1.21.3 2.setup db 3.login at http://localhost/zoneminder/zm.php Actual Results: loop on login page Expected Results: log in the system Gentoo Base System version 1.6.13 Portage 2.0.51.22-r2 (default-linux/x86, gcc-3.3.6, glibc-2.3.5-r1, 2.6.12-gentoo-r9 i686) ================================================================= System uname: 2.6.12-gentoo-r9 i686 AMD Athlon(tm) XP 2600+ distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.5-r2 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe -fforce-addr" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe -fforce-addr" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_US.utf8" LC_ALL="en_US.utf8" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://192.168.111.253/gentoo-portage" USE="x86 3dfx 3dnow X alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts bluetooth bzip2 crypt cups curl eds emboss encode escreen esd evo fam flac foomaticdb fortran gd gd-external gdbm gif gnome gpm gstreamer gtk gtk2 guile imagemagick imlib ipv6 java jpeg junit kde kqemu ldap libg++ libwww mad mikmod mmx motif mozilla mp3 mpeg mysql nas ncurses nls nmap nntp nptl nptlonly ogg oggvorbis opengl oss pam pda pdflib perl png python qt quicktime readline real rtc samba sdl smartcard spell sse ssl tcltk tcpd theora tiff truetype truetype-fonts type1-fonts unicode v4l v4l2 vorbis wxgtk1 xinerama xml2 xmms xprint xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS
Chris, I vaguely recall your having a similar problem. Any thougths?
This problem is caused by zmconfig -noi failing to import the datas into the database, because it isn't created at the point it's running. Solution : the zmconfig -noi has to be run AFTER the database is created, in case of a new install. I suggest that the zmconfig -noi part should be left to be done by hand by the user. This worked for me on the two computers i tested it. I'll propose a corrected ebuild soon.
Created attachment 70648 [details] zoneminder-0.96.ebuild
Created attachment 70649 [details] postinstall.txt With the ebuild provided, datas are now correctly imported into the Config table. There's still a problem : zoneminder doesn't start (from the 'Run State window, if i choose 'Start' and apply, Status is still stopped). I you run 'zmpkg.pl start', you get this in /var/log/zoneminder : Command: start Executing: su apache --shell=/bin/sh --command='/usr/bin/zmdc.pl check' su: Authentication service cannot retrieve authentication info. Work in progress :)
Comment on attachment 70648 [details] zoneminder-0.96.ebuild Zoneminder ebuild, which correctly import the datas into the Config table (and fixes the login loop).
this 'Authentication service cannot retrieve authentication info.' is caused by shadow, just run 'pwconv' if it occurs to you and it should be fixed. Anyhow, after that, zoneminder still wasn't able to start, because apache didn't had write access to /var/log/zoneminder, so the various zm*.pl weren't able to write their logs there. Quick fix : chown apache:apache /var/log/zoneminder. I'll post a corrected ebuild soon.
Comment on attachment 70649 [details] postinstall.txt Updated post-install instructions, according to attachment #70648 [details]
Created attachment 70659 [details] zoneminder-1.21.3.ebuild This ebuild is working for me. 2 things : - i made a typo on the previous ebuild i posted, on the version number, as you may have noticed :) - i'm unable to have 'diropts -o apache -g apache' to work. so the log directory owner is still root. I really don't know what's wrong there, if anybody knows.. anyhow, i added -m 777 so that the apache owner can write to the log dir. I know, it's ulgy... :)
I had this problem after upgrading to PHP 5 - I couldn't find the cause but upgrading to the new ZoneMinder 1.21.4 (which apparently includes support for PHP 4.4) fixed it.
1.21.4 with fixes is in CVS, please test