Feed aggregator

Tigase server development: RE: Can we use "XEP-0198: Stream Management" to know that a stanza has...

Tigase XMPP Server Board - 7 hours 3 min ago

It is really hard to tell after what amount of time you can consider a message as lost. Tigase XMPP Server will respond with <a/> element when it receives <r/> element so there is only small delay on server side, while I cannot tell how long it will take to deliver TCP packet containing <r/> request to server and packet containing <a/> response to client as I depends on network speed, network quality, operating system retransmission times for lost TCP packets and so on.

XEP-0198 considers lost XMPP stanzas as stanzas which where send over TCP and no <a/> response was received for this stanza while connection was closed/broken so only in this case we can consider this packet/stanza lost and we should resend it.

Categories: Tigase Forums

Tigase server development: RE: CORS issue when call "disconnect" method from Strophe.js

Tigase XMPP Server Board - 7 hours 34 min ago

No changes were made

There is a file like this

Actually it works without any issues: login, send message/presence etc features work

Just one case where we call Strophe.js disconnect method - it causes this issue

Categories: Tigase Forums

Tigase server administration: RE: Rsyslog and/or best practice for Tigase logging to be used by h...

Tigase XMPP Server Board - 7 hours 39 min ago

If you comment out all the debug lines in the configuration file, Tigase will output only important log messages on level WARNING and SEVERE. This is our recommended setting for production systems.

Categories: Tigase Forums

Tigase server administration: RE: tigase-server-5.2.3: java.lang.ClassNotFoundException: tigase.c...

Tigase XMPP Server Board - 8 hours 43 min ago

Nope, just used everything AS IS w/o changing anything (no components, no configs, no ini files, nothing).
I have used jar available here https://projects.tigase.org/attachments/download/1891/tigase-server-5.2.3-b3470.jar
Any suggestions of my next steps?
Thanks a lot for your help so far.

NOTE: the pretty same exception i get also on Win platform where i`ve used GUI installer.

Categories: Tigase Forums

Tigase server development: RE: CORS issue when call "disconnect" method from Strophe.js

Tigase XMPP Server Board - 8 hours 55 min ago

Have you made any changes to Tigase installation? Do client access it directly (or does the issue manifest itself when they do)? Mentioned header is present in default bosh-extra-headers.txt file shipped with Tigase.

Categories: Tigase Forums

Tigase server administration: RE: tigase-server-5.2.3: java.lang.ClassNotFoundException: tigase.c...

Tigase XMPP Server Board - 8 hours 58 min ago

Have you changed anything? For example tried to use newer MUC? We have run tests on this version (http://build.tigase.org/~tigase/) and there wasn't any problem. I just grabbed this version from files section, used your configuration and it also worked without a problem. Mentioned class should be part of the MUC component that was included in the release. If you tried to use newer version then it will fail as this class was integrated into tigase-server and was removed from the MUC.

Categories: Tigase Forums

Tigase server development: RE: Can we use "XEP-0198: Stream Management" to know that a stanza has...

Tigase XMPP Server Board - 11 hours 51 min ago

I have one more question about a flow

For example, user sent a message and then sent <r/> element to check was his message delivered or not

How much time does he need to wait for the <a/> response?

Let's say user has a very bad internet connection, can he just waits for 3-5 seconds timeout and then decides that a message was lost and resend it?

Categories: Tigase Forums

Tigase server development: CORS issue when call "disconnect" method from Strophe.js

Tigase XMPP Server Board - 12 hours 37 min ago

Hi there,

we are facing an issue with Strophe.js library
everything works great, but when we call a disconnect method -
https://github.com/strophe/strophejs/blob/master/src/core.js#L2168

it causes a CORS error:

XMLHttpRequest cannot load https://chat.domain.com:8081/. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. The response had HTTP status code 502.

We use Tigase 5.2.0

Is there anything we should setup?

Categories: Tigase Forums

Tigase server administration: tigase-server-5.2.3: java.lang.ClassNotFoundException: tigase.compo...

Tigase XMPP Server Board - 13 hours 55 min ago

I`ve just installed fresh tigase-server-5.2.3-b3470 via console installer on my Ubuntu 14.04.1 LTS and MySQL 5.6.21. Everything went just fine, even basic configuration.
However after i tried to lunch server via "$ ./scripts/tigase.sh start etc/tigase.conf" - got the following exception in log (note: all real pwds and hosts i`ve removed from this log):

STARTED Tigase Срд Ліс 26 14:14:07 MSK 2014
componentInfo{Title=Tigase XMPP Server, Version=5.2.3-b3470/06569a8f (2014-11-14/16:50:34), Class=tigase.xml.XMLUtils}
componentInfo{Title=Tigase XMPP Server, Version=5.2.3-b3470/06569a8f (2014-11-14/16:50:34), Class=tigase.util.ClassUtil}
componentInfo{Title=Tigase XMPP Server, Version=5.2.3-b3470/06569a8f (2014-11-14/16:50:34), Class=tigase.server.XMPPServer}
2014-11-26 14:14:07.654 [main] DNSResolver.<clinit>() WARNING: Resolving default host name took: 27
2014-11-26 14:14:07.698 [main] ConfiguratorAbstract.parseArgs() CONFIG: Setting defaults: --property-file = etc/init.properties
2014-11-26 14:14:07.700 [main] ConfiguratorAbstract.parseArgs() CONFIG: Loading initial properties from property file: etc/init.properties
2014-11-26 14:14:07.701 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--cluster-mode=true)
2014-11-26 14:14:07.702 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (config-type=--gen-config-def)
2014-11-26 14:14:07.702 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--debug=server)
2014-11-26 14:14:07.703 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--user-db=mysql)
2014-11-26 14:14:07.703 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--admins=admin@Ubuntu14)
2014-11-26 14:14:07.703 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--user-db-uri=jdbc:mysql://localhost/tigasedb?user=tigase&password=)
2014-11-26 14:14:07.704 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--virt-hosts=)
2014-11-26 14:14:07.704 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--comp-name-4=message-archive)
2014-11-26 14:14:07.704 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--comp-class-4=tigase.archive.MessageArchiveComponent)
2014-11-26 14:14:07.705 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--comp-name-3=proxy)
2014-11-26 14:14:07.705 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--comp-class-3=tigase.socks5.Socks5ProxyComponent)
2014-11-26 14:14:07.706 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--comp-name-2=pubsub)
2014-11-26 14:14:07.706 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--comp-class-2=tigase.pubsub.PubSubComponent)
2014-11-26 14:14:07.706 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--comp-class-1=tigase.muc.MUCComponent)
2014-11-26 14:14:07.707 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--comp-name-1=muc)
2014-11-26 14:14:07.707 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--sm-plugins=+message-archive-xep-0136)
2014-11-26 14:14:07.724 [main] MessageRouter.addRegistrator() INFO: Adding registrator: Configurator
2014-11-26 14:14:07.725 [main] MessageRouter.addComponent() INFO: Adding component:
2014-11-26 14:14:07.730 [main] ConfiguratorAbstract.componentAdded() CONFIG: component: basic-conf
2014-11-26 14:14:07.730 [main] ConfiguratorAbstract.setup() CONFIG: Setting up component: basic-conf
2014-11-26 14:14:07.737 [main] ConfiguratorAbstract.setup() CONFIG: Component basic-conf defaults: {component-id=basic-conf@ubuntu14, def-hostname=ubuntu14, admins=[Ljava.lang.String;@28b2311b, scripts-dir=scripts/admin, command/ALL=ADMIN, logging/.level=CONFIG, logging/handlers=java.util.logging.ConsoleHandler java.util.logging.FileHandler, logging/java.util.logging.ConsoleHandler.formatter=tigase.util.LogFormatter, logging/java.util.logging.ConsoleHandler.level=WARNING, logging/java.util.logging.FileHandler.append=true, logging/java.util.logging.FileHandler.count=5, logging/java.util.logging.FileHandler.formatter=tigase.util.LogFormatter, logging/java.util.logging.FileHandler.limit=10000000, logging/java.util.logging.FileHandler.pattern=logs/tigase.log, logging/tigase.useParentHandlers=true, logging/java.util.logging.FileHandler.level=ALL, logging/tigase.server.level=ALL, user-domain-repo-pool=tigase.db.UserRepositoryMDImpl, auth-domain-repo-pool=tigase.db.AuthRepositoryMDImpl, user-repo-pool-size=10, data-repo-pool-size=10, user-repo-class=mysql, user-repo-url=jdbc:mysql://localhost/tigasedb?user=tigase&password=, auth-repo-class=tigase.db.jdbc.TigaseCustomAuth, auth-repo-url=jdbc:mysql://localhost/tigasedb?user=tigase&password=, ssl-container-class=tigase.io.SSLContextContainer, ssl-certs-location=certs/, ssl-def-cert-domain=default, config-dump-file=etc/config-dump.properties}
2014-11-26 14:14:07.738 [main] ConfiguratorAbstract.setup() CONFIG: Component basic-conf configuration: {component-id=basic-conf@ubuntu14, def-hostname=ubuntu14, admins=[Ljava.lang.String;@28b2311b, scripts-dir=scripts/admin, command/ALL=ADMIN, logging/.level=CONFIG, logging/handlers=java.util.logging.ConsoleHandler java.util.logging.FileHandler, logging/java.util.logging.ConsoleHandler.formatter=tigase.util.LogFormatter, logging/java.util.logging.ConsoleHandler.level=WARNING, logging/java.util.logging.FileHandler.append=true, logging/java.util.logging.FileHandler.count=5, logging/java.util.logging.FileHandler.formatter=tigase.util.LogFormatter, logging/java.util.logging.FileHandler.limit=10000000, logging/java.util.logging.FileHandler.pattern=logs/tigase.log, logging/tigase.useParentHandlers=true, logging/java.util.logging.FileHandler.level=ALL, logging/tigase.server.level=ALL, user-domain-repo-pool=tigase.db.UserRepositoryMDImpl, auth-domain-repo-pool=tigase.db.AuthRepositoryMDImpl, user-repo-pool-size=10, data-repo-pool-size=10, user-repo-class=mysql, user-repo-url=jdbc:mysql://localhost/tigasedb?user=tigase&password=, auth-repo-class=tigase.db.jdbc.TigaseCustomAuth, auth-repo-url=jdbc:mysql://localhost/tigasedb?user=tigase&password=, ssl-container-class=tigase.io.SSLContextContainer, ssl-certs-location=certs/, ssl-def-cert-domain=default, config-dump-file=etc/config-dump.properties}
2014-11-26 14:14:07.742 [main] ConfiguratorAbstract.setProperties() INFO: Propeties size is 33, and here are all propeties: {component-id=basic-conf@ubuntu14, def-hostname=ubuntu14, admins=[Ljava.lang.String;@28b2311b, scripts-dir=scripts/admin, command/ALL=ADMIN, logging/.level=CONFIG, logging/handlers=java.util.logging.ConsoleHandler java.util.logging.FileHandler, logging/java.util.logging.ConsoleHandler.formatter=tigase.util.LogFormatter, logging/java.util.logging.ConsoleHandler.level=WARNING, logging/java.util.logging.FileHandler.append=true, logging/java.util.logging.FileHandler.count=5, logging/java.util.logging.FileHandler.formatter=tigase.util.LogFormatter, logging/java.util.logging.FileHandler.limit=10000000, logging/java.util.logging.FileHandler.pattern=logs/tigase.log, logging/tigase.useParentHandlers=true, logging/java.util.logging.FileHandler.level=ALL, logging/tigase.server.level=ALL, user-domain-repo-pool=tigase.db.UserRepositoryMDImpl, auth-domain-repo-pool=tigase.db.AuthRepositoryMDImpl, user-repo-pool-size=10, data-repo-pool-size=10, user-repo-class=mysql, user-repo-url=jdbc:mysql://localhost/tigasedb?user=tigase&password=, auth-repo-class=tigase.db.jdbc.TigaseCustomAuth, auth-repo-url=jdbc:mysql://localhost/tigasedb?user=tigase&password=, ssl-container-class=tigase.io.SSLContextContainer, ssl-certs-location=certs/, ssl-def-cert-domain=default, config-dump-file=etc/config-dump.properties, shared-user-repo=null, shared-user-repo-params=null, shared-auth-repo=null, shared-auth-repo-params=null}
2014-11-26 14:14:12.346 [main] SimpleCache.<init>() WARNING: Tigase cache turned off.
Jid vhost-manager;
Jid vhost-manager;
2014-11-26 14:14:14.377 [main] VHostManager.setProperties() WARNING: {host=Domain: host_name, enabled: true, anonym: true, register: true, maxusers: 0, tls: false, s2sSecret: null, domainFilter: ALL}
2014-11-26 14:14:14.570 [main] ThreadExceptionHandler.uncaughtException() SEVERE: Uncaught thread: "main" exception
java.lang.NoClassDefFoundError: tigase/component/AbstractComponent
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at tigase.server.MessageRouterConfig.hasClassForServerComponent(MessageRouterConfig.java:514)
at tigase.server.MessageRouterConfig.getMsgRcvActiveNames(MessageRouterConfig.java:351)
at tigase.server.MessageRouter.setProperties(MessageRouter.java:759)
at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:550)
at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:182)
at tigase.conf.Configurator.componentAdded(Configurator.java:50)
at tigase.conf.Configurator.componentAdded(Configurator.java:33)
at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:115)
at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:141)
at tigase.server.MessageRouter.setConfig(MessageRouter.java:696)
at tigase.server.XMPPServer.start(XMPPServer.java:142)
at tigase.server.XMPPServer.main(XMPPServer.java:112)
Caused by: java.lang.ClassNotFoundException: tigase.component.AbstractComponent
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at tigase.server.MessageRouterConfig.hasClassForServerComponent(MessageRouterConfig.java:514)
at tigase.server.MessageRouterConfig.getMsgRcvActiveNames(MessageRouterConfig.java:351)
at tigase.server.MessageRouter.setProperties(MessageRouter.java:759)
at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:550)
at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:182)
at tigase.conf.Configurator.componentAdded(Configurator.java:50)
at tigase.conf.Configurator.componentAdded(Configurator.java:33)
at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:115)
at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:141)
at tigase.server.MessageRouter.setConfig(MessageRouter.java:696)
at tigase.server.XMPPServer.start(XMPPServer.java:142)
at tigase.server.XMPPServer.main(XMPPServer.java:112)

I can`t find such class in source code (except in tigase-pubsub-2.2.0.jar.old), therefore i think smth wrong with my configuration (even thought i kept all defaults).
Also i`ve found the following references to "tigase/component/AbstractComponent":
MUCComponent.class
MUCComponent$MucContextImpl.class

Could you please help me to solve this problem.

Categories: Tigase Forums

Tigase server administration: RE: Change log level of the server

Tigase XMPP Server Board - 18 hours 21 min ago

Hi Artur and Parveen,

sorry to jump in the conversation. The above documentation was useful for me as well. Actually I have some issues because of huge amount of logs being sent from server to syslog-server, somehow I am looking for the opposite level of logs (minimal) that Parveen asked.

Do you have any idea what could be the --debug to narrow down the logs level to show authentication/authorization related logs for troubleshooting users' failed logins attempts?

Categories: Tigase Forums

Tigase server administration: RE: WebSocket authentication

Tigase XMPP Server Board - Tue, 11/25/2014 - 20:35

Thanks Artur. Yes , it is almost on the same lines as the auth. over HTTP and your interpretation is correct. Web-socket handshaking is using HTTPS ( GET & 101 Switching prot) and the idea is to use some token based authentication during this handshaking to either allow or don't allow the web-socket to opened based upon the authentication success of failure respectively.

Regards
Samir

Categories: Tigase Forums

Tigase server administration: RE: can not use last activity

Tigase XMPP Server Board - Tue, 11/25/2014 - 13:47

Hi,
Ok. Thanks for the reply

Categories: Tigase Forums

Tigase server administration: RE: Installation issue and SSL handshake issue

Tigase XMPP Server Board - Tue, 11/25/2014 - 09:57

sridhar R wrote:

Hi Team,

How to create self signed certificate in ubuntu 14.04.We are looking for any help

Check out our online guide and let us know if there is anything missing and you need more help.

Categories: Tigase Forums

Tigase server administration: RE: can not use last activity

Tigase XMPP Server Board - Tue, 11/25/2014 - 09:43

Unfortunately, last activity is not currently supported. We have added this function a while back but the performance impact was so high that we have removed the plugin for timbering until we find a way to support this extension without affecting performance of the server.

Categories: Tigase Forums

Tigase server administration: RE: WebSocket authentication

Tigase XMPP Server Board - Tue, 11/25/2014 - 09:41

Samir, you are most likely referring to web application authentication over HTTP with some HTTP service before opening web sockets connection. Then the HTTP service can communicate with Tigase to exchange token for the user, so the user does not have to enter login data 2 times. Yes, Tigase does support this and it is possible.
However, I do not see how it can protect you from a DDoS attack. There is nothing really stoping malicious people from skipping the first step (HTTP authentication) and open TCP/IP connection directly with the XMPP server. Even if they cannot authenticate/login to XMPP server they can still try to drain resources on the XMPP server. As mentioned above, Tigase does have some mechanisms to protect itself and reduce impact of such attacks.

Categories: Tigase Forums

Tigase server administration: RE: Change log level of the server

Tigase XMPP Server Board - Tue, 11/25/2014 - 09:35

you only need this in your config:
--debug=server,cluster,xml
For more details please refer to online documentation

Categories: Tigase Forums

Tigase server administration: Change log level of the server

Tigase XMPP Server Board - Tue, 11/25/2014 - 04:16

Hi,

Can you please tell me how I can change the log level of the entire server to the FINEST/ALL mode.

I have added the following configurations:

--debug = server,tigase.cluster,tigase.xml
basic-conf/logging/.level=FINEST
basic-conf/logging/tigase.cluster.level=FINEST
basic-conf/logging/tigase.xml=FINEST

Apart from this I also tried enabling test mode of tigase server using --test=true.

But I am unable to change the log level of the server.

Regards,
Praveen

Categories: Tigase Forums

Tigase server administration: RE: WebSocket authentication

Tigase XMPP Server Board - Tue, 11/25/2014 - 04:01

Hi Artur,

Just wanted to inform you that , I was able to figure out the code location and was able to successfully add the auth. during web-socket handshake code logic.

Regards
Samir

Categories: Tigase Forums

Tigase server administration: can not use last activity

Tigase XMPP Server Board - Tue, 11/25/2014 - 02:49

Hi,
I've successfully set up tigase and I want to implement « last activity » option. To do so , I activated below plugins in my init.properties file.

  • jabber:iq:last
  • pep
  • pubsub

I don’t receive this information in the result response and have 503 error « service unavailable ». Can you explain me what is wrong please?

thanks

Categories: Tigase Forums

Tigase server administration: RE: Installation issue and SSL handshake issue

Tigase XMPP Server Board - Tue, 11/25/2014 - 00:59

Hi Team,

How to create self signed certificate in ubuntu 14.04.We are looking for any help

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. Slide - quick acces to the application settings. http://t.co/icO4pVRqmL 1 day 2 hours ago
  • Annoying, @tigase that I cannot create issues after signing up. Anyway, Tigase remembers DNS server, uses old server after roaming → fail… 1 day 11 hours ago
Back to Top