jOpenSimWorld

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

Search not working

5 years 3 weeks ago #3233 by Xena
Hello again,

I do i new post to not mix all issues.

so the search process is not working for me, i get this error in the console :
[REST CLIENT]: Error fetching resource from server: https://www.*****.***/components/com_opensim/registersearch.php?service=online&host=*****&port=9000&secret=******* System.Net.WebException: Error: SecureChannelFailure (The authentication or decryption has failed.) ---> System.IO.IOException: The authentication or decryption has failed. ---> System.IO.IOException: Error while sending TLS Alert (Fatal:InternalError): System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: The authentication or decryption has failed.

as you see this line seems trying to contact my sim at port 9000. The thing is in my case i have no sim running at port 9000. In the gloval configuration i couldn't find anywhere to change this, so the port seems to be hard coded ?

Im configurer in hypergrid mode with seperate instance for Robust and OpenSim, i also have seperate databases where opensim allows it. i use 0.9.1.0 under ubunutu 18.04 and the latest mono

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

5 years 3 weeks ago #3234 by Xena
ok i figured out the port thing, its located in the joomla database and probably because the http_listener_port was commented. i corrected this putting the correct port, the console is still throwing the same error

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

5 years 3 weeks ago #3235 by Xena
some extra error

[jOpenSimSearch]: (1) Unable to connect to Search Server https://www.*******.***/components/com_opensim/interface.php
Exception System.Net.WebException: Error: SecureChannelFailure (The authentication or decryption has failed.) ---> System.IO.IOException: The authentication or decryption has failed. ---> System.IO.IOException: Error while sending TLS Alert (Fatal:InternalError): System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: The authentication or decryption has failed.

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

5 years 3 weeks ago #3237 by foto50
Hi again Xena :)

Ok this is a new error message I read. What certificate is used at https://www.*******.***/components/com_opensim/interface.php ?

Could be this issue is also related to your other post about the groups, but not sure.

In this case enabling debugging for search in jOpenSim wont help since it looks the failure already appears in OpenSim before it can connect to jOpenSim :(

To me it looks like there is some encryption algorythm in the certificate that is not supported by OpenSim, but that's just a wild guess.

Maybe you find some lines in your OpenSim.log during startup concerning "SSL" or "secure layer" or similar?

Greetz
FoTo50

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

5 years 3 weeks ago #3242 by Xena
Hello foto50,

i posted some precision about the SSL into the groups post.

Also the search is now reporting some results in the client but the console is still showing errors
2019-11-13 01:23:05,868 ERROR [REST CLIENT] Error fetching resource from server: https://www.******/components/com_opensim/registersearch.php?service=online&host=****&port=****&secret=*******
System.Net.WebException: Error: SecureChannelFailure (The authentication or decryption has failed.) ---> System.IO.IOException: The authentication or decryption has failed. ---> System.IO.IOException: Error while sending TLS Alert (Fatal:InternalError): System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: The authentication or decryption has failed.
  at Mono.Security.Protocol.Tls.RecordProtocol.EndReceiveRecord (System.IAsyncResult asyncResult) [0x00040] in <1d0bb82c94e7435eb09324cf5ef20e36>:0 
  at Mono.Security.Protocol.Tls.SslClientStream.SafeEndReceiveRecord (System.IAsyncResult ar, System.Boolean ignoreEmpty) [0x00000] in <1d0bb82c94e7435eb09324cf5ef20e36>:0 
  at Mono.Security.Protocol.Tls.SslClientStream.NegotiateAsyncWorker (System.IAsyncResult result) [0x00071] in <1d0bb82c94e7435eb09324cf5ef20e36>:0 
   --- End of inner exception stack trace ---
  at Mono.Security.Protocol.Tls.SslClientStream.EndNegotiateHandshake (System.IAsyncResult result) [0x0003b] in <1d0bb82c94e7435eb09324cf5ef20e36>:0 
  at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (System.IAsyncResult asyncResult) [0x0000c] in <1d0bb82c94e7435eb09324cf5ef20e36>:0  ---> System.IO.IOException: Unable to write data to the transport connection: The socket has been shut down. ---> System.Net.Sockets.SocketException: The socket has been shut down
  at System.Net.Sockets.Socket.EndSend (System.IAsyncResult result) [0x00033] in <bd46d4d4f7964dfa9beea098499ab597>:0 
  at System.Net.Sockets.NetworkStream.EndWrite (System.IAsyncResult asyncResult) [0x0005f] in <bd46d4d4f7964dfa9beea098499ab597>:0 
   --- End of inner exception stack trace ---
  at System.Net.Sockets.NetworkStream.EndWrite (System.IAsyncResult asyncResult) [0x000af] in <bd46d4d4f7964dfa9beea098499ab597>:0 
  at Mono.Security.Protocol.Tls.RecordProtocol.EndSendRecord (System.IAsyncResult asyncResult) [0x00040] in <1d0bb82c94e7435eb09324cf5ef20e36>:0 
  at Mono.Security.Protocol.Tls.RecordProtocol.SendRecord (Mono.Security.Protocol.Tls.ContentType contentType, System.Byte[] recordData) [0x0000b] in <1d0bb82c94e7435eb09324cf5ef20e36>:0 
  at Mono.Security.Protocol.Tls.RecordProtocol.SendAlert (Mono.Security.Protocol.Tls.Alert alert) [0x00027] in <1d0bb82c94e7435eb09324cf5ef20e36>:0 
  at Mono.Security.Protocol.Tls.RecordProtocol.SendAlert (System.Exception& ex) [0x00021] in <1d0bb82c94e7435eb09324cf5ef20e36>:0 
   --- End of inner exception stack trace ---
   --- End of inner exception stack trace ---
  at Mono.Security.Protocol.Tls.SslStreamBase.EndRead (System.IAsyncResult asyncResult) [0x00057] in <1d0bb82c94e7435eb09324cf5ef20e36>:0 
  at Mono.Net.Security.Private.LegacySslStream.EndAuthenticateAsClient (System.IAsyncResult asyncResult) [0x00011] in <bd46d4d4f7964dfa9beea098499ab597>:0 
  at Mono.Net.Security.Private.LegacySslStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) [0x0000e] in <bd46d4d4f7964dfa9beea098499ab597>:0 
  at Mono.Net.Security.MonoTlsStream.CreateStream (System.Byte[] buffer) [0x00044] in <bd46d4d4f7964dfa9beea098499ab597>:0 
   --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00064] in <bd46d4d4f7964dfa9beea098499ab597>:0 
  at System.Net.HttpWebRequest.GetResponse () [0x0000e] in <bd46d4d4f7964dfa9beea098499ab597>:0 
  at OpenSim.Framework.RestClient.Request (OpenSim.Framework.ServiceAuth.IServiceAuth auth) [0x000c1] in <7c900a7aba4d46aa941740ba626f704b>:0 

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

5 years 2 weeks ago #3244 by Xena
i have also identified another problem.
the search is returning only parcels, this is because JopenSim has created a bunch of tables in the database of joomla and it has duplicated some data in them, but not all the data, this is why the search is not working because its looking in joomla db instead of the grid db. This is also the behaviour for avatars partners system, profiles, and groups if i not wrongly understood, in all cases this is what i have observed.
I have tried to partner 2 avatars, the process went well but the avatars were not partnered in world, after looking in the DB the partenering was operated in joomla DB (profile table) not in the grid DB.


In my case i do not want to duplicate data or hold double databases.
I want JOS to operate directly on the grid databases.

Is this possible ? or maybe JOS has not been designed to operate this way ?

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

5 years 2 weeks ago #3249 by foto50
Hi Xena

Since jOpenSim is an extension for Joomla, you will always have 2 databases: one for Joomla (the website) and one for OpenSim. jOpenSim is basically a "bridge" between those 2.

jOpenSim is storing search, profile and group data only in the Joomla database. If you have similar tables in your grid db, then probably because you used groups V2, profile V2 before. But jOpenSim does not use them at all.

As for the failures, I would consider this line as the central issue:
Error: SecureChannelFailure (The authentication or decryption has failed.)
I also use LetsEncrypt here but never had such messages.

Just to be sure: reading authentication ... you dont have any password protection for developing phase on your Joomla server?

As written in the other post, no log files in your Joomla folder is more or less expected since it looks as if this issue is happening before communication with jOpenSim has started.

Do you have access to the webservers error logs? Maybe there we find a hint, what this is caused by :S

Greetz
FoTo50

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

4 years 11 months ago #3280 by Kclip
I came across the same exact error message... Search and events not working.

I found out by going through the php files that i didnt have Curl on.. I added curl and it now works..

just wanted to say what i found on mine.. hope this helps you

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

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