YunoHost-Apps / pleroma_ynh

Pleroma package for YunoHost: A free, federated social networking server built on open protocols.
https://pleroma.social/
GNU Affero General Public License v3.0
30 stars 11 forks source link

installation failed #270

Open chri2 opened 1 month ago

chri2 commented 1 month ago

When trying to install Pleroma it failed with DEBUG - !!! Config path is not declared! Please ensure it exists and that PLEROMA_CONFIG_PATH is unset or points to an existing file.

Update: The below doesn't seem to be the reason, because it didn't work with the directory removed

root@link-goe:~# ls -ld /home/yunohost.app/pleroma
drwxr-x--- 4 988 988 4096  8. Sep 2022  /home/yunohost.app/pleroma

I didn't remember I already had the app installed sometimes. My old 20220915-112001-app_remove-pleroma.log is empty for some reason.

Maybe this is already fixed when removing a more recent version.

chri2 commented 1 month ago
98166 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 dorfbrunnen.ween.de --instance-name 'Dorfbrunnen Weende' --admin-email admin_chris@link-goe.de --notify-email admin_chris@link-goe.de --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 8097 --strip-uploads-location Y --read-uploads-description Y --anonymize-uploads Y --dedupe-uploads Y
98168 INFO DEBUG - !!! Config path is not declared! Please ensure it exists and that PLEROMA_CONFIG_PATH is unset or points to an existing file
98169 INFO DEBUG - ** (MatchError) no match of right hand side value: {[force: true, output: "/etc/pleroma/config.exs", output_psql: "/tmp/setup_db.psql", domain: "dorfbrunnen.ween.de", instance_name: "Dorfbrunnen", admin_email: "admin_chris@link-goe.de", notify_email: "admin_chris@link-goe.de", 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: "8097", strip_uploads_location: "Y", read_uploads_description: "Y", anonymize_uploads: "Y", dedupe_uploads: "Y"], ["Weende"], []}
98171 INFO DEBUG -     (pleroma 2.6.2) lib/mix/tasks/pleroma/instance.ex:15: Mix.Tasks.Pleroma.Instance.run/1
98173 INFO DEBUG -     (stdlib 3.14.2.3) erl_eval.erl:680: :erl_eval.do_apply/6
98176 INFO DEBUG -     (elixir 1.11.4) lib/code.ex:341: Code.eval_string_with_error_handling/3
chri2 commented 1 month ago

Either my --label "two words" or --args "…name= two words… broke the installation.

Replacing the string "two words" with "two_words" made the install work.