Page Index Toggle Pages: 1 [2] 3 4 
There are no actions to perform.
Very Hot Topic (More than 25 Replies) Windows Server 2008 IIS 7 YaBB 2.5 (Read 8,410 times)
_STEVE_
YaBB Newcomer
*
Offline



Posts: 8
Location: Nottingham, UK
Re: Windows Server 2008 IIS 7 YaBB 2.5
Reply #15 - Oct 5th, 2012 at 10:05am
There are no actions to perform.
Nice try Dandello, but unfortunately the problem persists...  Sad

Any other things I can try?

Steve
  
Back to top
 
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 4,231
Location: Land of the Blazing Sun!

YaBB 2.6.1
Re: Windows Server 2008 IIS 7 YaBB 2.5
Reply #16 - Oct 5th, 2012 at 12:45pm
There are no actions to perform.
I think we may not have commented out enough code

I'm about 80% sure that the problem is due to a system call being made incorrectly.  There are actually three system calls being made. Windows will not know the syntax, it returns an error to IIS that is basically "WTF?".  It is not that Perl is trying to make a non-allowed operation, its that the operation can't return anything meaningful.

Troubleshooting to see if this is the problem - There are probably 2 or 3 errors in one of the Event Logs - where IIS tried to talk to Windows (2 perhaps because you excised the 'df' {disk free} call). 

It is currently unknown what triggers this particular behavior. I first saw it live this month, and I have two IIS servers that have been running YaBB for years.  I found it on an XP machine that is a dual-boot Linux server. I'd be interested to know if there are any Unix file system mounts (such as Samba), or attached devices NAS/SAN that are mapped which have ext3 partitions.

In Settings_Advanced.pl - cut out this whole section -

Code (Perl)
Select All
# Free Disk Space Checking
my @disk_space = qx{df -k .};
map { $_ =~ s/ +/  /g } @disk_space;

my @find = qx(find . -noleaf -type f -printf "%s-");

$hostusername = $hostusername || (split(/ +/, qx{ls -l YaBB.$yyext}))[2];
my @quota = qx{quota -u $hostusername -v};
$quota[0] =~ s/^ +//;
$quota[0] =~ s/ / /g;
$quota[1] =~ s/^ +//;
$quota[1] =~ s/ / /g;
my $quota_select = qq~$quota[0]<br />$quota[1]~;
if ($quota[2]) {
	my $ds = (split(/ +/, $disk_space[1], 2))[0] if !$enable_quota;
	$quota_select .= qq~<br /><select name="enable_quota_value">~;
	for (my $i = 2; $i < @quota; $i++) {
		$quota[$i] =~ s/^ +//;
		$quota[$i] =~ s/ +/&nbsp;&nbsp;/g;
		$quota_select .= qq~<option value="$i" ~ . ${isselected($i == $enable_quota || ($ds && $quota[$i] =~ /^$ds/))} . qq~>$quota[$i]</option>~;
	}
	$quota_select .= '</select>';
}
 



If this does not fix, its back to the drawing boards.  If there is something critical that needs adjustment, you can always edit Settings.pl manually.  Almost all settings are commented.

Good Luck
Cool
  

I find your lack of faith disturbing.
Back to top
IP Logged
 
_STEVE_
YaBB Newcomer
*
Offline



Posts: 8
Location: Nottingham, UK
Re: Windows Server 2008 IIS 7 YaBB 2.5
Reply #17 - Oct 11th, 2012 at 12:07pm
There are no actions to perform.
Hey Jon

That fixed it - thank you!!  Cheesy

Steve
  
Back to top
 
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 4,231
Location: Land of the Blazing Sun!

YaBB 2.6.1
Re: Windows Server 2008 IIS 7 YaBB 2.5
Reply #18 - Oct 11th, 2012 at 1:18pm
There are no actions to perform.
Excellent Steve!  That's great news!

Good Luck with YaBB
Cool
  

I find your lack of faith disturbing.
Back to top
IP Logged
 
Red Barchetta
YaBB Moderator
Documentation Team
YaBB Moderators
****
Offline



Posts: 212
Location: Miami, FL. USA

YaBB 2.6.1
Re: Windows Server 2008 IIS 7 YaBB 2.5
Reply #19 - Apr 25th, 2017 at 12:15am
There are no actions to perform.
Just found this thread, for a while now I have been having the

"502 - Web server received an invalid response while acting as a gateway or proxy server.
There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server."

issue. I finally set up a new test server also running iis 7.5 and still have the same issue with 2.6.11

I installed 2.5 and it is running fine so far. Any thoughts on what might be the problem where 2.5 runs but 2.6 does not? My 2.6 was running great for about a year prior to this problem.
  

Back to top
WWW  
IP Logged
 
Red Barchetta
YaBB Moderator
Documentation Team
YaBB Moderators
****
Offline



Posts: 212
Location: Miami, FL. USA

YaBB 2.6.1
Re: Windows Server 2008 IIS 7 YaBB 2.5
Reply #20 - Apr 25th, 2017 at 1:08am
There are no actions to perform.
Oh, I did the mod that Jon suggested to the 2.5 to make it work. I do not see the same code in the Settings_Advanced.pl for the 2.6.
  

Back to top
WWW  
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 3,556
Location: Earth

YaBB 2.6.1
Re: Windows Server 2008 IIS 7 YaBB 2.5
Reply #21 - Apr 25th, 2017 at 1:27am
There are no actions to perform.
In 2.6, that function has been moved to a different file. But since you had to comment out Disk Space Checking in 2.5 it's probably a related problem.

Open 'Variables/Settings.pm' in a good text editor and make sure $checkspace, $enable_quota, and $enable_freespace_check all equal '0'. This will prevent YaBB from even loading the file with the Disk Space Check code in it.

« Last Edit: Apr 25th, 2017 at 1:27am by Dandello »  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Red Barchetta
YaBB Moderator
Documentation Team
YaBB Moderators
****
Offline



Posts: 212
Location: Miami, FL. USA

YaBB 2.6.1
Re: Windows Server 2008 IIS 7 YaBB 2.5
Reply #22 - Apr 25th, 2017 at 2:38pm
There are no actions to perform.
All those values are set to "0" on both the old and new servers. I also spoke too soon about the 2.5, though it resolved the error in the Admin section, when I created a post, after hitting the post button I got the error. When you go back the post is there, but you have to navigate back to the forum to see it. So it fixed it in one area (Admin) for 2.5 and still nothing for 2.6.

Is it possible my ISP (Comcast) has done something?
  

Back to top
WWW  
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 3,556
Location: Earth

YaBB 2.6.1
Re: Windows Server 2008 IIS 7 YaBB 2.5
Reply #23 - Apr 25th, 2017 at 5:30pm
There are no actions to perform.
I forget - are you being hosted by Comcast?

I'm suspecting the Disk Space Checking problem may have been a different issue.

See: https://support.microsoft.com/en-us/help/2455129/fix-arr-does-not-route-requests...
and https://www.lifewire.com/502-bad-gateway-error-explained-2622939

Base on these, you might have a problem with the IIS7 server OR Comcast is fracking up.




  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Red Barchetta
YaBB Moderator
Documentation Team
YaBB Moderators
****
Offline



Posts: 212
Location: Miami, FL. USA

YaBB 2.6.1
Re: Windows Server 2008 IIS 7 YaBB 2.5
Reply #24 - Apr 25th, 2017 at 7:22pm
There are no actions to perform.
Ok, on the new test server, Win Server 2008 w/IIS7.5 ActivePerl, Mapping and handlers set up. Paths.pl all set to localhost, and I still get the 502 bad gateway errors.
  

Back to top
WWW  
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 3,556
Location: Earth

YaBB 2.6.1
Re: Windows Server 2008 IIS 7 YaBB 2.5
Reply #25 - Apr 25th, 2017 at 9:04pm
There are no actions to perform.
Well, I think that indicates that Comcast may be innocent (this time).

Do you have output compression turned on by any chance? (Advanced Settings -> Advanced) Sometimes when I've downloaded a forum for troubleshooting, having output compression turned on breaks the entire downloaded forum on my test server.

For the 2.5, since you indicated it throws the 502 after hitting the submit button for a post:
Hitting the submit button ends up (after printing the post to its file and doing things like updating favorites and sending out notifications) calling the 'redirectexit' routine which sets the header status to '302 Moved Temporarily' and calls the 'print_output_header' routine. That prints out the header info (the info like the page modified date, the content-type, content-encoding, character set/encoding) for the browser.

I am guessing that IIS7 is having a problem with something in the header info.

Edited:
I forgot to ask - when did this problem start?
« Last Edit: Apr 25th, 2017 at 9:14pm by Dandello »  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Red Barchetta
YaBB Moderator
Documentation Team
YaBB Moderators
****
Offline



Posts: 212
Location: Miami, FL. USA

YaBB 2.6.1
Re: Windows Server 2008 IIS 7 YaBB 2.5
Reply #26 - Apr 26th, 2017 at 3:06am
There are no actions to perform.
Started months ago, I forget exactly when now. I might be able to do some research if that is really needed.

Turned compression off, got the error along the lines you mentioned.

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 "CGI::param called in list context from C:/inetpub/wwwroot/yabb//Sources/Subs.pl line 827, this can lead to vulnerabilities. See the warning in "Fetching the value or values of a single named parameter" at C:/Perl64/lib/CGI.pm line 412. HTTP/1.0 302 Moved Temporarily Location: http://localhost/yabb/YaBB.pl?num=1493094209/0#3 ".
  

Back to top
WWW  
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 3,556
Location: Earth

YaBB 2.6.1
Re: Windows Server 2008 IIS 7 YaBB 2.5
Reply #27 - Apr 26th, 2017 at 12:14pm
There are no actions to perform.
Red Barchetta wrote on Apr 26th, 2017 at 3:06am:
The headers it did return are "CGI::param called in list context from C:/inetpub/wwwroot/yabb//Sources/Subs.pl line 827, this can lead to vulnerabilities. See the warning in "Fetching the value or values of a single named parameter"


THAT indicates you updated Perl (and CGI.pm) This may be causing IIS7 to have a hissy.

In Subs.pl find
Code
Select All
$CGI_query = new CGI; 


Replace it with
Code
Select All
$CGI_query = CGI->new; 



Find
Code
Select All
@value = $CGI_query->param($name); 


Replace with
Code
Select All
@value = $CGI_query->multi_param($name); 



The same code will be in 2.6.

Edited:
The error statement also has /yabb//Sources
Somehow I don't think that's right.  Huh
« Last Edit: Apr 26th, 2017 at 12:19pm by Dandello »  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Red Barchetta
YaBB Moderator
Documentation Team
YaBB Moderators
****
Offline



Posts: 212
Location: Miami, FL. USA

YaBB 2.6.1
Re: Windows Server 2008 IIS 7 YaBB 2.5
Reply #28 - Apr 26th, 2017 at 4:47pm
There are no actions to perform.
Just this week I installed Windows 2008 Server on a spare machine and downloaded and installed Active perl 5.22.3.2204 from the Activestate website. They also offer version 5.24.1.2402 which I did not use. Windows was fully updated and patched, but that was it. No Perl updates.
  

Back to top
WWW  
IP Logged
 
Red Barchetta
YaBB Moderator
Documentation Team
YaBB Moderators
****
Offline



Posts: 212
Location: Miami, FL. USA

YaBB 2.6.1
Re: Windows Server 2008 IIS 7 YaBB 2.5
Reply #29 - Apr 26th, 2017 at 5:01pm
There are no actions to perform.
So, I found I still had Activeperl 5.11 on my original server and installed it on my test server, and ALL my versions of YABB except 2.7 are now functioning properly. Going to re-install the 5.11 on my production server and see if that clears up its issue as well.
  

Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 [2] 3 4 
There are no actions to perform.