Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file permissions Issue - windows #1878

Closed
archanaNogriya opened this issue Jun 11, 2020 · 16 comments
Closed

file permissions Issue - windows #1878

archanaNogriya opened this issue Jun 11, 2020 · 16 comments
Assignees
Labels
buildbreak High priority issues that cause build breaks in jenkins or build scripts
Milestone

Comments

@archanaNogriya
Copy link
Contributor

jdk11u-windows-x64-openj9
https://ci.adoptopenjdk.net/view/Failing%20Builds/job/build-scripts/job/jobs/job/jdk11u/job/jdk11u-windows-x64-openj9/630/console

Execution error: Unable to get file permissions

@sxa
Copy link
Member

sxa commented Jun 11, 2020

@karianna Is there any chance this is caused by the copy permissions changes? It seems to be happening just after the installer has been built (installer job completed ok)

@karianna
Copy link
Contributor

@karianna Is there any chance this is caused by the copy permissions changes? It seems to be happening just after the installer has been built (installer job completed ok)

It could be although that is supposed to copy across as the Jenkins user. Do we have any visibility into what the user/group perms are?

@karianna
Copy link
Contributor

karianna commented Jun 11, 2020

From copyArtifact:

_Recommended usage of Copyartifact
Artifacts should be stored as archived files.

Copyartifact tries to copy artifacts preserving file attributes like permissions and symbolic links. Though, it may fail in some situations (like for security issues).

It’s highly recommended to pack files to copy into an archive file, using tar command or zip pipeline step, especially when it’s important for you to preserving file attributes or directory structures_

@sxa sxa transferred this issue from adoptium/infrastructure Jun 12, 2020
@sxa sxa added buildbreak High priority issues that cause build breaks in jenkins or build scripts duplicate Issues that are a duplicate of an issue in this (or another) repository labels Jun 12, 2020
@sxa sxa added this to TODO in temurin-build via automation Jun 12, 2020
@sxa sxa added this to the June 2020 milestone Jun 12, 2020
@sxa
Copy link
Member

sxa commented Jun 12, 2020

Potential duplicate of https://github.com/AdoptOpenJDK/openjdk-infrastructure/issues/1360 so marking as duplicate but leaving open until verified (#1871 is a potential fix)

@M-Davies
Copy link
Contributor

https://ci.adoptopenjdk.net/view/Failing%20Builds/job/build-scripts/job/jobs/job/jdk8u/job/jdk8u-windows-x86-32-openj9/596/console

19:43:49  Starting building: build-scripts » release » create_installer_windows #4760
[Pipeline] copyArtifacts
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] echo
19:48:08  Execution error: Unable to get file permissions

@M-Davies M-Davies changed the title file permissions Issue - jdk11u-windows-x64-openj9 file permissions Issue - *-windows-x64-openj9 Jun 16, 2020
@M-Davies M-Davies removed the duplicate Issues that are a duplicate of an issue in this (or another) repository label Jun 16, 2020
@M-Davies
Copy link
Contributor

M-Davies commented Jun 17, 2020

#1896 might print out the stacktrace for us

@M-Davies
Copy link
Contributor

M-Davies commented Jun 18, 2020

https://ci.adoptopenjdk.net/view/Failing%20Builds/job/build-scripts/job/jobs/job/jdk8u/job/jdk8u-windows-x64-openj9-windowsXL/330/console
https://ci.adoptopenjdk.net/view/Failing%20Builds/job/build-scripts/job/jobs/job/jdk8u/job/jdk8u-windows-x64-hotspot/648/console

19:02:41  Scheduling project: build-scripts » release » create_installer_windows
19:02:47  Starting building: build-scripts » release » create_installer_windows #4841
[Pipeline] copyArtifacts
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] echo
19:07:20  Execution error: hudson.os.PosixException: Unable to get file permissions null

@M-Davies M-Davies changed the title file permissions Issue - *-windows-x64-openj9 file permissions Issue - windows Jun 18, 2020
@adoptium adoptium deleted a comment from archanaNogriya Jun 18, 2020
@karianna
Copy link
Contributor

Can we print out the file permissions at that stage owner/group etc.

@M-Davies
Copy link
Contributor

M-Davies commented Jun 19, 2020

#1913 has been reverted since it caused build breaks (#1914).

@sxa
Copy link
Member

sxa commented Jun 19, 2020

@M-Davies Can you trigger a re-run of the builds affected by this please now that the fix is in?

@M-Davies
Copy link
Contributor

@M-Davies Can you trigger a re-run of the builds affected by this please now that the fix is in?

@sxa Done

@adamfarley
Copy link
Contributor

Could this be related to #1834?

These two websites show cases where a NoSuchFileException caused an exception that showed the same error that we're seeing here.

@andrew-m-leonard
Copy link
Contributor

I would suggest adding "debug" echos() to the groovy in the area we think this is occuring, and re-running repeatedly on a suitable Windows box...

@douph1
Copy link
Contributor

douph1 commented Jun 30, 2020

#1942 is a start of "debug echo" as it must print the full stacktrace and not just the message

@sxa sxa added this to To do in Top Priorities via automation Jun 30, 2020
@karianna karianna moved this from To do to In progress in Top Priorities Jun 30, 2020
@karianna karianna modified the milestones: June 2020, July 2020 Jul 1, 2020
@M-Davies
Copy link
Contributor

M-Davies commented Jul 8, 2020

I suspect @andrew-m-leonard fixed this when he increased the job retention as I haven't seen this for a while now. The error message we were getting would make sense as it wouldn't be possible to the file permissions if there was no file to get the permissions from!

@M-Davies M-Davies closed this as completed Jul 8, 2020
temurin-build automation moved this from In Progress to Done Jul 8, 2020
Top Priorities automation moved this from In progress to Done Jul 8, 2020
@gdams gdams removed this from Done in Top Priorities Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
buildbreak High priority issues that cause build breaks in jenkins or build scripts
Projects
No open projects
temurin-build
  
Done
Development

No branches or pull requests

7 participants