Page Index Toggle Pages: 1 [2] 
Topic Tools
 10 I get 502.2 error when running setup.pl (Read 10,556 times)
Captain John
Ex Member


Re: I get 502.2 error when running setup.pl
Reply #4 - Jul 3rd, 2011 at 2:27am
Post Tools
JonB is are Windows expert ... but until he sees this Post, see the YaBB Codex here for help - http://www.yabbforum.com/codex/YaBB.pl?board=windows
  
Back to top
 
IP Logged
 
Meta4XYZ
YaBB Newcomer
*
Offline



Posts: 17

None
Re: I get 502.2 error when running setup.pl
Reply #3 - Jul 2nd, 2011 at 8:08pm
Post Tools
Sorry to drudge up a zombie post, but I'm running into the exact same issue.  I'm attempting to install YaBB v2.5AE on a Windows Server 2008 R2 box running IIS 7.5.  I've tried with both 64-bit and 32-bit ActivePerl and get the same results.  When I run Setup.pl, the login screen appears just fine.  When I enter the password ("admin" or anything else), I get the following error:

Quote:
HTTP Error 502.2 - Bad Gateway
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are ": /default/default.html at ./Sources/Subs.pl line 214. HTTP/1.0 404 Not Found Cache-Control: no-cache, must-revalidate Pragma: no-cache Content-Type: text/html ".


Here is line 214 of Subs.pl:

Quote:
fopen(TEMPLATE, $yytemplate) || die("$maintxt{'23'}: $yytemplate");


If it helps, here is a snapshot of the request from the IIS logs:

Quote:
2011-07-02 18:37:43 W3SVC1 TWN-WEB 10.1.1.51 POST /Forum/cgi-bin/yabb2/Setup.pl action=adminlogin2 80 - 10.1.1.51 HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.1;+WOW64;+Trident/5.0;+SLCC2;+.N
ET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+.NET4.0C;+.NET4.0E) - http://www/Forum/cgi-bin/yabb2/setup.pl www 502 2 259 5452 532 171


Is there a way to track down the 404 referenced in the error page?  The request doesn't appear in the IIS log.

For the record, I'm unzipping and dropping the files directly from the zip file, not FTP'ing them.  I've re-downloaded and replaced the entire forum package (cgi-bin and public_html) a couple times and have even uninstalled an reinstalled IIS, all to no avail.
  
Back to top
 
IP Logged
 
Spitball
YaBB Newcomer
*
Offline



Posts: 20
Location: Charlotte, NC

None
Re: I get 502.2 error when running setup.pl
Reply #2 - Dec 1st, 2010 at 5:52am
Post Tools
OK, I'll blow those away and re-upload the YaBB files, ensuring that I'm in ASCII mode.
  

Thanks!
Back to top
WWW  
IP Logged
 
Captain John
Ex Member


Re: I get 502.2 error when running setup.pl
Reply #1 - Dec 1st, 2010 at 3:23am
Post Tools
This "usually" happens instead of a 500IE on Linux/Unix servers and caused "usually" by a corrupt file that was incorrectly uploaded.  It is VERY important NOT to use the Auto transfer mode in an FTP program.  ALL files under the yabb2 folder MUST be uploaded in Ascii Transfer mode.
  
Back to top
 
IP Logged
 
Spitball
YaBB Newcomer
*
Offline



Posts: 20
Location: Charlotte, NC

None
I get 502.2 error when running setup.pl
Nov 30th, 2010 at 10:15pm
Post Tools
"HTTP Error 502.2 - Bad Gateway
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are ": /default/default.html at ./Sources/Subs.pl line 214. HTTP/1.0 404 Not Found Content-Type: text/html ".

I get this message trying to install YaBB 2.5.  Our website host (Web.com / Interland) recently upgraded their servers and YaBB 2.1 quit working after re-installing FrontPage Extensions.  Working with their Help Desk is painful!  Ultimately, I deleted the CGI-BIN/YaBB2 folders (kept the stuff in the HTDOCS folders) and tried a new install of 2.5.  The host is a Windows server with IIS.

What's next?
website is http://www.bradfieldfarms.com/cgi-bin/yabb2/setup.pl
« Last Edit: Nov 30th, 2010 at 10:35pm by Spitball »  

Thanks!
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Topic Tools
 
  « Board Index ‹ Board  ^Top