The eKasa API installer for Linux (NineDigit.eKasa.API-<platform>-<version>.sh, platform linux-x64 or linux-arm64) stops right after printing Copying to a temporary location... with an error similar to this:
Copying to a temporary location...
./NineDigit.eKasa.API-linux-x64-<version>.sh: 607: exec: /tmp/makeself.<…>/makeself: Permission denied
The installation does not even start: nothing is installed and the existing installation stays as it was.
Cause
Before installing, the installer unpacks itself to a temporary folder, /tmp by default, and runs from there. If /tmp is mounted with the noexec option (for example on servers hardened according to CIS recommendations), the system refuses to run it. The eKasa API service itself is not affected by such a /tmp.
Check for the noexec option with this command:
findmnt -no OPTIONS -T /tmp
If the output contains noexec, continue with the fix below.
Fix
Run the installer with a temporary folder from which execution is allowed, for example in your home folder:
mkdir -p ~/tmp
TMPDIR=~/tmp ./NineDigit.eKasa.API-linux-x64-<version>.sh
Run the installer as a regular user, not as root: it asks for administrator rights through sudo when needed. It deletes its temporary files when done. If you created the ~/tmp folder only for the installation, you can delete it afterwards.