Tigase XMPP Server Board

Tigase server administration: Does my init.properties look good? What's --c2s-ports ??

Thu, 04/16/2015 - 05:54

Hi,

I'm trying to allow connection from a webrowser (strophejs) to my tigase server via bosch, through the port 5281 with SSL.

What do I have to do? I juste have to modify my file init.properties, isn't ?
here it is :

config-type=--gen-config-all
--cluster-mode = false
--cluster-nodes = im.wonderchat.com
--admins =
--virt-hosts = im.wonderchat.com
--bosh-ports=5281
bosh/connections/5281/socket=ssl
bosh/connections/5281/type=accept
bosh/max-inactivity[L]=60
bosh/max-wait[L]=30
--user-db = mysql
--user-db-uri = jdbc:mysql://localhost/tigasedb?user=tigase&password=tigase
--comp-name-1 = search
--comp-class-1 = com.wonderchat.tigase.UserRepositoryJabberSearch
--comp-name-2 = conference
--comp-class-2 = tigase.muc.MUCComponent
--debug = server,bosh
--debug-packages = com.wonderchat.tigase
message-router/updates-checking[B]=false
--auth-db = com.wonderchats.tigase.CASAuth
--auth-db-uri = https://wonderchat.com/cas/proxyValidate
basic-conf/auth-repo-params/service-ticket-validation=https://wonderchat.com/cas/proxyValidate
basic-conf/auth-repo-params/alt-auth-db=mysql
basic-conf/auth-repo-params/alt-auth-db-uri=jdbc:mysql://localhost/tigasedb?user=tigase&password=tigase
--debug-packages = com.wonderchat.tigase

Moreover, what is the purpose of this property ? :

--c2s-ports=5281
c2s/5281/port_type=plain

Categories: Tigase Forums

Tigase server administration: RE: I am using xmpp server and i am getting intermediate 502 error ...

Wed, 04/15/2015 - 22:29

Hello Wojciech,

Thanks for replying. I made changes as suggested by you but unfortunately still facing same problem. please suggest.

Categories: Tigase Forums

Tigase server development: RE: Tigase server takes too much time for processing messages.

Wed, 04/15/2015 - 04:26

As the logs/exception suggests - you seem to try to send messages over connection that hasn't been yet authorized.
tigase.xmpp.NotAuthorizedException: Session has not been yet authorised.

Categories: Tigase Forums

Tigase server administration: RE: Is it possible to change the log level at runtime?

Wed, 04/15/2015 - 04:23

You can enable JMX (i.e. monitoring in Tigase) connectivity and manage log level that way at runtime (for example through jConsole).

Categories: Tigase Forums

Tigase server administration: RE: Web interface to Tigase server

Wed, 04/15/2015 - 04:20

The issue (#2654) still was not resolved, sorry.

Categories: Tigase Forums

Tigase server administration: Is it possible to change the log level at runtime?

Wed, 04/15/2015 - 01:11

Is it possible to change the log level at runtime?

for example next settings in init-properties:

--debug = server,db,muc,xmpp,http --debug-packages=com.services basic-conf/logging/tigase.db.level=SEVERE
Categories: Tigase Forums

Tigase server administration: RE: Web interface to Tigase server

Tue, 04/14/2015 - 19:13

I got the same problem "When I click on 'Authenticate' the application does not proceed" with admin credentials (FullJID) when i visit the http://XXX:8080/ui/from remote. but it works via local browser.

Categories: Tigase Forums

Tigase server administration: RE: Too many elements in the user roster.. Warning

Tue, 04/14/2015 - 06:10

Thank you Artur for the reply.
After reading your comment, I adjusted the memory in tigase.conf and the Warnings disappeared.

I used the following Linux command to get Heap memory parameters in the test server:
java -XX:+PrintFlagsFinal -version | grep HeapSize

I looked for the options MaxHeapSize (for -Xmx) and InitialHeapSize for -Xms

Categories: Tigase Forums

Tigase server administration: RE: How to enable only particular level of logs?

Tue, 04/14/2015 - 00:27

Thanks, that makes sense,

so if I would like to track only SEVERE and WARNING then set to WARNING will do that

thanks

Categories: Tigase Forums

Tigase server administration: RE: --max-queue-size question

Mon, 04/13/2015 - 17:43

I suggest to not adjust the setting unless you really need it. The default is set by Tigase based on available memory and it calculated to provide optimum performance with large buffer and avoid OOM errors in case of a bottleneck.

Categories: Tigase Forums

Tigase server administration: RE: How to enable only particular level of logs?

Mon, 04/13/2015 - 17:41

Igor, as Wojciech said it is not possible but also not necessary. If you set logging level to FINEST it also includes all log records generated on higher levels (FINER, FINE, INFO, WARNING, SEVERE).

Categories: Tigase Forums

Tigase server development: RE: After aprox. 45 seconds connected the server send me unavailable p...

Mon, 04/13/2015 - 17:39

This most likely happens when the client lost connections to the server. When the server discovers that the user disconnected one of his resources it generates presence unavailable on behalf of the user and sends it to all user's contacts and all user's other connections.

Categories: Tigase Forums

Tigase server administration: RE: Too many elements in the user roster.. Warning

Mon, 04/13/2015 - 15:32

Apparently user's roster exceeded the maximum allowed size on your installation. The exception is thrown when there is an attempt to add a new contact to a roster when the roster is already at maximum size.

The roster maximum size is a dynamic value which depends on the memory available to the Tigase XMPP Server software. Here is the algorithm we use to calculate the maximum roster size:
private static int maxRosterSize = new Long(Runtime.getRuntime().maxMemory() / 250000L).intValue();

A solution to you would be to calculate the maximum size on your installation and ensure that you really require rosters with a bigger size. (maybe it is kind of a DOS attack on your service?)
If you really require large rosters on your system then you can increase amount of memory available to the Tigase server on your installation.

Categories: Tigase Forums

Tigase server administration: Too many elements in the user roster.. Warning

Mon, 04/13/2015 - 05:58

Hi,

Could you please help to find what may cause a repetitive Warning that I get in tigase-console.log file?
The Tigase test server's version is "7.0.0-SNAPSHOT-b3699" and the following Warning in console.log file occurs 315 times:
-----------------------------------------------------------------------------------------------------------------------------------------
2015-04-13 16:12:52.462 [presence Queue Worker 3] Presence.process() WARNING: Error accessing database for presence data: {0}
tigase.db.TigaseDBException: Too many elements in the user roster.
at tigase.xmpp.impl.roster.RosterFlat.addBuddy(RosterFlat.java:186)
at tigase.xmpp.impl.Presence.processOutSubscribe(Presence.java:1731)
at tigase.xmpp.impl.Presence.process(Presence.java:529)
at tigase.server.xmppsession.SessionManager$ProcessorWorkerThread.process(SessionManager.java:2864)
at tigase.util.WorkerThread.run(WorkerThread.java:132)

-------------------------------------------------------------------------------------------------------------------------------------------
The init.properties file is:
config-type=--gen-config-def
--admins=
--virt-hosts=test.com
--vhost-anonymous-enabled = false
--user-db-uri=jdbc:mysql://10.10.10.75/tigasedb?user=tigase&password=tigase12
--user-db=mysql
--cluster-mode=false
--debug=server,db,archive
--monitoring=jmx:9050,http:9080,snmp:9060
--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,+amp,-msgoffline,+vcard-temp,+http://jabber.org/protocol/commands,+jabber:iq:private,+urn:xmpp:ping,+basic-filter,+domain-filter,+pep,-zlib,+jabber:iq:last
--amp-security-level=NONE
--comp-class-6=tigase.archive.MessageArchiveComponent
message-archive/archive-repo-uri=jdbc:mysql://10.10.10.75/tigasedb?user=tigase&password=tigase12
--message-archive/auto=true
c2s/watchdog_delay[L]=60000
c2s/watchdog_timeout[L]=40000
c2s/watchdog_ping_type=xmpp
c2s/max-inactivity-time[L]=100
sess-man/plugins-conf/message-archive-xep-0136/required-store-method=body
sess-man/plugins-conf/message-archive-xep-0136/component-jid=
c2s/processors[s]=urn:xmpp:sm:3
muc/default_room_config/muc#roomconfig_persistentroom=true
muc/default_room_config/muc#roomconfig_publicroom=false
muc/default_room_config/muc#roomconfig_membersonly=true
muc/default_room_config/muc#roomconfig_changesubject=true
muc/default_room_config/muc#maxhistoryfetch=500
muc/default_room_config/muc#roomconfig_roomname=Group
muc/muc-allow-chat-states[B]=true
--comp-class-1=tigase.muc.MUCComponent
--comp-name-6=message-archive
--comp-name-1=muc

Thank you in advance

Categories: Tigase Forums

Tigase server administration: RE: I am using xmpp server and i am getting intermediate 502 error ...

Sun, 04/12/2015 - 22:53

Please try following configuration:
location /http-bind { proxy_pass http://xmpp.exampledev.in:5280/http-bind; tcp_nodelay on; keepalive_timeout 55; proxy_buffering off; }

Categories: Tigase Forums

Tigase server administration: RE: Receive presence with from="true"

Sun, 04/12/2015 - 22:45

Most likely you have a contact with JID true in your roster and then you try to send presence to this contact (or rather you are sending initial presence and Tigase broadcast it to all your roster items).

Categories: Tigase Forums

Tigase server development: RE: Tigase server takes too much time for processing messages.

Sun, 04/12/2015 - 22:39

You need to check server logs (i.e. logs/tigase.log.*) and trace the message. Single stanza is not enough to figure out why there's delay.

Categories: Tigase Forums

Tigase server administration: Receive presence with from="true"

Fri, 04/10/2015 - 06:54

Hi!

Anyone knows why am I receiving this presence with from="true"?

RECV:

< presence xmlns="jabber:client" from="true" to="" type="error">
<x xmlns="vcard-temp:x:update">
<photo/>
</x>
<c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="https://github.com/robbiehanson/XMPPFramework" ver="jZJL10x+0WKRZxOlALGvQimzZ/k="/><error type="cancel" code="404">
<remote-server-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
<text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" lang="en">
S2S - destination host not found</text>
</error>
</presence >

any ideas?

Thanks in advance,

Categories: Tigase Forums

Tigase server development: RE: After aprox. 45 seconds connected the server send me unavailable p...

Fri, 04/10/2015 - 06:32

thanks for the reply, it seems to be Last Activity plugin.

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

Back to Top