Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Connect » Port conflict between Kerio and OS X Mavericks server
  •  
Scissors

Messages: 18
Karma: 0
Send a private message to this user
Since upgrading to Mavericks I have encountered to problems:

-HTTP and HTTS will not start. I managed to stop Apache via the terminal as described in the Kerio KB. This solution is, however, not permanent.

-Instant Messaging will not start. I guess Maverick Server instant messaging is blocking those ports (5222 and 5223).

I have web (apache) and instant messaging turned off on the Mavericks server... What more can I do? How do I, more permanently, stop Mevericks server from blocking ports it does not need?

  •  
Neil Whiteside (Kerio)

Messages: 318

Karma: 35
Send a private message to this user
Hello Scissors,

You are right - Mavericks own IM Server is blocking ports 5222 & 5223, you should be able to turn that off quite easily.

As for permanently disabling the Apache server - first of all disable it as per the KB article. To be sure Apache stays off, you'll next want to remove the daemon startup file. Back in the Finder, make a copy of the "org.apache.httpd.plist" file by dragging it to the desktop. The Finder probably made a copy of the file, rather than move it, so drag the original file out of the "LaunchDaemons" folder to the trash, then empty the trash. You will probably be prompted for your system administration password at least once. Just enter it as needed.

Make sure that the "org.apache.httpd.plist" does not exist in the "LaunchDaemons" folder, then close the folder and restart the server. (A server reboot is a good idea to make sure that Apache doesn't restart at boot time, which could cause problems in the future.)

I hope this helps.

Best regards,

Neil.

Knowledge Base: http://kb.kerio.com/.
Looking for technical support? http://www.kerio.com/support
  •  
Scissors

Messages: 18
Karma: 0
Send a private message to this user
Neil,

Thank you. Removing the Apache Launch Daemon did the trick.

As for the IM-server, however, I don't know what to do. You see, in the Mavericks server IM is already turned off. My guess is that I need to do a similar trick as with Apache...?
  •  
Neil Whiteside (Kerio)

Messages: 318

Karma: 35
Send a private message to this user
Hi Scissors,

I don't believe there is any extra work required other than turning off the IM server through the admin interface; maybe restart the server?

The other option would be to change the ports used by Kerio Connect's IM server. You can change this through the webadmin console->Configuration->Services. Highlight "Instant Messaging" and then "Secure Instant Messaging". Double click on them; highlight the port shown and click the edit button to change.

Make sure that you change your firewall and client settings, too.

I hope that helps.

Best regards,

Neil.



Knowledge Base: http://kb.kerio.com/.
Looking for technical support? http://www.kerio.com/support
  •  
Scissors

Messages: 18
Karma: 0
Send a private message to this user
It is turned off and I have also tried restarting the server. I guess the last option is to change the ports in Kerio.
  •  
Tomas Skoda (Kerio)

Messages: 107
Karma: 20
Send a private message to this user
Check if ports 5222 and 5223 are really occupied before you start playing with non-default ports. This prints all LISTENING ports along with processes names.
sudo lsof -i -P | grep LISTEN

If ports 5222 and 5223 are not listed check error, warning and debug logs (enable debug log for Instant Messaging) for other possible errors when starting XMPP services. The message about occupied ports is in certain situations only a quess.
  •  
Scissors

Messages: 18
Karma: 0
Send a private message to this user
Hi,

Thanks. I checked the ports and you were right. The server is not listening.

So I turned on dubug logging. Here's what it says:

[22/Jan/2014 16:45:38][4476940288] {im} Going to start process and channels.
[22/Jan/2014 16:45:38][4477476864] {im} Starting logging thread.
[22/Jan/2014 16:45:38][4476940288] {im} XMPP debug log setting message has been arranged (id: FDDBE5B3-BC80-46E3-94C8-A84C8AC270F8).
[22/Jan/2014 16:45:38][4476940288] {im} XMPP client open stream message has been arranged (id: CD96AB9A-9F5B-4D95-8641-C0BEF3F7C20C).
[22/Jan/2014 16:45:38][4476940288] {im} Initial config message has been arranged (id: FEBADC2A-DC94-45BA-B76D-EF6F6EC8EC92). Admin API: 127.0.0.1:4040, Client API: 127.0.0.1:4040
[22/Jan/2014 16:45:38][4476940288] {im} External Instant Messaging process is expected to listen on '4042' port. Connecting to external process...
[22/Jan/2014 16:46:08][4509990912] {im} Start XMPP/XMPPS protocol service message (secure='true') has been arranged (id: CE0AA9BD-5860-486F-A4DB-D5AF092C2E57).
[22/Jan/2014 16:46:08][4509990912] {im} There has been generated 'CE0AA9BD-5860-486F-A4DB-D5AF092C2E57' token for wait for response message. External process is expected to respond with this token. Go to sleep.
[22/Jan/2014 16:46:41][4476940288] {im} Instant Messaging: Failed to connect to external process.
[22/Jan/2014 16:46:41][4476940288] {im} Problem has occured.
[22/Jan/2014 16:46:56][4476940288] {im} Process or channel is in unexpected state.
[22/Jan/2014 16:46:56][4476940288] {im} Going to stop process and channels.
[22/Jan/2014 16:46:56][4476940288] {im} Deinit XMPP protocol parser.
[22/Jan/2014 16:46:56][4509990912] {im} Awaken. Success. Response 'CE0AA9BD-5860-486F-A4DB-D5AF092C2E57' for response queue message has been received.
[22/Jan/2014 16:46:56][4509990912] {im} Unexpected. 'CE0AA9BD-5860-486F-A4DB-D5AF092C2E57' token is no longer in blocking message queue while it should be.
[22/Jan/2014 16:46:56][4477476864] {im} Exiting logging thread.
[22/Jan/2014 16:46:56][4476940288] {im} Stop process and channels finished.
[22/Jan/2014 16:46:56][4476940288] {im} Going to start process and channels.
[22/Jan/2014 16:46:56][4509466624] {im} Starting logging thread.
[22/Jan/2014 16:46:56][4476940288] {im} XMPP debug log setting message has been arranged (id: 1CB11F01-EFD1-4295-8C3D-2109CD7C02C4).
[22/Jan/2014 16:46:56][4476940288] {im} XMPP client open stream message has been arranged (id: C68BA5B8-2406-47DB-838E-90E5D41171AF).
[22/Jan/2014 16:46:56][4476940288] {im} Initial config message has been arranged (id: 03A4A3B5-A377-418A-A3A2-05CFB7321B0C). Admin API: 127.0.0.1:4040, Client API: 127.0.0.1:4040
[22/Jan/2014 16:46:56][4476940288] {im} External Instant Messaging process is expected to listen on '4042' port. Connecting to external process...
[22/Jan/2014 16:46:56][4509466624] {im} [external] Unrecognized message: No Java runtime present, requesting install.
[22/Jan/2014 16:46:56][4509466624] {im} [external] Unrecognized message: 2014-01-22 16:46:56.851 java[36650:303] JLRequestRuntimeInstall: Error calling: CFMessagePortCreateRemote
[22/Jan/2014 16:47:59][4476940288] {im} Instant Messaging: Failed to connect to external process.


Any suggestions?
  •  
Tomas Skoda (Kerio)

Messages: 107
Karma: 20
Send a private message to this user
The log says you don't have Java installed. Install latest java for Mac OS X from http://www.java.com or type 'java' in terminal - download/install dialog should appear.

Previous Topic: Kerio + LDAP : "Name to ID resolving failed: ID is empty"
Next Topic: Kerio Connect 8.2.2 Antivirus Disabled!
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Sat Aug 19 18:46:09 CEST 2017

Total time taken to generate the page: 0.00485 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.