View Issue Details

IDProjectCategoryView StatusLast Update
0002490Slicer4Core: Building (CMake, Superbuild)public2014-03-06 04:51
Reporterpieper Assigned Tojcfr  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version 
Target VersionSlicer 4.2.0Fixed in VersionSlicer 4.2.0 
Summary0002490: nightly test machine can't create temp dir (factory-mac-64bits.kitware)
Description

Several nightly tests fail on the mac factory machine with messages like the following. These do not occur on my mac experimental builds so I suspect there is a permission issue with the temp folder on the factory machine (perhaps the tests were run as root at one point?).

"Failed to create temporary directory" "/var/folders/Vz/VzBfKYBvEcmMWKvFIHB9q++++TI/-Tmp-"
ERROR

This will make it impossible to get a green dashboard.

Steps To Reproduce

See, for example:

http://slicer.cdash.org/testDetails.php?test=2884438&build=38605

TagsNo tags attached.

Activities

jcfr

jcfr

2012-09-19 12:26

administrator   ~0006137

// ------------
Jean­Christophe Fillion­Robin - Tue, Sep 18, 2012 at 6:25 PM

Dear Sysadmins,
On macosx, some tests fail because it's not possible to create a temporary directory:
"Failedtocreatetemporarydirectory""/var/folders/Vz/VzBfKYBvEcmMWKvFIHB9q++++TI/­Tmp­"
Seehttp://slicer.cdash.org/testDetails.php?test=2915633&build=39626
Is there any configuration to change on MacOsx to allow the creation of directory in "/var/folders" ? Manually creating folder
like "/var/folders/Vz" also fail.
Thanks for your help,
Jc
­­
// ------------
Bill Hoffman - Tue, Sep 18, 2012 at 6:28 PM

Is there an env var that can be set to specify temp?
­ sent from my open source android phone.

// ------------
Steve Pieper - Tue, Sep 18, 2012 at 7:36 PM

Hi Bill ­
Slicer uses Qt to get a temp path:
https://github.com/Slicer/Slicer/blob/master/Base/QTCore/qSlicerCoreApplication.cxx#L993
http://doc.qt.digia.com/4.7­snapshot/qdir.html#tempPath
On mac, this is no longer in /tmp, but is in the /var/folders
directory in an obfuscated path (which, BTW, is not deleted on reboot
­ I guess it's so mac apps can start up again where they left off).
On several macs that I use, the /var/folders directories for slicer
are always writable by the user running slicer. That's why I suspect
that slicer might have been run originally as root on this machine and9/19/12 Kitware Inc. Mail - Slicer factory - Write access to /var/folders/
https://mail.google.com/mail/u/1/?ui=2&ik=e554963425&view=pt&search=inbox&th=… 2/3
now regular users (or at least the nightly test user) can't update the
directory.
Best,
Steve

// ------------
Matthew Bowman - Wed, Sep 19, 2012 at 8:45 AM

Seems other apps on the system have directories under /var/folders, but are owned by a specific user, not root.
There isn't a Vz directory that's owned by the kitware user, I suppose we can create the directory then change permissions. But,
shouldn't the directory been setup at some point?
matt

// ------------
Jean­Christophe Fillion­Robin - Wed, Sep 19, 2012 at 11:40 AM

Hi Folks,
Thanks for your help and comments.
Matt> I guess creating the "Vz" folder with the appropriate rights could be a good solution to help us moving forward. Would it be
possible for you to create such folder ?
I also found the following info regarding "/var/folder":

  1. Run Disk Utility's permission repair to make sure ownership & permissions are correct on /var & its subfolders. Running Disk Utility's Verify Disk
    step is also
    good idea to make sure a file system error is not causing an issue.
    See http://support­remote.splashtop.com/entries/20786992­installation­failed­cannot­create­folder­var­folder­in­lion­os
    Thanks
    Jc

// ------------
Matthew Bowman - Wed, Sep 19, 2012 at 12:31 PM

Ok
Directory created, owned by kitware

// ------------
Jean­Christophe Fillion­Robin - Wed, Sep 19, 2012 at 4:17 PM

Thanks Matt. The error related to tmp directory doesn't occur anymore.

jcfr

jcfr

2014-03-06 04:50

administrator   ~0010728

Closing resolved issues that have not been updated in more than 3 months

Issue History

Date Modified Username Field Change
2012-09-10 06:35 pieper New Issue
2012-09-10 06:35 pieper Status new => assigned
2012-09-10 06:35 pieper Assigned To => jcfr
2012-09-19 12:26 jcfr Note Added: 0006137
2012-09-19 12:26 jcfr Status assigned => resolved
2012-09-19 12:26 jcfr Fixed in Version => Slicer 4.2.0 - coming release
2012-09-19 12:26 jcfr Resolution open => fixed
2014-03-06 04:50 jcfr Note Added: 0010728
2014-03-06 04:51 jcfr Status resolved => closed