erlexec is present in the /erts-(version)/bin/ directory.
also encountered an error with the zip command copied from guide (zip not found? I just extracted the downloaded zip - not the renamed one & chowned the release directory for akkoma:akkoma) not sure if that could somehow affect installation.
also tried installing from source however several packages were out of date & compilation kept stopping.
the command I am trying to use is :
su akkoma -s $SHELL -lc “./bin/pleroma_ctl instance gen --output /etc/akkoma/config.exs --output-psql /tmp/setup_db.psql”
fails with error:
/opt/akkoma/releases/3.5.0-0-g63f2d1cbe/…/…/erts-13.1.2/bin/erl: 12: exec: /opt/akkoma/erts-13.1.2/bin/erlexec: not found
# Set the flavour environment variable to the string you got in Detecting flavour section.
# For example if the flavour is `amd64-musl` the command will be
export FLAVOUR="amd64-musl"
Also… you said the unzip command failed? did u use the full download command?
# Clone the release build into a temporary directory and unpack it
su akkoma -s $SHELL -lc "
curl 'https://akkoma-updates.s3-website.fr-par.scw.cloud/stable/akkoma-$FLAVOUR.zip' -o /tmp/akkoma.zip
unzip /tmp/akkoma.zip -d /tmp/
"
it could be you downlaoded the wrong flavor?
I’ve never seen your error, thats why i’m asking so much questions XD
I did use the full command, there was a peculiar error that amounted to like invalid package or file not found, however the zip could still be extracted normally.
also I just checked in akkoma ~ & the ownership is correct also I think permissions too, the akkoma user has x rights.
I still get this error on download - the transfer cuts out?
su akkoma -s $SHELL -lc "
> curl 'https://akkoma-updates.s3-website.fr-par.scw.cloud/stable/akkoma-$FLAVOUR.zip' -o /tmp/akkoma.zip
> unzip /tmp/akkoma.zip -d /tmp/
> "
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
83 19.3M 83 16.1M 0 0 237k 0 0:01:23 0:01:09 0:00:14 203k
curl: (56) OpenSSL SSL_read: Connection reset by peer, errno 104
Archive: /tmp/akkoma.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /tmp/akkoma.zip or
/tmp/akkoma.zip.zip, and cannot find /tmp/akkoma.zip.ZIP, period.
"!!! Config path is not declared! Please ensure it exists and that AKKOMA_CONFIG_PATH and/or PLEROMA_CONFIG_PATH is unset or points to an existing file
"
Oh… it works for me… i tried it before via sudo, there it didn’t set the variable correctly in the sudo env
root@rick-akkoma-1:~# su pleroma -s $SHELL -lc " echo $FLAVOUR
curl 'https://akkoma-updates.s3-website.fr-par.scw.cloud/stable/akkoma-$FLAVOUR.zip' -o /tmp/akkoma.zip
file /tmp/akkoma.zip
"
amd64
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 19.3M 100 19.3M 0 0 22.6M 0 --:--:-- --:--:-- --:--:-- 22.6M
/tmp/akkoma.zip: Zip archive data, at least v1.0 to extract, compression method=store