PDA

View Full Version : Windows server got rebooted now wiki won't load



roadzy
02-10-2010, 03:01 PM
Site settings could not be loaded

We were unable to locate the API to request site settings. Please see below for debugging information.

HTTP Response Status Code: 400


What could have changed?

crb
02-10-2010, 04:30 PM
Anything!

What does the API log say?
What does it say when you hit http://site/@api/deki?

roadzy
02-10-2010, 10:04 PM
when i go to @api/deki i get "Bad Request (Invalid Hostname)" i'm thinking instead of 127.0.0.1 i've changed a few files to the ip. What files should i look at to confirm all IPs are not 127 but instead the ip.

crb
02-11-2010, 02:36 PM
Yeah, if you hard-code the IP address, you can't access with any IP but that one.

roadzy
02-11-2010, 02:40 PM
do you have any suggestions of files i should look for that would have the ip listed in it?

crb
02-11-2010, 02:41 PM
LocalSettings.php has the hostname of the API in it.

roadzy
02-11-2010, 05:12 PM
I turned on debuging and have attached the output...I think the problem is the one line that says localhost. Where do I need to change that to the ip? also i just changed the first 3 octets in the IPs to x's.

crb
02-11-2010, 05:51 PM
Are you running Dream from the batch file (if so, it's in there?) ISTR you running from IIS, in which case I don't see that it will only listen on localhost, I guess it listens on whatever IP/s you have it in a web server for.

roadzy
02-11-2010, 06:06 PM
yea i'm running it from the batch file and its running apache

crb
02-12-2010, 05:30 PM
OK, so what does your batch file say, and what does your ProxyPass line say in your Apache config?

(Sorry, I help a lot of people out and get them mixed up at times. :))

roadzy
02-12-2010, 05:45 PM
i decided due to the vulnerability found, I upgraded to 9.08.3....

well i tried following this page Link (http://developer.mindtouch.com/Official_MindTouch_Installation_Guides/Upgrading_MindTouch_9.08_%28source%29)

just tried to load the wiki page... got the default first time install page... what file(s) did i miss? i backed up the directory before i upgraded

I was sort of hoping upgrading might fix my problem haha

Update: Nevermind i found the missing file... still doesn't work...

I've attached some new files...

crb
02-12-2010, 05:54 PM
If you don't have a LocalSettings.php you might get sent to that config/ page? You would at the least need to restore that.

roadzy
02-12-2010, 06:21 PM
yea i added it back and that fixed it...

i ran php update-db.php


and /@api/deki/@about worked...

/@api/deki works too

I still get when i go to the wiki...

Site settings could not be loaded

We were unable to locate the API to request site settings. Please see below for debugging information.

HTTP Response Status Code: 0

crb
02-13-2010, 04:22 PM
You could try hard-coding the location of the API with $wgDreamServer in LocalSettings.php?

roadzy
02-15-2010, 04:28 PM
Where should the localsetting.php file be located that it loads? I found 3 of them?

C:\deki
C:\deki\web
C:\deki\web\config

While i was typing this i changed the $wgDreamServer to the other ip on the server and it now works. Should that file be in 1 or all 3 of those locations?

crb
02-15-2010, 07:14 PM
You should only have one, in c:\deki\web. The one in config\ should have been moved out after the installation.

roadzy
02-16-2010, 02:39 PM
gotcha! thanks! now on to single sign on... i posted some config files in the ldap forum... if anyone can help with that also, that would be awesome thnx

roadzy
08-11-2010, 03:04 PM
talk about feeling stupid... so i had this working and the people I set it up for are finally getting ready to use it... i load it up and doesn't work?!!?

I reread through this thread and it sounds like the same thing yet I DIDN"T CHANGE ANYTHING!?!?!? So here is my deal..

I am getting Site settings could not be loaded. We were unable to locate the api to request site settings. Please see below for debugging information. HTTP Response Status Code: 400.

So i go to http://wiki.site.com/@api/deki/about

And it doesn't load so I know it has something to do with the api. I did a netstat and it is listening on the right port and waiting. Thoughts?

So I decided to upgrade to v10... new message "Site Settings could not be loaded. We were unable to locate the api to request site settings. Please see below for debugging information. If this is a new install try refreshing - the API is simply taking its time loading up! HTTP Response Status Code: 0 couldn't connect to host."

The Dream Host APIKEY is shown at the top of the mindtouch.host.exe when ran. It changes every time I run it?

Just decided to start a new thread:

http://forums.developer.mindtouch.com/showthread.php?p=42060#post42060

roadzy
08-12-2010, 03:37 PM
I resolved this thanks