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

Some problems and suggestions

  • このフォーラムに新しいトピックを立てることはできません
  • このフォーラムではゲスト投稿が禁止されています
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 .2 .3 .4 | 投稿日時 2016-4-9 3:29
nxt3d  Just popping in   投稿数: 2
Hello World :)

First, i want to thank you for your work and perseverance to maintain this module and system update for the metaverse, in reality, you are our unique hope to see emerge a real economy in the virtual worlds based on OpenSimulator and free from the companies monopolies...

i have some problems to setup the money server under ubuntu 14.04, i use the last main version of opensim 0.8.2.1 (standalone hypergrided mode) with the last version of the money server but something not working with the cerificates and the communication between opensim and the money server on port 8008;
i use the let's encrypt system and certificates to secure apache/php
https://letsencrypt.org/
https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-14-04
i converted the resulting with this command-line

# openssl pkcs12 -export -in cert.pem -inkey privkey.pem -out opensim.pfx

without passwords... the money server and opensim start without problems, the module load in the startup phase and all is OK but when i connect with firestorm , the viewer crash with this error :
http://i66.tinypic.com/ap9vmp.jpg

and i had this message in the opensim console
[NSL CERT VERIFY]: ValidateServerCertificate: Policy is (RemoteCertificateChainErrors)

few time after i got this bloody tsunami (red lines):

[MONEY NSL RPC]: XmlRpcResponse certSend: GetResponse Error: System.Threading.ThreadAbortException: Thread was being aborted
at System.Net.WebConnection.Write (System.Net.HttpWebRequest request, System.Byte[] buffer, Int32 offset, Int32 size, System.String& err_msg) [0x00000] in <filename unknown>:0
at System.Net.WebConnectionStream.WriteHeaders () [0x00000] in <filename unknown>:0
at System.Net.WebConnectionStream.SetHeaders (System.Byte[] buffer) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Net.WebConnectionStream:SetHeaders (byte[])
at System.Net.HttpWebRequest.SendRequestHeaders (Boolean propagate_error) [0x00000] in <filename unknown>:0
17:42:36 - [MONEY]: genericCurrencyXMLRPCRequest: Unable to connect to Money Server https://nxt3d.net:8008/
17:42:36 - [MONEY]: genericCurrencyXMLRPCRequest: System.Threading.ThreadAbortException: Thread was being aborted
at NSL.Network.XmlRpc.NSLXmlRpcRequest.certSend (System.String url, System.Security.Cryptography.X509Certificates.X509Certificate2 clientCert, Boolean checkServerCert, Int32 timeout) [0x00000] in <filename unknown>:0
at OpenSim.Modules.Currency.DTLNSLMoneyModule.genericCurrencyXMLRPCRequest (System.Collections.Hashtable reqParams, System.String method) [0x00000] in <filename unknown>:0
17:42:36 - [EVENT MANAGER]: Delegate for TriggerOnMakeRootAgent failed - continuing. Thread was being aborted at OpenSim.Modules.Currency.DTLNSLMoneyModule.genericCurrencyXMLRPCRequest (System.Collections.Hashtable reqParams, System.String method) [0x00000] in <filename unknown>:0
at OpenSim.Modules.Currency.DTLNSLMoneyModule.LoginMoneyServer (IClientAPI client, System.Int32& balance) [0x00000] in <filename unknown>:0
at OpenSim.Modules.Currency.DTLNSLMoneyModule.OnMakeRootAgent (OpenSim.Region.Framework.Scenes.ScenePresence agent) [0x00000] in <filename unknown>:0
at OpenSim.Region.Framework.Scenes.EventManager.TriggerOnMakeRootAgent (OpenSim.Region.Framework.Scenes.ScenePresence presence) [0x00000] in <filename unknown>:0
17:42:36 - [LLCLIENTVIEW]: Caught exception while processing OpenMetaverse.Packets.CompleteAgentMovementPacket for NXT Community System.Threading.ThreadAbortException: Thread was being aborted
at OpenSim.Region.Framework.Scenes.EventManager.TriggerOnMakeRootAgent (OpenSim.Region.Framework.Scenes.ScenePresence presence) [0x00000] in <filename unknown>:0
at OpenSim.Region.Framework.Scenes.ScenePresence.MakeRootAgent (Vector3 pos, Boolean isFlying) [0x00000] in <filename unknown>:0
at OpenSim.Region.Framework.Scenes.ScenePresence.CompleteMovement (IClientAPI client, Boolean openChildAgents) [0x00000] in <filename unknown>:0
at (wrapper delegate-invoke) System.Action`2<OpenSim.Framework.IClientAPI, bool>:invoke_void__this___T1_T2 (OpenSim.Framework.IClientAPI,bool)
at OpenSim.Region.ClientStack.LindenUDP.LLClientView.HandleCompleteAgentMovement (IClientAPI sender, OpenMetaverse.Packets.Packet Pack) [0x00000] in <filename unknown>:0
at OpenSim.Region.ClientStack.LindenUDP.LLClientView.ProcessSpecificPacketAsync (System.Object state) [0x00000] in <filename unknown>:0

17:42:36 - Aborted threadfunc 1224 System.Threading.ThreadAbortException: Thread was being aborted
at OpenSim.Region.ClientStack.LindenUDP.LLClientView.ProcessSpecificPacketAsync (System.Object state) [0x00000]: in <filename unknown>:0
at OpenSim.Framework.Util+<FireAndForget>c__AnonStorey6.<>m__10 (System.Object o) [0x00000] in <filename unknown>:0

the same happend with the defaults certificates too; i tested with the IP address and the domain name and both fail, the port 8008 is open in TCP and UDP... i run opensim before the money server and the inverse ... i set CheckServerCert = false in OpensimDefaults.ini and the MoneyServer.ini ... i got the same problem and nothing is displayed in the money server console, just the startup part

17:22:00 - [MONEY SERVER]: Setup HTTP Server process
17:22:00 - [MONEY SERVER]: ReadIniConfig: Execute HTTPS comunication. Cert file is opensim.pfx
17:22:00 - [MONEY SERVER]: Connecting to Money Storage Server
17:22:00 - [BASE HTTP SERVER]: Starting HTTPS server on port 8008
17:22:00 - [WATCHDOG]: Started tracking thread PollServiceWorkerThread0:8008, ID 7
17:22:00 - [WATCHDOG]: Started tracking thread PollServiceWorkerThread1:8008, ID 8
17:22:00 - [WATCHDOG]: Started tracking thread PollServiceWorkerThread2:8008, ID 9
17:22:00 - [WATCHDOG]: Started tracking thread LongPollServiceWatcherThread:8008, ID 10
PLEASE WAIT FOR LOGINS TO BE ENABLED ON REGIONS ONCE SCRIPTS HAVE STARTED. Non-script portion of startup took 0m 0s.
Money #

where is the problem? i burned the last 3 days testing things without success :(

some suggestions for the future :
1- replacing the MoneyServer.exe with this software https://nxt.org/
the Nxt software is a full toolbox and not a simple currency system and have advanced web gui that can replace the php part in the NSL system. you can use the demo in the website to visit the wallet web gui in live!
direct access : http://62.194.6.113:7876/index.html?account=NXT-BNZB-9V8M-XRPW-3S3WD

the NRS (Nxt server) use a rich HTTP(s) API that can handle all the economic operations into the virtual world and can be used directly with LSL but the best and secure way is the same as the actual C# module in the NSL system... need just a some modifications to use JSON over https instead of the actual XML-RPC
for more technical infos :
https://nxtwiki.org/wiki/The_Nxt_API
https://nxtwiki.org/wiki/The_Nxt_API_Examples

2- Let's encrypt for the server/clients certificates. its a free service and will be easy to setup for the Linux based OS... i use it in the Nxt Community virtual world and work fine with joomla and Jopensim under apache server but the apache files are in .pem and not .pfx or .p12 ...
if the next version for 0.9 can use the same .pem files located in /ect/letsencrypt/live/DOMAIN/chain.pem and fullchain.pem ... this will be a very good thing :)

thank you again and @++
投票数:128 平均点:3.36
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2016-4-9 19:00
iseki  Home away from home   投稿数: 1581
Thanks for your suggestions for the future.

>> 17:42:36 - [MONEY]: genericCurrencyXMLRPCRequest: Unable to connect to Money Server https://nxt3d.net:8008/

Your Region Sever can not connect to Money Server.
Please execute below command at Region Sever.

$ telnet nxt3d.net 8008


Example:
[iseki@sirius ~]:507$ telnet jogrid.net 8008
Trying 202.26.159.210...
Connected to jogrid.net.
Escape character is '^]'.
^]

telnet> quit
Connection closed.
[iseki@sirius ~]:508$
[iseki@sirius ~]:508$ telnet nxt3d.net 8008
Trying 163.172.25.123...
telnet: connect to address 163.172.25.123: Connection refused
[iseki@sirius ~]:509$ 


Your Money Server does not response.
I think that Your Money Server is in FireWall.
Please stop Fire Wall of Ubuntu ot open 8008 port on Fure Wall.
投票数:77 平均点:3.25
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2016-4-10 23:24
nxt3d  Just popping in   投稿数: 2
Hi :)

thank you for your reply.
yes i use a firewall but the port 8008 was open ?!? i think that the telnet fail because when you did the test, the money server/module was disabled in opensim...
i enable it and tested again but without SSL just over HTTP and this work without problems! i connected to the simulator and got the default 1000 units (called NXT in our virtual world ;) )...

the problem is somewhere in the let's encrypt certificates and the verifications or the way that i did to convert the .pem to .pfx ...
[NSL CERT VERIFY]: ValidateServerCertificate: Policy is (RemoteCertificateChainErrors)
>> the SSL communication fail
17:42:36 - [MONEY]: genericCurrencyXMLRPCRequest: Unable to connect to Money Server https://nxt3d.net:8008/
>> the connexion fail because the errors in my certificate .pfx and the SSL communication/verification failure

please , if you can do the same as this tutorial to get the same certificates format to explore the best way to use them with the money server and report it here or in the documentation... this will be useful for all the NSL/DTL users :)
https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-14-04

thank you and @++
投票数:72 平均点:2.92
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2016-4-11 0:25
iseki  Home away from home   投稿数: 1581
Our Money Server ignore RemoteCertificateChainErrors.

Please use SineWaveCert.pfx or server_cert.p12 instead of opensim.p12
SineWaveCert.pfx and server_cert.p12 are in config directory.

MoneyServer.ini
; for HTTPS Server
ServerCertFilename = "SineWaveCert.pfx"
ServerCertPassword = "123"
;ServerCertFilename = "server_cert.p12"
;ServerCertPassword = ""


About p12 or pfx file, you should read openssl manual.


Simple example:
0. Create CA

1. Create CSR file (key.pem is private key)
openssl req -new -key key.pem -out csr.pem

2. Signed by CA
openssl ca -batch -config ca.conf -infiles csr.pem -out cert.pem

3. Create p12 file
openssl pkcs12 -export -in cert.pem -inkey key.pem -out cert.p12
投票数:85 平均点:1.88
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2017-5-9 8:29
sorintodys  Just popping in   投稿数: 3
Hello,

Thank you for all your work with this great module for opensim!

I have exactly the same problem like nxt3d on an operating system debian 8.8 amd64, opensim 0.8.2.1, mono 4.8.1
On another debian 8.1 amd64, opensim 0.8.2.1, mono 4.2.3 everything goes perfectly :)
The error on opensim console:

2017-05-09 00:05:17,558 ERROR (STP:Util:14) - OpenSim.Modules.Currency.DTLNSLMoneyModule [MONEY]: genericCurrencyXMLRPCRequest: Unable to connect to Money Server http://grid.alifevirtual.com:8008/
2017-05-09 00:05:17,558 ERROR (STP:Util:14) - OpenSim.Modules.Currency.DTLNSLMoneyModule [MONEY]: genericCurrencyXMLRPCRequest: System.NullReferenceException: Object reference not set to an instance of an object
at NSL.Network.XmlRpc.NSLXmlRpcRequest.certSend (System.String url, System.Security.Cryptography.X509Certificates.X509Certificate2 clientCert, System.Boolean checkServerCert, System.Int32 timeout) [0x000f4] in <8d37b5ec4dc54b928e581827e270d644>:0
at OpenSim.Modules.Currency.DTLNSLMoneyModule.genericCurrencyXMLRPCRequest (System.Collections.Hashtable reqParams, System.String method) [0x000bf] in <8d37b5ec4dc54b928e581827e270d644>:0

Thank you very much for help!
Best Regards,
Sorin Todys
投票数:48 平均点:5.63
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2017-5-9 9:12
sorintodys  Just popping in   投稿数: 3
I change to https and get this error:

2017-05-09 01:09:51,816 ERROR (STP:Util:21) - OpenSim.Modules.Currency.DTLNSLMoneyModule [MONEY]: genericCurrencyXMLRPCRequest: Unable to connect to Money Server https://grid.alifevirtual.com:8008/
2017-05-09 01:09:51,816 ERROR (STP:Util:21) - OpenSim.Modules.Currency.DTLNSLMoneyModule [MONEY]: genericCurrencyXMLRPCRequest: System.Net.WebException: The request timed out
at System.Net.HttpWebRequest.GetRequestStream () [0x00056] in <5641e4edad4f4464ba58c620a7b8ea48>:0
at NSL.Network.XmlRpc.NSLXmlRpcRequest.certSend (System.String url, System.Security.Cryptography.X509Certificates.X509Certificate2 clientCert, System.Boolean checkServerCert, System.Int32 timeout) [0x00098] in <8d37b5ec4dc54b928e581827e270d644>:0
at OpenSim.Modules.Currency.DTLNSLMoneyModule.genericCurrencyXMLRPCRequest (System.Collections.Hashtable reqParams, System.String method) [0x000bf] in <8d37b5ec4dc54b928e581827e270d644>:0
投票数:125 平均点:7.76
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2017-5-10 11:13
sorintodys  Just popping in   投稿数: 3
The problem was mono 4.8.1, after I downgraded to 4.2.3 everything is ok :)
The conclusion is that maybe it's not good to use the latest version of a software.
投票数:121 平均点:1.49
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2017-5-10 15:55
iseki  Home away from home   投稿数: 1581
Thank you for your report.
投票数:169 平均点:6.04

  条件検索へ


サイト内 検索

ログイン

ユーザー名:

パスワード:


パスワード紛失
新規登録

サブ メニュー

ミニカレンダー

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

オンライン状況

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

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

もっと...

アクセスカウンタ

今日 : 3460346034603460
昨日 : 4473447344734473
総計 : 2313000523130005231300052313000523130005231300052313000523130005
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com