Logout after Login (can't enter the zm site)

Support and queries relating to all previous versions of ZoneMinder
peetr04
Posts: 5
Joined: Tue May 09, 2006 2:39 pm

Logout after Login (can't enter the zm site)

Post by peetr04 »

Hello!
I installed over debian this software. On first run it was no problem i login with admin user admin pass to zm. I setup my cameras and i was happy to see it works fine. Later (1 hour) i want to login to zm but when is put the default password admin for admin user the screen changes to Logging In but after appear again the login screen. If i put other password than the correct admin. Doesnt happening. I think the password and username is ok and let in but after find something intresting and drop me out.

???

Somebody has any idea?

Thanks:
Peter
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Have you tried closing your browser and then restarting it and trying again?
Phil
peetr04
Posts: 5
Joined: Tue May 09, 2006 2:39 pm

Post by peetr04 »

zoneminder wrote:Have you tried closing your browser and then restarting it and trying again?
Hello! Yes of course! And I tryd from different machine from different location. But same. And now its all ok. I dont now why now i can login and use. :)

Thanks.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Perhaps you changed one of the auth options and didn't restart zm so that all the processes shared the same settings.

Regards,
Corey
DiegoLima
Posts: 11
Joined: Thu May 11, 2006 5:00 pm
Location: Santos, SP - Brazil
Contact:

Post by DiegoLima »

Hello,

I am experiencing the same thing (I get the login screen, try to login as admin/admin, get the "signing in" message and then get returned to the login screen). I have already restarted my computer but I still have this error.

Could it be some php configuration? I'm using Ubuntu's default php5 configuration (can be checked here if anyone wants to) and also apache's default config.

Thanks!
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

What errors do you have in your apache error_log?

Regards,
Corey
DiegoLima
Posts: 11
Joined: Thu May 11, 2006 5:00 pm
Location: Santos, SP - Brazil
Contact:

Post by DiegoLima »

Code: Select all

[Thu May 11 02:52:53 2006] [error] [client 201.31.242.124] File does not exist: /var/www/robots.txt
[Thu May 11 13:57:35 2006] [error] [client 201.31.242.124] File does not exist: /var/www/zm/index.php&username=admin&password=admin
[Thu May 11 14:08:50 2006] [notice] caught SIGTERM, shutting down
[Thu May 11 14:10:29 2006] [warn] RSA server certificate CommonName (CN) `sg.homelinux.com' does NOT match server name!?
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20051025/mssql.so' - /usr/lib/php5/20051025/mssql.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Thu May 11 14:10:32 2006] [warn] RSA server certificate CommonName (CN) `sg.homelinux.com' does NOT match server name!?
[Thu May 11 14:10:32 2006] [notice] Apache/2.0.55 (Ubuntu) PHP/5.1.2-1ubuntu2 mod_ssl/2.0.55 OpenSSL/0.9.8a configured -- resuming normal operations
[Thu May 11 14:11:22 2006] [error] [client 201.31.242.124] File does not exist: /var/www/robots.txt
This is followed by a lot of /var/www/robots.txt errors, although I just tried to login and no new error messages get logged. The MSSQL error should be concerned another configuration and not zm (as far as I know).

Btw, you can try to login and see exactly what happens here. Thanks!
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

DiegoLima wrote:

Code: Select all

[Thu May 11 13:57:35 2006] [error] [client 201.31.242.124] File does not exist: /var/www/zm/index.php&username=admin&password=admin
This would be a concern. It looks to me that you have set the whole path from the root of the system insted of from the root of the web is one thought that comes to mind.
Check and make sure index.php link exists or try to use zm.php (were the link should point to) in place (http://<your_ip>/zm/zm.php).
DiegoLima wrote: Btw, you can try to login and see exactly what happens here. Thanks!
You must have something not set correctly as none of your links are functioning but then again I'm behind a ISA firewall so that could be just me.

Regards,
Corey
DiegoLima
Posts: 11
Joined: Thu May 11, 2006 5:00 pm
Location: Santos, SP - Brazil
Contact:

Post by DiegoLima »

Hello again,

That file does exist. The error is because I mistyped the url once (if you notice, it should be "index.php?&username=admin&password=admin") so I got that particular error on the error log.

By typing http://127.0.0.1/zm/zm.php (or the address I posted here) I get the same login screen. The files are located on my "/home/MyUser/public_html/zm/" and my "/var/www" is just a symbolic link to "/home/MyUser/public_html". The owner of all files and subdirectories are www-data and have read access to everything.

The url for my page is:
http://sg.homelinux.com:81/zm/

If your firewall is blocking http connection to non-standard ports that could be it. Alternatively, you can try to see my php configuration using this link. It's a web proxy that should work.

Anyway... Any ideas as to what could be happening? Both index.php and zm.php exist and are readable by all users.

Edit: Is there any way I can tell zm not to authenticate the user? I don't really need authentication on this machine, and for now it would be more important to be able to test zm.
DiegoLima
Posts: 11
Joined: Thu May 11, 2006 5:00 pm
Location: Santos, SP - Brazil
Contact:

Post by DiegoLima »

Just to add some info:
MySQL tables are in the right places, and I tried turning on global variables, but still no results :(
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

DiegoLima wrote:

Code: Select all

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20051025/mssql.so' - /usr/lib/php5/20051025/mssql.so: cannot open shared object file: No such file or directory in Unknown on line 0
This looks like the most obvious issue in the log. It implies that you don't have a valid mysql/php runtime library. Unfortunately I can't say for sure how to fix it but check you have php built with mysql support and you have the php-mysql libraries installed.
Phil
DiegoLima
Posts: 11
Joined: Thu May 11, 2006 5:00 pm
Location: Santos, SP - Brazil
Contact:

Post by DiegoLima »

zoneminder wrote: This looks like the most obvious issue in the log. It implies that you don't have a valid mysql/php runtime library. Unfortunately I can't say for sure how to fix it but check you have php built with mysql support and you have the php-mysql libraries installed.
That issue has been already resolved, but it didn't have anything to do with the problem. If you look carefully, that was a missing MSSQL library that I had manually included in my config to work with remote mssql databases. The error happened because that file simply did not exist in my computer (and probably never will, since I can connect with mssql using sybase.so :P) even after I modifed the configuration files.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

So, to summarise. You are not getting any errors in your logs but just are not able to log in?

Do you know what version of mysql you have?
Phil
DiegoLima
Posts: 11
Joined: Thu May 11, 2006 5:00 pm
Location: Santos, SP - Brazil
Contact:

Post by DiegoLima »

zoneminder wrote:So, to summarise. You are not getting any errors in your logs but just are not able to log in?

Do you know what version of mysql you have?
Basically, yes, no errors logged whatsoever... My MySQL version is 5.0.21 (5.0.21-Debian_3-log) and I've checked the databases and there is a ZM database along with its tables. So I don't think it is the mysql, is it?
Hogface
Posts: 70
Joined: Wed Oct 05, 2005 1:52 am
Location: Arkansas

Post by Hogface »

Check to see if you have free drive space on your data volume...with a df command.
________
Kawasaki MT1
Last edited by Hogface on Thu Feb 03, 2011 1:12 pm, edited 1 time in total.
Locked