Hardware: Hetzner Cloud YunoHost version: 4.3.5 (stable) I have access to my server : through the webadmin Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
Hmyeah sounds like mobilizon’s package is using a similar piece of code than pleroma and they both use a temporary file with the same name that doesn’t get cleanedup …
You can just safely rm /tmp/setup_db.sql and try again
It doesn’t explain or give an answer to Aleks’ question of course: if it doesn’t work for you, it also should not work when creating and testing the app package.
There is a slight difference between sudo su and sudo su -, try it like this:
$ sudo su -
# pwd
# ls -ahls /tmp/setup_db.psql
# sudo -u postgres psql -f '/tmp/setup_db.psql' && rm '/tmp/setup_db.psql'
So, first change from admin to root by using sudo su -. The minus will load all of roots environment and startup variables and changes to roots home dir (as you see with pwd).
Then check if the setup_db still exists; if there is no result after the ls command, the setup-db has already been removed and you have to start at the beginning (installing the app from the catalog), so that the DB is recreated.
If the DB is available, sudo -u postgres to execute the setup as user postgres.
If you try installing Mobilizon from scratch, and then you run ls, does it exist after the installation fails?
Maybe the installation script tidies the mess after failing a step, and the setup_db.psql is deleted on exit.