Authentication Failure when trying to login
douklias
Joined: 2006-07-11
Posts: 7 |
![]() |
I just upgraded to version 2.2-svn core 1.1.23 from version 2.2-svn core 1.1.11 and I'm getting an "Authentication Failure" when trying to log in. Here is the whole dump: Back to the Gallery Error Detail - The interesting thing is that when I click on the "Back to the Gallery" link on the error page, I'm in the Gallery application logged in and everything works. Weird!! Can anybody help?
|
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
did you modify your gallery? |
|
douklias
Joined: 2006-07-11
Posts: 7 |
![]() |
No I did not modify anything on the gallery. The only thing I did was to upgrade the core from 1.1.11 to 1.1.23. Before the upgrade it was working fine. No errors through the upgrade. The login form is the default gallery form. If you need, I can send you the site with a temporary login. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
> The login form is the default gallery form. If you need, I can send you the site with a temporary login. please do so. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
- IIS/6.0 i don't have windows 2003 / vista myself. i've tested it with ms windows xp / iis/5.0 and apache 2. maybe it's a iis/6.0 issue, no idea. i'll see if another developer has access to iis/6.0. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
yes, i can confirm the ERROR_REQUEST_FORGED. the http headers can be viewed with a special firefox extension or with ethereal. |
|
douklias
Joined: 2006-07-11
Posts: 7 |
![]() |
Valiant, Did you get the: ------------------------------------------------------- Your change cannot be completed due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in. How are you getting the code 500 or http "1.x"? Yes, I'm running on Windows 2003 server with PHP. Something else that it was changed at the same time with the Gallery upgrade; is the installation of the new Internet Explorer 7.0. I wonder if that had something to do with the authentication. I will uninstall IE 7.0 tonight and see what happens. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
IE7 is not the issue. it's iis/6.0. i'll need more data points for iis/6.0 since i don't have it myself. |
|
douklias
Joined: 2006-07-11
Posts: 7 |
![]() |
I will leave the accounts that I created for you open. Let me know what other data points or configuration items you need me to provide. Thanks for all your help. |
|
douklias
Joined: 2006-07-11
Posts: 7 |
![]() |
Does anybody have any sugestions for IIS/6.0 Widows 2003 issue that I'm having? I'm getting error ERROR_REQUEST_FORGED when trying to login. |
|
hk_ben
Joined: 2006-12-10
Posts: 2 |
![]() |
I experienced same error after upgrade to core .23 System Information |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
Could anyone of your give me access to their IIS/6.0 box? I've never worked with windows remote access and ssh doesn't seem to be an option for windows servers for this purpose, or is it? Thanks! |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
hk_ben no, your issue was something different. i fixed your g2. btw: your problem was that for some reason, 'CacheMap' was not in your Schema table, while there actually was such a table. @douklias: |
|
douklias
Joined: 2006-07-11
Posts: 7 |
![]() |
valiant: What are the steps to fix the CacheMap table? Do you have a script? |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
douklias: that having said: you only have the same issue if there's no entry in the schema table for CacheMap |
|
jtownsend
Joined: 2006-11-24
Posts: 19 |
![]() |
I have the exact same problem after the upgrade. Not being familiar with MySql, am I to use this command (SELECT * FROM g2_Schema where g_name = 'CacheMap';) to correct the problem? |
|
robert.wilson
Joined: 2006-12-06
Posts: 22 |
![]() |
Oops my bad, I went to quick, searched on 2 terms that didn't hit this so I started a post under trouble shooting. Im not sure about IIS 6.0 being the only issue. Im using IIS 5.0 on a older developmnet server. Here is my info. Authentication Failure Back to the Gallery <--- Actually takes you to your main page fully logged in. Error Detail - |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
jtownsend please post your system information (as the other users did): and no, this SQL command won't help. @robert.wilson so what you guys have in common is a) IIS b) php-cgi (not mod_php). and already tried logging out / logging in again? |
|
jtownsend
Joined: 2006-11-24
Posts: 19 |
![]() |
I have a multisite and all sites are affected. The message appears when you submit you username and password to login and then at the error page if you click "Back to gallery" you return to he gallery and are logged in. Error (ERROR_REQUEST_FORGED) |
|
jtownsend
Joined: 2006-11-24
Posts: 19 |
![]() |
Follow up/Additional information http://www.spiderlax.com Gallery version = 2.2-svn core 1.1.25 |
|
jtownsend
Joined: 2006-11-24
Posts: 19 |
![]() |
I created a new site and database for testing in my multisite installation. Same error/result when attempting to login. Anybody have any idea on this? |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
- virshu (another developer) has tested IIS/7.0 + php-fcgi. He was not able to reproduce the problem. he tried the useralbum as well. So we tried to reproduce it and I'd really like to see what causes your problem, but we were unable to reproduce it. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
jtownsend was so kind and gave me access to his webserver. He's using: HTTP log of a user login request with that server: It seems this affects some IIS/5, IIS/6 and IIS/7 servers. But not all. So what happens is this: Although this is a IIS bug (probably you could fix yours with some patches provided by Microsoft), we want to try to work around it in G2 such that not more IIS users have to deal with it. I'd like to ger more data points. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
Also, please download and install all IIS patches for your IIS version. Maybe this solves the problem. IIS/6 users might try this patch: http://support.microsoft.com/kb/898708/EN-US/ |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
And a last note for now: Here's the patch that I wrote to fix the problem. But as explained, this patch made things even worse for the above IIS/5.0 case. Patched UserLogin.inc: |
|
jtownsend
Joined: 2006-11-24
Posts: 19 |
![]() |
I updated my IIS 5.0 server with all current patches. Windows 2000 server cannot be updated beyond IIS 5. I continue to receive the error. The interesting thing to me is that prior to updating G2 to core 1.1.25 I did not have any login errors. I had updated to 1.1.25 to resolve a registration error. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
G2 core 1.1.25 comes with auth-tokens to protect from a specific kind of attacks. It's necessary. I'm waiting for input from IIS/6 users to compare the behavior of problematic IIS/5 and IIS/6 servers. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
I've now tested isapi_fcgi.dll (the original fastcgi implementation) with Windows XP IIS/5.1 / PHP-5.2.0 on my own computer as well and I was unable to reproduce the problem. |
|
robert.wilson
Joined: 2006-12-06
Posts: 22 |
![]() |
Some time this week I will be moving this gallery from a Windows 2000 server over 2003, Im gonna try and keep this same build and see if the issue resides over there. If it does then Im not sure where to go from there. I think that the Authentication protocol in IIS 5.0 is the failure point, but Im not an expert. Thanks for the research |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
We have here reports of this issue with IIS/5.0 fcgi (2 users) and IIS/6.0 fcgi (1 user). We have reports of working IIS/5.1 fcgi/mod_php (1 user) and IIS/7.0 fcgi (2 users). |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
@douklias: thanks for the account. I would expect that you'd get a server restart with this patch: Or does it work with it? |
|
douklias
Joined: 2006-07-11
Posts: 7 |
![]() |
Valiant, Added the Patched UserLogin.inc under the module/core directory. I copied the original one if we need it later. And now I'm getting: I have not restarted the server yet due to the luck or reach (I'm out of town). I will be restarting it tonight. The http://pictures4ot.webhop.net works now, but, you getting the CGI Error. |
|
jtownsend
Joined: 2006-11-24
Posts: 19 |
![]() |
What if I change from fcgi to isapi? Would that pose any problems in converting? ** Went ahead and changed to isapi and no longer have the error. I did update PHP to 5.2.1. Now I will need to retest everything else to see if isapi causes any other problems. It is my understanding that it is not as stable as cgi. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
Update: - Any IIS version (verified with 5.0, 5.1, 6.0) I created some IIS dumps with diagnosing tools, but honestly, I have no expertise in IIS diagnosing / debugging and it all looks like a PHP-cgi / IIS bug. I have also verified that Apache+Windows+php-cgi works fine. Thus it's not a general php-cgi problem. It's about IIS + php-cgi. That's about all I know and I can't spend much more time on this issue. Solution: |
|
robert.wilson
Joined: 2006-12-06
Posts: 22 |
![]() |
Valiant thanks for the update. I was running fastcgi. I would like to ask for your advice on how to switch from php-fastcgi to mod_php or isapi-fastcgi Thanks |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
Are you sure you ran fastcgi? "5.2.0 cgi-fcgi" just means that the PHP binary used implements the cgi and fastcgi interface. I was not able to reproduce the problem with fastcgi or mod_php on my own machine. I've only seen it for php-cgi. |
|
robert.wilson
Joined: 2006-12-06
Posts: 22 |
![]() |
im running System Windows NT IIS-DEV01 5.0 build 2195 according to my phpinfo files. It says server API is CGI/FastCGI.. when i look into IIS5.0 extension is pointed to just php.exe file |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
Looks like you're using php-cgi. |
|
hitoohit
Joined: 2007-01-23
Posts: 2 |
![]() |
Hi, Back to the Gallery Error Detail - System Information |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
Please migrate from IIS+php-cgi to IIS+mod_php or IIS+FastCGI. Microsoft doesn't support php-cgi and since G2.2, Gallery doesn't work with IIS+php-cgi anymore. -------------- |
|
photocateg
Joined: 2007-01-28
Posts: 3 |
![]() |
Excuse me, I am a little bit confused. I read FastCGI, ISAPI-FastCGI, and PHP-FastCGI, are they the same thing or not? Which one should we use? Is there away to find out if any of these are running on a shared Windows account? Thanks! |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
- If you see something like "PHP version 5.1.4 cgi-fcgi" in your phpinfo, it means you're running PHP-CGI. -------------- |
|
photocateg
Joined: 2007-01-28
Posts: 3 |
![]() |
valiant, Thank you for your reply! And I am sorry for having filed a duplicate bug report and started a new thread on the same old question. I am completely new here, and haven't quite found my way around. Here is another question: if it's a problem of not having FastCGI, why the Matrix theme works fine? (as you suggested, I switched to Matrix, although the login auth error is still there, but at least I can add albums, add items and upload pictures. With Carbon theme, I can't do any of these.) |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
No idea. We don't know the exact reason for the error in the first place. It's a bug in PHP-CGI/IIS. Maybe the bug is triggered by other code paths that are excited by the carbon theme as well. -------------- |
|
LFrank
Joined: 2005-02-19
Posts: 1023 |
![]() |
Sorry to bother - I get the same issue now on Firefox 2.0 - not able to access the login page trying the Login from the sidebar -> Sigh --- Gallery version = 2.2-rc1 core 1.1.29 |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
LFrank please create a new forum topic. you're not running IIS and this thread's topic shifted mainly to IIS. -------------- |
|
soreel
Joined: 2003-12-02
Posts: 59 |
![]() |
Hi Valiant, was this issue resolved? is there a fix I need to download? my galery was working fine and then a few days ago, it just stopped and I now I am getting this error Authentication Failure Your change cannot be completed due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in. Back to the Gallery * in modules/core/classes/GalleryController.class at line 235 (gallerycoreapi::error) System Information |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
soreel you're using apache, not IIS. -------------- |
|
ozz
Joined: 2008-08-28
Posts: 42 |
![]() |
Did Anyone resolve this issue? I am also getting the same error. Authentication Failure Your change cannot be completed due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in. Back to the Gallery * in modules/core/classes/GalleryController.class at line 239 (GalleryCoreApi::error) System Information |
|