In the region.ini "<span style>InternalAddress = "0.0.0.0"" you need to set that to the internal IP that you get with the EC2 instance. run the command 'ifconfig' to get that machines internal IP. They usually start with 10. . On EC2 if you do not do that it will just sit there with Region Handshake. Also I generally allocate an external IP on AWS and use that for the external IP. ONE other thing to watch is that if you stop and start your EC2 machine you will be allocated another internal IP address. </span><br>
<br><div class="gmail_quote">On Sun, Jan 8, 2012 at 11:14 AM, Kenneth <span dir="ltr"><<a href="mailto:stretchgargan@gmail.com">stretchgargan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On 08/01/2012 19:12, Vanish wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You need to set the correct URI for the loginservice, assetservice, etc. in OpenSim.ini. Currently it's still set to localhost (127.0.0.1)<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I've installed OpenSim version 0.7.2 on an Amazon EC2 instance (Linux with Mono 2.10.2). The machine has TCP port 9000 open.<br>
<br>
Amazon EC2 virtual machines run behind a NAT gateway, so I edit the Regions.ini file as follows:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
[Main Island]<br>
RegionUUID = 7d69b9dc-0cda-47f5-8f84-<u></u>df925c96b3ee<br>
Location = "1000,1000"<br>
InternalAddress = "0.0.0.0"<br>
InternalPort = 9000<br>
AllowAlternatePorts = False<br>
ExternalHostName = "<a href="http://ec2-46-51-xxx-xxx.eu-west-1.compute.amazonaws.com" target="_blank">ec2-46-51-xxx-xxx.eu-west-1.<u></u>compute.amazonaws.com</a>"<br>
</blockquote>
<br>
(External hostname changed for privacy).<br>
<br>
I then launch it using:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
cd /opt/OpenSim/current/bin/<br>
mono --debug OpenSim.exe<br>
</blockquote>
<br>
The server starts up, and I can begin to login from an external IP using Phoenix Viewer 1.6.0.1600<br>
<br>
However, the login never completes. It hangs at "Waiting for Region handshake".<br>
<br>
The output in the OpenSim console is:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
18:37:31 - [LLOGIN SERVICE]: Login request for Stretch Resident at last using viewer Phoenix Viewer Release Mesh 1.6.0.1600, channel Phoenix Viewer Release Mesh, IP aa.bb.cc.dd, (ie my client's IP) Mac d8301f01b2628de041aaf7f8725184<u></u>f4, Id0 8d97035b4b25cd9c199076d79989b3<u></u>ca<br>
18:37:31 - [PRESENCE SERVICE]: LoginAgent 8d4bbba1-198b-4c9e-a1d0-<u></u>c2854db8401a with session d9eac461-ac31-4f6a-9c7b-<u></u>8bb92e2c0608 and ssession 62c09669-55b0-42c7-bd10-<u></u>b860b69d342d<br>
18:37:31 - [GRID USER SERVICE]: User 8d4bbba1-198b-4c9e-a1d0-<u></u>c2854db8401a is online<br>
18:37:31 - [LLOGIN SERVICE]: FindDestination for start location last<br>
18:37:31 - [GRID SERVICE]: GetDefaultRegions returning 0 regions<br>
18:37:31 - [LLOGIN SERVICE]: Last Region Not Found Attempting to find random region<br>
18:37:31 - [GRID SERVICE]: Fallback returned 0 regions<br>
18:37:31 - [GRID SERVICE]: Hyperlinks returned 0 regions<br>
18:37:31 - [LLLOGIN SERVICE]: found new key HomeURI <a href="http://127.0.0.1:9000/" target="_blank">http://127.0.0.1:9000/</a><br>
18:37:31 - [LLLOGIN SERVICE]: found new key InventoryServerURI <a href="http://127.0.0.1:9000/" target="_blank">http://127.0.0.1:9000/</a><br>
18:37:31 - [LLLOGIN SERVICE]: found new key AssetServerURI <a href="http://127.0.0.1:9000/" target="_blank">http://127.0.0.1:9000/</a><br>
18:37:31 - [LLLOGIN SERVICE]: found new key ProfileServerURI <a href="http://127.0.0.1:9000/" target="_blank">http://127.0.0.1:9000/</a><br>
18:37:31 - [LLLOGIN SERVICE]: found new key FriendsServerURI <a href="http://127.0.0.1:9000/" target="_blank">http://127.0.0.1:9000/</a><br>
18:37:31 - [LLLOGIN SERVICE]: found new key IMServerURI <a href="http://127.0.0.1:9000/" target="_blank">http://127.0.0.1:9000/</a><br>
18:37:31 - [LOCAL SIMULATION CONNECTOR]: Found region Main Island to send SendCreateChildAgent<br>
18:37:31 - [CONNECTION BEGIN]: Region Main Island told of incoming root agent Stretch Resident 8d4bbba1-198b-4c9e-a1d0-<u></u>c2854db8401a (circuit code 200990915, teleportflags 128)<br>
18:37:31 - [CONNECTION BEGIN]: Region Main Island authenticated and authorized incoming root agent Stretch Resident 8d4bbba1-198b-4c9e-a1d0-<u></u>c2854db8401a (circuit code 200990915)<br>
18:37:31 - [CAPS]: Registered seed capability /CAPS/390ce6a7-e446-4fbc-b365-<u></u>faf80f496b650000/ for 8d4bbba1-198b-4c9e-a1d0-<u></u>c2854db8401a<br>
18:37:31 - [LLOGIN SERVICE]: All clear. Sending login response to client.<br>
18:37:32 - [SCENE]: Incoming client Stretch Resident in region Main Island via regular login. Client IP verification not performed.<br>
</blockquote>
<br>
That's all I get. Eventually the Phoenix viewer says: "We're having trouble connecting. There may be a problem with your internet connection or the Second Life servers."<br>
<br>
Running a tcpdump on the client shows it sending, at the end:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
POST /CAPS/EQG/e0c5a989-69b3-4baa-<u></u>82ec-efa2248471e2/ HTTP/1.1<br>
Host: <a href="http://ec2-46-51-xx-xx.eu-west-1.compute.amazonaws.com:9000" target="_blank">ec2-46-51-xx-xx.eu-west-1.<u></u>compute.amazonaws.com:9000</a><br>
Accept: */*<br>
Accept-Encoding: deflate, gzip<br>
X-SecondLife-UDP-Listen-Port: 60426<br>
Content-Type: application/llsd+xml<br>
Content-Length: 83<br>
<br>
<llsd><map><key>ack</key><<u></u>undef /><key>done</key><boolean>0</<u></u>boolean></map></llsd><br>
</blockquote>
<br>
And the server responding:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
HTTP/1.0 502 Upstream error:<br>
Content-Type: text/plain<br>
Date: Sun, 08 Jan 2012 18:47:04 GMT<br>
Content-Length: 16<br>
Server: Tiny WebServer<br>
Connection: close<br>
<br>
Upstream error:<br>
</blockquote>
<br>
Any ideas what's going wrong?<br>
<br>
Thanks in advance,<br>
Kenneth.<br>
______________________________<u></u>_________________<br>
Opensim-users mailing list<br>
<a href="mailto:Opensim-users@lists.berlios.de" target="_blank">Opensim-users@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-users" target="_blank">https://lists.berlios.de/<u></u>mailman/listinfo/opensim-users</a><br>
</blockquote>
<br>
<br>
</blockquote></div></div>
Thanks very much for the quick reply!<br>
I'll try that soon!<span class="HOEnZb"><font color="#888888"><br>
<br>
-Kenneth</font></span><div class="HOEnZb"><div class="h5"><br>
______________________________<u></u>_________________<br>
Opensim-users mailing list<br>
<a href="mailto:Opensim-users@lists.berlios.de" target="_blank">Opensim-users@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-users" target="_blank">https://lists.berlios.de/<u></u>mailman/listinfo/opensim-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>-- <br>Chris Collins<br>CEO<br>Tipodean Technologies<br>+1 415-515-6928 | <a href="mailto:chris@tipodean.com" target="_blank">chris@tipodean.com</a><br>
Skype: cozza13 | SL: Chris Collins<br>Website: <a href="http://www.tipodean.com" target="_blank">www.tipodean.com</a><br>Twitter: <a href="http://www.twitter.com/tipodean" target="_blank">http://www.twitter.com/tipodean</a><br>
<a href="http://www.linkedin.com/in/collinschris" target="_blank">http://www.linkedin.com/in/collinschris</a><div><a href="http://www.builtbuy.me" target="_blank">http://www.builtbuy.me</a><br>Tools for your distributed workforce</div>
<br>