Server Error when starting

Installation Forum (Inactive)
Server Error when starting hines.paul  2010-11-19 10:44
Status: Closed
 
I am getting the following error when I start labkey after I have updated my postgres database from a backup of our lab's labkey server. Any help would be much appreciated.


500: Unexpected server error

A failure occurred during LabKey Server startup.

java.io.IOException: No such file or directory
       at java.io.UnixFileSystem.createFileExclusively(Native Method)
       at java.io.File.checkAndCreate(File.java:1704)
       at java.io.File.createTempFile(File.java:1792)
       at java.io.File.createTempFile(File.java:1828)
       at org.labkey.api.util.FileUtil.getTempDirectory(FileUtil.java:711)
       at org.labkey.api.data.TempTableTracker.synchronizeLog(TempTableTracker.java:244)
       at org.labkey.api.data.TempTableTracker.init(TempTableTracker.java:84)
       at org.labkey.core.CoreModule.startup(CoreModule.java:341)
       at org.labkey.api.module.ModuleLoader.ensureStartupComplete(ModuleLoader.java:682)
       at org.labkey.api.module.ModuleLoader.doFilter(ModuleLoader.java:605)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
       at org.labkey.api.security.AuthFilter.doFilter(AuthFilter.java:107)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
       at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
       at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
       at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
       at java.lang.Thread.run(Thread.java:680)
 
 
adam responded:  2010-11-19 11:09
It looks like the temp directory doesn't exist, or perhaps LabKey Server doesn't have permissions to write to that location. The temp directory location is specified using the system property java.io.tmpdir; you can specify the location on the Java virtual machine command line (e.g., -Djava.io.tmpdir=/tmp). The default temporary-file directory is system dependent. According to the Java documentation, on UNIX systems the default value is typically "/tmp" or "/var/tmp"; on Microsoft Windows systems it is typically "c:\\temp".

Here's a link to the Java documentation: http://download.oracle.com/javase/6/docs/api/java/io/File.html#createTempFile%28java.lang.String,%20java.lang.String,%20java.io.File%29

Adam