flagflag  

Rollback money server

  • 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 .6 .7 .8 .9 .10 .11 | Posted on 2011/4/8 15:17
milo  Not too shy to talk   Posts: 30
Hello,

Money currency work perfectly, but i have one problem.

- Purchase land -> ok
- avatar 2 avatar -> ok
- get money -> ok

- Object 2 pay -> directly rolback since 2 days i not understand.

Thanks for your help
Votes:116 Average:4.74
Previous post - Next post | Parent - No child | Posted on 2011/4/9 12:23 | Last modified
iseki  Home away from home   Posts: 1581
Hi,

Is enableForceTransfer true?
enableForceTransfer is at [MoneyServerEdit] section in MoneyServer.ini

enableForceTransfer permits to pay money from object to avatar, even if owner of object is not logged in.
Votes:81 Average:5.06
Previous post - Next post | Parent - No child | Posted on 2011/4/9 20:49
milo  Not too shy to talk   Posts: 30
Hi Iseki,

Yes absolutly:

[MoneyServer]
;If the user is not found in database,he/she will be created with the default balance.
DefaultBalance = 0

;If "00000000-0000-0000-0000-000000000000" is specified, all avatars can get money from system.
;If blank is specified, nobody can get money.
BankerAvatar = "f048095e-fac8-450d-a438-fc07c753d36f"

;If you want to use llGiveMoney() function normally even when payer doesn't login to OpenSim,
;please set true to this valiable
enableForceTransfer = true

Thanks for your help.
Votes:108 Average:5.37
Previous post - Next post | Parent - No child | Posted on 2011/4/10 1:48
milo  Not too shy to talk   Posts: 30
Hello,

Just for information I have multiple servers

Main serveur:
- Robust.exe
- grid money server.exe
- OpenSim.exe

Others server:

- OpenSim.exe

In each server is the same bin folder as the server principal for identically the same configuration

In each bin is:
- OpenSim.Forge.Currency.dll
- OpenSim.Data.MySQL.MySQLMoneyDataWrapper
- Moneyserver.ini

OpenSim.ini in the url points to the main server, I think everything is fine because everything works except the objects

I think this additional information is good to understand my situation, thank you again for your help

ps: when the group and upload.? ^^

Thanks you :)

Milo
Votes:153 Average:4.38
Previous post - Next post | Parent - Children.1 | Posted on 2011/4/16 19:12
milo  Not too shy to talk   Posts: 30
little up :(
Votes:91 Average:5.82
Previous post - Next post | Parent - No child | Posted on 2011/4/17 23:45
iseki  Home away from home   Posts: 1581
Sorry, I have no idea......
Votes:84 Average:5.36
Previous post - Next post | Parent - Children.1 | Posted on 2011/4/18 14:54
milo  Not too shy to talk   Posts: 30
Hello Iseki,

I think the opensim version does not work properly.
I tested the latest version "r/15229" and https not working any more, patch ok, build ok.

The message console is [MONEY] Unable to connect Money Server 8008, I tried without the "S" http:ipserver:8008 money server work but it can not work
to connect the region, it does not need a patch to correct this problem?.

Thank you very much !

Milo
Votes:96 Average:5.00
Previous post - Next post | Parent - No child | Posted on 2011/4/18 18:54
iseki  Home away from home   Posts: 1581
Hi Milo

Thank you for your report.
I also confirmed this problem.

I will check this problem.
Votes:87 Average:4.94
Previous post - Next post | Parent - Children.1 | Posted on 2011/4/19 1:13
milo  Not too shy to talk   Posts: 30
Thanks you iseki for your work :)
Votes:76 Average:6.71
Previous post - Next post | Parent - No child | Posted on 2011/4/20 13:26
iseki  Home away from home   Posts: 1581
Hi everyone.

I understand the cause of this problem now.

At r/15147, ValidateServerCertificate() function was added to ScriptsHttpRequests.cs
So, this function refused certificate file that we use.
This certificate file (SineWaveCert.pfx) had been used since DTL Currency Server.

We are thinking about the best method for this problem.
If there is a good idea, please teach us.


diff of r/15146 and r/15147
Quote:
diff --git a/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs b/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs
index d78931a..a37c781 100644
--- a/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs
+++ b/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs
@@ -29,8 +29,10 @@ using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
+using System.Net.Security;
using System.Text;
using System.Threading;
+using System.Security.Cryptography.X509Certificates;
using Nini.Config;
using OpenMetaverse;
using OpenSim.Framework;
@@ -84,6 +86,7 @@ using OpenSim.Region.Framework.Scenes;

namespace OpenSim.Region.CoreModules.Scripting.HttpRequest
{
+
public class HttpRequestModule : IRegionModule, IHttpRequestModule
{
private object HttpListLock = new object();
@@ -100,8 +103,23 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest

public HttpRequestModule()
{
+ ServicePointManager.ServerCertificateValidationCallback +=ValidateServerCertificate;
}

+ public static bool ValidateServerCertificate(
+ object sender,
+ X509Certificate certificate,
+ X509Chain chain,
+ SslPolicyErrors sslPolicyErrors)
+ {
+ HttpWebRequest Request = (HttpWebRequest)sender;
+
+ if(Request.Headers.Get("NoVerifyCert") != null)
+ {
+ return true;
+ }
+ return chain.Build(new X509Certificate2(certificate));
+ }
#region IHttpRequestModule Members

public UUID MakeHttpRequest(string url, string parameters, string body)
@@ -141,8 +159,7 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest
break;

case (int)HttpRequestConstants.HTTP_VERIFY_CERT:
-
- // TODO implement me
+ htc.HttpVerifyCert = (int.Parse(parms[i + 1]) != 0);
break;
}
}
@@ -282,7 +299,7 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest
public string HttpMethod = "GET";
public string HttpMIMEType = "text/plain;charset=utf-8";
public int HttpTimeout;
- // public bool HttpVerifyCert = true; // not implemented
+ public bool HttpVerifyCert = true; // not implemented
private Thread httpThread;

// Request info
@@ -344,6 +361,17 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest
Request.Method = HttpMethod;
Request.ContentType = HttpMIMEType;

+ if(!HttpVerifyCert)
+ {
+ // Connection Group Name is probably not used so we hijack it to identify
+ // a desired security exception
+// Request.ConnectionGroupName="NoVerify";
+ Request.Headers.Add("NoVerifyCert" , "true");
+ }
+// else
+// {
+// Request.ConnectionGroupName="Verify";
+// }
if (proxyurl != null && proxyurl.Length > 0)
{
if (proxyexcepts != null && proxyexcepts.Length > 0)
Votes:103 Average:4.17
Previous post - Next post | Parent - Children.1 | Posted on 2011/4/20 22:58
milo  Not too shy to talk   Posts: 30
Hello Iseki,

I am not competent to do that but I wish you much luck for us
find a solution :)

Milo
Votes:132 Average:4.17
Previous post - Next post | Parent - Children.1 | Posted on 2011/4/22 14:42 | Last modified
iseki  Home away from home   Posts: 1581
Hi

Now, svn (for 0.7.1Dev) of DTL/NSL Money Server's problem is corrected.

[svn co http://www.nsl.tuis.ac.jp/svn/opensim/opensim.currency/trunk opensim.currency]

It is checked at r15276.
But this is emergency correction.
When version 0.7.1 is released, a full correction will be done.

Thanks.
Votes:72 Average:5.00
Previous post - Next post | Parent - No child | Posted on 2011/4/22 15:58
milo  Not too shy to talk   Posts: 30
Big thanks Iseki :)
Votes:86 Average:4.19
Previous post - Next post | Parent - No child | Posted on 2011/4/22 16:55
milo  Not too shy to talk   Posts: 30
Hi,

I do not understand why I have all the time a rollback on the sale of objects, other
Land sales function, getmoney works properly, I change the port as in the example

Quote:
[Economy]
SellEnabled = "true"
UserServer = "http://urlip:8002"
;UserServer = "http://urlip:8003"
CurrencyServer = "https://urlip:8008"
EconomyModule = DTLMoneyModule
PriceUpload = 0
PriceGroupCreate = 0
I completely rebuilt a clean install and the problem come back every time.

I made ​​a try with the version 0.7.0.2 and no problem all work normaly, land, object, getmoney, so I do not think this is a problem of my server?

Quote:
[Money RPC]: in UpdateBalance
[Money RPC]: in genericCurrencyXMLRPCRequest
[Money RPC]: in UpdateBalance
[Money RPC]: in genericCurrencyXMLRPCRequest
[Money RPC]: Now notify opensim to give object to customer:f048095e-fac8-450d-a438-fc07c753d36f@ipserver
[Money RPC]: in genericCurrencyXMLRPCRequest
[Money RPC]: User: f048095e-fac8-450d-a438-fc07c753d36f@ipserver can't get the object,rolling back
[Money RPC]: in RollBackTransaction Roll back transaction f7b89781-0c97-477a-9e30-6f3dc7524b40 successfully
[Money RPC]: in UpdateBalance
[Money RPC]: in genericCurrencyXMLRPCRequest
[Money RPC]: in UpdateBalance
[Money RPC]: in genericCurrencyXMLRPCRequest
[Money RPC]: transaction: f7b89781-0c97-477a-9e30-6f3dc7524b40 failed but roll back succeeded

All time 2 rollback

My file config.php
Quote:
if (!defined('ENV_HELPER_URL')) define('ENV_HELPER_URL', 'http://IPSERVER/currency/helper');
if (!defined('ENV_HELPER_PATH')) define('ENV_HELPER_PATH', '/var/www/currency/helper');

Quote:
define('CURRENCY_SCRIPT_KEY','123456789');
define('USER_SERVER_URI','http://IPSERVER:8002');
//define('USER_SERVER_URI','http://IPSERVER:8003');

I not understand.

Thanks
Votes:99 Average:4.44
Previous post - Next post | Parent - No child | Posted on 2011/4/23 4:14
milo  Not too shy to talk   Posts: 30
Hi,

First release is available http://dist.opensimulator.org/opensim-0.7.1-rc1-source.tar.gz

little report:

I test with lastest opensim currency and all time rollback and also for each upload texture = add 1 L$ and blue menu -1 L$ not exist

Thanks
Votes:81 Average:5.56
Previous post - Next post | Parent - Children.1 | Posted on 2011/4/24 14:48
milo  Not too shy to talk   Posts: 30
Hi,

I have recompile and Upload work now perfectly but all time rollback.
Votes:108 Average:4.63
Previous post - Next post | Parent - No child | Posted on 2011/4/26 14:55
iseki  Home away from home   Posts: 1581
Quote:

milo wrotes:
Hi,

I have recompile and Upload work now perfectly but all time rollback.

Sorry, we have no idea about rollback.
Votes:131 Average:7.63
Previous post - Next post | Parent - Children.1 | Posted on 2011/4/26 15:10
milo  Not too shy to talk   Posts: 30
Hi Iseki,

Is it not possible to fix this problem?

You should try using Grid, I buy a new server blank with a new installation, and I have the same problem, there is only version 0.7.0.2 opensim that work properly, the problem come from module.

Iseki thank you.
Votes:90 Average:4.00
Previous post - Next post | Parent - Children.1 | Posted on 2011/4/26 16:17 | Last modified
iseki  Home away from home   Posts: 1581
Hi milo

We have OpenSim Grid (TUIS Open Grid, http://www.opensim.tuis.ac.jp)
Money Server works well on our Grid.
Our Money Server does not rollback.

Do you use Hyper Grid?
We do not test on hyper Grid.

Please teach me your environment more detail with easy English (Our English is unskilled.)

Ex.)
Grid machine's OS.
Version of Viewer.
Version of MySQL DB.
Do you use web interface? If so, what is kind and version of web interface.
etc. etc.

Thanks.
Votes:96 Average:4.79
Previous post - Next post | Parent - Children.1 | Posted on 2011/4/26 17:05
milo  Not too shy to talk   Posts: 30
Hello,

I work only Grid mode not hypergrid


I use Unbutu 10.04 lucid server 8x dual 32 gb, Mono 2.8, Mysql 5.1.41, php 5.3, curl, xmlrpc, Opensim version RC1

Osprofil/webroot
Ossearch/webroot
opensim.currency/script

I not use web interface, all my modules are autonomous, Money, Profile, search, I use
the file that is in the svn script/helper /include

Money: http://www.domaine.com/currency/
Profile: http://www.domaine.com/profile
Search: http://www.domaine.com/search

loginuri http://www.domaine.com:8002/
Viewer: imprudence 1.3.1 or Hippo or Phoenix

Click getgrid infos and:

Help Uri: http://www.domaine.com/currency/helper/ (good) i can purchase money, buy land without problem but not object.

For each simulator mono OpenSim.exe -> Gridcommon.ini -> Url Robust http://www.domaine.com:8003
For each OpenSim.ini:

Quote:
[Economy]

SellEnabled = "true"
UserServer = "http://iprobust:8002"
CurrencyServer = "https://iprobust:8008"
EconomyModule = DTLMoneyModule

I use 1 simulator per region

Thanks for your Help.
Votes:146 Average:3.77

なし Re: Rollback money server

msg# 1.11.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2011/4/27 11:41
iseki  Home away from home   Posts: 1581
Hi,

I understand this problem of OpenSim 0.7.1RC1 completely.
It is my mistake not to notice this problem.

I will correct this problem. Please wait one or two days.

I wish to express our gratitude for milo's patient advice.

Thank you very much.
Votes:129 Average:3.10

なし Re: Rollback money server

msg# 1.11.1.1.1.1
Previous post - Next post | Parent - No child | Posted on 2011/4/27 17:40 | Last modified
iseki  Home away from home   Posts: 1581
Hi everyone,

RollBack problem of 0.7.1RC1 is corrected now.

If you use OpenSim 0.7.1RC1, please update svn.
And re-patch and rebuild OpenSim.exe and Money Server.

Ex.) at OpenSim directory on Region Server
  svn update opensim.currency
  patch -p1 -R < opensim.currency/patches/opensim_currency_r14918.patch 
  patch -p1 < opensim.currency/patches/opensim_currency_0.7.1.patch
  nant clean
  nant
  cd opensim.currency
  ./build.sh
  cd ../bin
  mono OpenSim.exe

If you find more any bugs, please post this forum.

Thanks.
Votes:110 Average:3.64

  Advanced search


Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthJul 2025Next 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

56 user(s) are online (6 user(s) are browsing Forum)

Members: 0
Guests: 56

more...

Access Counter

Today : 742742742
Yesterday : 9855985598559855
Total : 2742294727422947274229472742294727422947274229472742294727422947
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com