hudson.util.IOException2: Failed to create a temporary file in /var/lib/jenkins/.snapshot/nightly.29/job_history/jobs/<JOBNAME REMOVED>/2013-01-04_15-09-39

Jenkins JIRA | David Johansen | 4 years ago
  1. 0

    When re-keying we run into an issue where jenkins is scanning all directories, even the hidden NAS directories with backups, ".snapshots" which causes it to scan 30x the files it needs to while failing due to permissions on this directory. It would be great to have an option to exclude directories from this process. I couldn't find any info about this problem yet, so as far as I know this is the first ISSUE created for it... ERROR: Failed to rewrite /var/lib/jenkins/.snapshot/nightly.29/job_history/jobs/<JOBNAME REMOVED>/2013-01-04_15-09-39/config.xml hudson.util.IOException2: Failed to create a temporary file in /var/lib/jenkins/.snapshot/nightly.29/job_history/jobs/<JOBNAME REMOVED>/2013-01-04_15-09-39 at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:67) at hudson.util.SecretRewriter.rewrite(SecretRewriter.java:79) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:170) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:143) at jenkins.security.RekeySecretAdminMonitor$RekeyThread.run(RekeySecretAdminMonitor.java:182) Caused by: java.io.IOException: Read-only file system at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.checkAndCreate(File.java:1717) at java.io.File.createTempFile0(File.java:1738) at java.io.File.createTempFile(File.java:1815) at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:65) ... 10 more

    Jenkins JIRA | 4 years ago | David Johansen
    hudson.util.IOException2: Failed to create a temporary file in /var/lib/jenkins/.snapshot/nightly.29/job_history/jobs/<JOBNAME REMOVED>/2013-01-04_15-09-39
  2. 0

    When re-keying we run into an issue where jenkins is scanning all directories, even the hidden NAS directories with backups, ".snapshots" which causes it to scan 30x the files it needs to while failing due to permissions on this directory. It would be great to have an option to exclude directories from this process. I couldn't find any info about this problem yet, so as far as I know this is the first ISSUE created for it... ERROR: Failed to rewrite /var/lib/jenkins/.snapshot/nightly.29/job_history/jobs/<JOBNAME REMOVED>/2013-01-04_15-09-39/config.xml hudson.util.IOException2: Failed to create a temporary file in /var/lib/jenkins/.snapshot/nightly.29/job_history/jobs/<JOBNAME REMOVED>/2013-01-04_15-09-39 at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:67) at hudson.util.SecretRewriter.rewrite(SecretRewriter.java:79) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:170) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182) at hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:143) at jenkins.security.RekeySecretAdminMonitor$RekeyThread.run(RekeySecretAdminMonitor.java:182) Caused by: java.io.IOException: Read-only file system at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.checkAndCreate(File.java:1717) at java.io.File.createTempFile0(File.java:1738) at java.io.File.createTempFile(File.java:1815) at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:65) ... 10 more

    Jenkins JIRA | 4 years ago | David Johansen
    hudson.util.IOException2: Failed to create a temporary file in /var/lib/jenkins/.snapshot/nightly.29/job_history/jobs/<JOBNAME REMOVED>/2013-01-04_15-09-39
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Permission denied error for logged in user for Apache Pig

    Stack Overflow | 4 years ago | Sumod
    java.io.IOException: Permission denied

  1. davidvanlaatum 2 times, last 4 days ago
  2. Vladimir Dmie 1 times, last 4 months ago
  3. davidvanlaatum 5 times, last 6 months ago
21 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.IOException

    Read-only file system

    at java.io.UnixFileSystem.createFileExclusively()
  2. Java RT
    File.createTempFile
    1. java.io.UnixFileSystem.createFileExclusively(Native Method)
    2. java.io.File.checkAndCreate(File.java:1717)
    3. java.io.File.createTempFile0(File.java:1738)
    4. java.io.File.createTempFile(File.java:1815)
    4 frames
  3. Hudson
    SecretRewriter.rewriteRecursive
    1. hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:65)
    2. hudson.util.SecretRewriter.rewrite(SecretRewriter.java:79)
    3. hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:170)
    4. hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182)
    5. hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182)
    6. hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182)
    7. hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182)
    8. hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182)
    9. hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:182)
    10. hudson.util.SecretRewriter.rewriteRecursive(SecretRewriter.java:143)
    10 frames
  4. jenkins.security
    RekeySecretAdminMonitor$RekeyThread.run
    1. jenkins.security.RekeySecretAdminMonitor$RekeyThread.run(RekeySecretAdminMonitor.java:182)
    1 frame