Feed aggregator

API and development: RE: problem with BOSH HTTP Pre-Binding

Tigase XMPP Server Board - Thu, 07/20/2017 - 19:08

thanks for your response, https://projects.tigase.org/boards/29/topics/7303?r=7309#message-7309 the page describe my request, i want get sid and rid by BOSH HTTP Pre-Binding to use it in strophe.js, the strophe.js has a method attach(jid,sid,rid,callback) to keep login, please help me, thanks again.

Categories: Tigase Forums

API and development: RE: Maximum offline message length ?

Tigase XMPP Server Board - Wed, 07/19/2017 - 09:45

This is known issue which will be fixed in Tigase XMPP Server 7.2.0. It is already fixed in SNAPSHOT builds by altering field type to TEXT from VARCHAR as you suggested.

Categories: Tigase Forums

API and development: How to enable bosh and WebSocket ssl port?

Tigase XMPP Server Board - Wed, 07/19/2017 - 03:43

Hi, all:

When I clone the newest code of master branch, the BoshConnectionManager.java and WebSocketClientConnectionManager.java the ssl port is return null?

BoshConnectionManager.java

@Override
protected int[] getDefPlainPorts() {
return PORTS;
}

@Override
protected int[] getDefSSLPorts() {
return null;
}

WebSocketClientConnectionManager.java

@Override
protected int[] getDefPlainPorts() {
return new int[] { 5290 };
}

@Override
protected int[] getDefSSLPorts() {
return null;
}
Categories: Tigase Forums

Installation and maintenance: RE: Can't load schema: Invalid default value for 'last_login'

Tigase XMPP Server Board - Tue, 07/18/2017 - 13:57

This is a known issue (#4878) and was fixed in version 7.1.1 (currently in nightly builds - you can get it from http://build.tigase.org)

Categories: Tigase Forums

API and development: RE: problem with BOSH HTTP Pre-Binding

Tigase XMPP Server Board - Tue, 07/18/2017 - 13:52

To what endpoint are you making the request? Could you share full exchange?

Categories: Tigase Forums

API and development: Maximum offline message length ?

Tigase XMPP Server Board - Mon, 07/17/2017 - 01:55

Hello! What is the maximum length for offline messages and how i can change it?
For example i want send to user some data in base64 format in offline. The length of data 10-15k symbols.

So, i have Tigase server error in this moment%

2017-07-17 08:42:17.248 [in_99-sess-man] JDBCMsgRepository.storeMessage() WARNING: Problem adding new entry to DB: org.postgresql.util.PSQLException: ERROR: value too long for type character varying(4096) at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2182) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1911) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:173) at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:622) at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:472) at org.postgresql.jdbc.PgStatement.executeUpdate(PgStatement.java:429) at tigase.server.amp.JDBCMsgRepository.storeMessage(JDBCMsgRepository.java:813) at tigase.xmpp.impl.OfflineMessages.savePacketForOffLineUser(OfflineMessages.java:432) at tigase.xmpp.impl.MessageAmp.postProcess(MessageAmp.java:199) at tigase.server.xmppsession.SessionManager.processPacket(SessionManager.java:1889) at tigase.server.xmppsession.SessionManager.processPacket(SessionManager.java:481) at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessageReceiver.java:1570) 2017-07-17 08:42:17.249 [in_99-sess-man] SessionManager.processPacket() FINEST: Packet processed by: [message-carbons, amp, message-archive-xep-0136, msgoffline] ==> logs/tigase-console.log <== 2017-07-17 08:42:17.248 [in_99-sess-man] JDBCMsgRepository.storeMessage() WARNING: Problem adding new entry to DB: org.postgresql.util.PSQLException: ERROR: value too long for type character varying(4096) at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2182) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1911) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:173) at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:622) at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:472) at org.postgresql.jdbc.PgStatement.executeUpdate(PgStatement.java:429) at tigase.server.amp.JDBCMsgRepository.storeMessage(JDBCMsgRepository.java:813) at tigase.xmpp.impl.OfflineMessages.savePacketForOffLineUser(OfflineMessages.java:432) at tigase.xmpp.impl.MessageAmp.postProcess(MessageAmp.java:199) at tigase.server.xmppsession.SessionManager.processPacket(SessionManager.java:1889) at tigase.server.xmppsession.SessionManager.processPacket(SessionManager.java:481) at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessageReceiver.java:1570) ==> logs/tigase.log.0 <==

Maybe i need change field type to TEXT? Or use something another method for it?

Categories: Tigase Forums

API and development: RE: meaning of jmx property - total queues wait

Tigase XMPP Server Board - Wed, 07/12/2017 - 17:08

Thank you very much Artur! I have seen those thread level metrics in jmx and we will fetch those and report next time this happens.

Categories: Tigase Forums

Installation and maintenance: Can't load schema: Invalid default value for 'last_login'

Tigase XMPP Server Board - Wed, 07/12/2017 - 09:08

I am installing tigase on ubuntu 16.04 and there is something wrong:

Checking connection to the database
Connection OK
Checking if the database exists
Doesn't exist, creating... OK
Checking the database schema
Can't load schema: Invalid default value for 'last_login'
Checking whether the database needs conversion
Something wrong, the schema still is not loaded...
Adding XMPP admin accounts
Database schema is invalid
Loading socks5 component schema
Loading socks5 schema... completed OK
Loading PubSub component schema
Loading PubSub schema... completed OK
Post installation actions
Database schema is invalid

I use Mysql 5.7, ubuntu 16.04 and tigase 7.1. When I install the same tigase7.1 on windows10 with mysql5.6, everything is OK.
After comparing the database on ubuntu and windows, I found out that tiasedb on ubuntu missed several tables such as tig_users, user_jid and so on.

I've tried using console installer and web installer on ubuntu but both resulted in the failures "Can't load schema: Invalid default value for 'last_login'"

Categories: Tigase Forums

Installation and maintenance: RE: Tigase Push Component - FCM provider Configuration - How to ins...

Tigase XMPP Server Board - Sat, 07/08/2017 - 01:56

Hi Daniel,

thanks for the precious feedback.
I guess for me it's time to start trying the 7.2.

Thanks, for now... but I fear I will need a lot of extra help!

Categories: Tigase Forums

Installation and maintenance: RE: Tigase Push Component - FCM provider Configuration - How to ins...

Tigase XMPP Server Board - Fri, 07/07/2017 - 10:43

Most of the major developments are done, we're just catching bugs and fixing them. Can it run stable? well our own servers are getting upgraded and they've worked pretty well. So we're pretty far into development on it, and it's pretty stable now.

Categories: Tigase Forums

Installation and maintenance: RE: Tigase Push Component - FCM provider Configuration - How to ins...

Tigase XMPP Server Board - Fri, 07/07/2017 - 10:35

Ahhh, thank you!
That finally makes sense!

Well, now the dilemma is if I should upgrade to 7.2 or not, while it is still in development....

Any experience on 7.2?????

Ciao and thanks
Gabriele

Categories: Tigase Forums

Installation and maintenance: RE: Tigase Push Component - FCM provider Configuration - How to ins...

Tigase XMPP Server Board - Fri, 07/07/2017 - 10:08

Oh, it looks like you're still using v7.1.0. Push component is only available on v7.2.0 which is available on nightly builds. Version 7.2.0 uses DSL style configuration which would change the whole layout of your configuration file.

http://docs.tigase.org/tigase-server/snapshot/Administration_Guide/html/#_upgrading_to_v7_2_0_from_v7_1_0
should help you upgrade a test environment. Just note that 7.2.0 is still being worked on.

Categories: Tigase Forums

Installation and maintenance: RE: Tigase Push Component - FCM provider Configuration - How to ins...

Tigase XMPP Server Board - Fri, 07/07/2017 - 09:54

Wow, so something like that would be acceptable?
There is some documents describing ho to configure in detail?

Thanks a lot
Gabriele

--comp-class-1 = tigase.muc.MUCComponent --virt-hosts = yachtvillage.net --user-db-uri = jdbc:jtds:sqlserver://localhost:4850;databaseName=tigasedb;user=tigase;password=ViaSpezia91;schema=dbo;lastUpdateCount=false;cacheMetaData=false --user-db = sqlserver --admins = admin@yachtvillage.net,federico@yachtvillage.net --comp-name-5 = message-archive --comp-name-4 = rest --comp-name-3 = proxy config-type = --gen-config-all --comp-name-2 = pubsub --comp-name-1 = muc --comp-class-6 = tigase.server.websocket.WebSocketClientConnectionManager --comp-name-6 = ws2s ws2s/connections/ports[i] = 5290,5291 ws2s/connections/5291/socket = ssl ws2s/connections/5291/type = accept --cluster-mode = false --sm-plugins = +message-archive-xep-0136,+jabber:iq:auth,+urn:ietf:params:xml:ns:xmpp-sasl,+urn:ietf:params:xml:ns:xmpp-bind,+urn:ietf:params:xml:ns:xmpp-session,+jabber:iq:register,+jabber:iq:roster,+presence,+jabber:iq:privacy,+jabber:iq:version,+http://jabber.org/protocol/stats,+starttls,+msgoffline,+vcard-temp,+http://jabber.org/protocol/commands,+jabber:iq:private,+urn:xmpp:ping,+basic-filter,+domain-filter,+pep,-zlib --debug = server --comp-class-5 = tigase.archive.MessageArchiveComponent --comp-class-4 = tigase.http.rest.RestMessageReceiver --comp-class-3 = tigase.socks5.Socks5ProxyComponent --comp-class-2 = tigase.pubsub.PubSubComponent --vhost-anonymous-enabled = false bosh/connections/ports[i] = 5290,5291 bosh/connections/5281/socket = ssl bosh/connections/5281/type = accept push () { 'sender-id' = 'xxxxxx' }
Categories: Tigase Forums

Installation and maintenance: RE: Tigase Push Component - FCM provider Configuration - How to ins...

Tigase XMPP Server Board - Fri, 07/07/2017 - 07:27

The push statement can go pretty much anywhere in the init.properties file, there's no real required order for components so anywhere will do. Just be sure that it's not under any brackets for other components.

For example:
'sess-man' () { amp () jabber:iq:offline () } push () { 'sender-id' = '' }

Categories: Tigase Forums

Installation and maintenance: RE: Tigase Push Component - FCM provider Configuration - How to ins...

Tigase XMPP Server Board - Fri, 07/07/2017 - 05:44

Hi Dan,

first of all, thanks for your kind reply. :)

I am thinking to use Firebase without a server installation, and I am wondering now if it's possible to do so, putting the sender key and server key I found in the Firebase console.
I only installed twice Tigase, and honestly I have no idea where I should put the piece of text you wrote.

I configured everything in my installation with the init.properties and everything works nicely.
Where this "push ()" should be configured?

I didn't find a single document describing it... :(

Ciao
Gabriele

Categories: Tigase Forums

Installation and maintenance: RE: BOSH connection

Tigase XMPP Server Board - Thu, 07/06/2017 - 23:49

could you share you code, thanks!

Categories: Tigase Forums

Installation and maintenance: RE: Tigase Push Component - FCM provider Configuration - How to ins...

Tigase XMPP Server Board - Thu, 07/06/2017 - 22:11

Hello Gabriele.
Do you have an FCM server setup that you want the push component to connect too? If so, you would add the following to your configuration:

push () { 'fcm-xmpp-api' () { 'sender-id' = 'your-sender-id' 'server-key' = 'your-server-key' } }

If you are looking to setup FCM hosting, google has some technical documents for that here: https://firebase.google.com/docs/hosting/

Hope that helps!
-Dan

Categories: Tigase Forums

Installation and maintenance: Tigase Push Component - FCM provider Configuration - How to install?

Tigase XMPP Server Board - Thu, 07/06/2017 - 07:46

Hi folks,

anyone can point me to a guide, how to or documentation on how to install and configurare the Push component, in particular pointing to the FCM provider?

I only saw this links online but they assume a lot of knowledge I don't have.

http://docs.tigase.org/tigase-push/snapshot/Tigase_Push_Notifications_Guide/html/
http://docs.tigase.org/tigase-push-fcm/snapshot/Tigase_Push_Notifications_FCM_Guide/webhelp/_enabling_provider.html

I would need something starting a bit "earlier" ...

Thanks in advance!

Ciao
Gabriele

Categories: Tigase Forums

API and development: problem with BOSH HTTP Pre-Binding

Tigase XMPP Server Board - Wed, 07/05/2017 - 19:41

i use Bosh_(HTTP)_Pre-Binding follow this article https://projects.tigase.org/projects/tigase-server/wiki/Bosh_(HTTP)_Pre-Binding to get sid and rid,
it retun:
<command>
<jid></jid>
<node>pre-bind-bosh-session</node>
<fields>
<item>
<var>Script result</var>
<type>text-multi</type>
<value>Script finished with no errors but returned no results.</value>
</item>
</fields>
</command>
all the time ,and my param is:
<command>
<node>pre-bind-bosh-session</node>
<fields>
<item>
<var>from</var>
<value>ljf@hsl/resource</value>
</item>
<item>
<var>hold</var>
<value>1</value>
</item>
<item>
<var>wait</var>
<value>60</value>
</item>
</fields>
</command>

then i found an exception in log:
java.lang.NullPointerException
at tigase.server.ConnectionManager.getServiceId(ConnectionManager.java:1253)
at tigase.server.ConnectionManager.getServiceId(ConnectionManager.java:1239)
at tigase.server.ConnectionManager.getXMPPIOService(ConnectionManager.java:1281)
at tigase.server.bosh.BoshConnectionManager.getSeeOtherHostForJID(BoshConnectionManager.java:531)
at tigase.server.bosh.BoshSession.init(BoshSession.java:338)
at tigase.server.bosh.BoshConnectionManager.preBindSession(BoshConnectionManager.java:261)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:230)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:122)
at tigase.admin.Script21.run(Script21.groovy:89)
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:344)
at org.codehaus.groovy.jsr223.GroovyCompiledScript.eval(GroovyCompiledScript.java:41)
at tigase.server.script.Script.runCommand(Script.java:159)
at tigase.server.BasicComponent.processScriptCommand(BasicComponent.java:1053)
at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessageReceiver.java:1559)

my tigase service version is 7.1.0, please help me thanks.

Categories: Tigase Forums

API and development: RE: meaning of jmx property - total queues wait

Tigase XMPP Server Board - Fri, 06/30/2017 - 19:36

It is really hard to tell what is going on. It does look strange indeed.

Looks like your understanding of the queues and how it works on the Tigase side is correct.

Normally "queues wait" should be emptied as time goes. It is normal that it goes up and down and it is normal that at peak times it goes up and stays high for some time but eventually it should go down.
If the system cannot cope with the load for a long time, the queue should go up to the maximum and than it should start overfill and counter stats showing packets lost (queue overflow) should start to grow.

On your system the situation is very strange. It, for sure, needs more investigation. The counter sess-man/Total queues wait shows a sum of all SM queues inside the component. It would be good to see which exact queue it is.
One idea which comes to my mind is, as each queue has 1 or more threads dedicated to process packets from this particular queue, if that threads is either stuck in some processing or just broken/terminated, then this queue would never be emptied. So the queue would be full and always at the same number. More packets, as they come would be lost and there is a separate metrics for this.

Categories: Tigase Forums

Pages

Get in touch

We provide software products, consulting and custom development services

Tigase, Inc.
100 Pine Street, Suite 1250
San Francisco, CA 94111, USA
Phone: (415) 315 9771

Follow us on:

Twitter

  • Tigase Messenger for iOS has been updated to v1.1 so we made a little video to celebrate! Get it here:… https://t.co/p7rJI8KhMQ 2 days 10 hours ago
  • Tigase Messenger for iOS Beta version has received an update to v1.1. Visit https://t.co/SjCptS1ZYS for patch notes. 1 week 6 days ago
Back to Top