[JIRA] (JENKINS-55597) Jenkins JNLP agent disconnects when it fails to delete an old build workspace
Title: Message Title Liam Newman commented on JENKINS-55597 Re: Jenkins JNLP agent disconnects when it fails to delete an old build workspace James Howe This will be in LTS 2.176.1. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.196765.1547550769000.10330.1558623480292%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55597) Jenkins JNLP agent disconnects when it fails to delete an old build workspace
Title: Message Title James Howe updated an issue Jenkins / JENKINS-55597 Jenkins JNLP agent disconnects when it fails to delete an old build workspace Change By: James Howe Component/s: remoting Component/s: ssh-agent-plugin Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.196765.1547550769000.609.1557852840261%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55597) Jenkins JNLP agent disconnects when it fails to delete an old build workspace
Title: Message Title James Howe updated an issue Jenkins / JENKINS-55597 Jenkins JNLP agent disconnects when it fails to delete an old build workspace Change By: James Howe Component/s: ssh-agent-plugin Component/s: ws-cleanup-plugin Component/s: _unsorted Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.196765.1547550769000.601.1557852780362%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55597) Jenkins JNLP agent disconnects when it fails to delete an old build workspace
Title: Message Title Liam Newman commented on JENKINS-55597 Re: Jenkins JNLP agent disconnects when it fails to delete an old build workspace Okay, I was wrong about security only, it turns out to be just adding a label, which I've done for JENKINS-57111. We'll see how that goes. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.196765.1547550769000.591.1557852300353%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55597) Jenkins JNLP agent disconnects when it fails to delete an old build workspace
Title: Message Title James Howe commented on JENKINS-55597 Re: Jenkins JNLP agent disconnects when it fails to delete an old build workspace To justify a security patch, any user who can submit a job the uses Docker can probably use this to make a DoS attack. That's how I'm getting it - the docker container runs as root and can write to the workspace, resulting in files the jenkins user cannot delete. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.196765.1547550769000.579.1557851940436%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55597) Jenkins JNLP agent disconnects when it fails to delete an old build workspace
Title: Message Title James Howe edited a comment on JENKINS-55597 Re: Jenkins JNLP agent disconnects when it fails to delete an old build workspace To justify a security patch, any user who can submit a job the that uses Docker can probably use this to make a DoS attack.That's how I'm getting it - the docker container runs as root and can write to the workspace, resulting in files the jenkins user cannot delete. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.196765.1547550769000.581.1557851940472%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55597) Jenkins JNLP agent disconnects when it fails to delete an old build workspace
Title: Message Title Liam Newman edited a comment on JENKINS-55597 Re: Jenkins JNLP agent disconnects when it fails to delete an old build workspace [~jameshowe]It is my understanding the LTS backporting is reserved for security issues and we missed the window for 2.164.3. The next LTS will be out in June, but the base looks like it will be 2.176 - missed by one. I will see what I can do to get this pulled into that release. In the meanwhile, do you have test instance you can try on 2.177 and verify this is fixed? That would be very helpful. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.196765.1547550769000.561.1557851460345%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55597) Jenkins JNLP agent disconnects when it fails to delete an old build workspace
Title: Message Title Liam Newman commented on JENKINS-55597 Re: Jenkins JNLP agent disconnects when it fails to delete an old build workspace James Howe It is my understanding the LTS backporting is reserved for security issues and we missed the window for 2.164.3. The next LTS will be out in June, but the base looks like it will be 2.176 - missed by one. I will see what I can do to get this pulled into that release. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.196765.1547550769000.557.1557850680418%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55597) Jenkins JNLP agent disconnects when it fails to delete an old build workspace
Title: Message Title James Howe commented on JENKINS-55597 Re: Jenkins JNLP agent disconnects when it fails to delete an old build workspace This also appears to affect SSH agents in 2.164.3, although the exception is a channel EOF instead of the FileSystemException. Deleting the directory manually allows the agent to startup correctly. Can this fix be ported to LTS please? Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.196765.1547550769000.33.1557827400268%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55597) Jenkins JNLP agent disconnects when it fails to delete an old build workspace
Title: Message Title Liam Newman resolved as Fixed Jenkins / JENKINS-55597 Jenkins JNLP agent disconnects when it fails to delete an old build workspace Change By: Liam Newman Status: Open Resolved Resolution: Fixed Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.196765.1547550769000.1581.1557758521078%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55597) Jenkins JNLP agent disconnects when it fails to delete an old build workspace
Title: Message Title Liam Newman commented on JENKINS-55597 Re: Jenkins JNLP agent disconnects when it fails to delete an old build workspace I believe this is fixed in Jenkins v2.177. Please comment if this should be reopened. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.196765.1547550769000.1583.1557758521098%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55597) Jenkins JNLP agent disconnects when it fails to delete an old build workspace
Title: Message Title Sean Talts commented on JENKINS-55597 Re: Jenkins JNLP agent disconnects when it fails to delete an old build workspace Same. My workaround so far has just been to log in to the machines and manually rm -rf the entire workspace. Unfortunately I have to do this every time Jenkins is restarted to e.g. install updates. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55597) Jenkins JNLP agent disconnects when it fails to delete an old build workspace
Title: Message Title Ryan Lopez commented on JENKINS-55597 Re: Jenkins JNLP agent disconnects when it fails to delete an old build workspace We are running into the same problem described above. Jenkins tries to delete files which are created by a Docker script as owned by root with no regular user write permissions. Jenkins tries to clean up the obsolete workspaces and immediately disconnects and reconnects. If anyone knows of a workaround or fix, we are very interested. Thanks! Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55597) Jenkins JNLP agent disconnects when it fails to delete an old build workspace
Title: Message Title Dan Berindei created an issue Jenkins / JENKINS-55597 Jenkins JNLP agent disconnects when it fails to delete an old build workspace Issue Type: Bug Assignee: Unassigned Components: _unsorted Created: 2019-01-15 11:12 Priority: Major Reporter: Dan Berindei The agent stays up, but the status in the dashboard keeps changing from online to offline and back. The server-side log at https://X/computer/Y/log shows these messages in a loop: JNLP agent connected from Y/Z Remoting version: 3.28 This is a Unix agent deleting obsolete workspace /home/infinispan/workspace/Openshift_Services_PR-141 java.nio.file.FileSystemException: /home/infinispan/workspace/Openshift_Services_PR-141/openshift.local.clusterup/openshift.local.volumes/pods: Operation not permitted at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238) at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260) at java.nio.file.Files.setPosixFilePermissions(Files.java:2045) at hudson.Util.makeWritable(Util.java:337) at hudson.Util.tryOnceDeleteFile(Util.java:297) at hudson.Util.deleteFile(Util.java:272) Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from nat-pool-rdu-t.redhat.com/66.187.233.202:45016 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1743) at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357) at hudson.remoting.Channel.call(Channel.java:957) at hudson.FilePath.act(FilePath.java:1072) at hudson.FilePath.act(FilePath.java:1061