Comments (9)
I had the same problem
from tigase-server.
When retrieving larger history from the database it's quite likely that you've triggered Tigase throttling mechanism, which disconnect the user. Please see cm-traffic-throttling for more details.
If you want to disable it you can use following configuration:
'cm-traffic-throttling' = 'xmpp:0:0:disc,bin:0:0:disc'
from tigase-server.
Set up
'cm-traffic-throttling' = 'xmpp:0:0:disc,bin:0:0:disc'
There will still be 300 group chat history records, but the client can only receive about 200. What's the reason for this ?
Historical messages in the middle will be lost.
from tigase-server.
What's the reason for this ?
Please provide more information:
- what is being lost exacly?
- Are you still being disconnected?
- What are the error messages that your client receives (XML stanzas)?
- If this is MUC history - have you tried changing muc room configuration regarding history length?
- Check server logs for more details/information about processing.
from tigase-server.
MUC history length set to 1000.
Tigase mongodb version 3.0.0
In the gethistorymessages method of mongohistoryprovider class, the number of group chat history results obtained from the database is 500, but the client can only receive about 400 group chat histories, and the history of group chat that will be lost is about 100.
After the client receives the following XML, there will be no group chat history message.
When will the server send the following XML to the client?
<presence xmlns="jabber:client" type="unavailable" from="[email protected]/100165" to="[email protected]/nisc_voip"><x xmlns="http://jabber.org/protocol/muc#user"><item role="none" nick="100165" affiliation="member"></item></x></presence>
What do the following server logs mean? What is the cause?
2019-12-04 22:20:43.495 [in_0-message-router] MessageRouter.processPacket() FINEST: 1. Packet will be processed by: sess-man@localhost, from=sess-man@localhost, to=sess-man@localhost, DATA=<message xmlns="jabber:client" type="error" id="6eeba009eeb14fe0b90a1d96fc1df7b8" from="[email protected]/nisc_voip" to="[email protected]/100165"><body>CData size: 306</body><delay xmlns="urn:xmpp:delay" from="[email protected]" stamp="2019-12-04T14:11:58.027Z"/><error type="wait" code="404"><recipient-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" xml:lang="en">CData size: 37</text></error></message>, SIZE=848, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=error
from tigase-server.
<presence xmlns="jabber:client" type="unavailable"…
This one means that client left the room (or was removed)
The log entry indicates, that there were some messages pending to be delivered, but the user was not connected.
It looks like that for some reason your client still lost connection, but without more information it's hard to investigate it.
Are you sure you completely disabled throttling? Would you mind sharing your etc/config.tdsl
and etc/config-dump.properties
configuration files?
You should review your logs for any signs of user being disconnected (search the logs for all entries with [email protected]/100165
)
from tigase-server.
I want to know when the server will disconnect the user.
I want to ask which class is disconnected from the user.
Here is my configuration.
etc/config.tdsl
:
c2s_port=5222
s2s_port=5269
'config-type' = 'default'
debug = [ 'server' ]
'vhost-anonymous-enabled' = false
'default-virtual-host'=hnmjt.mjt.net
bosh_connections_5280_type = refuse
ws2s_connections_5290_type = refuse
c2s_connections_5223_type = refuse
s2s_connections_5269_type = refuse
'watchdog-timeout' = 15000
'watchdog-delay' = 30000
c2s_MaxInactiveTime=800000
'cm-traffic-throttling' = 'xmpp:0:0:disc,bin:0:0:disc'
'cm-ht-traffic-throttling' = 'xmpp:0:0:disc,bin:0:0:disc'
'elements-number-limit' = 10000
'max-queue-size' = 1024
dataSource {
default () {
uri = 'mongodb://127.0.0.1:27017/tigase'
}
}
userRepository {
default () {
cls = 'tigase.mongodb.MongoRepository'
}
}
authRepository {
default () {
cls = 'tigase.mongodb.MongoRepository'
}
}
amp {
'amp-repo-class' = 'tigase.mongodb.MongoMsgRepository'
'amp-repo-uri' = 'mongodb://127.0.0.1:27017/tigase'
}
c2s {
seeOtherHost {}
'urn:xmpp:sm:3' () {
'resumption-timeout' = 60
}
}
muc (class: tigase.muc.MUCComponent) {
'history-db' = 'tigase.mongodb.muc.MongoHistoryProvider'
'history-db-uri' = 'mongodb://127.0.0.1:27017/tigase'
}
s2s {
seeOtherHost {}
'urn:xmpp:sm:3' () {
'resumption-timeout' = 60
}
}
'sess-man' () {
amp {
'amp-repo-class' = 'tigase.mongodb.MongoMsgRepository'
'amp-repo-uri' = 'mongodb://127.0.0.1:27017/tigase'
}
'jabber:iq:register' () {
}
'shiku-auto-reply' (class: tigase.olym.OlymAutoReplyPlugin) {}
starttls (active: true) {}
'urn:ietf:params:xml:ns:xmpp-sasl' {
'callbackhandler-SCRAM-SHA-1' = 'tigase.auth.impl.ScramCallbackHandler'
}
}
from tigase-server.
Your configuration looks OK, but as I said before:
It looks like that for some reason your client still lost connection, but without more information it's hard to investigate it.
There are a couple of things that could trigger disconnection and investigating the logs would be the best starting point. You could also try increasing elements-number-limit
if you are (for some reason) sending large stanzas.
from tigase-server.
change max-queue-size=4096 resolved
from tigase-server.
Related Issues (20)
- Is tigase 7.1.x compatible with mysql 8? HOT 5
- documentation of old versions HOT 3
- How do I configure the BOSH port in kubernetes
- List of supported versions of Tigase HOT 1
- problem with HA on AWS aurora mysql for DNS cache HOT 51
- Can you guys add a onion link for connectivity? (For your sure.im server?) HOT 2
- problem with DefaultClusteringStrategy HOT 4
- how to completely disable pubsub? HOT 2
- Error trying to install Tigase server on GCP machine HOT 2
- dockerfile HOT 1
- tig_ma_msgs can`t insert records HOT 2
- Problems with Tigase after default initialization using Spark connection HOT 3
- is possibile to configure update-login-time-query? HOT 3
- maven build error HOT 7
- upgrade tigase from 7.1.5 to 8.2.2 HOT 29
- Secondary development online and offline messages HOT 6
- 用sprak连接tigase 8.2.2版本服务无法连接
- I tried to connect to tigase using smack and spark, but encountered the following error
- "ProtoXEP: PubSub Server Information" support HOT 5
- Accound Disabled HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tigase-server.