Openfire won't start

Hi Guys,

My openfire server was working fine then I restarted the Ubuntu 10.04 server and now it won’t start. When I start it manually I get the usual “Starting openfire: openfire.” but the web interface doesn’t work.In the error log there is a bunch of premature end of file errors. Any ideas? I appreciate the help in advance.

Thank you,

Wasim

You can still post your errors here. Also, can you check that there are no 2 Openfire processes working at the same time. Maybe service is staring and then you launch one more process manually.

Thanks for the quick reply. How would I check if there are multiple processes? does it run as openfire or java? I don’t see a single openfire process but I do see 2 java proccesses.

Here’s the error log:

2011.07.25 06:50:23 Error on line 1 of document : Premature end of file. Nested exception: Premature end of file.

java.io.IOException: Error on line 1 of document : Premature end of file. Nested exception: Premature end of file.

at org.jivesoftware.util.XMLProperties.buildDoc(XMLProperties.java:506)

at org.jivesoftware.util.XMLProperties.(XMLProperties.java:145)

at org.jivesoftware.util.XMLProperties.(XMLProperties.java:94)

at org.jivesoftware.util.JiveGlobals.loadSetupProperties(JiveGlobals.java:851)

at org.jivesoftware.util.JiveGlobals.getXMLProperty(JiveGlobals.java:301)

at org.jivesoftware.openfire.container.AdminConsolePlugin.getBindInterface(AdminCo nsolePlugin.java:226)

at org.jivesoftware.openfire.container.AdminConsolePlugin.startup(AdminConsolePlug in.java:131)

at org.jivesoftware.openfire.container.AdminConsolePlugin.initializePlugin(AdminCo nsolePlugin.java:201)

at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java :483)

at org.jivesoftware.openfire.container.PluginManager.access$300(PluginManager.java :80)

at org.jivesoftware.openfire.container.PluginManager$PluginMonitor.run(PluginManag er.java:1067)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)

at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101 (ScheduledThreadPoolExecutor.java:98)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodi c(ScheduledThreadPoolExecutor.java:180)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Schedu ledThreadPoolExecutor.java:204)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java: 886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

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

2011.07.25 06:50:23 Error reading XML properties

org.dom4j.DocumentException: Error on line 1 of document : Premature end of file. Nested exception: Premature end of file.

at org.dom4j.io.SAXReader.read(SAXReader.java:482)

at org.dom4j.io.SAXReader.read(SAXReader.java:365)

at org.jivesoftware.util.XMLProperties.buildDoc(XMLProperties.java:502)

at org.jivesoftware.util.XMLProperties.(XMLProperties.java:145)

at org.jivesoftware.util.XMLProperties.(XMLProperties.java:94)

at org.jivesoftware.util.JiveGlobals.loadSetupProperties(JiveGlobals.java:851)

at org.jivesoftware.util.JiveGlobals.getXMLProperty(JiveGlobals.java:301)

at org.jivesoftware.openfire.container.AdminConsolePlugin.getBindInterface(AdminCo nsolePlugin.java:227)

at org.jivesoftware.openfire.container.AdminConsolePlugin.startup(AdminConsolePlug in.java:131)

at org.jivesoftware.openfire.container.AdminConsolePlugin.initializePlugin(AdminCo nsolePlugin.java:201)

at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java :483)

at org.jivesoftware.openfire.container.PluginManager.access$300(PluginManager.java :80)

at org.jivesoftware.openfire.container.PluginManager$PluginMonitor.run(PluginManag er.java:1067)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)

at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101 (ScheduledThreadPoolExecutor.java:98)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodi c(ScheduledThreadPoolExecutor.java:180)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Schedu ledThreadPoolExecutor.java:204)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java: 886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

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

Nested exception:

org.xml.sax.SAXParseException: Premature end of file.

at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseExcep tion(ErrorHandlerWrapper.java:195)

at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHan dlerWrapper.java:174)

at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorRe porter.java:388)

at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner. java:1414)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.nex t(XMLDocumentScannerImpl.java:1059)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocument ScannerImpl.java:648)

at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocu mentScannerImpl.java:140)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocu ment(XMLDocumentFragmentScannerImpl.java:511)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Config uration.java:808)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Config uration.java:737)

at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXP arser.java:1205)

at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXPa rserImpl.java:522)

at org.dom4j.io.SAXReader.read(SAXReader.java:465)

at org.dom4j.io.SAXReader.read(SAXReader.java:365)

at org.jivesoftware.util.XMLProperties.buildDoc(XMLProperties.java:502)

at org.jivesoftware.util.XMLProperties.(XMLProperties.java:145)

at org.jivesoftware.util.XMLProperties.(XMLProperties.java:94)

at org.jivesoftware.util.JiveGlobals.loadSetupProperties(JiveGlobals.java:851)

at org.jivesoftware.util.JiveGlobals.getXMLProperty(JiveGlobals.java:301)

at org.jivesoftware.openfire.container.AdminConsolePlugin.getBindInterface(AdminCo nsolePlugin.java:227)

at org.jivesoftware.openfire.container.AdminConsolePlugin.startup(AdminConsolePlug in.java:131)

at org.jivesoftware.openfire.container.AdminConsolePlugin.initializePlugin(AdminCo nsolePlugin.java:201)

at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java :483)

at org.jivesoftware.openfire.container.PluginManager.access$300(PluginManager.java :80)

at org.jivesoftware.openfire.container.PluginManager$PluginMonitor.run(PluginManag er.java:1067)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)

at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101 (ScheduledThreadPoolExecutor.java:98)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodi c(ScheduledThreadPoolExecutor.java:180)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Schedu ledThreadPoolExecutor.java:204)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java: 886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

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

2011.07.25 06:50:23 Error on line 1 of document : Premature end of file. Nested exception: Premature end of file.

java.io.IOException: Error on line 1 of document : Premature end of file. Nested exception: Premature end of file.

at org.jivesoftware.util.XMLProperties.buildDoc(XMLProperties.java:506)

at org.jivesoftware.util.XMLProperties.(XMLProperties.java:145)

at org.jivesoftware.util.XMLProperties.(XMLProperties.java:94)

at org.jivesoftware.util.JiveGlobals.loadSetupProperties(JiveGlobals.java:851)

at org.jivesoftware.util.JiveGlobals.getXMLProperty(JiveGlobals.java:301)

at org.jivesoftware.openfire.container.AdminConsolePlugin.getBindInterface(AdminCo nsolePlugin.java:227)

at org.jivesoftware.openfire.container.AdminConsolePlugin.startup(AdminConsolePlug in.java:131)

at org.jivesoftware.openfire.container.AdminConsolePlugin.initializePlugin(AdminCo nsolePlugin.java:201)

at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java :483)

at org.jivesoftware.openfire.container.PluginManager.access$300(PluginManager.java :80)

at org.jivesoftware.openfire.container.PluginManager$PluginMonitor.run(PluginManag er.java:1067)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)

at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101 (ScheduledThreadPoolExecutor.java:98)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodi c(ScheduledThreadPoolExecutor.java:180)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Schedu ledThreadPoolExecutor.java:204)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java: 886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

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

2011.07.25 06:50:23 Error reading XML properties

org.dom4j.DocumentException: Error on line 1 of document : Premature end of file. Nested exception: Premature end of file.

at org.dom4j.io.SAXReader.read(SAXReader.java:482)

at org.dom4j.io.SAXReader.read(SAXReader.java:365)

at org.jivesoftware.util.XMLProperties.buildDoc(XMLProperties.java:502)

at org.jivesoftware.util.XMLProperties.(XMLProperties.java:145)

at org.jivesoftware.util.XMLProperties.(XMLProperties.java:94)

at org.jivesoftware.util.JiveGlobals.loadSetupProperties(JiveGlobals.java:851)

at org.jivesoftware.util.JiveGlobals.getXMLProperty(JiveGlobals.java:301)

at org.jivesoftware.util.JiveGlobals.isSetupMode(JiveGlobals.java:810)

at org.jivesoftware.util.JiveGlobals.getProperty(JiveGlobals.java:530)

at org.jivesoftware.util.JiveGlobals.getBooleanProperty(JiveGlobals.java:614)

at org.jivesoftware.util.log.util.JettyLog.(JettyLog.java:39)

at org.jivesoftware.util.log.util.JettyLog.getLogger(JettyLog.java:87)

at org.eclipse.jetty.util.log.Log.getLogger(Log.java:286)

at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:557 )

at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:349)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java :55)

at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.ja va:165)

at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandle rCollection.java:162)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java :55)

at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.ja va:165)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java :55)

at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:92)

at org.eclipse.jetty.server.Server.doStart(Server.java:228)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java :55)

at org.jivesoftware.openfire.container.AdminConsolePlugin.startup(AdminConsolePlug in.java:166)

at org.jivesoftware.openfire.container.AdminConsolePlugin.initializePlugin(AdminCo nsolePlugin.java:201)

at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java :483)

at org.jivesoftware.openfire.container.PluginManager.access$300(PluginManager.java :80)

at org.jivesoftware.openfire.container.PluginManager$PluginMonitor.run(PluginManag er.java:1067)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)

at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101 (ScheduledThreadPoolExecutor.java:98)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodi c(ScheduledThreadPoolExecutor.java:180)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Schedu ledThreadPoolExecutor.java:204)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java: 886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

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

Nested exception:

org.xml.sax.SAXParseException: Premature end of file.

at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseExcep tion(ErrorHandlerWrapper.java:195)

at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHan dlerWrapper.java:174)

at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorRe porter.java:388)

at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner. java:1414)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.nex t(XMLDocumentScannerImpl.java:1059)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocument ScannerImpl.java:648)

at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocu mentScannerImpl.java:140)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocu ment(XMLDocumentFragmentScannerImpl.java:511)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Config uration.java:808)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Config uration.java:737)

at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXP arser.java:1205)

at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXPa rserImpl.java:522)

at org.dom4j.io.SAXReader.read(SAXReader.java:465)

at org.dom4j.io.SAXReader.read(SAXReader.java:365)

at org.jivesoftware.util.XMLProperties.buildDoc(XMLProperties.java:502)

at org.jivesoftware.util.XMLProperties.(XMLProperties.java:145)

at org.jivesoftware.util.XMLProperties.(XMLProperties.java:94)

at org.jivesoftware.util.JiveGlobals.loadSetupProperties(JiveGlobals.java:851)

at org.jivesoftware.util.JiveGlobals.getXMLProperty(JiveGlobals.java:301)

at org.jivesoftware.util.JiveGlobals.isSetupMode(JiveGlobals.java:810)

at org.jivesoftware.util.JiveGlobals.getProperty(JiveGlobals.java:530)

at org.jivesoftware.util.JiveGlobals.getBooleanProperty(JiveGlobals.java:614)

at org.jivesoftware.util.log.util.JettyLog.(JettyLog.java:39)

at org.jivesoftware.util.log.util.JettyLog.getLogger(JettyLog.java:87)

at org.eclipse.jetty.util.log.Log.getLogger(Log.java:286)

at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:557 )

at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:349)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java :55)

at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.ja va:165)

at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandle rCollection.java:162)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java :55)

at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.ja va:165)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java :55)

at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:92)

at org.eclipse.jetty.server.Server.doStart(Server.java:228)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java :55)

at org.jivesoftware.openfire.container.AdminConsolePlugin.startup(AdminConsolePlug in.java:166)

at org.jivesoftware.openfire.container.AdminConsolePlugin.initializePlugin(AdminCo nsolePlugin.java:201)

at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java :483)

at org.jivesoftware.openfire.container.PluginManager.access$300(PluginManager.java :80)

at org.jivesoftware.openfire.container.PluginManager$PluginMonitor.run(PluginManag er.java:1067)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)

at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101 (ScheduledThreadPoolExecutor.java:98)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodi c(ScheduledThreadPoolExecutor.java:180)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Schedu ledThreadPoolExecutor.java:204)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java: 886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

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

2011.07.25 06:50:23 Error on line 1 of document : Premature end of file. Nested exception: Premature end of file.

java.io.IOException: Error on line 1 of document : Premature end of file. Nested exception: Premature end of file.

at org.jivesoftware.util.XMLProperties.buildDoc(XMLProperties.java:506)

at org.jivesoftware.util.XMLProperties.(XMLProperties.java:145)

at org.jivesoftware.util.XMLProperties.(XMLProperties.java:94)

at org.jivesoftware.util.JiveGlobals.loadSetupProperties(JiveGlobals.java:851)

at org.jivesoftware.util.JiveGlobals.getXMLProperty(JiveGlobals.java:301)

at org.jivesoftware.util.JiveGlobals.isSetupMode(JiveGlobals.java:810)

at org.jivesoftware.util.JiveGlobals.getProperty(JiveGlobals.java:530)

at org.jivesoftware.util.JiveGlobals.getBooleanProperty(JiveGlobals.java:614)

at org.jivesoftware.util.log.util.JettyLog.(JettyLog.java:39)

at org.jivesoftware.util.log.util.JettyLog.getLogger(JettyLog.java:87)

at org.eclipse.jetty.util.log.Log.getLogger(Log.java:286)

at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:557 )

at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:349)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java :55)

at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.ja va:165)

at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandle rCollection.java:162)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java :55)

at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.ja va:165)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java :55)

at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:92)

at org.eclipse.jetty.server.Server.doStart(Server.java:228)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java :55)

at org.jivesoftware.openfire.container.AdminConsolePlugin.startup(AdminConsolePlug in.java:166)

at org.jivesoftware.openfire.container.AdminConsolePlugin.initializePlugin(AdminCo nsolePlugin.java:201)

at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java :483)

at org.jivesoftware.openfire.container.PluginManager.access$300(PluginManager.java :80)

at org.jivesoftware.openfire.container.PluginManager$PluginMonitor.run(PluginManag er.java:1067)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)

at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101 (ScheduledThreadPoolExecutor.java:98)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodi c(ScheduledThreadPoolExecutor.java:180)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Schedu ledThreadPoolExecutor.java:204)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java: 886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

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

Yes. It shows’up as java in linux i think, and it has to be only one java process, unless you run some other java app. You can also do a “netstat -a” command and check home many programs listens on 9090 port. Should be only one. So, you can restart and then check whether one java process is running and then try logging into Admin Console and check logs again.

ps -ef reveals only one of the java processes is openfire so that’s good. I have changed the port before so my instance shouldn’t be running on 9090 but guess what when I ran netstat -a as you suggested I found a listner on 9090 and none on the port it was set to. I went to 9090 and guess what I see the “Welcome to Setup” screen. My openfire setup hadn’t had a config change in a year only the occasional user add/remove. What could have happened and is there a way to restore my server?

Hard to say what have happened, especially when i don’t know how it was setup before. What database do you use? You can do a backup of your database or/and the whole openfire folder and try running the setup again (on 9090 port). You can connect to an existing database and all users information should be there.

I use the embedded database. Where is the database usually?

/openfire/embedded-db folder

I found a /usr/share/openfire that has a symlink to embedded-db from /var/lib/openfire/embedded-db

The embedded-db folder contains 4 files:

openfire.lck 16 bytes

openfire.log 0 bytes

openfire.properties 0 bytes

openfire.script 0 bytes

inside openfire.lck is the line “HSQLLOCK^#$&^%#&%

I’m guessing none of these files are the database. What could have happened to it?

also I haven’t changes a setting since march and I havent rebooted the server since june here’s my info.log see the beginning and end of it

2011.06.24 16:57:38 Publish-Subscribe domain: pubsub.******.******.***

2011.06.24 16:57:38 Multi User Chat domain: conference.******.******.***

2011.06.24 16:57:39 Openfire 3.7.0 [Jun 24, 2011 4:57:39 PM]

2011.06.24 16:57:43 Admin console listening at:

http://******.******.***:*** (my domain and none default ports)

https://******.******.***:***

2011.06.24 16:57:46 Started plain (unencrypted) socket on port: 5222

2011.06.24 16:57:46 Started SSL (encrypted) socket on port: 5223

2011.06.25 09:19:44 User Login Failed. PLAIN authentication failed for: ********

2011.06.25 09:19:54 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:29:32 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:30:09 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:30:21 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:30:28 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:30:49 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:31:08 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:31:14 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:31:24 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:31:43 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:31:46 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:31:50 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:31:52 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:31:59 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:32:28 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:32:37 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:33:13 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:33:24 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:33:40 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:33:48 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:34:33 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:34:40 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:34:49 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:34:58 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:35:04 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:36:55 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:37:00 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:38:57 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:39:03 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:39:13 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:46:28 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:46:34 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:49:30 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:52:29 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:52:35 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:52:40 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:57:19 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:57:37 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:57:44 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:57:50 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:58:24 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:59:11 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 10:59:26 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 11:10:03 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 11:10:11 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 11:10:19 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 11:10:30 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 11:10:37 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 11:10:44 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 11:10:50 User Login Failed. PLAIN authentication failed for: ********

2011.06.28 11:10:59 User Login Failed. PLAIN authentication failed for: ********

2011.06.29 10:07:34 User Login Failed. PLAIN authentication failed for: ********

2011.06.29 10:07:42 User Login Failed. PLAIN authentication failed for: ********

2011.06.29 10:08:59 User Login Failed. PLAIN authentication failed for: ********

2011.06.29 10:09:14 User Login Failed. PLAIN authentication failed for: ********

2011.06.29 10:09:27 User Login Failed. PLAIN authentication failed for: ********

2011.06.29 10:09:58 User Login Failed. PLAIN authentication failed for: ********

2011.06.29 10:13:01 User Login Failed. PLAIN authentication failed for: ********

2011.06.29 11:07:53 User Login Failed. PLAIN authentication failed for: ********

2011.06.29 17:56:40 Packet sent to unreachable address

2011.06.30 09:34:43 User Login Failed. PLAIN authentication failed for: ********

2011.06.30 13:04:49 User Login Failed. PLAIN authentication failed for: ********

2011.07.06 09:53:10 User Login Failed. PLAIN authentication failed for: ********

2011.07.06 09:53:20 User Login Failed. PLAIN authentication failed for: ********

2011.07.06 09:54:33 User Login Failed. PLAIN authentication failed for: ********

2011.07.07 09:15:33 User Login Failed. PLAIN authentication failed for: ********

2011.07.08 10:11:27 Packet sent to unreachable address

2011.07.11 10:33:56 User Login Failed. PLAIN authentication failed for: ********

2011.07.13 17:56:23 Packet sent to unreachable address

2011.07.20 11:07:01 User Login Failed. PLAIN authentication failed for: ********

2011.07.20 12:33:58 Packet sent to unreachable address

2011.07.20 15:08:50 User Login Failed. PLAIN authentication failed for: ********

2011.07.20 15:10:13 User Login Failed. PLAIN authentication failed for: ********

2011.07.21 10:11:43 Packet sent to unreachable address

2011.07.24 16:57:02 Publish-Subscribe domain: pubsub.******.******.***

2011.07.24 16:57:02 Multi User Chat domain: conference.******.******.***

2011.07.24 16:57:03 Openfire 3.7.0 [Jul 24, 2011 4:57:03 PM]

2011.07.24 16:58:51 Openfire 3.7.0 [Jul 24, 2011 4:58:51 PM]

2011.07.24 16:58:35 Admin console listening at:

http://127.0.0.1:9090 (localhost and default ports)

https://127.0.0.1:9091

Database should be in openfire.script file. So your database is either in some other place or wiped out. What about /openfire/conf/openfire.xml ? Does it have false tag at the end? So far i can’t understand what has happened. I haven’t used deb installation package, so don’t know where should it put all parts of Openfire. I suppose you didn’t find openfire folder anywhere else? What about /opt dir?

That would not be good. I hope it’s in some other place. conf/openfire.xml is completely blank. I can’t understand either, nothing was wrong nothing was changed nothing was updated just rebooted the system on July 24 and openfire never came back. That was the only openfire folder I found but I can look again. /opt is completely empty but I think thats because ubuntu and debian don’t use it.

I looked alot and I didn’t find any other openfire folder. wroot so you think you can find out how this happened? would you care for temporary ssh access?

I don’t think ssh access will help in this situation and i don’t have experience with debian/ubuntu servers. Sorry, but it is hard to tell what could have happened. I suppose you were restarting the server before and there were no problems with that? Or was it the first reboot?

Yeah, restarted the server many times before, about once a month. Never had a problem, it always came back fine after reboot.

It’s the 5th business day of downtime and I gave up trying to recover my openfire. I had 150 users and they’re starting to get naggy, looking back at it I wonder why this server wasn’t backed up. Do you think I should move to a commercial solution or this was a freak one time thing and all I need is the occasional backup? Being a programmer and working with logic and computers makes me not believe in ghosts and unexplained phenomena so a paranormal data wipe on reboot is not something I think is a coincidence especially since the programs files weren’t effected just my data was overwritten with a blank db. I’m the only one with access to the server and I’m the only one that knows the physical location of that server. There are no signs of intrusion or failed login attempts.

I don’t believe in accidents either. There is always some cause or chain of causes. But sometimes it is hard or impossible to track them to a very low machine code level. So for the “users” i call this an accident, glitch, etc. Backup is an essential part of systems administration. And the more important part is backup plan testing. It’s like a test crash. You harm you system and then try to restore it with your backup plan. I mean, this should be done while deploying some new system/application in the beginning. There is nothing worse than a not working backup Everything depends on how critical a Openfire running) and one offline backup once per month, with Openfire stopped. In my case i just copy the whole folder /opt/openfire, which also contains the embedded database, certificates, some settings. In 5 years i have probably rebooted my server hundreds of times and i have never experienced your issue (Arch linux distro with custom openfire daemon). Commercial solution may have more features and better support (depends…). But it usually has a cost, which in my opinion is often too big for a messaging solution for a small company (or too complicated - MS Lync…). I will stick with Openfire for many years.

I reinstalled openfire and added all the users again. It’s going be fun telling them I’ve reset all their passwords. I will definately have a backup this time. I hate things like this when I don’t know the cause of a catastrophic failure and I’m going to be thinking of this server for many nights even with 3 types of backup on it now. I’m starting to remember now why it didn’t have a backup, when I set this up over a year ago it was just a fun test with a few users it wasn’t until a few months ago that word spread and I rolled it out to the entire company. I forgot it’s origins and I assumed it was backed up because it was on a newer server and all my new servers were in production. Thanks wroot for all your help and great work, much appreciated.

Thank you,

-Wasim