Fresh install of 1.22.2 gives perminent login screen

Support and queries relating to all previous versions of ZoneMinder
johnnyzone
Posts: 5
Joined: Thu Mar 02, 2006 2:11 pm
Location: UK

Fresh install of 1.22.2 gives perminent login screen

Post 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
Last edited by johnnyzone on Sun May 28, 2006 12:01 am, edited 1 time in total.
ko2610
Posts: 2
Joined: Sun Mar 26, 2006 4:19 pm
Location: Tuusula, Finland

Post by ko2610 »

Change ZM_OPT_USE_AUTH to 1 and login as admin. Worked for me.
Hogface
Posts: 70
Joined: Wed Oct 05, 2005 1:52 am
Location: Arkansas

Post by Hogface »

I am having the same problem with the defaults.
How do you change that?
Greg
Hogface
Posts: 70
Joined: Wed Oct 05, 2005 1:52 am
Location: Arkansas

Post by Hogface »

Got it...changing ZM_OPT_USE_AUTH in db/zm_create.sql prior to make fixed the problem.
Greg
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post 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
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

yeah i found that too, i wondered what all the fuss was about but then i never run without auth
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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" :
Phil
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

Nice one i suppose this would make my status work without auth for devel too?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Ah yes. It's all becoming clearer now :lol:
Phil
Baylink
Posts: 338
Joined: Sun Jun 19, 2005 3:19 am

Post 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...
Baylink
Posts: 338
Joined: Sun Jun 19, 2005 3:19 am

Post 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?)
Baylink
Posts: 338
Joined: Sun Jun 19, 2005 3:19 am

Post 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.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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.
Phil
federom
Posts: 12
Joined: Mon May 08, 2006 4:15 pm

user admin

Post by federom »

After the patch i have the problem that always log in as admin and it is impossible to logoff , any ideas ?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post 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?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Locked