java.io.IOException: Failed to create a temporary file in /mnt/jenkins-storage/jobs/test1/configurations/axis-board/prod4301%0Aprod4331%0Aprod4341%0Aprod4401%0Aprod4402%0Aprod4440%0Aprod4441%0Aprod4500%0Aprod4530%0Aprod4540%0Aprod7301%0Aprod7302%0Aprod7330%0Aprod7370%0Aprod7371%0Aprod7450%0Aprod7470%0Aprod7476%0Aprod7490%0Aprod7492%0Aprod7501%0Aprod7570%0Aprod7590%0Aprod8150%0Aprod4301%0Aprod4331%0Aprod4341%0Aprod4401%0Aprod4402%0Aprod4440%0Aprod4500%0Aprod4540%0Aprod7301%0Aprod7302%0Aprod7330%0Aprod7370%0Aprod7431%0Aprod7450%0Aprod7470%0Aprod7476%0Aprod7490%0Aprod7491%0Aprod7492%0Aprod7501%0Aprod7570%0Aprod7590%0A/

Jenkins JIRA | Jordan Spiker | 2 years ago
  1. 0

    Seed job DSL: {code} job(type: Matrix) { name 'test1' scm { svn('redacted') } axes { text('board', readFileFromWorkspace('file') } } {code} console output: {code} Existing Templates: New Templates: Unreferenced Templates: Adding items: Existing items: GeneratedJob{jobName='test1', templateName=none} Removing items: Adding views: Existing views: Removing views: Finished: SUCCESS {code} jenkins log: {code} Sep 02, 2014 4:44:31 PM WARNING javaposse.jobdsl.plugin.JenkinsJobManagement createNewItem Error writing config for new item test1. java.io.IOException: Failed to create a temporary file in /mnt/jenkins-storage/jobs/test1/configurations/axis-board/prod4301%0Aprod4331%0Aprod4341%0Aprod4401%0Aprod4402%0Aprod4440%0Aprod4441%0Aprod4500%0Aprod4530%0Aprod4540%0Aprod7301%0Aprod7302%0Aprod7330%0Aprod7370%0Aprod7371%0Aprod7450%0Aprod7470%0Aprod7476%0Aprod7490%0Aprod7492%0Aprod7501%0Aprod7570%0Aprod7590%0Aprod8150%0Aprod4301%0Aprod4331%0Aprod4341%0Aprod4401%0Aprod4402%0Aprod4440%0Aprod4500%0Aprod4540%0Aprod7301%0Aprod7302%0Aprod7330%0Aprod7370%0Aprod7431%0Aprod7450%0Aprod7470%0Aprod7476%0Aprod7490%0Aprod7491%0Aprod7492%0Aprod7501%0Aprod7570%0Aprod7590%0A/ at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:67) at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:54) at hudson.XmlFile.write(XmlFile.java:175) at hudson.model.AbstractItem.save(AbstractItem.java:461) at hudson.model.Job.save(Job.java:166) at hudson.model.AbstractProject.save(AbstractProject.java:303) at hudson.matrix.MatrixProject.rebuildConfigurations(MatrixProject.java:644) at hudson.matrix.MatrixProject.onLoad(MatrixProject.java:505) at hudson.model.Items.load(Items.java:273) at hudson.model.ItemGroupMixIn$4.call(ItemGroupMixIn.java:258) at hudson.model.ItemGroupMixIn$4.call(ItemGroupMixIn.java:256) at hudson.model.Items.whileUpdatingByXml(Items.java:84) at hudson.model.ItemGroupMixIn.createProjectFromXML(ItemGroupMixIn.java:256) at jenkins.model.Jenkins.createProjectFromXML(Jenkins.java:2972) at javaposse.jobdsl.plugin.JenkinsJobManagement.createNewItem(JenkinsJobManagement.java:279) at javaposse.jobdsl.plugin.JenkinsJobManagement.createOrUpdateConfig(JenkinsJobManagement.java:107) at javaposse.jobdsl.dsl.DslScriptLoader.extractGeneratedJobs(DslScriptLoader.java:110) at javaposse.jobdsl.dsl.DslScriptLoader.runDslEngine(DslScriptLoader.java:93) at javaposse.jobdsl.plugin.ExecuteDslScripts.perform(ExecuteDslScripts.java:158) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:756) at hudson.model.Build$BuildExecution.build(Build.java:198) at hudson.model.Build$BuildExecution.doRun(Build.java:159) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) at hudson.model.Run.execute(Run.java:1706) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:232) Caused by: java.io.IOException: File name too long at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.createNewFile(File.java:1006) at java.io.File.createTempFile(File.java:1989) at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:65) ... 27 more {code} The seed job should have failed because it could not create the config for the new job.

    Jenkins JIRA | 2 years ago | Jordan Spiker
    java.io.IOException: Failed to create a temporary file in /mnt/jenkins-storage/jobs/test1/configurations/axis-board/prod4301%0Aprod4331%0Aprod4341%0Aprod4401%0Aprod4402%0Aprod4440%0Aprod4441%0Aprod4500%0Aprod4530%0Aprod4540%0Aprod7301%0Aprod7302%0Aprod7330%0Aprod7370%0Aprod7371%0Aprod7450%0Aprod7470%0Aprod7476%0Aprod7490%0Aprod7492%0Aprod7501%0Aprod7570%0Aprod7590%0Aprod8150%0Aprod4301%0Aprod4331%0Aprod4341%0Aprod4401%0Aprod4402%0Aprod4440%0Aprod4500%0Aprod4540%0Aprod7301%0Aprod7302%0Aprod7330%0Aprod7370%0Aprod7431%0Aprod7450%0Aprod7470%0Aprod7476%0Aprod7490%0Aprod7491%0Aprod7492%0Aprod7501%0Aprod7570%0Aprod7590%0A/
  2. 0

    Seed job DSL: {code} job(type: Matrix) { name 'test1' scm { svn('redacted') } axes { text('board', readFileFromWorkspace('file') } } {code} console output: {code} Existing Templates: New Templates: Unreferenced Templates: Adding items: Existing items: GeneratedJob{jobName='test1', templateName=none} Removing items: Adding views: Existing views: Removing views: Finished: SUCCESS {code} jenkins log: {code} Sep 02, 2014 4:44:31 PM WARNING javaposse.jobdsl.plugin.JenkinsJobManagement createNewItem Error writing config for new item test1. java.io.IOException: Failed to create a temporary file in /mnt/jenkins-storage/jobs/test1/configurations/axis-board/prod4301%0Aprod4331%0Aprod4341%0Aprod4401%0Aprod4402%0Aprod4440%0Aprod4441%0Aprod4500%0Aprod4530%0Aprod4540%0Aprod7301%0Aprod7302%0Aprod7330%0Aprod7370%0Aprod7371%0Aprod7450%0Aprod7470%0Aprod7476%0Aprod7490%0Aprod7492%0Aprod7501%0Aprod7570%0Aprod7590%0Aprod8150%0Aprod4301%0Aprod4331%0Aprod4341%0Aprod4401%0Aprod4402%0Aprod4440%0Aprod4500%0Aprod4540%0Aprod7301%0Aprod7302%0Aprod7330%0Aprod7370%0Aprod7431%0Aprod7450%0Aprod7470%0Aprod7476%0Aprod7490%0Aprod7491%0Aprod7492%0Aprod7501%0Aprod7570%0Aprod7590%0A/ at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:67) at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:54) at hudson.XmlFile.write(XmlFile.java:175) at hudson.model.AbstractItem.save(AbstractItem.java:461) at hudson.model.Job.save(Job.java:166) at hudson.model.AbstractProject.save(AbstractProject.java:303) at hudson.matrix.MatrixProject.rebuildConfigurations(MatrixProject.java:644) at hudson.matrix.MatrixProject.onLoad(MatrixProject.java:505) at hudson.model.Items.load(Items.java:273) at hudson.model.ItemGroupMixIn$4.call(ItemGroupMixIn.java:258) at hudson.model.ItemGroupMixIn$4.call(ItemGroupMixIn.java:256) at hudson.model.Items.whileUpdatingByXml(Items.java:84) at hudson.model.ItemGroupMixIn.createProjectFromXML(ItemGroupMixIn.java:256) at jenkins.model.Jenkins.createProjectFromXML(Jenkins.java:2972) at javaposse.jobdsl.plugin.JenkinsJobManagement.createNewItem(JenkinsJobManagement.java:279) at javaposse.jobdsl.plugin.JenkinsJobManagement.createOrUpdateConfig(JenkinsJobManagement.java:107) at javaposse.jobdsl.dsl.DslScriptLoader.extractGeneratedJobs(DslScriptLoader.java:110) at javaposse.jobdsl.dsl.DslScriptLoader.runDslEngine(DslScriptLoader.java:93) at javaposse.jobdsl.plugin.ExecuteDslScripts.perform(ExecuteDslScripts.java:158) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:756) at hudson.model.Build$BuildExecution.build(Build.java:198) at hudson.model.Build$BuildExecution.doRun(Build.java:159) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) at hudson.model.Run.execute(Run.java:1706) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:232) Caused by: java.io.IOException: File name too long at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.createNewFile(File.java:1006) at java.io.File.createTempFile(File.java:1989) at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:65) ... 27 more {code} The seed job should have failed because it could not create the config for the new job.

    Jenkins JIRA | 2 years ago | Jordan Spiker
    java.io.IOException: Failed to create a temporary file in /mnt/jenkins-storage/jobs/test1/configurations/axis-board/prod4301%0Aprod4331%0Aprod4341%0Aprod4401%0Aprod4402%0Aprod4440%0Aprod4441%0Aprod4500%0Aprod4530%0Aprod4540%0Aprod7301%0Aprod7302%0Aprod7330%0Aprod7370%0Aprod7371%0Aprod7450%0Aprod7470%0Aprod7476%0Aprod7490%0Aprod7492%0Aprod7501%0Aprod7570%0Aprod7590%0Aprod8150%0Aprod4301%0Aprod4331%0Aprod4341%0Aprod4401%0Aprod4402%0Aprod4440%0Aprod4500%0Aprod4540%0Aprod7301%0Aprod7302%0Aprod7330%0Aprod7370%0Aprod7431%0Aprod7450%0Aprod7470%0Aprod7476%0Aprod7490%0Aprod7491%0Aprod7492%0Aprod7501%0Aprod7570%0Aprod7590%0A/
  3. 0

    Plumber persist error

    Google Groups | 7 months ago | Rishi Mishra
    java.io.IOException: File name too long
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Re: [druid-user] Plumber Persist error

    Google Groups | 6 months ago | Gian Merlino
    java.lang.RuntimeException: java.io.IOException: File name too long
  6. 0

    FULL PRODUCT VERSION : jdk1.7.0_80-b15 ADDITIONAL OS VERSION INFORMATION : Ubuntu 14.04.2 x64 A DESCRIPTION OF THE PROBLEM : A prefix and/or suffix value that is too long for a valid file name throws an exception instead of trimming to an appropriate length. According to the contract for this function: "To create the new file, the prefix and the suffix may first be adjusted to fit the limitations of the underlying platform. If the prefix is too long then it will be truncated, but its first three characters will always be preserved. If the suffix is too long then it too will be truncated, but if it begins with a period character ('.') then the period and the first three characters following it will always be preserved...." REGRESSION. Last worked in version 7u76 ADDITIONAL REGRESSION INFORMATION: This was working in: jdk1.7.0_60 STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Run tests provided in 'Source code for an executable test case'. Both tests should result in a file being successfully created. EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - The files should be created in each case. ACTUAL - The file fails to be created, and an IOException is thrown. ERROR MESSAGES/STACK TRACES THAT OCCUR : Caused by: java.io.IOException: File name too long at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.createTempFile(File.java:2001) REPRODUCIBILITY : This bug can be reproduced always. ---------- BEGIN SOURCE ---------- package com.foo; import org.testng.annotations.Test; import java.io.File; import java.io.IOException; @Test public class FileNameTest { @Test public void testFileNameLongPrefix() { try { File.createTempFile("1234567890123456789012345678901234567xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx89012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890","txt"); } catch ( IOException e ) { e.printStackTrace(); } } @Test public void testFileNameLongSuffix() { try { File.createTempFile("prefix","1234567890123456789012345678901234567xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx89012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890.txt"); } catch ( IOException e ) { e.printStackTrace(); } } } ---------- END SOURCE ----------

    JDK Bug System | 11 months ago | Webbug Group
    java.io.IOException: File name too long

  1. davidvanlaatum 2 times, last 1 week 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

    File name too long

    at java.io.UnixFileSystem.createFileExclusively()
  2. Java RT
    File.createTempFile
    1. java.io.UnixFileSystem.createFileExclusively(Native Method)
    2. java.io.File.createNewFile(File.java:1006)
    3. java.io.File.createTempFile(File.java:1989)
    3 frames
  3. Hudson
    ItemGroupMixIn.createProjectFromXML
    1. hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:65)
    2. hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:54)
    3. hudson.XmlFile.write(XmlFile.java:175)
    4. hudson.model.AbstractItem.save(AbstractItem.java:461)
    5. hudson.model.Job.save(Job.java:166)
    6. hudson.model.AbstractProject.save(AbstractProject.java:303)
    7. hudson.matrix.MatrixProject.rebuildConfigurations(MatrixProject.java:644)
    8. hudson.matrix.MatrixProject.onLoad(MatrixProject.java:505)
    9. hudson.model.Items.load(Items.java:273)
    10. hudson.model.ItemGroupMixIn$4.call(ItemGroupMixIn.java:258)
    11. hudson.model.ItemGroupMixIn$4.call(ItemGroupMixIn.java:256)
    12. hudson.model.Items.whileUpdatingByXml(Items.java:84)
    13. hudson.model.ItemGroupMixIn.createProjectFromXML(ItemGroupMixIn.java:256)
    13 frames
  4. jenkins.model
    Jenkins.createProjectFromXML
    1. jenkins.model.Jenkins.createProjectFromXML(Jenkins.java:2972)
    1 frame
  5. javaposse.jobdsl.plugin
    JenkinsJobManagement.createOrUpdateConfig
    1. javaposse.jobdsl.plugin.JenkinsJobManagement.createNewItem(JenkinsJobManagement.java:279)
    2. javaposse.jobdsl.plugin.JenkinsJobManagement.createOrUpdateConfig(JenkinsJobManagement.java:107)
    2 frames
  6. javaposse.jobdsl.dsl
    DslScriptLoader.runDslEngine
    1. javaposse.jobdsl.dsl.DslScriptLoader.extractGeneratedJobs(DslScriptLoader.java:110)
    2. javaposse.jobdsl.dsl.DslScriptLoader.runDslEngine(DslScriptLoader.java:93)
    2 frames
  7. javaposse.jobdsl.plugin
    ExecuteDslScripts.perform
    1. javaposse.jobdsl.plugin.ExecuteDslScripts.perform(ExecuteDslScripts.java:158)
    1 frame
  8. Hudson
    Executor.run
    1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:756)
    3. hudson.model.Build$BuildExecution.build(Build.java:198)
    4. hudson.model.Build$BuildExecution.doRun(Build.java:159)
    5. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
    6. hudson.model.Run.execute(Run.java:1706)
    7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    8. hudson.model.ResourceController.execute(ResourceController.java:88)
    9. hudson.model.Executor.run(Executor.java:232)
    9 frames