Closed valdemon closed 5 years ago
Have you also installed the Kubernetes CLI via Homebrew?
Have you changed your TMPDIR
environment variable? The code that is failing is trying to read a temporary file, and it looks like it's having a permission problem.
Does TMPDIR=/tmp rp version
work?
Hi @TimMoore,
Kubernetes CLI via Homebrew?
- yesHave you changed your TMPDIR environment variable?
- no - it points to a standard macOS fancy temp dir, sth like /var/folders/3c/qprb4lkx361bk1yfx0blbm_cdkyv1c/T
- have cleaned it up, but it hasn't helped. The folder permissions are drwxr-x---
.Does TMPDIR=/tmp rp version work?
- yes it does and can be considered as a workaround, but the issue remains I guess, maybe at least the error message could be more explanatory?@valdemon catching the error and wrapping it with a more descriptive one is a good idea. I'd like to understand what's causing it better, so that it can provide a useful message.
I agree that overriding TMPDIR
is not a great solution. I only suggested it as a debugging aid.
It looks like your user account doesn't have permissions to read the file from $TMPDIR
. Can you help troubleshoot why? Is your user account an administrator account or a standard account? What's the full output of ls -ld $TMPDIR
? Here's mine (where my username is tmoore
, and I'm running macOS Mojave):
[13:23:01] ~ $ ls -ld $TMPDIR
drwx------@ 155 tmoore staff 4960 26 Nov 13:11 /var/folders/2l/q3hcf61d60536v6jm0tlmh800000gn/T/
The permissions look similar (actually more restrictive), but the directory is owned by my user account. What about on your machine?
There's this related discussion thread as well https://discuss.lightbend.com/t/reactive-cli-on-mac-throwing-exception/1744/3
Lightbend Orchestration is no longer actively developed and will reach its End of Life on April 15, 2020.
We recommend Migrating to the Improved Kubernetes Deployment Experience.
Seems the same as #166 .
Called with
sudo
once, as suggested in https://github.com/lightbend/reactive-cli/issues/166#issuecomment-411891944 - hasn't helped though.macOS Sierra, v. 10.12.6