“hudson.util.IOException2:无法创建临时文件”

发布于 2025-01-08 13:36:47 字数 1819 浏览 0 评论 0原文

我今天来上班,发现我的哈德逊有这个问题!我尝试过研究,但没有发现任何对我有帮助的东西。

遵循完整堆栈:

hudson.util.IOException2: Failed to create a temp file on /home/cpcaserver5/.hudson/jobs/SVN/workspace
    at hudson.FilePath.createTextTempFile(FilePath.java:966)
    at hudson.tasks.CommandInterpreter.createScriptFile(CommandInterpreter.java:124)
    at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:68)
    at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:60)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
    at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:630)
    at hudson.model.Build$RunnerImpl.build(Build.java:175)
    at hudson.model.Build$RunnerImpl.doRun(Build.java:137)
    at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:429)
    at hudson.model.Run.run(Run.java:1366)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:145)
Caused by: hudson.util.IOException2: Failed to create a temporary directory in /etc/tomcat6/apache-tomcat-6.0.35/temp
    at hudson.FilePath$12.invoke(FilePath.java:955)
    at hudson.FilePath$12.invoke(FilePath.java:944)
    at hudson.FilePath.act(FilePath.java:758)
    at hudson.FilePath.act(FilePath.java:740)
    at hudson.FilePath.createTextTempFile(FilePath.java:944)
    ... 12 more
Caused by: java.io.IOException: Permission denied
    at java.io.UnixFileSystem.createFileExclusively(Native Method)
    at java.io.File.checkAndCreate(File.java:1716)
    at java.io.File.createTempFile(File.java:1804)
    at hudson.FilePath$12.invoke(FilePath.java:953)
    ... 16 more
Email was triggered for: Failure
Sending email for trigger: Failure

I came to work today and i found my hudson with this problem! I've tried to research, but i didn't found anything that help me.

Follow the full stack:

hudson.util.IOException2: Failed to create a temp file on /home/cpcaserver5/.hudson/jobs/SVN/workspace
    at hudson.FilePath.createTextTempFile(FilePath.java:966)
    at hudson.tasks.CommandInterpreter.createScriptFile(CommandInterpreter.java:124)
    at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:68)
    at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:60)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
    at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:630)
    at hudson.model.Build$RunnerImpl.build(Build.java:175)
    at hudson.model.Build$RunnerImpl.doRun(Build.java:137)
    at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:429)
    at hudson.model.Run.run(Run.java:1366)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:145)
Caused by: hudson.util.IOException2: Failed to create a temporary directory in /etc/tomcat6/apache-tomcat-6.0.35/temp
    at hudson.FilePath$12.invoke(FilePath.java:955)
    at hudson.FilePath$12.invoke(FilePath.java:944)
    at hudson.FilePath.act(FilePath.java:758)
    at hudson.FilePath.act(FilePath.java:740)
    at hudson.FilePath.createTextTempFile(FilePath.java:944)
    ... 12 more
Caused by: java.io.IOException: Permission denied
    at java.io.UnixFileSystem.createFileExclusively(Native Method)
    at java.io.File.checkAndCreate(File.java:1716)
    at java.io.File.createTempFile(File.java:1804)
    at hudson.FilePath$12.invoke(FilePath.java:953)
    ... 16 more
Email was triggered for: Failure
Sending email for trigger: Failure

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

数理化全能战士 2025-01-15 13:36:47

您似乎遇到了权限问题。确保使用适当的用户权限运行 Jenkins/Tomcat。如果这种情况发生在从属设备上,情况也是如此 - 检查从属进程是否以具有适当权限的用户身份运行。

It looks like you have a permissions problem. Make sure you run Jenkins/Tomcat with appropriate user permissions. Ditto if this happens on a slave - check that slave process runs as a user that has appropriate permissions.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文