powered by Jive Software

Win32: Openfire Server Does Not Start

I am in the process of migrating 3.5.2 from Linux to Windows (don’t ask why…) and everything’s perfect except for one thing. After installing the Openfire service via openfire-service /instal, it just doesn’t want to start. No errors. No logs. Simply nothing. Well, the service “appears” to be started in services.msc, but the Admin console as well as port 5222, etc are all unreachable. The weird thing is that Openfire will run perfectly fine from the GUI. Any ideas?

Since I can’t seem to save my edited original post, I am replying instead…

Update:

50 Minutes after last starting the service, everything finaly came up:

2008.08.08 09:03:04 Multi User Chat domain: conference.im..com
2008.08.08 09:03:05 Publish-Subscribe domain: pubsub.im.
.com
2008.08.08 09:27:32 Openfire 3.5.2 [Aug 8, 2008 9:27:32 AM]
2008.08.08 09:52:51 Admin console listening at:
http://im..com:9090
https://im.
.com:9091
2008.08.08 09:52:53 Starting transport service: aim
2008.08.08 09:52:53 Starting transport service: msn
2008.08.08 09:52:53 Starting transport service: yahoo
2008.08.08 09:52:53 Starting transport service: gtalk
2008.08.08 09:52:53 Started server (unencrypted) socket on port: 5269
2008.08.08 09:52:54 Started plain (unencrypted) socket on port: 5222
2008.08.08 09:52:54 Started SSL (encrypted) socket on port: 5223

So I stopped and restarted the service, and it again took about 50 minutes to finish starting. Any ideas why Openfire is taking so long to start as a service?

I am having a similar problem, has anyone found a solution?

Hi Brian,

it may help to take some thread dumps while Openfire is starting as a service. Maybe the JRE has a problem with the random device or something like this when Openfire runs as a service.

LG

I am sorry, but this is new to me, how do I take thread dumps?

Hi Brian,

do you have this problem when you are running Openfire in standalone mode or only when you start it as a service?

JVM Settings and Debugging contains some details. Anyhow I should update it as with Java 6 you may want to use a start parameter like “-Dcom.sun.management.jmxremote.port=12345” and then connect to the JVM with VisualJVM to get a javacore/stacktrace.

LG

Only when I try to start it as a service. It will not start. It runs fine as a stand alone app, but that leaves me stuck logged into the server constantly, if we need to log off, the IM goes offline for everyone. I would love to get it up and running, I am going through the instructions you posted but some of it is a little above my head so I will do my best.

UPDATE: it does start but then immediately stops. I watch in task manager and the service starts and then stops after only a moment. When I try to start it from the Services Control Pannel I get a message stating:


Services

The Openfire service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service.

OK

Any idea’s?