Page Index Toggle Pages: [1] 2 
Topic Tools
Hot Topic (More than 10 Replies) Windows Server 2008 IIS 7 YaBB 2.5 (Read 6,020 times)
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 3,785
Location: Land of the Blazing Sun!

YaBB 2.6.0
Re: Windows Server 2008 IIS 7 YaBB 2.5
Reply #18 - Oct 11th, 2012 at 1:18pm
Post Tools
Excellent Steve!  That's great news!

Good Luck with YaBB
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
Post Tools
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: 3,785
Location: Land of the Blazing Sun!

YaBB 2.6.0
Re: Windows Server 2008 IIS 7 YaBB 2.5
Reply #16 - Oct 5th, 2012 at 12:45pm
Post Tools
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 #15 - Oct 5th, 2012 at 10:05am
Post Tools
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: 3,785
Location: Land of the Blazing Sun!

YaBB 2.6.0
Re: Windows Server 2008 IIS 7 YaBB 2.5
Reply #14 - Oct 2nd, 2012 at 9:46pm
Post Tools
@ Dandello

Yep - that would been the first thing I would looked at.  We learned a lot eh?  I know now exactly what really happens with that code, BTW.

As you know I have been moving servers - some had to go to my 'shop' on their way to new homes.  LOL - some needed to go to my shop!  Whooo-boy...   Shocked

Anyway - Much IP wackiness ensued. A few things went 'whoops'.  BOY did I lean a lot about YaBB. (and spammers & spam-bots)    smiley=angry.gif]

whatever.
Wink



  

I find your lack of faith disturbing.
Back to top
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,130
Location: Earth

YaBB 2.6.0
Re: Windows Server 2008 IIS 7 YaBB 2.5
Reply #13 - Oct 2nd, 2012 at 2:08pm
Post Tools
This one may be related to a little glitch relating to a *nix command that chokes some Win servers. Open Settings_Advanced.pl in a good text editor  and find
Code
Select All
# Free Disk Space Checking
my @disk_space = qx{df -k .};
map { $_ =~ s/ +/  /g } @disk_space; 



Comment out the lines of code. (put a # in front of them.)

If that doesn't do it, then I'm sure JonB will have more questions.
  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
_STEVE_
YaBB Newcomer
*
Offline



Posts: 8
Location: Nottingham, UK
Re: Windows Server 2008 IIS 7 YaBB 2.5
Reply #12 - Oct 2nd, 2012 at 10:11am
Post Tools
Jon,

I would be more than happy to help out with any beta testing.

I have several website customers that are asking for forums, so am happy to try anything new - just let me know.

My setup is Windows Server 2008 Standard / IIS 7 running on a SuperMicro 64-bit server.

You may be able to help me with one more little problem I am having...?  Wink

My forums are now working (as mentioned above) but the Advanced Settings page is returning this error:

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.

... any thoughts?

Cheers,

Steve
« Last Edit: Oct 2nd, 2012 at 10:12am by _STEVE_ »  
Back to top
 
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 3,785
Location: Land of the Blazing Sun!

YaBB 2.6.0
Re: Windows Server 2008 IIS 7 YaBB 2.5
Reply #11 - Sep 27th, 2012 at 6:28pm
Post Tools
Steve -

I'm glad you have it working now (and I am sure you are gladder than I am  Grin )

Just so you know - We are busy evolving a really new YaBB over the next year. We have several initiatives, including improved installers and better 'server qualification'.  One of the things MOST needed is testing for IIS and IIS installation scripting.  LOL - this is 'non-destructive' testing we are talking about.

This is something I'd like to discuss with you. Please send me a PM.

Good luck & thanks very much
Cool


BTW - did you vote on the next release's theme?

http://www.yabbforum.com/community/YaBB.pl?num=1348531012


  

I find your lack of faith disturbing.
Back to top
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,130
Location: Earth

YaBB 2.6.0
Re: Windows Server 2008 IIS 7 YaBB 2.5
Reply #10 - Sep 27th, 2012 at 4:43pm
Post Tools
Excellent!!  Smiley  Smiley
  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
_STEVE_
YaBB Newcomer
*
Offline



Posts: 8
Location: Nottingham, UK
Re: Windows Server 2008 IIS 7 YaBB 2.5
Reply #9 - Sep 27th, 2012 at 4:05pm
Post Tools
YOU GUYS ROCK!!!  Cheesy

JonB and Dandello, you have between you got me working again and I am extremely grateful!

What worked for me was a clean install and setup of 2.5AE then a copy of Boards etc

Worked like a charm!  Smiley

Not happy to just sit back and accept that it now worked, I did a compare between the new (working) and old YaBB installations and found the problem to be something as simple as the local filepaths being defined differently on the two servers. Simple, but without you guys I probably wouldn't have found this!

JonB, for your info, I am running a dedicated server to which I have full admin rights, so this was easy for me to do.

Thank you so much.

Steve

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



Posts: 2,130
Location: Earth

YaBB 2.6.0
Re: Windows Server 2008 IIS 7 YaBB 2.5
Reply #8 - Sep 27th, 2012 at 2:35pm
Post Tools
YaBB is interpreted by Perl - so it's the Perl version running on your machine that you have to worry about - 2.5AE has a few issues with the most current Perl - 5.12 works for it, 5.16 doesn't without some YaBB patches (or moving to the 2.5.2 beta)- but what you're describing aren't the symptoms of this problem.

JonB is our local server expert and I'm sure he'll be checking in shortly.

For an install - Download a new 2.5AE and do a completely new install according the the Quick-Guide instructions and make sure the problem isn't also in the new install.  (One thing that will happen is the new install will check and make sure your Perl version has all the modules YaBB needs to run properly. It should also show if you need to patch YaBB 2.5 for Perl 5.14/5.16.)

Once the new install is good (you can log in as Admin and things save properly from there), copy your Members, Messages, Boards, and Variables folders over to the new installation as well as Templates if you have custom templates. Also copy over the contents of the yabbfiles/Attachments (if it isn't empty), yabbfiles/avatars/UserAvatars (if it isn't empty) and the yabbfiles/Templates folder (if you have custom templates).

Then, in admin, run the various 'rebuild, recount' utilities.

Assuming your install went okay, this should work. Once you're up and running you'll also need to reinstall any mods you had as those will not be in your new install.

Edited:
Didn't I say JonB would be around?
« Last Edit: Sep 27th, 2012 at 2:36pm by Dandello »  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 3,785
Location: Land of the Blazing Sun!

YaBB 2.6.0
Re: Windows Server 2008 IIS 7 YaBB 2.5
Reply #7 - Sep 27th, 2012 at 2:34pm
Post Tools
The ONLY way to move a YaBB install that actually works reliably is do a clean install, test and then bring back the 'data elements'.

As to 'fully supported' - It certainly runs on IIS7. Most of those installs I am aware of are on hosted servers or managed VPS's. That is not a huge number. I would bet all of them are 64 bit installs, as I can't imagine a hosting company installing the 32 bit version due to the memory mapping issue (it would be a non-starter).

Is this an in-house server, a hosted server, a VPS or a VM?

I am aware of one persistent unresolved bug on Server 2008/Active States 64 bit installs. I ran into it myself when I had a running Server2008 in core mode. Basically - you see the same text displayed twice (you'll catch this right away).  As a systems engineer, my 'guess' was that it had to do with FastCGI and how YaBB is coded.  I have had other reports of the same occurrence.

I don't think you have this problem. So the chances are you just need to set up clean, install, and test.

Make it work, when you bring back the data - the test install is lost, as all the pointers are gone.

The problem here is the low numbers, there's not enough info to say anything definitively.

Did you set up Perl/Application Handler. (like this link)?
http://www.howtogeek.com/50479/how-to-install-perl-on-iis-7-for-windows-server-2...

I strongly suggest you don't directly use Windows backup/restore methods for bringing back the data. If the old server is still online, in the same domain and on the same network use a 'copy' method to get the files onto the new server. (could be a portable drive also)  When you get to the 'bring the files back' point - copy NOT move the files to their new location, then re-apply all the correct NTFS permissions to the YaBB folders & OK the 'apply to subfolder & files' dialogue. There is (AFAIK) only one file that does not adhere to its parent's inheritance.  'Paths.pl' in the root of Yabb's install folder. It has to be set manually to 'Write' for the IUSR.

Good Luck
Wink
« Last Edit: Sep 27th, 2012 at 3:03pm by JonB »  

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 #6 - Sep 27th, 2012 at 12:03pm
Post Tools
... one point I forgot to mention: The server is 64-bit but I am using the 32-bit version of YaBB 2.5

... is this an issue?
  
Back to top
 
IP Logged
 
_STEVE_
YaBB Newcomer
*
Offline



Posts: 8
Location: Nottingham, UK
Re: Windows Server 2008 IIS 7 YaBB 2.5
Reply #5 - Sep 27th, 2012 at 11:59am
Post Tools
Hi Dandello

Thank you for the suggestion. I have deleted all cookies but the problem persists.  Sad

I have a backup of the YaBB forum files so if you could please talk me through a complete reinstall then tell me which files to restore from the backup to 're-build' the forum as-was, I would be most grateful.

Do you know if YaBB 2.5 is fully supported on WS2008 / IIS7?

Thank you for your help.  Smiley

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



Posts: 2,130
Location: Earth

YaBB 2.6.0
Re: Windows Server 2008 IIS 7 YaBB 2.5
Reply #4 - Sep 26th, 2012 at 6:08pm
Post Tools
Before doing anything rash, try clearing the YaBB cookies in your browser.
It's possible there's a mismatch between your existing cookies and what the backup install is looking for.  

If that doesn't do it, we have a couple people around here who can help guide you through a re-install.
« Last Edit: Sep 26th, 2012 at 6:09pm by Dandello »  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: [1] 2 
Topic Tools
 
  « Board Index ‹ Board  ^Top