Project

General

Profile

Adduser script from tclmt is failing. Not able to connect with Trillion as well.

Abhinav Gupta
Added about 3 years ago

Here is the details from the console

vostro@vostro-Vostro-3546:~/Downloads/tclmt-1.0.0-SNAPSHOT$ sudo sh ./bin/tclmt.sh -u admin@ubuntu -p tigase add-user

Oct 28, 2015 4:01:26 PM tigase.xml.db.XMLDB setupNewDB

INFO: Create empty DB.

Exception during connection to ubuntu:

java.net.UnknownHostException: ubuntu

vostro@vostro-Vostro-3546:~/Downloads/tclmt-1.0.0-SNAPSHOT$

I attaching the properties file and also the tigase logs.

Any assistance is appreciated. I am running this activity on ubuntu 14.04 with tigase-server-7.0.2-b3821.jar and version of tcl is tclmt-1.0.0-SNAPSHOT.

My objective here is to test whether the Tigase is up and running by using any chat client, (I am using Trillian).

I wish to use it for the push notification purposes.

I am trying to use only 2 components as of now namely PubSub and HTTP API

Please review and provide insight on what is going wrong/missing.

Please let me know if I had made any configuration mistake. I am a newbie to tigase.

Also in Console logs it shows that the

2015-10-28 16:00:59.420 [ConnectionOpenThread] ConnectionOpenThread.addAllWaiting() WARNING: Error: creating connection for: {type=accept, socket=plain, ifc=[Ljava.lang.String;@1f651cd8, remote-host=localhost, required=false, port-no=5222}

java.net.BindException: Address already in use

at sun.nio.ch.Net.bind0(Native Method)

at sun.nio.ch.Net.bind(Net.java:433)

at sun.nio.ch.Net.bind(Net.java:425)

at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)

at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)

at tigase.net.ConnectionOpenThread.addISA(ConnectionOpenThread.java:335)

at tigase.net.ConnectionOpenThread.addPort(ConnectionOpenThread.java:370)

at tigase.net.ConnectionOpenThread.addAllWaiting(ConnectionOpenThread.java:306)

at tigase.net.ConnectionOpenThread.run(ConnectionOpenThread.java:235)

at java.lang.Thread.run(Thread.java:745)

but i checked that this port is not in use.

Any help is appreciated.

init.properties (546 Bytes) init.properties Properties set up during the installation
tigase-console.log (18.2 KB) tigase-console.log Console Log
tigase.log.0 (393 KB) tigase.log.0 Log File

Replies (6)

Added by Abhinav Gupta about 3 years ago

Abhinav Gupta wrote:

Here is the details from the console

vostro@vostro-Vostro-3546:~/Downloads/tclmt-1.0.0-SNAPSHOT$ sudo sh ./bin/tclmt.sh -u admin@ubuntu -p tigase add-user

Oct 28, 2015 4:01:26 PM tigase.xml.db.XMLDB setupNewDB

INFO: Create empty DB.

Exception during connection to ubuntu:

java.net.UnknownHostException: ubuntu

vostro@vostro-Vostro-3546:~/Downloads/tclmt-1.0.0-SNAPSHOT$

I attaching the properties file and also the tigase logs.

Any assistance is appreciated. I am running this activity on ubuntu 14.04 with tigase-server-7.0.2-b3821.jar and version of tcl is tclmt-1.0.0-SNAPSHOT.

My objective here is to test whether the Tigase is up and running by using any chat client, (I am using Trillian).

I wish to use it for the push notification purposes.

I am trying to use only 2 components as of now namely PubSub and HTTP API

Please review and provide insight on what is going wrong/missing.

Please let me know if I had made any configuration mistake. I am a newbie to tigase.

Also in Console logs it shows that the

2015-10-28 16:00:59.420 [ConnectionOpenThread] ConnectionOpenThread.addAllWaiting() WARNING: Error: creating connection for: {type=accept, socket=plain, ifc=[Ljava.lang.String;@1f651cd8, remote-host=localhost, required=false, port-no=5222}

java.net.BindException: Address already in use

at sun.nio.ch.Net.bind0(Native Method)

at sun.nio.ch.Net.bind(Net.java:433)

at sun.nio.ch.Net.bind(Net.java:425)

at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)

at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)

at tigase.net.ConnectionOpenThread.addISA(ConnectionOpenThread.java:335)

at tigase.net.ConnectionOpenThread.addPort(ConnectionOpenThread.java:370)

at tigase.net.ConnectionOpenThread.addAllWaiting(ConnectionOpenThread.java:306)

at tigase.net.ConnectionOpenThread.run(ConnectionOpenThread.java:235)

at java.lang.Thread.run(Thread.java:745)

but i checked that this port is not in use.

Any help is appreciated.

Added by Eric Dziewa about 3 years ago

Change admin@ubuntu to admin@localhost .

How did you check the port is not in use? According to the logs it is indeed in use.

Added by Daniel Wisnewski IoT 1 Cloud about 3 years ago

Hello Abhinav,

You aren't able to connect to Tigase because it has not loaded according to the tigase-console.log. The java exception you got is preventing Tigase from running and receiving connections. When Tigase is loaded and ready, you should see an entry that says

2015-10-22 07:41:40.580 [main] ConfigurationCache.store() WARNING: Dumping server configuration to: etc/config-dump.properties

which pretty much says tigase is done loading and is ready.

Your init.properties file looks OK, no issues there.

I have seen this message before when I try to run multiple copies of Tigase on the same computer and there ends up being a conflict.

If for some reason that port is in use by another program, you may want to add a line to init properties to change the ports in use by connection manager

http://docs.tigase.org/tigase-server/snapshot/Properties_Guide/html/#cmpnamePorts

recommend changing s2s and c2s ports, just make sure Trillian is set to use those other ports when connecting.

Added by Abhinav Gupta about 3 years ago

Thanks for the suggestion guys.

I really appreciate it.

I do was able to communicate with xmpp server through tclmt.sh script.

I ran the script to add user and it was successful.

I will proceed to work on the issue of trillian.

Thanks again guys. I really appreciate it.

Added by Abhinav Gupta about 3 years ago

Hi Guys,

I really appreciate you guys helping me.

I was able to add a user using the tclmt.sh command line client for the Tigase server but i am still not able to test it with a proper client.

Please if anyone of you is using a XMPP based chat client. Please let me know about it and I would really appreciate if you can provide documentation or steps to configure it with the my running tigase server.

By the way the version of the current running server is 7.0.2

and i am using the latest version of the tclmt script, tclmt-1.0.0-SNAPSHOT.

I have tried using the trillian and its not working even though i am able to add user through the tclmt script.

Any other client suggestion, advise will be really appreciated.

Please help.

I am attaching the log file for Tigase (console and tigase log) and also the trillian log here.

Added by Daniel Wisnewski IoT 1 Cloud about 3 years ago

Our user guide has some information on setting up Psi, but I don't know if it will help you so much: http://docs.tigase.org/tigase-server/snapshot/User_Guide/html/#_configuration_instructions_for_psi

A few notes: If you are running a local server on the same machine as the chat client, you will need to manually set the host location to 127.0.0.1 in order to connect, or if it's another computer, you'll need to set it to the internal IP for the computer. Typically, chat programs will parse the JID of the username to determine where the server is, so if your login name is Abhinav@xmpp.org the client will look for XMPP service at xmpp.org. It will then check for XMPP-server SRV records at that address to determine if there is XMPP available at that address.

Some detail about that is located here:

http://docs.tigase.org/tigase-server/snapshot/Administration_Guide/html/#registerXMPP

You should not need SRV records if you are just runing on an internal network.

    (1-6/6)