Jigasi installed on separate server

I had Jigasi installed on the same server as Jitsi (meet, jicofo, job, prosody). I got it working.

Now I am trying to get it working with Jigasi installed on a separate server. I am getting the following errors -

net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl.connectAndLogin: Failed to connect to XMPP service for:ProtocolProviderServiceJabberImpl(Jabber:0d4aed7c@dev3.safevchat.com/0d4aed7c)

org.jivesoftware.smack.SmackException$EndpointConnectionException: The following addresses failed: ‘RFC 6120 A/AAAA Endpoint + [127.0.0.1/127.0.0.1:5222] (127.0.0.1/127.0.0.1:5222)’ failed because: java.net.ConnectException: Connection refused (Connection refused)

at org.jivesoftware.smack.SmackException$EndpointConnectionException.from(SmackException.java:334)

at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPConnection.java:664)

at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection.java:849)

at org.jivesoftware.smack.AbstractXMPPConnection.connect(AbstractXMPPConnection.java:526)

at net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl.connectAndLogin(ProtocolProviderServiceJabberImpl.java:1315)

at net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl.connectAndLogin(ProtocolProviderServiceJabberImpl.java:968)

at net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl.initializeConnectAndLogin(ProtocolProviderServiceJabberImpl.java:793)

at net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl.register(ProtocolProviderServiceJabberImpl.java:495)

at org.jitsi.jigasi.util.RegisterThread.run(RegisterThread.java:59)

2022-08-26 20:27:36.155 SEVERE: [72] JvbConference.registrationStateChanged#681: [ctx=1661545655089906600753] XMPP Connection failed. RegistrationStateChangeEvent[ oldState=Registering; newState=RegistrationState=Connection Failed; userRequest=false; reasonCode=6; reason=The following addresses failed: ‘RFC 6120 A/AAAA Endpoint + [127.0.0.1/127.0.0.1:5222] (127.0.0.1/127.0.0.1:5222)’ failed because: java.net.ConnectException: Connection refused (Connection refused)]

Any suggestions ?
Thx

Hi Ram,

You need to specify the IP address of the xmpp server in your jigasi config. Currently, it’s set to localhost (which works when hosted on the same server).

Freddie,

Nice catch.

Thx
Ram

XMPP connection going through. Getting a certificate error -

at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:990)

at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$700(XMPPTCPConnection.java:916)

at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:939)

at java.base/java.lang.Thread.run(Thread.java:829)

Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

at java.base/sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:439)

at java.base/sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:306)

at java.base/sun.security.validator.Validator.validate(Validator.java:264)

at java.base/sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:313)

at java.base/sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:222)

at java.base/sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:129)

at java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(CertificateMessage.java:638)

… 17 more

Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

at java.base/sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)

at java.base/sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)

at java.base/java.security.cert.CertPathBuilder.build(CertPathBuilder.java:297)

at java.base/sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:434)

… 23 more

2022-08-29 15:53:18.996 INFO: [103] SipGatewaySession$SipCallStateListener.handleCallState#1440: [ctx=1661788385379851864967] SIP call ended: CallPeerChangeEvent: type=CallPeerStatusChange oldV=net.java.sip.communicator.service.protocol.CallPeerState:Incoming Call newV=net.java.sip.communicator.service.protocol.CallPeerState:Disconnected for peer=+17328413612 +17328413612@rahuligan.sip.us1.twilio.com;status=Disconnected

2022-08-29 15:53:19.004 INFO: [103] SipGatewaySession.sipCallEnded#694: [ctx=1661788385379851864967] Sip call ended: Call: id=16617883853111266316966 peers=0

2022-08-29 15:53:19.009 INFO: [103] JvbConference.stop#575: [ctx=1661788385379851864967] Removing account Jabber:4bfef341@dev3.safevchat.com/4bfef341

2022-08-29 15:53:19.009 INFO: [103] net.java.sip.communicator.impl.protocol.jabber.OperationSetBasicTelephonyJabberImpl.registrationStateChanged: Jingle : OFF

2022-08-29 15:53:19.010 SEVERE: [103] AbstractGateway.notifyCallEnded#121: [ctx=1661788385379851864967] Call resource not exists for session.

2022-08-29 15:53:19.012 INFO: [103] SipGatewaySession$CallPeerListener.peerStateChanged#1501: null SIP peer state: Disconnected

Did that … now getting the following error -

2022-08-29 17:13:16.595 INFO: [13] net.java.sip.communicator.impl.netaddr.NetaddrActivator.startWithServices: Network Address Manager …[ STARTED ]

2022-08-29 17:13:16.603 INFO: [13] JitsiConfig$Companion.useDebugNewConfig#74: Replacing newConfig with merge of system properties,reference.conf @ jar:file:/usr/share/jigasi/jigasi.jar!/reference.conf: 1,reference.conf @ jar:file:/usr/share/jigasi/lib/ice4j-3.0-59-g71e244d.jar!/reference.conf: 1

2022-08-29 17:13:16.603 INFO: [13] net.java.sip.communicator.impl.netaddr.NetaddrActivator.startWithServices: Network Address Manager Service …[REGISTERED]

2022-08-29 17:13:16.603 FINE: [13] net.java.sip.communicator.util.osgi.DependentActivator.addingService: Got service NetworkAddressManagerServiceImpl, starting now

2022-08-29 17:13:16.611 INFO: [13] net.java.sip.communicator.impl.netaddr.NetworkConfigurationWatcher.checkNetworkInterfaces: Currently Active eth0:[/172.31.23.96]

2022-08-29 17:13:16.618 FINE: [13] net.java.sip.communicator.plugin.reconnectplugin.ReconnectPluginActivator.startWithServices: Found 0 already installed providers.

2022-08-29 17:13:16.714 INFO: [13] net.java.sip.communicator.impl.dns.DnsUtilActivator.logDNSServers: Loading or Reloading resolver config, default DNS servers are: /127.0.0.53:53,

2022-08-29 17:13:17.744 WARNING: [38] net.java.sip.communicator.impl.resources.ResourceManagementServiceImpl.getSettingsInt: Missing resource for key: net.java.sip.communicator.SIP_PREFERRED_CLEAR_PORT

2022-08-29 17:13:17.763 WARNING: [38] net.java.sip.communicator.impl.resources.ResourceManagementServiceImpl.getSettingsInt: Missing resource for key: net.java.sip.communicator.SIP_PREFERRED_SECURE_PORT

2022-08-29 17:13:18.227 INFO: [38] SipGateway.registrationStateChanged#120: REG STATE CHANGE ProtocolProviderServiceSipImpl(SIP:jigasi2@rahuligan.sip.us1.twilio.com) → RegistrationStateChangeEvent[ oldState=Unregistered; newState=RegistrationState=Registering; userRequest=false; reasonCode=-1; reason=null]

2022-08-29 17:13:18.273 SEVERE: [25] net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl.connectAndLogin: Failed to connect to XMPP service for:ProtocolProviderServiceJabberImpl(Jabber:jigasi@auth.dev3.safevchat.com)

org.jivesoftware.smack.sasl.SASLErrorException: SASLError using SCRAM-SHA-1: not-authorized

at org.jivesoftware.smack.SASLAuthentication.authenticationFailed(SASLAuthentication.java:286)

at org.jivesoftware.smack.AbstractXMPPConnection.lambda$new$2(AbstractXMPPConnection.java:407)

at org.jivesoftware.smack.NonzaCallback$ClassAndConsumer.accept(NonzaCallback.java:177)

at org.jivesoftware.smack.NonzaCallback$ClassAndConsumer.access$200(NonzaCallback.java:166)

at org.jivesoftware.smack.NonzaCallback.onNonzaReceived(NonzaCallback.java:46)

at org.jivesoftware.smack.AbstractXMPPConnection.parseAndProcessNonza(AbstractXMPPConnection.java:1440)

at org.jivesoftware.smack.tcp.XMPPTCPConnection.access$1700(XMPPTCPConnection.java:131)

at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1010)

at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$700(XMPPTCPConnection.java:916)

at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:939)

at java.base/java.lang.Thread.run(Thread.java:829)

2022-08-29 17:13:18.521 INFO: [55] SipGateway.registrationStateChanged#120: REG STATE CHANGE ProtocolProviderServiceSipImpl(SIP:jigasi2@rahuligan.sip.us1.twilio.com) → RegistrationStateChangeEvent[ oldState=Registering; newState=RegistrationState=Registered; userRequest=false; reasonCode=-1; reason=null]

2022-08-29 17:13:18.525 WARNING: [55] SipHealthPeriodicChecker.create#169: No health check started, no HEALTH_CHECK_SIP_URI prop.

This is when using a wrong username or password.

That worked.

Thx a lot.