PDA

View Full Version : Problem login page (Testlog web)


neverstop
03-04-2008, 11:51 AM
Hello, i have installed testlog in an Apache web server running CGI. Everything seems to be working well but when i try to log in in the main page of testLog it returns to the same page =/

I read some posts of this forum and i saw that enabling testlog debugger might help and thats what i did. Here is the log erro, sorry i really don't know how to solve this. Anyone to help me in this issue?


08:29:05 - PID: 001560 - loop
08:29:05 - PID: 001560 - Add actions - cur length - 681
08:29:05 - PID: 001560 - CreateBreadCrumbs finished
08:29:05 - PID: 001560 - DisplayLoginPage exit
08:31:03 - PID: 011840 - ReadCookie entry
08:31:03 - PID: 011840 - TestLogTemplate=Default
08:31:03 - PID: 011840 - testlog_SampleDB=tls53C
08:31:03 - PID: 011840 - ReadCookie exit
08:31:03 - PID: 011840 - GenerateSesID start
08:31:03 - PID: 011840 - GenerateSesID end
08:31:03 - PID: 004236 - Session_Start entry
08:31:03 - PID: 004236 - ReadCookie entry
08:31:03 - PID: 004236 - TestLogTemplate=Default
08:31:03 - PID: 004236 - testlog_SampleDB=tls53D
08:31:03 - PID: 004236 - ReadCookie exit
08:31:03 - PID: 004236 - DisplayLoginPage entry
08:31:03 - PID: 004236 - RunGarbageCollection start
08:31:03 - PID: 004236 - RunGarbageCollection end
08:31:03 - PID: 004236 - CreateBreadCrumbs viewtype - database - parent - 0
08:31:03 - PID: 004236 - loop
08:31:03 - PID: 004236 - Add actions - cur length - 681
08:31:03 - PID: 004236 - CreateBreadCrumbs finished
08:31:03 - PID: 004236 - DisplayLoginPage exit
08:31:42 - PID: 011768 - Session_Start entry
08:31:42 - PID: 011768 - ReadCookie entry
08:31:42 - PID: 011768 - TestLogTemplate=Default
08:31:42 - PID: 011768 - testlog_SampleDB=tls53D
08:31:42 - PID: 011768 - ReadCookie exit
08:31:42 - PID: 011768 - File error
08:31:42 - PID: 011768 - DisplayLoginPage entry
08:31:42 - PID: 011768 - RunGarbageCollection start
08:31:42 - PID: 011768 - RunGarbageCollection end
08:31:42 - PID: 011768 - CreateBreadCrumbs viewtype - database - parent - 0
08:31:42 - PID: 011768 - loop
08:31:42 - PID: 011768 - Add actions - cur length - 681
08:31:42 - PID: 011768 - CreateBreadCrumbs finished
08:31:42 - PID: 011768 - DisplayLoginPage exit
08:31:42 - PID: 011768 - Sessions missing, maybe garbage collected
08:31:49 - PID: 011768 - ReadCookie entry
08:31:49 - PID: 011768 - TestLogTemplate=Default
08:31:49 - PID: 011768 - testlog_SampleDB=tls53D
08:31:49 - PID: 011768 - ReadCookie exit
08:31:49 - PID: 011768 - \Testers\mariston.tlg
08:31:49 - PID: 011768 - CreateBreadCrumbs viewtype - Database - parent - 0
08:31:49 - PID: 011768 - loop
08:31:49 - PID: 011768 - Add actions - cur length - 681
08:31:49 - PID: 011768 - CreateBreadCrumbs finished
08:31:52 - PID: 001584 - Session_Start entry
08:31:52 - PID: 001584 - ReadCookie entry
08:31:52 - PID: 001584 - TestLogTemplate=Default
08:31:52 - PID: 001584 - testlog_SampleDB=tls53D
08:31:52 - PID: 001584 - ReadCookie exit
08:31:52 - PID: 001584 - File error
08:31:52 - PID: 001584 - DisplayLoginPage entry
08:31:52 - PID: 001584 - RunGarbageCollection start
08:31:52 - PID: 001584 - RunGarbageCollection end
08:31:52 - PID: 001584 - CreateBreadCrumbs viewtype - database - parent - 0
08:31:52 - PID: 001584 - loop
08:31:52 - PID: 001584 - Add actions - cur length - 681
08:31:52 - PID: 001584 - CreateBreadCrumbs finished
08:31:52 - PID: 001584 - DisplayLoginPage exit
08:31:52 - PID: 001584 - Sessions missing, maybe garbage collected
08:31:58 - PID: 011768 - ReadCookie entry
08:31:58 - PID: 011768 - TestLogTemplate=Default
08:31:58 - PID: 011768 - testlog_SampleDB=tls53D
08:31:58 - PID: 011768 - ReadCookie exit
08:31:58 - PID: 011768 - \Testers\mariston.tlg
08:31:59 - PID: 011768 - CreateBreadCrumbs viewtype - Database - parent - 0
08:31:59 - PID: 011768 - loop
08:31:59 - PID: 011768 - Add actions - cur length - 681
08:31:59 - PID: 011768 - CreateBreadCrumbs finished
08:32:09 - PID: 001632 - Session_Start entry
08:32:09 - PID: 001632 - ReadCookie entry
08:32:09 - PID: 001632 - TestLogTemplate=Default
08:32:09 - PID: 001632 - testlog_SampleDB=tls53D
08:32:09 - PID: 001632 - ReadCookie exit
08:32:09 - PID: 001632 - File error
08:32:09 - PID: 001632 - DisplayLoginPage entry
08:32:09 - PID: 001632 - RunGarbageCollection start
08:32:09 - PID: 001632 - RunGarbageCollection end
08:32:09 - PID: 001632 - CreateBreadCrumbs viewtype - database - parent - 0
08:32:09 - PID: 001632 - loop
08:32:09 - PID: 001632 - Add actions - cur length - 681
08:32:09 - PID: 001632 - CreateBreadCrumbs finished
08:32:09 - PID: 001632 - DisplayLoginPage exit
08:32:09 - PID: 001632 - Sessions missing, maybe garbage collected
08:32:19 - PID: 001652 - ReadCookie entry
08:32:19 - PID: 001652 - TestLogTemplate=Default
08:32:19 - PID: 001652 - testlog_SampleDB=tls53D
08:32:19 - PID: 001652 - ReadCookie exit
08:32:19 - PID: 001652 - \Testers\mariston.tlg
08:32:19 - PID: 001652 - CreateBreadCrumbs viewtype - Database - parent - 0
08:32:19 - PID: 001652 - loop
08:32:19 - PID: 001652 - Add actions - cur length - 681
08:32:19 - PID: 001652 - CreateBreadCrumbs finished
08:32:39 - PID: 001652 - Session_Start entry
08:32:39 - PID: 001652 - ReadCookie entry
08:32:39 - PID: 001652 - TestLogTemplate=Default
08:32:39 - PID: 001652 - testlog_SampleDB=tls53D
08:32:39 - PID: 001652 - ReadCookie exit
08:32:39 - PID: 001652 - File error
08:32:39 - PID: 001652 - DisplayLoginPage entry
08:32:39 - PID: 001652 - RunGarbageCollection start
08:32:39 - PID: 001652 - RunGarbageCollection end
08:32:40 - PID: 001652 - CreateBreadCrumbs viewtype - database - parent - 0
08:32:40 - PID: 001652 - loop
08:32:40 - PID: 001652 - Add actions - cur length - 681
08:32:40 - PID: 001652 - CreateBreadCrumbs finished
08:32:40 - PID: 001652 - DisplayLoginPage exit
08:32:40 - PID: 001652 - Sessions missing, maybe garbage collected
08:32:44 - PID: 001652 - ReadCookie entry
08:32:44 - PID: 001652 - TestLogTemplate=Default
08:32:44 - PID: 001652 - testlog_SampleDB=tls53D
08:32:44 - PID: 001652 - ReadCookie exit
08:32:44 - PID: 001652 - GenerateSesID start
08:32:44 - PID: 001652 - GenerateSesID end
08:32:44 - PID: 001544 - Session_Start entry
08:32:44 - PID: 001544 - ReadCookie entry
08:32:44 - PID: 001544 - TestLogTemplate=Default
08:32:44 - PID: 001544 - testlog_SampleDB=tls53E
08:32:44 - PID: 001544 - ReadCookie exit
08:32:44 - PID: 001544 - DisplayLoginPage entry
08:32:44 - PID: 001544 - RunGarbageCollection start
08:32:44 - PID: 001544 - RunGarbageCollection end
08:32:44 - PID: 001544 - CreateBreadCrumbs viewtype - database - parent - 0
08:32:44 - PID: 001544 - loop
08:32:44 - PID: 001544 - Add actions - cur length - 681
08:32:44 - PID: 001544 - CreateBreadCrumbs finished
08:32:44 - PID: 001544 - DisplayLoginPage exit
08:37:07 - PID: 011520 - Session_Start entry
08:37:07 - PID: 011520 - ReadCookie entry
08:37:07 - PID: 011520 - TestLogTemplate=Default
08:37:07 - PID: 011520 - testlog_SampleDB=tls53E
08:37:07 - PID: 011520 - ReadCookie exit
08:37:07 - PID: 011520 - File error
08:37:07 - PID: 011520 - DisplayLoginPage entry
08:37:07 - PID: 011520 - RunGarbageCollection start
08:37:07 - PID: 011520 - RunGarbageCollection end
08:37:07 - PID: 011520 - CreateBreadCrumbs viewtype - database - parent - 0
08:37:07 - PID: 011520 - loop
08:37:07 - PID: 011520 - Add actions - cur length - 681
08:37:07 - PID: 011520 - CreateBreadCrumbs finished
08:37:07 - PID: 011520 - DisplayLoginPage exit
08:37:07 - PID: 011520 - Sessions missing, maybe garbage collected
08:38:02 - PID: 001544 - Session_Start entry
08:38:02 - PID: 001544 - ReadCookie entry
08:38:02 - PID: 001544 - TestLogTemplate=Default
08:38:02 - PID: 001544 - testlog_SampleDB=tls53E
08:38:02 - PID: 001544 - ReadCookie exit
08:38:02 - PID: 001544 - File error
08:38:02 - PID: 001544 - DisplayLoginPage entry
08:38:02 - PID: 001544 - RunGarbageCollection start
08:38:02 - PID: 001544 - RunGarbageCollection end
08:38:02 - PID: 001544 - CreateBreadCrumbs viewtype - database - parent - 0
08:38:02 - PID: 001544 - loop
08:38:02 - PID: 001544 - Add actions - cur length - 681
08:38:02 - PID: 001544 - CreateBreadCrumbs finished
08:38:02 - PID: 001544 - DisplayLoginPage exit
08:38:02 - PID: 001544 - Sessions missing, maybe garbage collected
08:38:11 - PID: 001544 - ReadCookie entry
08:38:11 - PID: 001544 - TestLogTemplate=Default
08:38:11 - PID: 001544 - testlog_SampleDB=tls53E
08:38:11 - PID: 001544 - ReadCookie exit
08:38:11 - PID: 001544 - GenerateSesID start
08:38:11 - PID: 001544 - GenerateSesID end
08:38:11 - PID: 001596 - Session_Start entry
08:38:11 - PID: 001596 - ReadCookie entry
08:38:11 - PID: 001596 - TestLogTemplate=Default
08:38:11 - PID: 001596 - testlog_SampleDB=tls53F
08:38:11 - PID: 001596 - ReadCookie exit
08:38:11 - PID: 001596 - DisplayLoginPage entry
08:38:11 - PID: 001596 - RunGarbageCollection start
08:38:11 - PID: 001596 - RunGarbageCollection end
08:38:11 - PID: 001596 - CreateBreadCrumbs viewtype - database - parent - 0
08:38:11 - PID: 001596 - loop
08:38:11 - PID: 001596 - Add actions - cur length - 681
08:38:11 - PID: 001596 - CreateBreadCrumbs finished
08:38:11 - PID: 001596 - DisplayLoginPage exit

TimR
03-05-2008, 12:32 AM
From the debug file it seems to be creating the session ID, cookie and file ok but failing to read it back. If you try to log in and then check the directory you set up for :TEMPDIRABS: is there a .tmp file there? Also what value have you got set for :TIMEOUT:.

neverstop
03-05-2008, 12:07 PM
Hello again...here is my cgiconfig.cfg file. I think it might help you understand my situation. This issue can be a result of a bad configuration of apache web no?

#TestLogCgi config file
#The location of the TestLog directory for images, relative to the base URL of your web server
:IMAGESREL:/testlog/images/

#The location of the TestLog directory for images, absolute path (same location as above but absolute)
:IMAGESABS:C:\Bugzilla\testlog\images\

#The location of the TestLog directory for help, relative to the base URL of your web server
:HELPREL:/testlog/Help/

#Temp folder location, used for sesssion files etc
:TEMPDIRABS:C:\Temp\testlog\

#Session timeout value in minutes
:TIMEOUT:30

#The location of the Templates directory, absolute path
#You do not need to include the "Templates" part of the path
:TEMPLATEABS:C:\Arquivos de programas\testLog\

#The paths to the databases, absolute paths
:DATABASES_START:
C:\Temp\SampleDB
C:\Temp\teste
:DATABASES_END:

#Key Section - Purchased licence keys
:KEYSECTION_START:
45B5A2C4010967B6A785306EA1990B1F649C800D92
:KEYSECTION_END:

#:VIEWBUGPATH:
#:ADDBUGPATH:
#:VIEWREQPATH:
#:LOCKTIMEOUT:600
:DEBUGMODE:


Well i asked to a friend to try log on in the page and i just opened the :TEMPDIRABS folder to watch if the .tmp file was being created. Unfortunately i didnt see anything...maybe the .tmp was created quickly...but i guess it isnt being created. So whats wrong? I dont know if this can be a permission issue or not...i am logged on as admin in my PC.

TimR
03-06-2008, 03:17 AM
It shouldn't be a permissions problem creating the files, as the debug file wouldn't be created and warnings would have been displayed when running in debug mode.

Could you please try this build running in debug mode, some more output has been added around the session creation, http://www.passmark.com/ftp/TestLogCGI-debug.zip.

Is the hard drive you are using formatted using FAT or NTFS? It's possible there might be a problem retrieving the creation time of the sessions files and could be trying to delete it straight away if the drive is FAT formatted.

neverstop
03-06-2008, 11:52 AM
First of all i need to tell you that i have installed teslogweb with success in another PC running Windows XP in a NTFS partition. It runs over a WAMP server that has CGI previous configured...the windows 2000 (the one where teslogweb isnt working) has its apache server configured manually with CGI.

Aswering your question...yes the partition is FAT32 running over a windows 2000 system. Here is the log file created by testlog running with that new CGI file you sent me. I saw that you have added many lines at log file...i tried to log in twice without success as you can see:

08:42:44 - PID: 013036 - Session_Start entry
08:42:44 - PID: 013036 - ReadCookie entry
08:42:44 - PID: 013036 - TestLogTemplate=Default
08:42:44 - PID: 013036 - testlog_SampleDB=tls730
08:42:44 - PID: 013036 - testlog_teste=tls5E6
08:42:44 - PID: 013036 - ReadCookie exit
08:42:44 - PID: 013036 - Session count start
08:42:44 - PID: 013036 - C:\Temp\testlog\\tls*.tmp
08:42:44 - PID: 013036 - Session count end 0
08:42:44 - PID: 013036 - GetPathFromSesID
08:42:44 - PID: 013036 - C:\Temp\testlog\\tls730.tmp
08:42:44 - PID: 013036 - File error
08:42:44 - PID: 013036 - DisplayLoginPage entry
08:42:44 - PID: 013036 - RunGarbageCollection start
08:42:44 - PID: 013036 - RunGarbageCollection end
08:42:44 - PID: 013036 - Session count start
08:42:44 - PID: 013036 - C:\Temp\testlog\\tls*.tmp
08:42:44 - PID: 013036 - Session count end 0
08:42:44 - PID: 013036 - CreateBreadCrumbs viewtype - database - parent - 0
08:42:44 - PID: 013036 - loop
08:42:44 - PID: 013036 - Add actions - cur length - 681
08:42:44 - PID: 013036 - CreateBreadCrumbs finished
08:42:44 - PID: 013036 - Log in ok
08:42:44 - PID: 013036 - Problem with template
08:42:44 - PID: 013036 - DisplayLoginPage exit
08:42:44 - PID: 013036 - Sessions missing, maybe garbage collected
08:42:51 - PID: 013188 - ReadCookie entry
08:42:51 - PID: 013188 - TestLogTemplate=Default
08:42:51 - PID: 013188 - testlog_SampleDB=tls730
08:42:51 - PID: 013188 - testlog_teste=tls5E6
08:42:51 - PID: 013188 - ReadCookie exit
08:42:51 - PID: 013188 - Session count start
08:42:51 - PID: 013188 - C:\Temp\testlog\\tls*.tmp
08:42:51 - PID: 013188 - Session count end 0
08:42:51 - PID: 013188 - GenerateSesID start
08:42:51 - PID: 013188 - GetSesIDFromPath
08:42:51 - PID: 013188 - tls732
08:42:51 - PID: 013188 - GenerateSesID end
08:42:51 - PID: 012492 - Session_Start entry
08:42:51 - PID: 012492 - ReadCookie entry
08:42:51 - PID: 012492 - TestLogTemplate=Default
08:42:51 - PID: 012492 - testlog_SampleDB=tls732
08:42:51 - PID: 012492 - testlog_teste=tls5E6
08:42:51 - PID: 012492 - ReadCookie exit
08:42:51 - PID: 012492 - Session count start
08:42:51 - PID: 012492 - C:\Temp\testlog\\tls*.tmp
08:42:51 - PID: 012492 - Session count end 1
08:42:51 - PID: 012492 - GetPathFromSesID
08:42:51 - PID: 012492 - C:\Temp\testlog\\tls732.tmp
08:42:51 - PID: 012492 - Found session file
08:42:51 - PID: 012492 - Deleting session ID file - past time out: 29917055l 895636720l - 29916986l 1535110144l
08:42:51 - PID: 012492 - DisplayLoginPage entry
08:42:51 - PID: 012492 - RunGarbageCollection start
08:42:51 - PID: 012492 - RunGarbageCollection end
08:42:51 - PID: 012492 - Session count start
08:42:51 - PID: 012492 - C:\Temp\testlog\\tls*.tmp
08:42:51 - PID: 012492 - Session count end 0
08:42:51 - PID: 012492 - CreateBreadCrumbs viewtype - database - parent - 0
08:42:51 - PID: 012492 - loop
08:42:51 - PID: 012492 - Add actions - cur length - 681
08:42:51 - PID: 012492 - CreateBreadCrumbs finished
08:42:51 - PID: 012492 - Log in ok
08:42:51 - PID: 012492 - Problem with template
08:42:51 - PID: 012492 - DisplayLoginPage exit
08:43:00 - PID: 013188 - ReadCookie entry
08:43:00 - PID: 013188 - TestLogTemplate=Default
08:43:00 - PID: 013188 - testlog_SampleDB=tls732
08:43:00 - PID: 013188 - testlog_teste=tls5E6
08:43:00 - PID: 013188 - ReadCookie exit
08:43:00 - PID: 013188 - Session count start
08:43:00 - PID: 013188 - C:\Temp\testlog\\tls*.tmp
08:43:00 - PID: 013188 - Session count end 0
08:43:00 - PID: 013188 - GenerateSesID start
08:43:00 - PID: 013188 - GetSesIDFromPath
08:43:00 - PID: 013188 - tls733
08:43:00 - PID: 013188 - GenerateSesID end
08:43:00 - PID: 012492 - Session_Start entry
08:43:00 - PID: 012492 - ReadCookie entry
08:43:00 - PID: 012492 - TestLogTemplate=Default
08:43:00 - PID: 012492 - testlog_SampleDB=tls733
08:43:00 - PID: 012492 - testlog_teste=tls5E6
08:43:00 - PID: 012492 - ReadCookie exit
08:43:00 - PID: 012492 - Session count start
08:43:00 - PID: 012492 - C:\Temp\testlog\\tls*.tmp
08:43:00 - PID: 012492 - Session count end 1
08:43:00 - PID: 012492 - GetPathFromSesID
08:43:00 - PID: 012492 - C:\Temp\testlog\\tls733.tmp
08:43:00 - PID: 012492 - Found session file
08:43:00 - PID: 012492 - Deleting session ID file - past time out: 29917055l 984076720l - 29916986l 1535110144l
08:43:00 - PID: 012492 - DisplayLoginPage entry
08:43:00 - PID: 012492 - RunGarbageCollection start
08:43:00 - PID: 012492 - RunGarbageCollection end
08:43:00 - PID: 012492 - Session count start
08:43:00 - PID: 012492 - C:\Temp\testlog\\tls*.tmp
08:43:00 - PID: 012492 - Session count end 0
08:43:00 - PID: 012492 - CreateBreadCrumbs viewtype - database - parent - 0
08:43:00 - PID: 012492 - loop
08:43:00 - PID: 012492 - Add actions - cur length - 681
08:43:00 - PID: 012492 - CreateBreadCrumbs finished
08:43:00 - PID: 012492 - Log in ok
08:43:00 - PID: 012492 - Problem with template
08:43:00 - PID: 012492 - DisplayLoginPage exit

TimR
03-06-2008, 09:59 PM
Thanks for that, i believe the problem exists due to an issue between the function getting the file time and FAT format not storing the time correctly/accurately and the session file times out straight away. Once a fix is ready i'll post a new link.

neverstop
03-07-2008, 12:39 PM
Thank you very much, i hope you solve this issue...i am waiting for the next release. Can you post here the link of this new realease for downloading when it is finished? I usually do not use the email registered in this forum account because of spams. Cheers...have a good work...

TimR
03-11-2008, 12:35 AM
Could you please try this version, http://www.passmark.com/ftp/TestLogCGI.zip. (http://www.passmark.com/forum/../ftp/TestLogCGI.zip)

neverstop
03-12-2008, 09:34 PM
Hi mate =) i have tested this new .cgi file in my web server running at Win 2000 and for my surprise it worked...BUT i verify that the script isn't working propertly when a new user tries to log in the page. In my webserver running windows XP with an NTFS partition when an user tries to log in it shows a message like this "Unable to log in as the maximum licence user (1)..."

Well ...all we know that the free key that already comes with teslog permit only 1 user per server. BUT with that CGI you sent me when another user tries to log in the page it kills the user who is logged on...it simply creates a new session for this new user...deleting the .tmp session file of the other one!! I don't know if you understood my problem...but i need this working soon because i work in a company that uses your software to make tests and they wanna buy around 11 licences of your software to use at web at same time. Unfortunately we don't have a XP server running in a NTFS partition...we are gonna buy it in around 3 months...but we need use the teslog web right now in this sever. Can you fix this issue? Thanks mf...i am waiting four your answer.

TimR
03-12-2008, 11:18 PM
It was a similair problem with the FAT timeout, it should be fixed in http://www.passmark.com/ftp/TestLogCGIb.zip. (http://www.passmark.com/forum/../ftp/TestLogCGIb.zip)

neverstop
03-13-2008, 03:16 PM
Hey mf thanks for the reply...this new CGI worked fine =) the bugs was solved! Soon i am gonna buy that licences i told you...have a good work mf and keep walking...cheers ^^