Unzip: cannot find zipfile directory in one of /tmp/akkoma.zip - Is the archive corrupt?

I have zip/unzip utility installed. Is the archive to the link in the installation guide corrupt?

When I run the following.

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/

I get the following.

 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   268    0   268    0     0    407      0 --:--:-- --:--:-- --:--:--   407
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.

I’m using the steps as documented here: Installing on Linux using OTP releases - Akkoma Documentation

Have you actually set the FLAVOUR variable?

1 Like

Gosh. I could have sworn I did that. Did it again now it’s working.

But now I’m getting su: user postgres does not exist

after I enter the following:
su postgres -s $SHELL -lc "psql -f /tmp/setup_db.psql"

I’m on Ubuntu 20.04 BTW. Followed all the pre-installation steps.

Have you actually installed postgresql?

Yes. Good sir. See postgresql below.

apt install curl unzip libncurses5 postgresql postgresql-contrib nginx certbot libmagic-dev