jOpenSimWorld

Grid Status: Online
Total Regions: 23
Visitors (30 Days): 12
Total Residents: 485
Online Now: 0
Hypergriders online: 0

Unable to connect to Search Server

12 years 2 days ago #1476 by jman
Hello,

I have been working all day trying to solve this error without any luck. I have reinstalled and reconfigured OpenSim, WAMP, Joomla, and JOpenSim several times today without any luck. I have been through the manual from front to back trying to see if I missed something. Any help would be greatly appreciated. Thank you.

Here is what I am working with:

- Windows 7 Home Premium
- OpenSim v0.7.4 (Grid Mode)
- Joomla v2.58
- JOpenSim com_opensim v0.2.5
- jOpenSim.Profile.dll
- jOpenSim.Search.dll
- WAMPServer v2.2e (PHP v5.4.3 Appache v2.2.22 MySQL v5.5.24-32b)

Console Error Message OpenSim.exe:

02:29:26 - [jOpenSimSearch]: (3) Unable to connect to Search Server http://localhost:8888/components/com_opensim/interface.php. Exception System.Xml.XmlException: Root element is missing.
02:29:26 - [jOpenSimSearch]: initDataUpdate returned error: Unable to search at this time.

Please Log in or Create an account to join the conversation.

12 years 1 day ago #1482 by foto50
Hi jman

"Root element is missing" is many times an indication of some error and/or notice output of php during xml response. Is there anything written in your access_log and/or error_log (of the webserver jOpenSim is installed)?

You also can enable debugging for "search" in jOpenSim global config and see what is turning up in your /components/com_opensim/interface.log (specially something about "response for searchDataUpdate").

[reminder]Dont forget to disable debugging at the end and empty interface.log again[/reminder] ;)

Greetz
FoTo50

Please Log in or Create an account to join the conversation.

12 years 1 day ago #1486 by jman
Thanks for the quick reply foto. Here are the results from the logs. I only enabled debug for the search. I had this working great the other day but then I accidentally screwed up my WAMP installation and had to start from scratch.

Access Log:

127.0.0.1 - - [20/Nov/2012:10:36:22 -0500] "GET / HTTP/1.1" 200 9255
127.0.0.1 - - [20/Nov/2012:10:36:25 -0500] "GET /templates/beez_20/images/personal/personal2.png HTTP/1.1" 304 -
127.0.0.1 - - [20/Nov/2012:10:36:25 -0500] "GET /index.php?option=com_search&format=opensearch HTTP/1.1" 200 614
127.0.0.1 - - [20/Nov/2012:10:36:29 -0500] "GET /administrator/index.php HTTP/1.1" 200 3856
127.0.0.1 - - [20/Nov/2012:10:37:06 -0500] "POST /administrator/index.php HTTP/1.1" 303 -
127.0.0.1 - - [20/Nov/2012:10:37:06 -0500] "GET /administrator/index.php HTTP/1.1" 200 22334
127.0.0.1 - - [20/Nov/2012:10:37:08 -0500] "GET /administrator/components/com_opensim/assets/images/icon-16-os-config.png HTTP/1.1" 304 -
127.0.0.1 - - [20/Nov/2012:10:37:08 -0500] "GET /administrator/components/com_opensim/assets/images/icon-16-os-user.png HTTP/1.1" 304 -
127.0.0.1 - - [20/Nov/2012:10:37:08 -0500] "GET /administrator/components/com_opensim/assets/images/icon-16-os-group.png HTTP/1.1" 304 -
127.0.0.1 - - [20/Nov/2012:10:37:08 -0500] "GET /administrator/components/com_opensim/assets/images/icon-16-opensim.png HTTP/1.1" 304 -
127.0.0.1 - - [20/Nov/2012:10:37:08 -0500] "GET /administrator/components/com_opensim/assets/images/icon-16-os-misc.png HTTP/1.1" 304 -
127.0.0.1 - - [20/Nov/2012:10:37:08 -0500] "GET /administrator/components/com_opensim/assets/images/icon-16-os-control-panel.png HTTP/1.1" 304 -
127.0.0.1 - - [20/Nov/2012:10:37:08 -0500] "GET /administrator/components/com_opensim/assets/images/icon-16-os-maps.png HTTP/1.1" 304 -
127.0.0.1 - - [20/Nov/2012:10:37:08 -0500] "GET /administrator/components/com_opensim/assets/images/icon-16-os-login.png HTTP/1.1" 304 -
127.0.0.1 - - [20/Nov/2012:10:37:08 -0500] "POST /administrator/index.php?option=com_installer&view=update&task=update.ajax HTTP/1.1" 200 2
127.0.0.1 - - [20/Nov/2012:10:37:10 -0500] "POST /administrator/index.php?option=com_installer&view=update&task=update.ajax HTTP/1.1" 200 2
127.0.0.1 - - [20/Nov/2012:10:37:14 -0500] "GET /administrator/index.php?option=com_opensim HTTP/1.1" 200 18829
127.0.0.1 - - [20/Nov/2012:10:37:16 -0500] "GET /administrator/components/com_opensim/assets/opensim.css HTTP/1.1" 304 -
127.0.0.1 - - [20/Nov/2012:10:37:16 -0500] "GET /administrator/components/com_opensim/assets/images/icon-48-opensim.png HTTP/1.1" 304 -
127.0.0.1 - - [20/Nov/2012:10:37:16 -0500] "GET /administrator/components/com_opensim/assets/images/icon-48-jopensimconfig.png HTTP/1.1" 304 -
127.0.0.1 - - [20/Nov/2012:10:37:16 -0500] "GET /administrator/components/com_opensim/assets/images/icon-48-os-user.png HTTP/1.1" 304 -
127.0.0.1 - - [20/Nov/2012:10:37:16 -0500] "GET /administrator/components/com_opensim/assets/images/icon-48-os-login.png HTTP/1.1" 304 -
127.0.0.1 - - [20/Nov/2012:10:37:16 -0500] "GET /administrator/components/com_opensim/assets/images/icon-48-os-group.png HTTP/1.1" 304 -
127.0.0.1 - - [20/Nov/2012:10:37:16 -0500] "GET /administrator/components/com_opensim/assets/images/icon-48-os-maps.png HTTP/1.1" 304 -
127.0.0.1 - - [20/Nov/2012:10:37:16 -0500] "GET /administrator/components/com_opensim/assets/images/icon-48-os-misc.png HTTP/1.1" 304 -
127.0.0.1 - - [20/Nov/2012:10:37:16 -0500] "GET /administrator/components/com_opensim/assets/images/icon-48-money.png HTTP/1.1" 304 -
127.0.0.1 - - [20/Nov/2012:10:37:16 -0500] "GET /administrator/components/com_opensim/assets/images/jOpenSim.png HTTP/1.1" 304 -
127.0.0.1 - - [20/Nov/2012:10:37:16 -0500] "GET /administrator/components/com_opensim/assets/quickicon_jopensim.php HTTP/1.1" 200 4591
127.0.0.1 - - [20/Nov/2012:10:37:20 -0500] "GET /administrator/index.php?option=com_opensim&view=settings HTTP/1.1" 200 35163
127.0.0.1 - - [20/Nov/2012:10:37:25 -0500] "GET /administrator/index.php?option=com_config&view=component&component=com_opensim&path=&tmpl=component HTTP/1.1" 200 62649
127.0.0.1 - - [20/Nov/2012:10:37:26 -0500] "GET /administrator/components/com_opensim/assets/jopensimoptions.css HTTP/1.1" 304 -
127.0.0.1 - - [20/Nov/2012:10:37:43 -0500] "POST /administrator/index.php?option=com_config HTTP/1.1" 303 -
127.0.0.1 - - [20/Nov/2012:10:37:43 -0500] "GET /administrator/index.php?option=com_config&view=close&tmpl=component HTTP/1.1" 200 955
127.0.0.1 - - [20/Nov/2012:10:37:43 -0500] "GET /administrator/index.php?option=com_opensim HTTP/1.1" 200 18829
127.0.0.1 - - [20/Nov/2012:10:37:45 -0500] "GET /administrator/components/com_opensim/assets/quickicon_jopensim.php HTTP/1.1" 200 4591
192.168.0.1 - - [20/Nov/2012:10:38:30 -0500] "GET /components/com_opensim/registersearch.php?service=online&host=jman2012.dnsdynamic.com&port=9000&secret=7ebe7098-c319-4aeb-be90-b39e0ec252e3 HTTP/1.1" 200 -
192.168.0.1 - - [20/Nov/2012:10:38:34 -0500] "POST /components/com_opensim/interface.php HTTP/1.1" 200 -

Apache Error Log:

[Tue Nov 20 10:35:13 2012] [notice] Apache/2.2.22 (Win32) PHP/5.4.3 configured -- resuming normal operations
[Tue Nov 20 10:35:13 2012] [notice] Server built: May 13 2012 13:32:42
[Tue Nov 20 10:35:13 2012] [notice] Parent: Created child process 2916
[Tue Nov 20 10:35:13 2012] [notice] Child 2916: Child process is running
[Tue Nov 20 10:35:13 2012] [notice] Child 2916: Acquired the start mutex.
[Tue Nov 20 10:35:13 2012] [notice] Child 2916: Starting 64 worker threads.
[Tue Nov 20 10:35:13 2012] [notice] Child 2916: Starting thread to listen on port 80.
[Tue Nov 20 10:35:13 2012] [notice] Child 2916: Starting thread to listen on port 80.

Interface Log:

########## 20.11.2012 15:38:30 ##### search register host online ##########
Registering host jman2012.dnsdynamic.com with port 9000 at timestamp 1353425910



########## 20.11.2012 15:38:30 ##### reaction in registersearch.php ##########




########## 20.11.2012 15:38:34 ##### response for unbekannt ##########
'
response for unknown method :

\'\''

Please Log in or Create an account to join the conversation.

12 years 1 day ago #1487 by jman
When I log into Opensim with the Viewer, the following errors appear in the Opensim console:

10:56:40 - [XMLRPC-GROUPS-CONNECTOR]: An error has occured while attempting to access the XmlRpcGroups server method groups.getAgentActiveMembership at jman2012.dnsdynamic.com:8888/components/...pensim/interface.php
10:56:40 - [XMLRPC-GROUPS-CONNECTOR]: Root element is missing. at System.Xml.XmlTextReaderImpl.Throw(Exception e)
10:56:40 - [XMLRPC-GROUPS-CONNECTOR]:
10:56:40 - [XMLRPC-GROUPS-CONNECTOR]: RequestingSessionID :: 00000000-0000-0000-0000-000000000000
10:56:40 - [XMLRPC-GROUPS-CONNECTOR]: RequestingAgentUserService ::
10:56:40 - [XMLRPC-GROUPS-CONNECTOR]: AgentID :: d2af2f48-023c-472b-b9f3-76faecd47b9d
10:56:40 - [XMLRPC-GROUPS-CONNECTOR]: ReadKey :: 125643
10:56:40 - [XMLRPC-GROUPS-CONNECTOR]: RequestingAgentID :: 00000000-0000-0000-0000-000000000000
10:56:40 - [XMLRPC-GROUPS-CONNECTOR]: WriteKey :: 524613
10:56:41 - [jOpenSimSearch]: (3) Unable to connect to Search Server jman2012.dnsdynamic.com:8888/components/...pensim/interface.php . Exception System.Xml.XmlException: Root element is missing.
10:56:41 - [jOpenSimSearch]: initDataUpdate returned error: Unable to search at this time.

10:56:41 - [jOpenSimSearch]: (3) Unable to connect to Search Server jman2012.dnsdynamic.com:8888/components/...pensim/interface.php . Exception System.Xml.XmlException: Root element is missing.
10:56:41 - [jOpenSimSearch]: initDataUpdate returned error: Unable to search at this time.

10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: An error has occured while attempting to access the XmlRpcGroups server method groups.getAgentActiveMembership at jman2012.dnsdynamic.com:8888/components/...pensim/interface.php
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: Root element is missing. at System.Xml.XmlTextReaderImpl.Throw(Exception e)
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]:
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: RequestingSessionID :: 00000000-0000-0000-0000-000000000000
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: RequestingAgentUserService ::
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: AgentID :: d2af2f48-023c-472b-b9f3-76faecd47b9d
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: ReadKey :: 125643
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: RequestingAgentID :: d2af2f48-023c-472b-b9f3-76faecd47b9d
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: WriteKey :: 524613
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: An error has occured while attempting to access the XmlRpcGroups server method groups.getAgentGroupMemberships at jman2012.dnsdynamic.com:8888/components/...pensim/interface.php
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: Root element is missing. at System.Xml.XmlTextReaderImpl.Throw(Exception e)
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]:
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: RequestingSessionID :: 00000000-0000-0000-0000-000000000000
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: RequestingAgentUserService ::
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: AgentID :: d2af2f48-023c-472b-b9f3-76faecd47b9d
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: ReadKey :: 125643
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: RequestingAgentID :: d2af2f48-023c-472b-b9f3-76faecd47b9d
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: WriteKey :: 524613
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: An error has occured while attempting to access the XmlRpcGroups server method groups.getAgentGroupMemberships at jman2012.dnsdynamic.com:8888/components/...pensim/interface.php
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: Root element is missing. at System.Xml.XmlTextReaderImpl.Throw(Exception e)
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]:
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: RequestingSessionID :: 00000000-0000-0000-0000-000000000000
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: RequestingAgentUserService ::
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: AgentID :: d2af2f48-023c-472b-b9f3-76faecd47b9d
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: ReadKey :: 125643
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: RequestingAgentID :: 00000000-0000-0000-0000-000000000000
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: WriteKey :: 524613
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: An error has occured while attempting to access the XmlRpcGroups server method groups.getAgentGroupMemberships at jman2012.dnsdynamic.com:8888/components/...pensim/interface.php
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: Root element is missing. at System.Xml.XmlTextReaderImpl.Throw(Exception e)
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]:
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: RequestingSessionID :: 00000000-0000-0000-0000-000000000000
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: RequestingAgentUserService ::
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: AgentID :: d2af2f48-023c-472b-b9f3-76faecd47b9d
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: ReadKey :: 125643
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: RequestingAgentID :: 00000000-0000-0000-0000-000000000000
10:56:42 - [XMLRPC-GROUPS-CONNECTOR]: WriteKey :: 524613
10:56:42 - [SCENE PRESENCE]: Completing movement of JMans World into region Welcome Island in position <128.0153, 128.0065, 25.95539>
10:56:43 - [SCENE]: Upgrading child to root agent for JMans World in Welcome Island
10:56:43 - [XMLRPC-GROUPS-CONNECTOR]: An error has occured while attempting to access the XmlRpcGroups server method groups.getAgentActiveMembership at jman2012.dnsdynamic.com:8888/components/...pensim/interface.php
10:56:43 - [XMLRPC-GROUPS-CONNECTOR]: Root element is missing. at System.Xml.XmlTextReaderImpl.Throw(Exception e)
10:56:43 - [XMLRPC-GROUPS-CONNECTOR]:
10:56:43 - [XMLRPC-GROUPS-CONNECTOR]: RequestingSessionID :: 00000000-0000-0000-0000-000000000000
10:56:43 - [XMLRPC-GROUPS-CONNECTOR]: RequestingAgentUserService ::
10:56:43 - [XMLRPC-GROUPS-CONNECTOR]: AgentID :: d2af2f48-023c-472b-b9f3-76faecd47b9d
10:56:43 - [XMLRPC-GROUPS-CONNECTOR]: ReadKey :: 125643
10:56:43 - [XMLRPC-GROUPS-CONNECTOR]: RequestingAgentID :: 00000000-0000-0000-0000-000000000000
10:56:43 - [XMLRPC-GROUPS-CONNECTOR]: WriteKey :: 524613
10:56:44 - [MUTE LIST]: Got mute list request for crc 0
10:56:44 - [XMLRPC-GROUPS-CONNECTOR]: An error has occured while attempting to access the XmlRpcGroups server method groups.getAgentActiveMembership at jman2012.dnsdynamic.com:8888/components/...pensim/interface.php
10:56:44 - [XMLRPC-GROUPS-CONNECTOR]: Root element is missing. at System.Xml.XmlTextReaderImpl.Throw(Exception e)
10:56:44 - [XMLRPC-GROUPS-CONNECTOR]:
10:56:44 - [XMLRPC-GROUPS-CONNECTOR]: RequestingSessionID :: 00000000-0000-0000-0000-000000000000
10:56:44 - [XMLRPC-GROUPS-CONNECTOR]: RequestingAgentUserService ::
10:56:44 - [XMLRPC-GROUPS-CONNECTOR]: AgentID :: d2af2f48-023c-472b-b9f3-76faecd47b9d
10:56:44 - [XMLRPC-GROUPS-CONNECTOR]: ReadKey :: 125643
10:56:44 - [XMLRPC-GROUPS-CONNECTOR]: RequestingAgentID :: d2af2f48-023c-472b-b9f3-76faecd47b9d
10:56:44 - [XMLRPC-GROUPS-CONNECTOR]: WriteKey :: 524613
10:56:46 - [OFFLINE MESSAGING]: Retrieving stored messages for d2af2f48-023c-472b-b9f3-76faecd47b9d
10:56:47 - [SynchronousRestObjectRequester]: Oops! no content found in response stream from POST jman2012.dnsdynamic.com:8888/components/...hp/RetrieveMessages/
10:56:47 - [OFFLINE MESSAGING]: WARNING null message list.
10:56:47 - [LLCLIENTVIEW]: Caught exception while processing OpenMetaverse.Packets.RetrieveInstantMessagesPacket for JMans World, Object reference not set to an instance of an object. at OpenSim.Region.CoreModules.Avatar.InstantMessage.OfflineMessageModule.RetrieveInstantMessages(IClientAPI client)
10:56:50 - [BASE HTTP SERVER]: Slow handling of POST /CAPS/9b40d5db-de6a-405d-b528-afa498db2996 FetchInventory2 d2af2f48-023c-472b-b9f3-76faecd47b9d from 192.168.0.1:49589 took 3962ms
10:56:59 - [INVENTORY ACCESS MODULE]: Received request to create inventory item Bridge in folder 3798c90d-a673-4d16-b2ff-f87f3ce924d2
10:56:59 - [LINK]: Can't find linkset root prim 0
10:56:59 - [AGENT ASSET TRANSACTIONS]: Could not find uploader with transaction ID 048c3129-7eb2-55be-d215-a9145c0a2b8f when handling request to create inventory item Bridge from JMans World

Please Log in or Create an account to join the conversation.

11 years 11 months ago #1524 by foto50
Hi jman

Dynamic domain names can allways cause some problems, but for me it looks more like either your webserver is not listening on port 8888 or this port is not enabled in your firewall.

Greetz
FoTo50

Please Log in or Create an account to join the conversation.

11 years 11 months ago #1526 by jman
I have port 8888 open on my router and all other firewalls disabled. Using an online port checker, it shows it as open. The same goes for the ports that opensim uses.

Using the generic opensim services pack, everything works just fine. However, I would rather use jOpenSim because of it's functionality.

If it helps any, I have OpenSim configured to use two database. Robust.ini uses a database called opensimgrid and GridCommon.ini uses a database called opensim. The website uses a database called website.

All together there are three databases.

In jOpenSim Global Config it is setup this way:

Hostname: jman2012.dnsdynamic.com
Post: 9000

OpenSim database: opensim database
OpenSim Grid database: opensimgrid database

Joomla is installed in the root directory of the webserver (www).

Everything under Settings / Addons is checked except for Money and Inworld ID.

Please Log in or Create an account to join the conversation.

11 years 11 months ago #1527 by jman
On another note, it looks like none of the jOpenSim services are working. They are all producing errors.

When I had this running before, it was running under HyperGrid mode before I decided not to use HG and move to just using grid mode. I completely reinsalled OS, joomla, and jOpenSim when I switched over.

Please Log in or Create an account to join the conversation.

11 years 11 months ago #1566 by jman
After many hours of messing around with my router to fix this problem without any luck, I decided to examine the jOpenSim's interface.php file that kept saying that 192.168.0.1 was being denied from accessing.

Just by luck I came across this line:

$remoteip = $_SERVER['REMOTE_ADDR']; // who is talking with us?


After changing that line to obtain the IP address from an external source instead of just spitting out my local IP address, all the problems went away. All I did was upload a PHP file called "myip.php" to one of my external hosted websites with the following code in it:

<?php echo $_SERVER['REMOTE_ADDR']; ?>


And I changed:

$remoteip = $_SERVER['REMOTE_ADDR']; // who is talking with us?


to:

$remoteip = file_get_contents("http://example.com/myip.php"); // who is talking with us?


I hope this may help anyone that comes across a similar problem. The only downside is that since you can't control if the external website is up or down, you will end up with a problem of not being able to obtain the IP address if it is down. In this situation, you may need to add a server status check like this:

function CheckRemoteIP($host,$port=80,$timeout=1)
{
  $fsock = @fsockopen($host, $port, $errno, $errstr, $timeout);
  if (! $fsock)
  {
    // Offline - Use Alternate Server
    return file_get_contents("http://automation.whatismyip.com/n09230945.asp");
  }
  else
  {
    // Online - Use Our External Server
    return file_get_contents("http://example.com/myip.php");
  }
  @fclose($fsock);
}

$remoteip = CheckRemoteIP("example.com"); // who is talking with us?


There may be other and better ways to do this, but this helped solve my problem.

Please Log in or Create an account to join the conversation.

11 years 11 months ago #1568 by DJ Devil
another downside is this is using fsockopen , some people dont like to enable this on their server, a alternative would be to use curl

Please Log in or Create an account to join the conversation.

Time to create page: 0.127 seconds

Search

Donate jOpenSim

Please consider supporting our efforts.

Amount

Our Regions

Region: Loc X: Loc Y:
Agora 1000 998
BareBad… 997 997
Bohemas 996 998
BoraBor… 1002 999
Crystal… 1001 1000
DeepTho… 1005 998
FoToSan… 999 995
jCity 1001 997
jOpenWe… 1000 999
JuniorT… 1002 1001
Kanadah… 1002 1000
LindaKe… 1000 997
LittleC… 996 997
MonteSc… 1001 1001
Naos 999 999
Pangaea 1005 1003
RiverSi… 999 1000
Sakani 999 998
Snambin 1001 998
Tartola 997 998
ViewerH… 1002 998
WaterWo… 1001 999
WilderK… 1000 1000

jOpenSimWorld

Grid Status: Online
Total Regions: 23
Visitors (30 Days): 12
Total Residents: 485
Online Now: 0
Hypergriders online: 0