Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106913 - zoneminder-1.21.3 - zonebuilder login loop
Summary: zoneminder-1.21.3 - zonebuilder login loop
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-22 12:17 UTC by Pierre Cassimans
Modified: 2006-01-05 15:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
zoneminder-0.96.ebuild (zoneminder-1.21.3.ebuild,1.68 KB, application/octet-stream)
2005-10-14 03:11 UTC, KaZeR
Details
postinstall.txt (postinstall.txt,564 bytes, text/plain)
2005-10-14 03:17 UTC, KaZeR
Details
zoneminder-1.21.3.ebuild (zoneminder-1.21.3.ebuild,1.72 KB, text/plain)
2005-10-14 06:58 UTC, KaZeR
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre Cassimans 2005-09-22 12:17:09 UTC
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
Comment 1 Renat Lumpau (RETIRED) gentoo-dev 2005-09-22 15:12:31 UTC
Chris,

I vaguely recall your having a similar problem. Any thougths?
Comment 2 KaZeR 2005-10-14 01:16:13 UTC
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.
Comment 3 KaZeR 2005-10-14 03:11:19 UTC
Created attachment 70648 [details]
zoneminder-0.96.ebuild
Comment 4 KaZeR 2005-10-14 03:17:28 UTC
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 5 KaZeR 2005-10-14 03:29:08 UTC
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).
Comment 6 KaZeR 2005-10-14 05:07:10 UTC
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 7 KaZeR 2005-10-14 05:07:48 UTC
Comment on attachment 70649 [details]
postinstall.txt

Updated post-install instructions, according to attachment #70648 [details]
Comment 8 KaZeR 2005-10-14 06:58:36 UTC
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... :)
Comment 9 Tom Lanyon 2005-11-28 14:59:11 UTC
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.
Comment 10 Renat Lumpau (RETIRED) gentoo-dev 2006-01-05 15:31:10 UTC
1.21.4 with fixes is in CVS, please test