[Opensim-users] Still trying to set up groups - progress and problems

Justin Clark-Casey jjustincc at googlemail.com
Fri Dec 9 00:18:57 UTC 2011


XmlRpcGroupsServer/ contains the groups server code (xmlrpc.php) so I'm rather surprised by this.

The code in github has security fixes compared to the code in the forge.

On 07/12/11 23:32, Cuddles McCann wrote:
> I don't remember how I figured this out and I haven't seen any one else has mentioned it. Nebadon was the one that
> helped me connect PHP with web server (Thank you for that Nebadon) back before 6.9. However, the rest I pulled together
> on my own:
>
> Groups has 3 parts; The Groups Module (which is placed in the \opensim\addon-modules\ directory),Web portion, (placed in
> your web server),  and the SQL file.
> The Web portion is on git:
> https://github.com/mcortez/flotsam.git
> Within this, in the \XmlRpcGroupsServer\ directory, is the configuration file and the sql file (for me it seems to work
> best in its own database.)
>
> However, I found the GroupsModule part back on the old SVN link
> http://forge.opensimulator.org/svn/osgroup
>
> It was finding this Module that helped me get Groups working again post 7.x
>
> I hope this helps,
> Cuddles McCann
>
> On Mon, Nov 28, 2011 at 2:52 PM, Wayne <lppwayne at gmail.com <mailto:lppwayne at gmail.com>> wrote:
>
>     Still no luck with the service modules pack.
>
>     Tired and out of ideas.
>
>     On Nov 28, 2011 1:52 PM, "Fleep Tuque" <fleep513 at gmail.com <mailto:fleep513 at gmail.com>> wrote:
>
>         Hi Wayne,
>
>         If you're calling the new database you just created 'osmods' then you would use 'osmods' in the configuration
>         files for profiles, offline IMs, etc.  You are directing those services to retrieve the information from your
>         new database.
>
>         Hope that helps!
>
>         - Chris/Fleep
>
>
>         Chris M. Collins (SL/OS: Fleep Tuque)
>         Center for Simulations & Virtual Environments Research (UCSIM)
>         UCIT Instructional & Research Computing
>         University of Cincinnati
>         406A Zimmer Hall
>         315 College Drive
>         PO BOX 210088
>         Cincinnati, OH 45221-0088
>         chris.collins at uc.edu <mailto:chris.collins at uc.edu>
>         (513) 556-3018 <tel:%28513%29%20556-3018>
>
>         http://ucsim.uc.edu
>
>         On Mon, Nov 28, 2011 at 1:45 PM, Wayne <lppwayne at gmail.com <mailto:lppwayne at gmail.com>> wrote:
>
>             Hi Jason,
>             Thank you for your fast reply.
>             I have the Diva opensim install running and I've called my database opensim, etc etc.  (all the common
>             defaults here)
>             Step 1 of your quick setup instructions says to create a new MySQL database and here is where I get
>             confused.  Let's say I call that database osmods. When I go to modify config.php and databaseinfo.php, where
>             it asks for database name, do I use opensim or osmods?
>             Thanks.
>
>             On Mon, Nov 28, 2011 at 1:22 PM, core <core at odosys.net <mailto:core at odosys.net>> wrote:
>
>                 __
>                 Wayne,
>
>                 a quick response to your 2 points:
>
>                 1) the names i used in the documentation are either default values ('opensim' is the database and user
>                 name found in the .nin file comments and has been the convention for those comments as far back as i can
>                 remember) or suggested values to simplify the instructions.  i personally stick with 'opensim' as the
>                 username because i have several other databases and users for other projects and it makes it easy for me
>                 to restrict privileges for a user named 'opensim' to all my OpenSim databases.
>
>                 the same goes for the database name.  i used 'os_services' as an example that hopefully most people
>                 would find useful and straightforward.  feel free to use whatever names suit your needs/environment.
>                 all that matters is that the values you assign are reflected in the .ini files.
>
>                 2) i do believe the 'profile' urls in grid-specific .ini files NEED to be externally accessible (when
>                 running OpenSim with outside connectivity) because other grids will use those to handle aspects of your
>                 identity when you do HG jumps.  i don't know for sure all of the background services that pass through
>                 those urls beyond the obvious, but unless i'm explicitly running a closed standalone sandbox with no
>                 grid or HG capabilities i use fully qualified urls for the sake of consistency.
>
>                 - Core/Jason
>
>
>
>                 On 11/28/2011 10:21 AM, Wayne wrote:
>>                 Hi Fleep,
>>                 I downloaded the Memetic Core package and followed his install instructions and then looked at yours.
>>                 Looking it all over it seems all parts are in place but for the life of me, I can not get it to work.
>>                 profiles just give me a message "unable to fetch profile data at this time". When I try to send an
>>                 offline message I get the following console error:
>>                 ERROR - OpenSim.Framework.Servers.HttpServer.BaseHttpServer [BASE HTTP SERVER]: Handler not found for
>>                 http request /offline/Offline.php/SaveMessage/
>>                 2011-11-28 11:00:11,708 DEBUG - OpenSim.Framework.SynchronousRestObjectRequester
>>                 [SynchronousRestObjectRequester]: Invalid XML
>>                 http://enakai.dyndns-server.com:11000/offline/Offline.php/SaveMessage/ System.Boolean
>>                 A few questions I do have are:
>>                 1) When it says to add your custom database information to the php config files, do I use "opensim" or
>>                 do I use "opensimmods" (using your example db name)?
>>                 2) When changing the urls do I use localhost or enakai.dyndns-server:11000 or are they both the same
>>                 thing since enakai.dyndns-server:11000 is just the dns of my local machine?
>>                 Thanks for your time and your great instructions on these core modules.
>>                 Wayne
>>
>>
>>                 On Wed, Nov 23, 2011 at 2:37 PM, Fleep Tuque <fleep513 at gmail.com <mailto:fleep513 at gmail.com>> wrote:
>>
>>                     Hi Kurt,
>>
>>                     Definitely will need to have PHP working correctly in order for any of the modules to work, but
>>                     since our last email exchange, Memetic Core released an awesome and easy to follow package of
>>                     modules for groups, offline IMs, profiles, and search.  I got it installed on both my personal
>>                     grid and the grid at work with not a single issue - and the instructions made sense!
>>
>>                     I highly recommend it, download the package at: http://public.odosys.net/files/opensim/os_modules/
>>
>>                     I detailed the steps I took on a Windows & IIS system:
>>                     http://fleep.wikispaces.com/FleepGrid (11/19 entry)
>>
>>                     Best of luck with the PHP errors but I think if you can iron those out, you'll have a lot more
>>                     success with Mimetic's package than we were having trying to install each module individually.  :)
>>
>>                     Sincerely,
>>
>>                     - Chris/Fleep
>>
>>                     Chris M. Collins (SL/OS: Fleep Tuque)
>>                     Center for Simulations & Virtual Environments Research (UCSIM)
>>                     UCIT Instructional & Research Computing
>>                     University of Cincinnati
>>                     406A Zimmer Hall
>>                     315 College Drive
>>                     PO BOX 210088
>>                     Cincinnati, OH 45221-0088
>>                     chris.collins at uc.edu <mailto:chris.collins at uc.edu>
>>                     (513) 556-3018 <tel:%28513%29%20556-3018>
>>
>>                     http://ucsim.uc.edu <http://ucsim.uc.edu/>
>>
>>
>>                     On Wed, Nov 23, 2011 at 2:09 PM, Kurt Reisler <kreisler at mitre.org <mailto:kreisler at mitre.org>> wrote:
>>
>>                         I redid the install again following those instructions and am now beginning to suspect that
>>                         PHP is not installed properly on my server.  The error I am now getting is:
>>
>>                             13:33:25 - [SCENE]: Adding new agent Kurt Reisler to scene Orientation Island
>>                             13:33:25 - [XMLRPC-GROUPS-CONNECTOR]: An error has occured while attempting to a
>>                             ccess the XmlRpcGroups server method groups.getAgentActiveMembership at http://m <http://m/>
>>                             osgrid.mitre.org/XmlRpcGroupsServer/xmlrpc.php
>>                             <http://osgrid.mitre.org/XmlRpcGroupsServer/xmlrpc.php>
>>                             13:33:25 - [XMLRPC-GROUPS-CONNECTOR]: The remote server returned an error: (500)
>>                              Internal Server Error.   at System.Net.HttpWebRequest.GetResponse()
>>
>>                         The error 500 is screaming PHP installation error. I am going to go over the PHP installation
>>                         and configuration again.
>>
>>                         Happy Thanksgiving to those in the US.
>>                         Kurt
>>
>>
>>                         On 11/4/2011 8:12 PM, Fleep Tuque wrote:
>>>                         Kurt,
>>>
>>>                         I followed the instructions at http://opensimulator.org/wiki/Enabling_Groups and successfully
>>>                         installed the module and got groups working with Windows Server 2008 and IIS.
>>>
>>>                         I discovered that the problems I was having initially were due to my MySQL database using the
>>>                         utf8 character set.  When I reinstalled the database using the latin1 character set, the
>>>                         module installed with no problem.
>>>
>>>                         Hope that helps!
>>>
>>>                         - Chris/Fleep
>>>
>>>
>>>                         Chris M. Collins (SL: Fleep Tuque)
>>>                         Project Manager, UC Second Life
>>>                         UCit Instructional & Research Computing
>>>                         University of Cincinnati
>>>                         406E Zimmer Hall
>>>                         PO Box 210088
>>>                         Cincinnati, OH 45221-0088
>>>                         (513)556-3018 <tel:%28513%29556-3018>
>>>                         chris.collins at uc.edu <mailto:chris.collins at uc.edu>
>>>
>>>                         http://www.uc.edu/ucit/learningtools/secondlife.html
>>>
>>>
>>>
>>>                         On Tue, Oct 25, 2011 at 7:19 PM, Justin Clark-Casey <jjustincc at googlemail.com
>>>                         <mailto:jjustincc at googlemail.com>> wrote:
>>>
>>>                             As a quick sanity check you could just try pointing your browser at the php.  If this
>>>                             part is working you should see
>>>
>>>                             <methodResponse>
>>>                             <fault>
>>>                             <value>
>>>                             <struct>
>>>                             <member>
>>>                             <name>faultCode</name>
>>>                             <value><int>105</int></value>
>>>                             </member>
>>>                             <member>
>>>                             <name>faultString</name>
>>>                             <value><string>XML error: Invalid document end at line 1, column 1</string></value>
>>>                             </member>
>>>                             </struct>
>>>                             </value>
>>>                             </fault>
>>>                             </methodResponse>
>>>
>>>                             Other than that, I'm afraid the next step is to insert a Console.WriteLine(inputXml) at
>>>                             about line 1159 in XmlRpcGroupsServiceConnectorModule.Send(String url):XmlRpcRespone to
>>>                             see what you're actually getting back.
>>>
>>>
>>>                             On 25/10/11 16:10, Kurt Reisler wrote:
>>>
>>>                                 Thanks to Justin's changes, I was able to get the MySQL (5.5.16) database tables
>>>                                 created. I have PHP installed with IIS
>>>                                 on a Windows 2008 server (tested with a helloworld.php script). Running OpenSim 0.7.2
>>>                                 with the OpenSim.ini module
>>>                                 modified to include the following:
>>>
>>>                                    Groups]
>>>                                    ;# {Enabled} {} {Enable groups?} {true false} false
>>>                                    ;; Enables the groups module
>>>                                    Enabled = true
>>>
>>>                                    ;# {Module} {Enabled:true} {Groups module to use? (Use GroupsModule to use
>>>                                 Flotsam/Simian)} {} Default
>>>                                    ;; This is the current groups stub in Region.CoreModules.Avatar.Groups.
>>>                                    ;; All the other settings below only really apply to the Flotsam/SimianGrid
>>>                                    ;; GroupsModule.
>>>                                    ;; This module can use a PHP XmlRpc server from the Flotsam project at
>>>                                    ;; http://code.google.com/p/flotsam/
>>>                                    ;; or from the SimianGrid project at http://code.google.com/p/openmetaverse
>>>                                    Module = GroupsModule
>>>
>>>                                    ;# {MessagingEnabled} {Module:GroupsModule} {Is groups messaging enabled?} {true
>>>                                 false} true
>>>                                    MessagingEnabled = true
>>>
>>>                                    ;# {MessagingModule} {MessagingEnabled:true} {Module to use for groups messaging}
>>>                                 {GroupsMessagingModule}
>>>                                    GroupsMessagingModule
>>>                                    MessagingModule = GroupsMessagingModule
>>>
>>>                                    ;# {ServicesConnectorModule} {Module:GroupsModule} {Service connector to use for
>>>                                 groups}
>>>                                    {XmlRpcGroupsServicesConnector SimianGroupsServicesConnector}
>>>                                 XmlRpcGroupsServicesConnector
>>>                                    ;; Service connectors to the Groups Service as used in the GroupsModule. Select
>>>                                 one depending on
>>>                                    ;; whether you're using a Flotsam XmlRpc backend or a SimianGrid backend
>>>                                    ServicesConnectorModule = XmlRpcGroupsServicesConnector
>>>                                    XmlRpcServiceURL = http://mosgrid.mitre.org/groups/xmlrpc.php
>>>
>>>                                    ;# {GroupsServerURI} {Module:GroupsModule} {Groups Server URI} {}
>>>                                    ;; URI for the groups services
>>>                                    ;; e.g. http://yourxmlrpcserver.com/xmlrpc.php for Flotsam XmlRpc
>>>                                    ;; or http://mygridserver.com:82/Grid/ for SimianGrid
>>>                                    GroupsServerURI = http://mosgrid.mitre.org/groups/xmlrpc.php
>>>
>>>                                    ;# {NoticesEnabled} {Module:GroupsModule} {Enable group notices?} {true false} true
>>>                                    ;; Enable Group Notices
>>>                                    NoticesEnabled = true
>>>
>>>                                    ;; This makes the Groups modules very chatty on the console.
>>>                                    DebugEnabled = true
>>>
>>>                                    ;; XmlRpc Security settings. These must match those set on your backend
>>>                                    ;; groups service if the service is using these keys
>>>                                    XmlRpcServiceReadKey = 1234
>>>                                    XmlRpcServiceWriteKey = 1234
>>>
>>>                                    ; Disables HTTP Keep-Alive for XmlRpcGroupsServicesConnector HTTP Requests,
>>>                                    ; this is a work around fora problem discovered on some Windows based region servers.
>>>                                    ; Only disable keep alive if you see a large number (dozens) of the following
>>>                                 Exceptions:
>>>                                    ; System.Net.WebException: The request was aborted: The request was canceled.
>>>                                    ;
>>>                                    ; XmlRpcDisableKeepAlive = false
>>>
>>>                                 When I attempt to create a new group, I get the following error every time the
>>>                                 XMLRPC-GROUPS-CONNECTOR is called.
>>>
>>>                                    10:31:09 - [GROUPS]: CreateGroup called
>>>                                    10:31:09 - [XMLRPC-GROUPS-CONNECTOR]: An error has occured while attempting to a
>>>                                    ccess the XmlRpcGroups server method groups.getGroup at
>>>                                 http://mosgrid.mitre.org/groups/xmlrpc.php
>>>                                    10:31:09 - [XMLRPC-GROUPS-CONNECTOR]: Data at the root level is invalid. Line 1,
>>>                                 position 1.
>>>                                    at System.Xml.XmlTextReaderImpl.Throw(Exception e)
>>>
>>>                                 The config.php file is correctly set up to point to the correct database, with the
>>>                                 right login and password.
>>>
>>>                                 Any suggestions?
>>>                                 Thanks in advance
>>>                                 Kurt
>>>
>>>
>>>
>>>                                 _______________________________________________
>>>                                 Opensim-users mailing list
>>>                                 Opensim-users at lists.berlios.de <mailto:Opensim-users at lists.berlios.de>
>>>                                 https://lists.berlios.de/mailman/listinfo/opensim-users
>>>
>>>
>>>
>>>                             --
>>>                             Justin Clark-Casey (justincc)
>>>                             http://justincc.org/blog
>>>                             http://twitter.com/justincc
>>>
>>>                             _______________________________________________
>>>                             Opensim-users mailing list
>>>                             Opensim-users at lists.berlios.de <mailto:Opensim-users at lists.berlios.de>
>>>                             https://lists.berlios.de/mailman/listinfo/opensim-users
>>>
>>>
>>>
>>>
>>>                         _______________________________________________
>>>                         Opensim-users mailing list
>>>                         Opensim-users at lists.berlios.de  <mailto:Opensim-users at lists.berlios.de>
>>>                         https://lists.berlios.de/mailman/listinfo/opensim-users
>>>
>>
>>                         _______________________________________________
>>                         Opensim-users mailing list
>>                         Opensim-users at lists.berlios.de <mailto:Opensim-users at lists.berlios.de>
>>                         https://lists.berlios.de/mailman/listinfo/opensim-users
>>
>>
>>
>>                     _______________________________________________
>>                     Opensim-users mailing list
>>                     Opensim-users at lists.berlios.de <mailto:Opensim-users at lists.berlios.de>
>>                     https://lists.berlios.de/mailman/listinfo/opensim-users
>>
>>
>>
>>                 _______________________________________________
>>                 Opensim-users mailing list
>>                 Opensim-users at lists.berlios.de  <mailto:Opensim-users at lists.berlios.de>
>>                 https://lists.berlios.de/mailman/listinfo/opensim-users
>>
>
>
>                 --
>                 meatspace: jason
>                 cyberspace: mimetic.core
>                 chicago, il us
>                 core at odosys.net  <mailto:core at odosys.net>
>                 twitter: @odosys
>
>
>
>                 _______________________________________________
>                 Opensim-users mailing list
>                 Opensim-users at lists.berlios.de <mailto:Opensim-users at lists.berlios.de>
>                 https://lists.berlios.de/mailman/listinfo/opensim-users
>
>
>
>             _______________________________________________
>             Opensim-users mailing list
>             Opensim-users at lists.berlios.de <mailto:Opensim-users at lists.berlios.de>
>             https://lists.berlios.de/mailman/listinfo/opensim-users
>
>
>
>         _______________________________________________
>         Opensim-users mailing list
>         Opensim-users at lists.berlios.de <mailto:Opensim-users at lists.berlios.de>
>         https://lists.berlios.de/mailman/listinfo/opensim-users
>
>
>     _______________________________________________
>     Opensim-users mailing list
>     Opensim-users at lists.berlios.de <mailto:Opensim-users at lists.berlios.de>
>     https://lists.berlios.de/mailman/listinfo/opensim-users
>
>
>
>
> _______________________________________________
> Opensim-users mailing list
> Opensim-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-users


-- 
Justin Clark-Casey (justincc)
http://justincc.org/blog
http://twitter.com/justincc



More information about the Opensim-users mailing list