silverstripe / sspak

Tool for managing bundles of db/assets from Silverstripe environments
http://silverstripe.github.io/sspak/
BSD 3-Clause "New" or "Revised" License
47 stars 34 forks source link

Latest version failing to create temp build dir #80

Open purplespider opened 3 years ago

purplespider commented 3 years ago

After reinstalling sspak on my iMac, it would fail with an error about being unable to create the temp folder:

$ sspak save --db user@host db.sspak

Command: ssh -t 'user@host' 'mkdir '\''/var/folders/_m/9n7ryp613nz33y5bs9mqs9vc0000gn/T/sspak-680110'\'''
Execution failed: returned 1.
Output:
mkdir: cannot create directory ‘/var/folders/_m/9n7ryp613nz33y5bs9mqs9vc0000gn/T/sspak-680110’: No such file or directory

After trying many things to resolve it (such as testing that PHP could actually create a dir in the above location - it could), I copied the version of sspak from my laptop (into /usr/local/bin) and it works fine. So it seems the issue has been introduced into the current release at some point.

Maybe this PR is related: https://github.com/silverstripe/sspak/pull/75 However I did try installing the latest version and adding TMPDIR="/tmp" to the command to see if it was the change in default temp directory that was causing it, but I still received the error.

lerni commented 3 years ago

I've ended up setting sys_temp_dir = "/tmp" in php.ini for PHP-CLI-Setup to smoothly run sspak