Not able to install Pleroma

What type of hardware are you using: Raspberry Pi 3, 4+
What YunoHost version are you running: 11.2.30.2
What app is this about: Pleroma

Describe your issue

When trying to install pleroma, there was an issue with the installation script. The password only consisted of simple characters and I tried different ones. The logs are below.

Share relevant logs or error messages

Warning: Here's an extract of the logs before the crash. It might help debugging the error:
Info: DEBUG - + ynh_exec_as pleroma -i /var/www/pleroma/live/bin/pleroma_ctl instance gen --force --output /etc/pleroma/config.exs --output-psql /tmp/setup_db.psql --domain saturno.red --instance-name saturno --admin-email jorge@saturno.red --notify-email jorge@saturno.red --dbhost localhost --dbname pleroma --dbuser pleroma --dbpass ********** --rum N --indexable Y --db-configurable Y --uploads-dir /home/yunohost.app/pleroma/uploads --static-dir /home/yunohost.app/pleroma/static --listen-ip 127.0.0.1 --listen-port 8095 --strip-uploads-location Y --read-uploads-description Y --anonymize-uploads Y --dedupe-uploads Y
Info: DEBUG - + local user=pleroma
Info: DEBUG - + shift 1
Info: DEBUG - ++ whoami
Info: DEBUG - + [[ pleroma = root ]]
Info: DEBUG - + sudo -u pleroma -i /var/www/pleroma/live/bin/pleroma_ctl instance gen --force --output /etc/pleroma/config.exs --output-psql /tmp/setup_db.psql --domain saturno.red --instance-name saturno --admin-email jorge@saturno.red --notify-email jorge@saturno.red --dbhost localhost --dbname pleroma --dbuser pleroma --dbpass ********** --rum N --indexable Y --db-configurable Y --uploads-dir /home/yunohost.app/pleroma/uploads --static-dir /home/yunohost.app/pleroma/static --listen-ip 127.0.0.1 --listen-port 8095 --strip-uploads-location Y --read-uploads-description Y --anonymize-uploads Y --dedupe-uploads Y
Info: DEBUG -
Info: DEBUG - Wi-Fi is currently blocked by rfkill.
Info: DEBUG - Use raspi-config to set the country before use.
Info: DEBUG -
Info: DEBUG - !!! Config path is not declared! Please ensure it exists and that PLEROMA_CONFIG_PATH is unset or points to an existing file
Info: DEBUG - Writing config to /etc/pleroma/config.exs.
Info: DEBUG - Writing the postgres script to /tmp/setup_db.psql.
Info: DEBUG - ** (File.CopyError) could not copy from "/home/yunohost.app/pleroma/static/robots.txt" to "/home/yunohost.app/pleroma/static/robots.txt.bak": permission denied
Info: DEBUG -     (elixir 1.11.4) lib/file.ex:817: File.cp!/3
Info: DEBUG -     (pleroma 2.6.2) lib/mix/tasks/pleroma/instance.ex:316: Mix.Tasks.Pleroma.Instance.write_robots_txt/3
Info: DEBUG -     (pleroma 2.6.2) lib/mix/tasks/pleroma/instance.ex:287: Mix.Tasks.Pleroma.Instance.run/1
Info: DEBUG -     (stdlib 3.14.2.3) erl_eval.erl:680: :erl_eval.do_apply/6
Info: DEBUG -     (elixir 1.11.4) lib/code.ex:341: Code.eval_string_with_error_handling/3
Info: DEBUG - + ynh_exit_properly
Warning: Removing the app after installation failure…
``

It has been fixed after deleting the old pleroma directory: /home/yunohost.app/pleroma/

1 Like