[Opensim-users] Updated Services Bundle!

Gwyneth Llewelyn gwyneth.llewelyn at gwynethllewelyn.net
Fri Aug 10 16:20:59 UTC 2012


Thanks to all who replied, and my apologies. "Nothing works" was a bit premature :-)

So, first and foremost: I had actually been using the bundle for 0.7.2 on 0.7.3.1 — when updating the bundle, I didn't ever think of checking up if all the files were on the right place! They weren't! The structure changed!

I always recompile all modules from scratch. BUT I'm using the last version I got from… uh, SourceForge, I think.

Once I painfully tracked down all URLs scattered across a gazillion places on the OpenSim ever-more-complex configuration, groups and offline IMs immediately started to work.
Woo-hoo! One problem less. For me, groups was the most important — nay, crucial! — missing feature. I truly needed it, or the setup on the whole grid would be worthless. With that problem fixed, at least I could launch 0.7.4RC1 and work on the remaining issues.

Search didn't work. There is a tiny bug on parser.php and register.php: at the top, they do mysql_connect($DB_HOST, $DB_USER, $DB_PASSWORD). This should be changed to mysql_connect($dbHost, $dbUser, $dbPassword). Nevertheless, even though this means no more MySQL errors on the logs, it's not enough to make them work.

Profiles don't work, either. While I can live without Search, Profiles is a cute, nice thing to have. So I started debugging the whole thing. It's a bit more complex than what you report, Fleep — the XML-RPC server is indeed called with the right parameters, the database gets correctly updated, BUT the response sent back is not accepted by the viewer (I'm currently using the CoolViewer). This is slightly different from "nothing works", because the viewer/simulator combination actually figure out when "nothing works" by disabling ("graying out") the Save button on the profile. So client and simulator know that the XML-RPC server is up, it accepts requests, the requests are acknowledged, data is correctly passed to it, and even the database gets updated. Unfortunately, the response is ignored (OpenSim doesn't give an error, though; it is as if it never received anything). Because of that, the viewer never gets to see the updated profile, and if you close it and open it again, it overwrites the profile with blank data. This is actually part of the code — when a profile cannot be retrieved, the default action is to overwrite it with a blank. "Retrieved" means in this case: accepting the XML-RPC call (which works), looking the data up on the database (which also works), creating a well-formed response (yep. It works!), and accepting that response (NOTHING HAPPENS). Since that last step is missing from each and every request, well, every change gets "discarded" upon the next profile view — so it "looks" like the database never got updated. But it did!

So. My homework for today. First, I saw only today that a helpful developer posted a message, obscurely hidden on the SourceForge forums for OpenSim, that they have abandoned SourceForge and moved to GitHub instead. Sigh. I have nothing against GitHub, but it was sort of nice having everything OpenSim-related under the same roof. Now I managed to track down the new modules, which apparently have a "fix" from 23 days ago. I'm curious if that fix will actually fix anything, so I'm giving it a try.

They also have a more recent OMEconomy module on GitHub, which I'm going to try, since the one I have, even though it IS compiled for OpenSim 0.7.4, does not work with a reference to a missing library which God only knows where it comes from. A working economy is by no means important for my grid, but it would be nice to have it working again — since 0.7.0.1 that I never managed to get it working again.

I'll keep in touch. I'm stubborn :) I like interconnecting different systems, and I see no reason for not forcing the XML-RPC server for groups into submission :) There are even a lot of awkward programming nastinesses — the code worked flawlessly, even though it's not exactly compliant with the way it *should* have been written, and the responses are not 100% XML-RPC standard, but since OpenSim seemed to be fine with them, there was no point in changing. "If it's no broken, don't fix it". Well, now SOMETHING is broken, so I'm going to see what it is and FIX it :-) Heh!

Cheers all, and thanks again for piping in.

	- Gwyn

P.S. to R. Gunther: I hardly ever use pre-compiled DLLs, unless I have no other choice. In my short experience with Mono, those DLLs are always "slightly off" for the kind of environment I have. Either they have been compiled with a different version of Mono, or they're 32 bit and not 64 bit, or they were compiled for Windows 7 and not Linux, or they come from a different distro of Linux which happened to have a library installed "which every sane person should have in their system" but clearly I don't (and obviously that library is never mentioned anywhere, and the not-always-so-helpful developers tend to say "uh?" when I ask them where the library XPT0 is supposed to come from…). Been there, done that, got the sleeveless top and it needs being washed :P So I always recompile everything from scratch. If something refuses to compile, I know there will be a module somewhere which will give me pain in the future, and it's better to avoid it!

Sometimes, of course, only DLLs are available, so I have to live with the few little morsels of generosity I can get :)

On 09/08/2012, at 20:25, Fleep Tuque wrote:

> Hi Gwyn,
> 
> I just upgraded some of the staff regions on our university grid to 0.7.4 RC1, and it appears that from the OS Services Bundle (just copying over from previous version) the offline IM and group services are working, but profiles and search is not.  Well, actually I don;'t think I ever got search to work, but profiles definitely did work before but don't seem to now post upgrade.  Seeing no problems with sending offline IMs and creating groups, adding members to groups, using the new group land settings etc.
> 
> Not sure if that helps, and the only thing I can think of that I consistently goof up when upgrading is forgetting to move the .dll files from /bin to /bin when I upgrade.  I finally remembered to add that to my documentation today, what little notes I made are at: 
> http://ucopensim.wikispaces.com/Opensim+0.7.4+RC1 
> 
> Would love to hear if anyone else gets profiles or search working with 0.7.4 RC1, I'm never sure what's user error and what isn't with those two services.
> 
> Sincerely,
> 
> - Fleep

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-users/attachments/20120810/75c69262/attachment.html>


More information about the Opensim-users mailing list