flagflag  If you want to see English page, please click "English" Button at Left.

Rollback money server

  • このフォーラムに新しいトピックを立てることはできません
  • このフォーラムではゲスト投稿が禁止されています
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 .2 .3 .4 .5 .6 .7 .8 .9 .10 .11 | 投稿日時 2011-4-8 15:17
milo  Not too shy to talk   投稿数: 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
投票数:110 平均点:4.73
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-4-9 12:23 | 最終変更
iseki  Home away from home   投稿数: 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.
投票数:72 平均点:5.00
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-4-9 20:49
milo  Not too shy to talk   投稿数: 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.
投票数:103 平均点:5.24
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-4-10 1:48
milo  Not too shy to talk   投稿数: 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
投票数:146 平均点:4.32
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-4-16 19:12
milo  Not too shy to talk   投稿数: 30
little up :(
投票数:84 平均点:5.83
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-4-17 23:45
iseki  Home away from home   投稿数: 1581
Sorry, I have no idea......
投票数:76 平均点:5.53
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-4-18 14:54
milo  Not too shy to talk   投稿数: 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
投票数:82 平均点:5.24
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-4-18 18:54
iseki  Home away from home   投稿数: 1581
Hi Milo

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

I will check this problem.
投票数:82 平均点:4.88
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-4-19 1:13
milo  Not too shy to talk   投稿数: 30
Thanks you iseki for your work :)
投票数:73 平均点:6.71
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-4-20 13:26
iseki  Home away from home   投稿数: 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
引用:
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)
投票数:95 平均点:4.21
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-4-20 22:58
milo  Not too shy to talk   投稿数: 30
Hello Iseki,

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

Milo
投票数:122 平均点:4.02
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-4-22 14:42 | 最終変更
iseki  Home away from home   投稿数: 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.
投票数:66 平均点:5.15
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-4-22 15:58
milo  Not too shy to talk   投稿数: 30
Big thanks Iseki :)
投票数:80 平均点:4.13
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-4-22 16:55
milo  Not too shy to talk   投稿数: 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

引用:
[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?

引用:
[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
引用:
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');

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

I not understand.

Thanks
投票数:93 平均点:4.09
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-4-23 4:14
milo  Not too shy to talk   投稿数: 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
投票数:75 平均点:5.47
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-4-24 14:48
milo  Not too shy to talk   投稿数: 30
Hi,

I have recompile and Upload work now perfectly but all time rollback.
投票数:101 平均点:4.55
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-4-26 14:55
iseki  Home away from home   投稿数: 1581
引用:

milo wrotes:
Hi,

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

Sorry, we have no idea about rollback.
投票数:126 平均点:7.86
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-4-26 15:10
milo  Not too shy to talk   投稿数: 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.
投票数:82 平均点:3.90
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-4-26 16:17 | 最終変更
iseki  Home away from home   投稿数: 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.
投票数:87 平均点:4.60
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-4-26 17:05
milo  Not too shy to talk   投稿数: 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:

引用:
[Economy]

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

I use 1 simulator per region

Thanks for your Help.
投票数:139 平均点:3.74

なし Re: Rollback money server

msg# 1.11.1.1.1
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2011-4-27 11:41
iseki  Home away from home   投稿数: 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.
投票数:123 平均点:3.09

なし Re: Rollback money server

msg# 1.11.1.1.1.1
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2011-4-27 17:40 | 最終変更
iseki  Home away from home   投稿数: 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.
投票数:106 平均点:3.40

  条件検索へ


サイト内 検索

ログイン

ユーザー名:

パスワード:


パスワード紛失
新規登録

サブ メニュー

ミニカレンダー

前月2024年 5月翌月
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
<今日>

オンライン状況

97 人のユーザが現在オンラインです。 (1 人のユーザが Forum を参照しています。)

登録ユーザ: 0
ゲスト: 97

もっと...

アクセスカウンタ

今日 : 7852785278527852
昨日 : 1412914129141291412914129
総計 : 2345346223453462234534622345346223453462234534622345346223453462
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com