Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 106913
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Web Application Packages Maintainers <web-apps@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Pierre Cassimans <cazzeml@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
zoneminder-1.21.3.ebuild zoneminder-0.96.ebuild application/octet-stream KaZeR 2005-10-14 03:11 0000 1.68 KB Details
postinstall.txt postinstall.txt text/plain KaZeR 2005-10-14 03:17 0000 564 bytes Details
zoneminder-1.21.3.ebuild zoneminder-1.21.3.ebuild text/plain KaZeR 2005-10-14 06:58 0000 1.72 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 106913 depends on: Show dependency tree
Bug 106913 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-09-22 12:17 0000
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 From Renat Lumpau 2005-09-22 15:12:31 0000 -------
Chris,

I vaguely recall your having a similar problem. Any thougths?

------- Comment #2 From KaZeR 2005-10-14 01:16:13 0000 -------
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 From KaZeR 2005-10-14 03:11:19 0000 -------
Created an attachment (id=70648) [details]
Zoneminder ebuild, which correctly import the datas into the Config table (and
fixes the login loop).

------- Comment #4 From KaZeR 2005-10-14 03:17:28 0000 -------
Created an attachment (id=70649) [details]
Updated post-install instructions, according to attachment #70648 [details]

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 From KaZeR 2005-10-14 03:29:08 0000 -------
(From update of attachment 70648 [details])
Zoneminder ebuild, which correctly import the datas into the Config table (and
fixes the login loop).

------- Comment #6 From KaZeR 2005-10-14 05:07:10 0000 -------
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 From KaZeR 2005-10-14 05:07:48 0000 -------
(From update of attachment 70649 [details])
Updated post-install instructions, according to attachment #70648 [details]

------- Comment #8 From KaZeR 2005-10-14 06:58:36 0000 -------
Created an attachment (id=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 From Tom Lanyon 2005-11-28 14:59:11 0000 -------
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 From Renat Lumpau 2006-01-05 15:31:10 0000 -------
1.21.4 with fixes is in CVS, please test

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug