java.io.IOException: Couldn't get lock for jsystem%g.log

jsystemtest | itai_agmon | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Synchronizing agent process got stuck

    jsystemtest | 8 years ago | itai_agmon
    java.io.IOException: Couldn't get lock for jsystem%g.log
  2. 0

    Periodically, we run into the following message on our Windows Vista (32-bit) slave VM. Note that this happens ONLY on the Windows slave, and that nothing else has changed in our infrastructure or job definitions except the Hudson version. ---- ... Updating http://svn.apache.org/repos/asf/maven/components/branches/maven-2.1.x ERROR: Failed to update http://svn.apache.org/repos/asf/maven/components/branches/maven-2.1.x org.tmatesoft.svn.core.SVNException: svn: No buffer space available (maximum connections reached?): connect svn: OPTIONS request failed on '/repos/asf/maven/components/branches/maven-2.1.x' at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:103) at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:87) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:601) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:257) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:245) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:454) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:97) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:665) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getRepositoryUUID(DAVRepository.java:143) at org.tmatesoft.svn.core.wc.SVNBasicClient.createRepository(SVNBasicClient.java:339) at org.tmatesoft.svn.core.wc.SVNBasicClient.createRepository(SVNBasicClient.java:327) at org.tmatesoft.svn.core.wc.SVNUpdateClient.update(SVNUpdateClient.java:426) at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:394) at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:210) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:505) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:476) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1517) at hudson.remoting.UserRequest.perform(UserRequest.java:92) at hudson.remoting.UserRequest.perform(UserRequest.java:46) at hudson.remoting.Request$2.run(Request.java:236) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) 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:619) Caused by: java.net.SocketException: No buffer space available (maximum connections reached?): connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:519) at org.tmatesoft.svn.core.internal.util.SVNSocketFactory.createPlainSocket(SVNSocketFactory.java:53) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.connect(HTTPConnection.java:167) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:307) ... 23 more ---- At the same time, if I look at the log for that node, I see: ---- [04/02/09 14:57:44] Launching slave agent $ ssh vista2.grid.sonatype.com cmd /C C:/opt/hudson/slave/start.bat At revision 158. ���channel started Starting periodic ping thread This is a Windows slave Copied maven-agent.jar Copied maven-interceptor.jar Can't load log handler "java.util.logging.FileHandler" java.io.IOException: Couldn't get lock for %u/.hudson/hudson%u.log java.io.IOException: Couldn't get lock for %u/.hudson/hudson%u.log at java.util.logging.FileHandler.openFiles(FileHandler.java:372) at java.util.logging.FileHandler.<init>(FileHandler.java:208) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at java.util.logging.LogManager$7.run(LogManager.java:911) at java.security.AccessController.doPrivileged(Native Method) at java.util.logging.LogManager.initializeGlobalHandlers(LogManager.java:903) at java.util.logging.LogManager.access$900(LogManager.java:129) at java.util.logging.LogManager$RootLogger.getHandlers(LogManager.java:1010) at java.util.logging.Logger.log(Logger.java:454) at java.util.logging.Logger.doLog(Logger.java:480) at java.util.logging.Logger.log(Logger.java:569) at hudson.Proc$LocalProc.join(Proc.java:157) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:504) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:485) at hudson.remoting.UserRequest.perform(UserRequest.java:92) at hudson.remoting.UserRequest.perform(UserRequest.java:46) at hudson.remoting.Request$2.run(Request.java:236) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) 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:619) Apr 2, 2009 10:00:34 PM hudson.Proc$LocalProc join WARNING: Process leaked file descriptors. See http://hudson.gotdns.com/wiki/display/JENKINS/Spawning+processes+from+build for more information java.lang.Exception at hudson.Proc$LocalProc.join(Proc.java:156) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:504) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:485) at hudson.remoting.UserRequest.perform(UserRequest.java:92) at hudson.remoting.UserRequest.perform(UserRequest.java:46) at hudson.remoting.Request$2.run(Request.java:236) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) 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:619) Apr 3, 2009 10:00:17 AM hudson.remoting.Channel$ReaderThread run SEVERE: Failed to execute command UserRequest:hudson.FilePath$FileCallableWrapper@4b495a java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(Thread.java:597) at java.util.concurrent.ThreadPoolExecutor.addIfUnderMaximumPoolSize(ThreadPoolExecutor.java:727) at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:657) at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:78) at hudson.remoting.Request.execute(Request.java:231) at hudson.remoting.Channel$ReaderThread.run(Channel.java:675) Apr 3, 2009 10:00:17 AM hudson.remoting.Channel$ReaderThread run SEVERE: This command is created here Command UserRequest:hudson.FilePath$FileCallableWrapper@4b495a created at at hudson.remoting.Command.<init>(Command.java:47) at hudson.remoting.Request.<init>(Request.java:75) at hudson.remoting.UserRequest.<init>(UserRequest.java:57) at hudson.remoting.Channel.call(Channel.java:480) at hudson.FilePath.act(FilePath.java:545) at hudson.FilePath.mkdirs(FilePath.java:600) at hudson.model.AbstractProject.checkout(AbstractProject.java:806) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:314) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:266) at hudson.model.Run.run(Run.java:899) at hudson.model.Build.run(Build.java:112) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:119)

    Jenkins JIRA | 8 years ago | jdcasey
    java.io.IOException: Couldn't get lock for %u/.hudson/hudson%u.log
  3. 0

    Warning on log files at startup

    GitHub | 4 years ago | odino
    java.io.IOException: Couldn't get lock for ../log/orient-server.log
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Bug ID: JDK-6244047 impossible to specify directories to logging FileHandler unless they exist

    java.com | 1 year ago
    java.io.IOException: Couldn't get lock for %h/.myco/myapp/log%u.%g.log
  6. 0

    Icommand : Can't load log handler &quot;java.u... | Oracle Community

    oracle.com | 1 year ago
    java.io.IOException: Couldn't get lock for utility.log

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      Couldn't get lock for jsystem%g.log

      at java.util.logging.FileHandler.openFiles()
    2. Java RT
      Logger.log
      1. java.util.logging.FileHandler.openFiles(FileHandler.java:372)
      2. java.util.logging.FileHandler.<init>(FileHandler.java:208)
      3. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      4. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      5. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      6. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      7. java.lang.Class.newInstance0(Class.java:355)
      8. java.lang.Class.newInstance(Class.java:308)
      9. java.util.logging.LogManager$7.run(LogManager.java:911)
      10. java.security.AccessController.doPrivileged(Native Method)
      11. java.util.logging.LogManager.initializeGlobalHandlers(LogManager.java:903)
      12. java.util.logging.LogManager.access$900(LogManager.java:129)
      13. java.util.logging.LogManager$RootLogger.getHandlers(LogManager.java:1010)
      14. java.util.logging.Logger.log(Logger.java:454)
      15. java.util.logging.Logger.doLog(Logger.java:480)
      16. java.util.logging.Logger.log(Logger.java:569)
      16 frames
    3. jsystem.runner.agent
      RunnerAgentMain.startRunner
      1. jsystem.runner.agent.server.RunnerAgentMain.startRunner(RunnerAgentMain.java:107)
      1 frame
    4. jsystem.framework.launcher
      Launcher2.main
      1. jsystem.framework.launcher.Launcher2.run(Launcher2.java:76)
      2. jsystem.framework.launcher.Launcher2.main(Launcher2.java:29)
      2 frames