java.io.FileNotFoundException: C:\jenkinsTest\log\tes t.log (The system cannot find the path specified)

Jenkins JIRA | jiehua he | 4 years ago
  1. 0

    when I ran the newest release Jenkins in windows command line, it starts out ok. But after I left it running overnight, when I check back the next morning it stopped. There is on error message on the command line output. The command line output is attached. I tried to output the log to a file, also attached. There isn't anything much there. command line: C:\jenkinTest>java -jar jenkins.war --logfile=C:\jenkinsTest\log\test.log Exception in thread "main" java.io.FileNotFoundException: C:\jenkinsTest\log\tes t.log (The system cannot find the path specified) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:212) at LogFileOutputStream.<init>(LogFileOutputStream.java:57) at Main._main(Main.java:148) at Main.main(Main.java:98) C:\jenkinTest>java -jar jenkins.war --logfile=C:\jenkinTest\log\test.log May 21, 2013 11:36:11 AM winstone.Logger logInternal INFO: Beginning extraction from war file May 21, 2013 11:36:13 AM winstone.Logger logInternal INFO: HTTP Listener started: port=8080 May 21, 2013 11:36:13 AM winstone.Logger logInternal INFO: Winstone Servlet Engine v0.9.10 running: controlPort=disabled May 21, 2013 11:36:13 AM jenkins.InitReactorRunner$1 onAttained INFO: Started initialization May 21, 2013 11:36:14 AM jenkins.InitReactorRunner$1 onAttained INFO: Listed all plugins May 21, 2013 11:36:14 AM jenkins.InitReactorRunner$1 onAttained INFO: Prepared all plugins May 21, 2013 11:36:14 AM jenkins.InitReactorRunner$1 onAttained INFO: Started all plugins May 21, 2013 11:36:14 AM jenkins.InitReactorRunner$1 onAttained INFO: Augmented all extensions May 21, 2013 11:36:23 AM jenkins.InitReactorRunner$1 onAttained INFO: Loaded all jobs May 21, 2013 11:36:24 AM org.jenkinsci.main.modules.sshd.SSHD start INFO: Started SSHD at port 65227 May 21, 2013 11:36:24 AM jenkins.InitReactorRunner$1 onAttained INFO: Completed initialization May 21, 2013 11:36:25 AM hudson.TcpSlaveAgentListener <init> INFO: JNLP slave agent listener started on TCP port 65228 May 21, 2013 11:36:25 AM hudson.WebAppMain$2 run INFO: Jenkins is fully up and running May 21, 2013 5:26:04 PM hudson.model.AsyncPeriodicWork$1 run INFO: Started Fingerprint cleanup May 21, 2013 5:26:04 PM hudson.model.FingerprintCleanupThread execute INFO: Cleaned up 0 records May 21, 2013 5:26:04 PM hudson.model.AsyncPeriodicWork$1 run INFO: Finished Fingerprint cleanup. 3 ms May 21, 2013 8:07:31 PM hudson.model.AsyncPeriodicWork$1 run INFO: Started Workspace clean-up May 21, 2013 8:07:31 PM hudson.model.AsyncPeriodicWork$1 run INFO: Finished Workspace clean-up. 7 ms C:\jenkinTest> Log File output using the --logfile swithc: Running from: C:\jenkinTest\jenkins.war webroot: $user.home/.jenkins Jenkins home directory: C:\Users\m2c2\.jenkins found at: $user.home/.jenkins (Note) Those 3 lines are all what is inside the log file. Please let me know if there is better way to get more log information out of jenkins. I am aware you can do it through webgui, but that doesn't save log file on the disk. When the jenkins stops, there is no way for me to get the log back.

    Jenkins JIRA | 4 years ago | jiehua he
    java.io.FileNotFoundException: C:\jenkinsTest\log\tes t.log (The system cannot find the path specified)
  2. 0

    when I ran the newest release Jenkins in windows command line, it starts out ok. But after I left it running overnight, when I check back the next morning it stopped. There is on error message on the command line output. The command line output is attached. I tried to output the log to a file, also attached. There isn't anything much there. command line: C:\jenkinTest>java -jar jenkins.war --logfile=C:\jenkinsTest\log\test.log Exception in thread "main" java.io.FileNotFoundException: C:\jenkinsTest\log\tes t.log (The system cannot find the path specified) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:212) at LogFileOutputStream.<init>(LogFileOutputStream.java:57) at Main._main(Main.java:148) at Main.main(Main.java:98) C:\jenkinTest>java -jar jenkins.war --logfile=C:\jenkinTest\log\test.log May 21, 2013 11:36:11 AM winstone.Logger logInternal INFO: Beginning extraction from war file May 21, 2013 11:36:13 AM winstone.Logger logInternal INFO: HTTP Listener started: port=8080 May 21, 2013 11:36:13 AM winstone.Logger logInternal INFO: Winstone Servlet Engine v0.9.10 running: controlPort=disabled May 21, 2013 11:36:13 AM jenkins.InitReactorRunner$1 onAttained INFO: Started initialization May 21, 2013 11:36:14 AM jenkins.InitReactorRunner$1 onAttained INFO: Listed all plugins May 21, 2013 11:36:14 AM jenkins.InitReactorRunner$1 onAttained INFO: Prepared all plugins May 21, 2013 11:36:14 AM jenkins.InitReactorRunner$1 onAttained INFO: Started all plugins May 21, 2013 11:36:14 AM jenkins.InitReactorRunner$1 onAttained INFO: Augmented all extensions May 21, 2013 11:36:23 AM jenkins.InitReactorRunner$1 onAttained INFO: Loaded all jobs May 21, 2013 11:36:24 AM org.jenkinsci.main.modules.sshd.SSHD start INFO: Started SSHD at port 65227 May 21, 2013 11:36:24 AM jenkins.InitReactorRunner$1 onAttained INFO: Completed initialization May 21, 2013 11:36:25 AM hudson.TcpSlaveAgentListener <init> INFO: JNLP slave agent listener started on TCP port 65228 May 21, 2013 11:36:25 AM hudson.WebAppMain$2 run INFO: Jenkins is fully up and running May 21, 2013 5:26:04 PM hudson.model.AsyncPeriodicWork$1 run INFO: Started Fingerprint cleanup May 21, 2013 5:26:04 PM hudson.model.FingerprintCleanupThread execute INFO: Cleaned up 0 records May 21, 2013 5:26:04 PM hudson.model.AsyncPeriodicWork$1 run INFO: Finished Fingerprint cleanup. 3 ms May 21, 2013 8:07:31 PM hudson.model.AsyncPeriodicWork$1 run INFO: Started Workspace clean-up May 21, 2013 8:07:31 PM hudson.model.AsyncPeriodicWork$1 run INFO: Finished Workspace clean-up. 7 ms C:\jenkinTest> Log File output using the --logfile swithc: Running from: C:\jenkinTest\jenkins.war webroot: $user.home/.jenkins Jenkins home directory: C:\Users\m2c2\.jenkins found at: $user.home/.jenkins (Note) Those 3 lines are all what is inside the log file. Please let me know if there is better way to get more log information out of jenkins. I am aware you can do it through webgui, but that doesn't save log file on the disk. When the jenkins stops, there is no way for me to get the log back.

    Jenkins JIRA | 4 years ago | jiehua he
    java.io.FileNotFoundException: C:\jenkinsTest\log\tes t.log (The system cannot find the path specified)
  3. 0

    :extract-native.dependencies not found on Windows

    GitHub | 4 years ago | ghost
    java.io.FileNotFoundException: /opt/storm-deploy/target/stale/extract-native.dependencies (No such file or directory)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    dev/watch should fail gracefully if handed a non-existent aspect

    GitHub | 4 years ago | daemianmack
    java.io.FileNotFoundException: out/public/generated-js (Is a directory)
  6. 0

    GitHub comment 45#61720869

    GitHub | 2 years ago | smoll
    java.io.FileNotFoundException: test.txt (Permission denied)

  1. tvrmsmith 1 times, last 1 week ago
  2. eti22 3 times, last 3 weeks ago
  3. tyson925 49 times, last 2 weeks ago
  4. MoYapro 1 times, last 1 month ago
  5. musketyr 3 times, last 1 month ago
24 more registered users
71 unregistered visitors
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.FileNotFoundException

    C:\jenkinsTest\log\tes t.log (The system cannot find the path specified)

    at java.io.FileOutputStream.open()
  2. Java RT
    FileOutputStream.<init>
    1. java.io.FileOutputStream.open(Native Method)
    2. java.io.FileOutputStream.<init>(FileOutputStream.java:212)
    2 frames
  3. Unknown
    Main.main
    1. LogFileOutputStream.<init>(LogFileOutputStream.java:57)
    2. Main._main(Main.java:148)
    3. Main.main(Main.java:98)
    3 frames