Page Index Toggle Pages: 1 [2] 3 4 ... 6
Topic Tools
Very Hot Topic (More than 25 Replies) Upgraded from 2.4 to 2.5 and now broken (Read 21,987 times)
sausagenet
YaBB Newcomer
*
Offline



Posts: 25

None
Re: Upgraded from 2.4 to 2.5 and now broken
Reply #15 - Jun 11th, 2012 at 9:35pm
Post Tools
Ok, so instant fail.
At my domain there is a brand new, 25AE install, with no cofiguration at all.  As soon as you login to setup.pl, you get...

CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.

So I cannot even begin to setup a fresh system.
  
Back to top
 
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,727
Location: Los Angeles

YaBB 2.4
Re: Upgraded from 2.4 to 2.5 and now broken
Reply #16 - Jun 11th, 2012 at 9:42pm
Post Tools
sausagenet wrote on Jun 11th, 2012 at 9:35pm:
Ok, so instant fail.
At my domain there is a brand new, 25AE install, with no cofiguration at all.  As soon as you login to setup.pl, you get...

CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.

So I cannot even begin to setup a fresh system.

Just a quick, but important note: Your http://www.sausagenet.org/Setup.pl page is actually working, so it looks like you're in good shape. Of course I left it alone so that you can do your thing as the admin of your forum.
Edited:
sausagenet wrote on Jun 11th, 2012 at 9:53pm:
Hi Bill
Thanks - but it isn't Sad

... you can login as admin, and you will instantly receive the CGI error.


Good luck!

Edited:
Dandello wrote on Jun 11th, 2012 at 5:57pm:
...
Bill may well be right on this and not all files were properly updated.

Evidently not. Oh well. I was just guessing anyway.  Roll Eyes
« Last Edit: Jun 11th, 2012 at 10:07pm by Bill Myers »  

Morning, noon, or night, have a great one!

Note: This forum doesn't allow for us to freely edit our posts or topics to make corrections as needed, so please remember to look for subsequent posts if you see any mistakes or outdated information. Sorry for the inconvenience.
Back to top
IP Logged
 
sausagenet
YaBB Newcomer
*
Offline



Posts: 25

None
Re: Upgraded from 2.4 to 2.5 and now broken
Reply #17 - Jun 11th, 2012 at 9:53pm
Post Tools
Hi Bill
Thanks - but it isn't Sad

The bit that is working is that IIS is serving the pages.
You can try it - feel free - there is no data there - you can login as admin, and you will instantly receive the CGI error.
  
Back to top
 
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,727
Location: Los Angeles

YaBB 2.4
Re: Upgraded from 2.4 to 2.5 and now broken
Reply #18 - Jun 11th, 2012 at 10:04pm
Post Tools
sausagenet wrote on Jun 11th, 2012 at 9:53pm:
Hi Bill
Thanks - but it isn't Sad

The bit that is working is that IIS is serving the pages.
You can try it - feel free - there is no data there - you can login as admin, and you will instantly receive the CGI error.

Drat! I hadn't known this. Sorry.  Sad

I suspect that there's something simple to fix this, but I'm hardly one to figure it out.  Roll Eyes
  

Morning, noon, or night, have a great one!

Note: This forum doesn't allow for us to freely edit our posts or topics to make corrections as needed, so please remember to look for subsequent posts if you see any mistakes or outdated information. Sorry for the inconvenience.
Back to top
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,727
Location: Los Angeles

YaBB 2.4
Re: Upgraded from 2.4 to 2.5 and now broken
Reply #19 - Jun 11th, 2012 at 10:12pm
Post Tools
Since your Setup.pl file loads (even though it doesn't actually work), I'm wondering if this is a path issue.  Questioning

If it is, then maybe that can be corrected locally, and then uploaded to your server.

Is there anyone here with the brains to figure this out? It's beyond my pay scale.  Angry
  

Morning, noon, or night, have a great one!

Note: This forum doesn't allow for us to freely edit our posts or topics to make corrections as needed, so please remember to look for subsequent posts if you see any mistakes or outdated information. Sorry for the inconvenience.
Back to top
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,727
Location: Los Angeles

YaBB 2.4
Re: Upgraded from 2.4 to 2.5 and now broken
Reply #20 - Jun 11th, 2012 at 10:25pm
Post Tools
Maybe the following is a clue:

When you load your Setup.pl file, it will give you the following error:

Code
Select All
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
 



And yet, when you give it a complete set of HTTP headers, the following error message is given:

Code
Select All
An Error Has Occurred!

Setup Error: You should fill in your password!
 


So instead of giving it a www header, I gave it the full header of http://www, etc.

I remember getting an HTTP Header error after modifying another forum (not YaBB), and it was because I made the mistake of duplicating the HTTP Header.

Or more accurately, I had changed the HTTP address of an internal file, and the forum's software duplicated it. Fortunately, I was able to reverse my error, and everything worked again.

This is why I think there could be an issue with the path settings.
  

Morning, noon, or night, have a great one!

Note: This forum doesn't allow for us to freely edit our posts or topics to make corrections as needed, so please remember to look for subsequent posts if you see any mistakes or outdated information. Sorry for the inconvenience.
Back to top
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,477
Location: Earth

YaBB 2.6.1
Re: Upgraded from 2.4 to 2.5 and now broken
Reply #21 - Jun 11th, 2012 at 10:33pm
Post Tools
If this were Apache/Linux, I'd definitely go with permissions error.

Setup.pl is pretty much self contained BUT it does need the Members/admin.vars file and Subs.pl and it checks for the forum.control file and the cookie. And the failure is occurring while trying to run sub adminlogin2. So it isn't finding the things it needs or is unable to access them.

I think the equivalent error on Apache is a 500 error - premature end of Script headers. Which basically means the script didn't run through properly. (But we already knew that.)

JonB is our expert on IIS.
« Last Edit: Jun 11th, 2012 at 10:35pm by Dandello »  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,727
Location: Los Angeles

YaBB 2.4
Re: Upgraded from 2.4 to 2.5 and now broken
Reply #22 - Jun 11th, 2012 at 11:03pm
Post Tools
Dandello wrote on Jun 11th, 2012 at 10:33pm:
If this were Apache/Linux, I'd definitely go with permissions error.

...

I think the equivalent error on Apache is a 500 error - premature end of Script headers.

...

I can vouch for that.  Cry

I'm curious as to how JonB might solve this since it could possibly give me clues about my equivalent 500 error when I try to install YaBB. Permissions have been given correctly, so we've got something else going on as well.

How this gets resolved should be interesting.

Edited:
I realize that I'm probably reaching here, but what if the YaBB installation package has gotten corrupted in some way? His and mine. I think I downloaded it from the proper source.

I got clued into this thinking by reading through some of the "CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers" search results that came up.

I mean, there's always that possibility. Undecided
« Last Edit: Jun 11th, 2012 at 11:08pm by Bill Myers »  

Morning, noon, or night, have a great one!

Note: This forum doesn't allow for us to freely edit our posts or topics to make corrections as needed, so please remember to look for subsequent posts if you see any mistakes or outdated information. Sorry for the inconvenience.
Back to top
IP Logged
 
sausagenet
YaBB Newcomer
*
Offline



Posts: 25

None
Re: Upgraded from 2.4 to 2.5 and now broken
Reply #23 - Jun 11th, 2012 at 11:32pm
Post Tools
I'm kinda confused as to why this might be a paths issue, given that on a fresh install, the paths file is empty anyway until you run through setup.

If anyone can point me to a "yabb on iis" install guide, where the directory strutcure and permissions for IUSR are define, I will run through the whole thing from scratch (again).

Failing that I am going to restore the 2.4 and just leave it there for now.

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



Posts: 2,477
Location: Earth

YaBB 2.6.1
Re: Upgraded from 2.4 to 2.5 and now broken
Reply #24 - Jun 11th, 2012 at 11:49pm
Post Tools
Oddly enough, it can still be paths: from Setup.pl
Code
Select All
unless ($lastsaved) {
	$boardsdir = "./Boards";
	$sourcedir = "./Sources";
	$memberdir = "./Members";
	$vardir    = "./Variables";
}

if (-e "YaBB.cgi") { $yyext = "cgi"; }
else { $yyext = "pl"; }
if ($boardurl) { $set_cgi = "$boardurl/Setup.$yyext"; }
else { $set_cgi = "Setup.$yyext"; }

# Make sure the module path is present
push(@INC, "./Modules");

require "$sourcedir/Subs.pl";
require "$sourcedir/System.pl";
require "$sourcedir/Load.pl";
require "$sourcedir/DateTime.pl";
 



if $sourcedir is wrong, or the Modules directory is wrong or empty, or the file names in the requires are wrong, then it will croak.

Another place to check for more info is your server error log. While YaBB usually preempts the server errors, I'm betting this one got written to the server error log. It may still not tell you anything, but it just might.

Edited:
After a quick test I can tell you that part of the problem is accessing Sources/Load.pl. That script is not properly reading Members/admin.vars. Hitting submit with a blank password field triggers the proper error. Anything else triggers the http error.

« Last Edit: Jun 12th, 2012 at 12:02am 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: 4,031
Location: Land of the Blazing Sun!

YaBB 2.6.1
Re: Upgraded from 2.4 to 2.5 and now broken
Reply #25 - Jun 12th, 2012 at 1:21am
Post Tools
Without knowing what the original paths were its hard to 'guess' how you forum was set up under IIS. Reason: IIS is totally different than Apache.  There is no 'htdocs', 'public_html' or 'cgi-bin' on IIS.  ALL of those things are constructs created to deal with Apache and how it works.

You 'could' create them, and as long as you set the NTFS and IIS permissions correctly, it would work exactly as it does under Apache.  But it would also be OK to have things in any folder you wanted.

http://www.newnetenterprises.com/merchants/web_tutorials/iis6_yabb.htm

If you want to follow YaBB conventions, make a 'cgi-bin' folder for your yabb2 folder and its children in the roor of your webserver, and a 'yabbfiles' folder also in the root of your webserver.  Then follow the instructions in the guide mentioned above.

like this:

wwwroot\cgi-bin\yabb2\...

wwwroot\yabbfiles

There is no way for me to know what the 'root' of your webserver is.  Is it 'your server' or a hosted one?  Do you have direct access  or Remote Desktop to the server or you you use a Control Panel?  If its a Control Panel is it Plesk, Cpanel or WHM?


Good Luck
Cool
« Last Edit: Jun 12th, 2012 at 1:32am by JonB »  

I find your lack of faith disturbing.
Back to top
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,727
Location: Los Angeles

YaBB 2.4
Re: Upgraded from 2.4 to 2.5 and now broken
Reply #26 - Jun 12th, 2012 at 8:14am
Post Tools
My learning curve is getting very curvy!  Shocked

And now I'm really glad not to be on a Windows server.  Tongue

I just did a quick read from this link that JonB provided, and it seems especially helpful.

Edited:
This page might be helpful as well.

The list of help for a Windows installation here on this page might be the most important references.

Both links above currently work best using Internet Explorer.

On the note of installing YaBB, this particular problem with a Windows install, and problems with getting a 500 error on a UNIX server compels me to advocate for easy-to-understand installation instructions.

Otherwise, I think the use of YaBB will remain relatively low (just as it is with other forum software that hasn't stepped up to the next generation of what amounts to self installation).

Developers need to be reminded that most of us aren't as smart you are in terms of understanding what to do, and how to do it.

So from my regular guy mind, my conclusion is that paths need to be exact, and permissions however they're given need to be precise.

By the way, other forum software offers what to do guides that pop up when an error is encountered. Maybe YaBB's developers can do the same.

Meanwhile, I sure hope somebody can actually help out here to get his YaBB forum up and running again.
« Last Edit: Jun 12th, 2012 at 8:37am by Bill Myers »  

Morning, noon, or night, have a great one!

Note: This forum doesn't allow for us to freely edit our posts or topics to make corrections as needed, so please remember to look for subsequent posts if you see any mistakes or outdated information. Sorry for the inconvenience.
Back to top
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



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

YaBB 2.6.1
Re: Upgraded from 2.4 to 2.5 and now broken
Reply #27 - Jun 12th, 2012 at 12:49pm
Post Tools
If you do not have actual substantial knowledge to contribute to a support problem, kindly refrain from confusing the issue.


Wink


  

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



Posts: 25

None
Re: Upgraded from 2.4 to 2.5 and now broken
Reply #28 - Jun 12th, 2012 at 12:51pm
Post Tools
Hi Guys
Thanks for the continued help - I will continue to fiddle for a while.  The server is mine - an actual Windows 2003 Server, just for my use, that I have direct remote access as Administrator to the desktop - I'm not using FTP or anything like that.

Again, just for clarity,  I now have two different situations here:

The original 2.4 forum that worked, perfectly, on this server for many years.  ALL I did on this one was extract the upgrade files over the top of the pre-existing files as per the instructions.  This won't have changed any permissions, directory structures etc.  This has resulted in the errors described above.

The new situation is an attempt to do a fresh 2.5 install.  setup.pl asks for a password, then returns the cg bad behavior message - so I canno even begin to start configuring a new install.

I'll going to follow the instruction mentioned above and see where I get,

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



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

YaBB 2.6.1
Re: Upgraded from 2.4 to 2.5 and now broken
Reply #29 - Jun 12th, 2012 at 1:14pm
Post Tools
Actually, sausagenet, that's not the case about the NTFS and IIS permissions.  It ultimately depends on what user unzipped the files, where they were located and if it was a copy or move operation that was performed.

MOVE preserves the permissions as they were from an NTFS point of view.  COPY, on the other hand, is a cumulative addition of permissions.  i.e. the original permissions are retained and any permissions created by inheritance (usually from a parent folder) are added.

"By default, an object inherits permissions from its parent object, either at the time of creation or when it is copied or moved to its parent folder. The only exception to this rule occurs when you move an object to a different folder on the same volume. In this case, the original permissions are retained."

http://support.microsoft.com/kb/310316

Be SURE your Paths.pl is writable. (it won't be from inheritance, if the server was setup correctly).

I have several YaBB forums running on IIS 6 and have fixed countless others. The guide is accurate, but a bit out of date - I think there may be some new folders introduced in 2.4 (which I think came along after I wrote it).

Good Luck

Cool


« Last Edit: Jun 12th, 2012 at 1:15pm by JonB »  

I find your lack of faith disturbing.
Back to top
IP Logged
 
Page Index Toggle Pages: 1 [2] 3 4 ... 6
Topic Tools