Bug #4239

Mac OS X binary build fails due to access denied exception

Added by Knödlseder Jürgen over 1 year ago. Updated over 1 year ago.

Status:FeedbackStart date:03/27/2023
Priority:NormalDue date:
Assigned To:Knödlseder Jürgen% Done:

100%

Category:-
Target version:-
Duration:

Description

The Mac OS X binary build fails with the following message:

java.io.IOException: remote file operation failed: /Users/jenkins/jenkins/workspace/ctools-cr-osx at hudson.remoting.Channel@54e7e181:Mac OS 10.11: java.nio.file.AccessDeniedException: 

It turned out that the ctools.egg-info directory in the ctools-cr-osx is owned by root while all other files are owned by jenkins:
$ ls -l pkg_build/src/ctools-2.1.0.dev/pyext/
total 232
-rw-r--r--  1 jenkins  staff  27643 27 mar 14:31 Makefile
-rwxr-xr-x  1 jenkins  staff   9094 27 mar 09:46 Makefile.am
-rw-r--r--  1 jenkins  staff  29847 27 mar 09:46 Makefile.in
drwxr-xr-x  6 root     staff    204 27 mar 14:33 ctools.egg-info
-rwxr-xr-x  1 jenkins  staff   2642 27 mar 09:46 ctphase.i
-rwxr-xr-x  1 jenkins  staff   2607 27 mar 09:46 ctprob.i
-rwxr-xr-x  1 jenkins  staff   2682 27 mar 09:46 ctpsfcube.i
-rwxr-xr-x  1 jenkins  staff   2624 27 mar 09:46 ctselect.i
-rwxr-xr-x  1 jenkins  staff   2847 27 mar 09:46 ctskymap.i
-rwxr-xr-x  1 jenkins  staff   2707 27 mar 09:46 cttsmap.i
-rwxr-xr-x  1 jenkins  staff   2741 27 mar 09:46 ctulimit.i
-rw-r--r--  1 jenkins  staff   7739 27 mar 14:31 setup.py
-rwxr-xr-x  1 jenkins  staff   8044 27 mar 09:46 setup.py.in


Recurrence

No recurrence.

History

#1 Updated by Knödlseder Jürgen over 1 year ago

  • % Done changed from 0 to 10

Running

$ sudo chown -R jenkins pkg_build/src/ctools-2.1.0.dev/pyext/ctools.egg-info
fixed the issue, hence I may try to add this command to Jenkins.

#2 Updated by Knödlseder Jürgen over 1 year ago

  • Status changed from New to Feedback
  • Assigned To set to Knödlseder Jürgen
  • % Done changed from 10 to 100

This seems to have fixed the problem.

Also available in: Atom PDF