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.
After reinstalling sspak on my iMac, it would fail with an error about being unable to create the temp folder:
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.