Jazz Build Permissons error on LInux build machine
Using RTC 4.0.6
Executing a JAZZ Command line build using a Linux build machine.
The JBE is running. We logged onto the build machine as a normal user then did "su -" entered the root password and then started the build engine.
The User being used to execute the JBE has the Build System Licence allocated.
When the build executed it fails with a permissions error as below.
2014-12-08 11:45:10 [Jazz build engine] running on host: RTSLINUX.ibm.com
2014-12-08 11:45:10 [Jazz build engine] Should build occur?
2014-12-08 11:45:10 [Jazz build engine] Yes: Always build a user initiated request.
2014-12-08 11:45:10 [Jazz build engine] Invoking pre-build participant "com.ibm.team.build.jazzscm"
2014-12-08 11:45:11 [Jazz build engine] Accepting changes into workspace "CMD Stream Workspace" ...
2014-12-08 11:45:12 [Jazz build engine] Fetching files to fetch destination "/data/workspace/Build" ...
2014-12-08 11:46:47 [Jazz build engine] Invoking build participant "com.ibm.team.build.cmdline"
java.io.IOException: Cannot run program "/data/workspace/Build/Build_Files/wcbd-ant" (in directory "/data/workspace/Build/Build_Files"): java.io.IOException: error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at com.ibm.team.build.internal.engine.CommandLineBuildParticipant.execute(CommandLineBuildParticipant.java:312)
at com.ibm.team.build.internal.engine.CommandLineBuildParticipant.build(CommandLineBuildParticipant.java:108)
at com.ibm.team.build.internal.engine.BuildLoop.invokeBuildParticipants(BuildLoop.java:917)
at com.ibm.team.build.internal.engine.BuildLoop$2.run(BuildLoop.java:699)
at java.lang.Thread.run(Thread.java:736)
Caused by: java.io.IOException: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.<init>(UNIXProcess.java:252)
at java.lang.ProcessImpl.start(ProcessImpl.java:101)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 5 more
The Load Directory defined in the Build Definition is /data/workspace/Build
The permissions on the Build Machine are -
Any guidance is most appreciated.
Executing a JAZZ Command line build using a Linux build machine.
The JBE is running. We logged onto the build machine as a normal user then did "su -" entered the root password and then started the build engine.
The User being used to execute the JBE has the Build System Licence allocated.
When the build executed it fails with a permissions error as below.
2014-12-08 11:45:10 [Jazz build engine] running on host: RTSLINUX.ibm.com
2014-12-08 11:45:10 [Jazz build engine] Should build occur?
2014-12-08 11:45:10 [Jazz build engine] Yes: Always build a user initiated request.
2014-12-08 11:45:10 [Jazz build engine] Invoking pre-build participant "com.ibm.team.build.jazzscm"
2014-12-08 11:45:11 [Jazz build engine] Accepting changes into workspace "CMD Stream Workspace" ...
2014-12-08 11:45:12 [Jazz build engine] Fetching files to fetch destination "/data/workspace/Build" ...
2014-12-08 11:46:47 [Jazz build engine] Invoking build participant "com.ibm.team.build.cmdline"
java.io.IOException: Cannot run program "/data/workspace/Build/Build_Files/wcbd-ant" (in directory "/data/workspace/Build/Build_Files"): java.io.IOException: error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at com.ibm.team.build.internal.engine.CommandLineBuildParticipant.execute(CommandLineBuildParticipant.java:312)
at com.ibm.team.build.internal.engine.CommandLineBuildParticipant.build(CommandLineBuildParticipant.java:108)
at com.ibm.team.build.internal.engine.BuildLoop.invokeBuildParticipants(BuildLoop.java:917)
at com.ibm.team.build.internal.engine.BuildLoop$2.run(BuildLoop.java:699)
at java.lang.Thread.run(Thread.java:736)
Caused by: java.io.IOException: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.<init>(UNIXProcess.java:252)
at java.lang.ProcessImpl.start(ProcessImpl.java:101)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 5 more
The Load Directory defined in the Build Definition is /data/workspace/Build
The permissions on the Build Machine are -
Any guidance is most appreciated.
Accepted answer
I don't know exactly how you would want to set the permissions, but one permission group must have eXecute set
you would use the chmod command to set the permissions. 744 would give root (the owner) permission to reade/write and execute , and all others just read
you would use the chmod command to set the permissions. 744 would give root (the owner) permission to reade/write and execute , and all others just read
Basic File Permissions
Permission Groups
Each file and directory has three user based permission groups:
- owner - The Owner permissions apply only the owner of the file or directory, they will not impact the actions of other users.
- group - The Group permissions apply only to the group that has been assigned to the file or directory, they will not effect the actions of other users.
- all users - The All Users permissions apply to all other users on the system, this is the permission group that you want to watch the most.
Permission Types
Each file or directory has three basic permission types:
- read - The Read permission refers to a user's capability to read the contents of the file.
- write - The Write permissions refer to a user's capability to write or modify a file or directory.
- execute - The Execute permission affects a user's capability to execute a file or view the contents of a directory.
Comments
sam detweiler
Dec 08 '14, 8:03 a.m.David Beange
Dec 08 '14, 8:27 a.m.sam detweiler
Dec 08 '14, 8:36 a.m.David Beange
Dec 08 '14, 8:39 a.m.