Project

General

Profile

Actions

Bug #23919

open

installer breaks if TMPDIR and/or TMP is set.

Added by Han Boetes almost 6 years ago. Updated almost 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

With help from I found out the installer fails if TMP and/or TMPDIR is set to a directory not writable by user other than root.

  1. foreman-rake db:migrate db:seed
    mktemp: failed to create file via template ‘/root/.local/tmp/tmp.XXXXXXXXXX’: Permission denied
    /usr/bin/tfm-rake: line 6: $TMP: ambiguous redirect
    /usr/bin/tfm-rake: line 8: $TMP: ambiguous redirect
    /usr/bin/tfm-rake: line 8: $TMP: ambiguous redirect
    bash: no job control in this shell

after unsetting TMP and TMPDIR and running the installer again, the installation finishes succesfully.

Actions #1

Updated by Han Boetes almost 6 years ago

I'd also like to mention that the installer should have stopped when the db setup failed. It simply continued and made me search for something unrelated.

Actions #2

Updated by Ewoud Kohl van Wijngaarden almost 6 years ago

I suspect this is actually an issue in foreman-rake which is a bash script. I suspect that it exits with code 0 so the installer continues.

Actions

Also available in: Atom PDF