Problem with login

22 views
Skip to first unread message

antoniofcano

unread,
Aug 10, 2010, 1:41:35 PM8/10/10
to simian-dev
Hello

Sorry if this is not the right place for this kind of question. In
trying to setup an opensim 0.7 with simian grid. I follow the steps of
the wiki install page without problems. Then I think that I setup
right the opensim.ini, SimianGrid.ini and GridCommon.ini.

Next open the hippo viewer (try with second life too) with loginuri
param but it's not able to login. The Grid loggin is this:
WARN - 2010-08-10 17:13:55 --> Invalid Content-Type in request: text/
xml

Apache, OpenSIM and hippoviewer logs don't tell me nothing. I put a
log into index.php for the $_SERVER variable and this is the output:

DEBUG - 2010-08-10 17:13:55 --> Array
(
[HTTP_HOST] => getcloud.info
[HTTP_ACCEPT] => */*
[HTTP_ACCEPT_ENCODING] => deflate, gzip
[CONTENT_TYPE] => text/xml
[CONTENT_LENGTH] => 2103
[HTTP_EXPECT] => 100-continue
[PATH] => /usr/local/bin:/usr/bin:/bin
[SERVER_SIGNATURE] => <address>Apache/2.2.14 (Ubuntu) Server at
getcloud.info Port 80</address>

[SERVER_SOFTWARE] => Apache/2.2.14 (Ubuntu)
[SERVER_NAME] => getcloud.info
[SERVER_ADDR] => 178.63.40.208
[SERVER_PORT] => 80
[REMOTE_ADDR] => 95.120.206.176
[DOCUMENT_ROOT] => /var/www
[SERVER_ADMIN] => webmaster@localhost
[SCRIPT_FILENAME] => /var/www/Grid/index.php
[REMOTE_PORT] => 46234
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => POST
[QUERY_STRING] =>
[REQUEST_URI] => /Grid/
[SCRIPT_NAME] => /Grid/index.php
[PHP_SELF] => /Grid/index.php
[REQUEST_TIME] => 1281460435
[argv] => Array
(
)

[argc] => 0
)

I'm totally missed, any help or tip is welcome. Thanks.

John Hurliman

unread,
Aug 10, 2010, 2:57:22 PM8/10/10
to simia...@googlegroups.com
It looks like you might be using a loginuri parameter that is slightly
off. Can you paste the exact loginuri parameter you are passing to the
viewer? It should be in the form of:

http://yourhost.com/Grid/login/

Assuming your SimianGrid is installed in a folder called Grid/ on
yourhost.com. Depending on your Apache configuration you might need to
use:

http://yourhost.com/Grid/login/index.php

If Apache is not setup to use index.php files by default.

John

antoniofcano

unread,
Aug 10, 2010, 3:59:55 PM8/10/10
to simian-dev


On 10 ago, 20:57, John Hurliman <jhurli...@jhurliman.org> wrote:
> It looks like you might be using a loginuri parameter that is slightly
> off. Can you paste the exact loginuri parameter you are passing to the
> viewer? It should be in the form of:
>
> http://yourhost.com/Grid/login/
>
> Assuming your SimianGrid is installed in a folder called Grid/ on
> yourhost.com. Depending on your Apache configuration you might need to
> use:
>
> http://yourhost.com/Grid/login/index.php
>
> If Apache is not setup to use index.php files by default.
>
Both problems missed the login (you must update the installation wiki
page) directory, and the index.php. A lot of thanks.

Now the client get freeze waiting for Region connection, :/

Best wishes,

root66

unread,
Aug 10, 2010, 4:39:22 PM8/10/10
to simia...@googlegroups.com
Check the login response to make sure that the region ip is not a local address.

antoniofcano

unread,
Aug 10, 2010, 7:02:59 PM8/10/10
to simian-dev


On 10 ago, 22:39, root66 <roo...@gmail.com> wrote:
> Check the login response to make sure that the region ip is not a local address.


I found this in log file:
INFO - 2010-08-10 20:27:39 --> Login User=Antonio Cano Channel=Second
Life Release Start=last Viewer=Second Life Release 2.1.0.20703$
DEBUG - 2010-08-10 20:27:39 --> <?xml version="1.0"
encoding="iso-8859-1"?>
<methodResponse>
....
<member>
<name>inventory_host</name>
<value>
<string>127.0.0.1</string>
</value>
</member>
....

Looking into login/index.php code this line too:

$response["inventory_host"] = "127.0.0.1";

Could it be the problem?

John Hurliman

unread,
Aug 10, 2010, 8:38:36 PM8/10/10
to simia...@googlegroups.com
Inventory host should be unused by the viewer which is why SimianGrid
is hardcoded to return 127.0.0.1. Look for the IP and port of the
region that is being returned in the login response.

antoniofcano

unread,
Aug 12, 2010, 6:52:34 AM8/12/10
to simian-dev
Hello,

Could this be the line wich are we looking for:

DEBUG - 2010-08-12 10:33:42 --> Response received from GetScene POST
to http://getcloud.info/Grid/: {"SceneID":"fece4d66-d614-44ee-a26f-
ce4fb4896b93","Name":"Alecoop","MinPosition":[256000, 256000,
0],"MaxPosition":[256256, 256256, 4096],"Address":"http://
178.63.40.208:9000/","Enabled":1,"ExtraData":{"ServerURI":"http://
178.63.40.208:9000","InternalAddress":"0.0.0.0","InternalPort":
9000,"ExternalAddress":"178.63.40.208","ExternalPort":
9000,"MapTexture":"2d16058d-d965-47e0-a419-1f16f8ae2c60","Access":
21,"RegionSecret":"d792efda-50b9-4ccd-85e3-57be7827f636","EstateOwner":"bb4c1b6c-1bfd-47f7-
a885-be528385a5ec"},"Success":true}

In the same log, two lines down:
DEBUG - 2010-08-12 10:33:42 --> Executing GetUser
DEBUG - 2010-08-12 10:33:42 --> Response received from POST to
http://178.63.40.208:9000/agent/3e18068a-7203-4452-93c5-1a46f2444021/:
{"success":true}

The URI http://178.63.40.208:9000, comes from Region.ini and I can
think that it is working.

And that is the last line of the log:
DEBUG - 2010-08-12 10:33:42 --> Executing GetGenerics
DEBUG - 2010-08-12 10:33:42 --> Response received from GetGenerics
POST to http://getcloud.info/Grid/: { "Success": true, "Entries": [] }
INFO - 2010-08-12 10:33:42 --> Login User=Antonio Cano Channel=Hippo
Release Start=last Viewer= 0.6.3 (LL 1.23.5) id0=
Mac=6defa99e339ffc40a1b17fa40ab69198
DEBUG - 2010-08-12 10:33:42 --> <?xml version="1.0"
encoding="iso-8859-1"?>
<methodResponse>
<params>
..... a big XML
</methodResponse>
DEBUG - 2010-08-12 10:33:44 --> Magic quotes detected, disabling
DEBUG - 2010-08-12 10:33:44 --> application/x-www-form-urlencoded
DEBUG - 2010-08-12 10:33:44 --> Executing GetUser

My Region.ini:

[Alecoop]
RegionUUID = fece4d66-d614-44ee-a26f-ce4fb4896b93
Location = 1000,1000
InternalAddress = 0.0.0.0
InternalPort = 9000
AllowAlternatePorts = False
ExternalHostName = SYSTEMIP

I've copy the log in this URL: http://pastebin.com/thDzNpQK

Best wishes,

On 11 ago, 02:38, John Hurliman <jhurli...@jhurliman.org> wrote:
> Inventory host should be unused by the viewer which is why SimianGrid
> is hardcoded to return 127.0.0.1. Look for the IP and port of the
> region that is being returned in the login response.
>
Reply all
Reply to author
Forward
0 new messages