jOpenSimWorld

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

user creation bug

12 years 1 month ago #1395 by guardian2012
Hi again,

I've got my jopensim system up and running, however I have found a bug.

When the user creates an account though joomla, then tries to log on to opensim, they will get the error "unable to generate login response"

Then in the opensim console, I see an error saying "could not process logon, invalid guid format" or similar.

I ccould create the users manually with no issues.


I looked into the mysql database, and found the issue:

1) I am using a standalone hypergrid (no robust)
2) When I create a user manually, it does not put anything in the GridUser Table
3) When I creare a user with Jopensim, it does put an entry into the GridUser Table
4) I try and log on as the Jopensim user, I get the "unable to generate login response"
5) I delete the entry that jopensim created in the GridUser table
6) I can now log on fine as that user, and opensim re-create the GridUSer entry

Perhaps this is a Standalone Grid issue?

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

12 years 1 month ago - 12 years 1 month ago #1396 by DJ Devil
Hello this is not a bug, i had the same issue in the beginning, this error happens when you have not set a default location on the maps in the admin backend

Greetings

P.S a little more info on this

JopenSim sets the default location in the database when OpenSim cant find this entry a user created with JopenSim fails to log in

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

12 years 1 month ago #1398 by guardian2012
Hi There,

I tried setting Region_<RegioName> = "<flags>" in the StandaloneCommon.ini, I have also set a default map on the jOpenSimMaps module. I also manually set a location on the default map for the entry point, but still, when creating a new user, I get the error ""unable to generate login response"

and in the console I get the invalid guid message.

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

12 years 1 month ago #1413 by guardian2012
I've had a look though the jopenim code and can't see where this entry is being created!

I also tried changing the default region in jopensim maps, but it still has not resolved the issue.

Are there any other things I can try?

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

12 years 1 month ago #1420 by guardian2012
Any ideas guys? I'd hate to have to go back to wifi because jOpenSim is so much better!

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

12 years 1 month ago #1421 by DJ Devil
i am looking into this but i cant confirm this bug :-/ maybe foto knows more

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

12 years 1 month ago #1422 by foto50
Hi guardian

Unfortunately I also can not recreate this issue. For investigation it would be interesting for me to look to the content of GridUser once with the line inserted by jOpenSim and compare it with the line OpenSim recreated after deletion.

If you just want to disable jOpenSim to add this line for now, there are 3 files where this can happen:

/components/com_opensim/models/inworld.php (line 97 and 98)
/administrator/components/com_opensim/models/user.php (line 167 and 168)
/plugins/user/jopensimregister/jopensimregister.php (line 316 and 317)

These lines should look like:
$this->_osgrid_db->setQuery($insertquery['grid']);
$retval = $this->_osgrid_db->query();

If you remove those lines or comment them out, jOpenSim will not create this line.

Of course this only can be a temporary solution for now and I would really like to investigate this closer to be able to provide you with a permanent solution :)

Greetz
FoTo50

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

12 years 1 month ago #1423 by guardian2012
Hey foto50, thanks for looking in to this.

Its interesting yo can't re-create the bug, I've just downloaded the latest versions of opensim and joomla, so I wonder if it's something weird with a new update?


Anyway I looked a little deeper into the MySql thing, and I've got to the root of the problem. Basically the HomeRegionID is not getting filled in in GridUser.

I Believe DJ Devil is on the right track with setting the default maps. I have set the default and it has a star next to it, yet when I create the user, the HomeRegionID is blank.

Instead of deleting the row entirely, This time I put "00000000-0000-0000-0000-000000000000" into the HomeRegionID and the user was now able to log on.


I wonder why the module isn't picking up the default region from the maps? I guess a short term bug fix would be to hard code the mysql query to put "00000000-0000-0000-0000-000000000000" into the HomeRegion for all new users?

Just FYI, here is the result of registering a new user, in the GrudUser table

UserID:
14daa25f-2cef-11e2-8cd1-000e7ff8023b

HomeRegionID:
<blank>

HomePosition:
<0.000000,0.000000,0.000000>

HomeLookAt:
<0,0,0>

LastRegionID
00000000-0000-0000-0000-000000000000


LastPosition
<0,0,0>


LastLookAt
<0,0,0>


Online
False

Login
0

Logout
0

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

12 years 1 month ago #1424 by DJ Devil
hmmmm a weird idea would be... what are your register globals settings? it shouldnt matter but if they are off turn it on and try again

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

12 years 1 month ago #1426 by guardian2012
Hi DJ Devil,

Where abouts do you mean? in Plug-in Manager: System - jOpenSimRegister?

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

Time to create page: 0.104 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): 7
Total Residents: 485
Online Now: 0
Hypergriders online: 0