Keep s2s from ocupying ports

Submitted by Anonymous on Thu, 2007-05-31 14:11.

I am running multiple instances of one jabber server on the same machine (different ports of course).

The problem is that the s2s (the component name is actually a guess) component seems to occupy port 5269 (which is fixed for server2server communication).

I want to avoid that this module is loaded to get rid of the error message. What do I have to do?

Regards
Martin

nb. I already removed the config part in the config file

Trackback URL for this post:

http://www.tigase.org/en/trackback/1282
kobit's picture
Submitted by kobit on Thu, 2007-05-31 17:26.

How do you run the server instances?
May I see the xml config file and the parameters you put to application for startup?
And maybe even log file?

You can send it all via email at address 'kobit on tigase.org'
Or you can contact me using Jabber at the same address.


Submitted by mgwerder@primecalc.com (not verified) on Thu, 2007-05-31 16:17.

I did already remove the component id under "id-names" of s2s. The funny thing is that the port 5269 is reported 9 times as occupied when starting 10 servers. Any ideas?

The exact log entry is:
2007-05-31 18:03:02 ConnectionOpenThread.addAllWaiting() WARNING: Error: java.net.BindException: Address already in use: bind creating connection for: 5269

BTW I use server 2.8.7. Not too old but still old

kobit's picture
Submitted by kobit on Thu, 2007-05-31 15:52.

Configuration must always be complete so if some settings are missing they are automatically regenerated with default values.

Component is only loaded when 'active' parameter exists and is 'true'.

The best way to disable component is to set 'active' to 'false' or remove it's name from 'id-names' parameter:


<entry type="String[]" key="id-names">
<item value="c2s"/>
<item value="s2s"/>
<item value="sess-man"/>
<item value="ext-comp-1"/>
</entry>

If you remove any component name from the list it won't be loaded next time.


Submitted by mgwerder@primecalc.com (not verified) on Thu, 2007-05-31 15:39.

My first approach was to remove all lines above. The funny thing is that the port is still occupied. Is loading the s2s component a default (if s2sactive!=false)?

kobit's picture
Submitted by kobit on Thu, 2007-05-31 14:19.

If you don't need s2s at all then you can disable the component:

Usually the name for the s2s component is 's2s' but it can be different in some installation. But it is quite easy to find it out. Look in your configuration file for following lines:

<entry value="true" type="Boolean" key="s2s.active"/>
<entry value="tigase.server.xmppserver.ServerConnectionManager" type="String" key="s2s.class"/>

The class for s2s will be always the same. This way you can find out what is the name of the component. So to disable the component you have just to set the value for the first item to 'false':

<entry value="false" type="Boolean" key="s2s.active"/>

Alternatively you can change port number for the s2s component:

Look further in the configuration file for a string:

'<component name="s2s">'

Under this section in XML file you will find port numbers used by this component, change them to any value you like....


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.