flagflag  

Money Server stops to work,when Npc Bot logs in or HG visitor arrives

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 .2 .3 .4 .5 | Posted on 2016/1/9 4:13
mandarinka  Just popping in   Posts: 4
Hello !

We are very happy with money server so far.
But today I have noticed certain issue, that I have not noticed earlier.

When Npc Bot logs in the region or HG Visitor (avatar from other grid arrives to the region) then all money stops to work for other avatars that are present at the region.
Balance in the viewer is reset to zero and transactions are not possible to be processed.
Then only relogging or teleporting to other region helps or another registered avatar needs to log in.
Money server shows error in logs:
Unable to refresh info...
I realize that it has been made to deal with avatars that are not registered in the grid,but that should not make stop money transactions for other all registered avatars in the region.

Greetings
Votes:86 Average:5.81
Previous post - Next post | Parent - No child | Posted on 2016/1/9 4:41
mandarinka  Just popping in   Posts: 4
The problem concerns that money server is not able to recognize username of Npc Bot, nor username of hg visitor.
And then there appears error in money logs.
You have set reconnecting in appropriate files referring money rpc module, but in fact this procedure doesn't refresh balance of other avatars in the region,where error has been logged in.
To reproduce it please do following steps:
Please log in to the region with your avatar that has balance > 0, for example,let balance = 1000
Next please create Npc Bot in the same region, when Npc appears please click balance of your money in your viewer,firestorm. Then you will see,that after clicking balance is reset to zero. If you do not click balance, then please try to do some transactions or purchase,you will also see that it can't be processed.
Votes:68 Average:6.32
Previous post - Next post | Parent - Children.1 | Posted on 2016/1/10 0:43
iseki  Home away from home   Posts: 1581
Hi,

What is version of your OpenSim?

I am using OpenSim-0.8.2 and 0.9.0Dev(12/26 2015), but I have not any problems those you mention.
Votes:52 Average:4.62
Previous post - Next post | Parent - No child | Posted on 2016/1/10 0:57 | Last modified
iseki  Home away from home   Posts: 1581
I always use Singularity Viewer.

Using Singularity Viewer, those problems are not occurred.

But using FireStorm Viewer, those problems are occurred.

How are other viewers?
Votes:61 Average:5.90
Previous post - Next post | Parent - No child | Posted on 2016/1/10 2:28 | Last modified
iseki  Home away from home   Posts: 1581
Hi,

I understood problems.

I'll update MoneyServer at about Monday (1/11) for FireStorm Viewer.

Thank you for your Bug Report.
Votes:56 Average:4.46
Previous post - Next post | Parent - No child | Posted on 2016/1/10 21:57
mandarinka  Just popping in   Posts: 4
Hello Iseki !

Thank You very much for answering me. I am very grateful.

We use an official version of OpenSim: OpenSim 0.8.2.0 Release

Majority of residents use various versions of Firestorm viewer. I have not checked how Singularity behaves.

But I feel intuitevely that it may concern not only Firestorm.

Let me show you what console shows, when Npc bot or Hg visitor arrives to the region with money server enabled:

[MONEY RPC]: handleClientLogin: Unable to refresh information for user "" in DB

ERROR - OpenSim.Grid.MoneyServer.MoneyXmlRpcModule

I always compile money server with my versions of opensim.

I have found appropriate line in MoneyXmlRpcModule.cs


if (!m_moneyDBService.TryAddUserInfo(user))
{
m_log.ErrorFormat("[MONEY RPC]: handleClientLogin: Unable to refresh information for user \"{0}\" in DB", avatarName);
responseData["success"] = false;
responseData["description"] = "Update or add user information to db failed";
responseData["clientBalance"] = balance;
}
return response;

This part of your code is responsible for reportign this error.

So as we can see, error is generated by :TryAddUserInfo(user)) , when it gets value: false.

That we can see in: MoneyDBService.cs

public bool TryAddUserInfo(UserInfo user)
{
MySQLSuperManager dbm = GetLockedConnection();
try
{
if (dbm.Manager.fetchUserInfo(user.UserID) != null)
{
m_log.InfoFormat("[MONEY DB]: Found user \"{0}\", now update information", user.Avatar);
if (m_moneyManager.updateUserInfo(user))
return true;
}
else if (dbm.Manager.addUserInfo(user))
{
m_log.InfoFormat("[MONEY DB]: Unable to find user \"{0}\", add it to DB successfully", user.Avatar);
return true;
}
return false;
}
catch (Exception e)
{
dbm.Manager.Reconnect();
// Fumi.Iseki
m_moneyManager.Reconnect();
m_log.Error(e.ToString());
return false;
}
finally
{
dbm.Release();
}
}

Because, there are many viewers, I feel intuitevely that problem can concern other viewers too.

I have also noticed that, when this error occurs, then logging with another registered avatar in the region, helps to refresh balance and money starts to work.

So maybe it would be nice , to set procedure, that when such error ( exception ) occurs:

then money server could update balance of one, assume admin avatar or banker avatar, in the region where error has happened.

in this way, we would not worry abotu hundreds of viewers versions in the future.

But anyway i am happy that you confirm this bug and i look forward your update and answer.

Regards !!!
Votes:56 Average:3.57
Previous post - Next post | Parent - No child | Posted on 2016/1/11 0:24
mandarinka  Just popping in   Posts: 4
Hello Iseki !

I want to confirm that Your update: opensim.currency-0.8.2_1 works great !

I use: OpenSim 0.8.2.0 Release and as You have written it shoudl work and i have checked, it works correct.

It detects NPC and HG avatars and money server works without problem !

i am very grateful to You and so happy !

I need to confess that i was also observign the same part of your code where you have fixed it, and also was compiling fwe times money server with setting appropriate balance for response to the viewer but

i missed sufficient experience and my trails have failed.

Anyway Thank You very much!

Kind Regards !
Votes:72 Average:6.67

  Advanced search


Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2024Next Month
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Today

Who's Online

94 user(s) are online (4 user(s) are browsing Forum)

Members: 0
Guests: 94

more...

Access Counter

Today : 1215812158121581215812158
Yesterday : 1412914129141291412914129
Total : 2345776823457768234577682345776823457768234577682345776823457768
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com