Page 1 of 2

Fresh install of 1.22.2 gives perminent login screen

Posted: Sat May 27, 2006 9:45 pm
by johnnyzone
i have a 1.21.3 Live cd install on which i removed all zm stuff including dropping all tables from DB zm, then downloaded 1.22.2 and followed the fresh install procedures

Code: Select all

./configure --with-webdir=/var/www/html/zm/ --with-cgidir=/var/www/cgi-bin/ ZM_DB_NAME=zm ZM_DB_USER=zm_admin ZM_DB_PASS=zaq1xsw2
make
make install
including the

Code: Select all

 mysql zm -p  < db/zm_create.sql
to populate the DB then run

Code: Select all

/home/user/ZoneMinder-1.22.2/scripts/zmpkg.pl start
all appears well but when i try to log in from browser i continually get a login screen, i have restarted both mysql & apache. i notice from the table config that ZM_OPT_USE_AUTH is set to 0 which i assume means don't use authentication, & the documentation says a fresh install will not have auth set, i've been at this for hours & seem to getting nowhere... any help would be apprechiated. i have serched the forum but only find stuff that relates to an older version which had appeared to have had a corrupt database. When i try to login with admin/admin the screen changes briefly to 'logging in' then back to the login screen.
I have since droped all tables removed all stuff from /usr/local/bin & /usr/local/etc and done an install from ZoneMinder-1.22.1... started it and all is good... what have i done wrong.
php=4.3.8 mysql=4.0.2.0

Posted: Sat May 27, 2006 10:21 pm
by ko2610
Change ZM_OPT_USE_AUTH to 1 and login as admin. Worked for me.

Posted: Mon May 29, 2006 4:49 pm
by Hogface
I am having the same problem with the defaults.
How do you change that?

Posted: Mon May 29, 2006 5:10 pm
by Hogface
Got it...changing ZM_OPT_USE_AUTH in db/zm_create.sql prior to make fixed the problem.

Posted: Tue May 30, 2006 2:49 pm
by rdmelin
Phil,
Just bumping this up. 1.22.2 doesnt work with ZM_OPT_USE_AUTH=0 here either. I'm hoping to release a brand new livecd shortly so a patch for this would be great :)

Best regards,
Ross

Posted: Tue May 30, 2006 2:51 pm
by jameswilson
yeah i found that too, i wondered what all the fuss was about but then i never run without auth

Posted: Tue May 30, 2006 3:25 pm
by zoneminder
Found and fixed. It was a cut and forget-to-paste error :oops:

Patch as follows, I will update the gz file for 1.22.2 rather than do a fix release so a few more people may get this but only those that have already downloaded who will have to redownload or apply the patch.

Code: Select all

*** zm_config.php.in    8 May 2006 13:19:50 -0000       1.11
--- zm_config.php.in    30 May 2006 15:18:41 -0000
***************
*** 80,85 ****
--- 80,97 ----
  require_once( 'zm_db.php' );
  loadConfig();
  
+ $default_user = array(
+       "Username"=>"admin",
+       "Password"=>"",
+       "Language"=>"",
+       "Enabled"=>1,
+       "Stream"=>'View',
+       "Events"=>'Edit',
+       "Control"=>'Edit',
+       "Monitors"=>'Edit',
+       "System"=>'Edit',
+ );
+ 
  switch ( $bandwidth )
  {
        case "high" :

Posted: Tue May 30, 2006 3:29 pm
by jameswilson
Nice one i suppose this would make my status work without auth for devel too?

Posted: Tue May 30, 2006 3:32 pm
by zoneminder
Ah yes. It's all becoming clearer now :lol:

Posted: Tue May 30, 2006 3:37 pm
by Baylink
I, too, find myself unable to log in as admin$admin after upgrading 22.1 to 22.2; the size and time on my download (from the primary site) is:

1246760 2006-05-29 06:35

Do I have the bad one?

Running off to apply the patch now...

Posted: Tue May 30, 2006 3:58 pm
by Baylink
and the patch doesn't seem to have worked.

I believe that I still have a misdefined zone:

Code: Select all

May 30 11:52:47 acsi zmdc[12245]: INF [Starting pending process, zma -m 1]
May 30 11:52:47 acsi zmdc[12245]: INF ['zma -m 1' starting at 06/05/30 11:52:47,
 pid = 12310]
May 30 11:52:47 acsi zmdc[12310]: INF ['zma -m 1' started at 06/05/30 11:52:47]
May 30 11:52:47 acsi zma_m1[12310]: INF [Debug Level = 0, Debug Log = <none>]
May 30 11:52:47 acsi zma_m1[12310]: WAR [Waiting for capture daemon]
May 30 11:53:06 acsi last message repeated 19 times
May 30 11:53:07 acsi zmdc[12245]: INF [Starting pending process, zmc -m 1]
May 30 11:53:07 acsi zmdc[12312]: INF ['zmc -m 1' started at 06/05/30 11:53:07]
May 30 11:53:07 acsi zmdc[12245]: INF ['zmc -m 1' starting at 06/05/30 11:53:07,
 pid = 12312]
May 30 11:53:07 acsi zmc_m1[12312]: INF [Debug Level = 0, Debug Log = <none>]
May 30 11:53:07 acsi zma_m1[12310]: FAT [Zone 1/All for monitor Test extends out
side of image dimensions]
May 30 11:53:07 acsi zmdc[12245]: INF ['zma -m 1' crashed, signal 6]
May 30 11:53:07 acsi zmc_m1[12312]: FAT [Zone 1/All for monitor Test extends out
side of image dimensions]
May 30 11:53:07 acsi zmdc[12245]: INF ['zmc -m 1' crashed, signal 6]
Clearly, it can now *identify* the problem.

And as soon as I put the patch in the *right place* (forgot to make install... :-), perhaps I'll be able to fix it. I presume, just delete the monitor and reinstall?

(On a related topic, there's a monitor template for the BL-C10, but I got an internal error trying to use it; was that also caught in .2?)

Posted: Tue May 30, 2006 4:07 pm
by Baylink
Patched running zm_config.php, deleted monitor, recreated, seems to be working fine now.

It just keeps getting better, Phil. Thanks for all the work.

Posted: Tue May 30, 2006 4:19 pm
by zoneminder
I think some zones may have got corrupted in previous updates. This may or may not have caused crashes depending on the exact corruption. However they should all now get caught. Just going to the zone screen and checking and/or updating the coordinates is usually all that is required.

user admin

Posted: Tue May 30, 2006 5:18 pm
by federom
After the patch i have the problem that always log in as admin and it is impossible to logoff , any ideas ?

Posted: Wed May 31, 2006 6:16 pm
by jameswilson
Hi all, basic problem that I assumed i knew how to do, how do i apply a patch. I have tried editing zm_config.php to include the above info but i get a parse error abaout an extra ) if i remove it things go from bad to worse!

Anyway anyone know?