Can't install Bookwyrm

My YunoHost server

Hardware: : VPS : 2 CPU, 2GB ram (at Hetzner)
YunoHost version: 11.2.5
I have access to my server : Through SSH & through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If your request is related to an app, specify its name and version: bookwyrm v0.6.6~ynh1
OS : Debian Bullseys

My issue

Hello,
I try to install Bookwyrm, but I always get this error.
What’s happened ?

  app: bookwyrm
  force: false
  label: undefined
  no_remove_on_failure: false
ended_at: 2023-11-19 05:46:34.309007
env:
  YNH_APP_ACTION: install
  YNH_APP_ARG_ADMIN: wiltur
  YNH_APP_ARG_DOMAIN: biblio.maindomain.tld
  YNH_APP_ARG_INIT_MAIN_PERMISSION: visitors
  YNH_APP_ARG_LANGUAGE: fr-fr
  YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_bln1p5cs
  YNH_APP_ID: bookwyrm
  YNH_APP_INSTANCE_NAME: bookwyrm
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_APP_MANIFEST_VERSION: 0.6.6~ynh1
  YNH_APP_PACKAGING_FORMAT: '2.0'
  YNH_ARCH: amd64
  YNH_DEBIAN_VERSION: bullseye
error: Une erreur est survenue dans le script d'installation de l'application
interface: api
operation: app_install
parent: null
related_to:
- - app
  - bookwyrm
started_at: 2023-11-19 05:45:33.471505
success: false
yunohost_version: 11.2.5

And the error…

2023-11-19 06:46:32,489: WARNING - Traceback (most recent call last):
2023-11-19 06:46:32,489: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
2023-11-19 06:46:32,490: WARNING -     return self.cursor.execute(sql, params)
2023-11-19 06:46:32,491: WARNING - psycopg2.errors.InsufficientPrivilege: permission denied to create extension "pg_trgm"
2023-11-19 06:46:32,491: WARNING - HINT:  Must be superuser to create this extension.
2023-11-19 06:46:32,491: DEBUG - 
2023-11-19 06:46:32,491: DEBUG - 
2023-11-19 06:46:32,492: WARNING - The above exception was the direct cause of the following exception:
2023-11-19 06:46:32,492: DEBUG - 
2023-11-19 06:46:32,492: WARNING - Traceback (most recent call last):
2023-11-19 06:46:32,492: WARNING -   File "/var/www/bookwyrm/manage.py", line 18, in <module>
2023-11-19 06:46:32,493: WARNING -     execute_from_command_line(sys.argv)
2023-11-19 06:46:32,493: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
2023-11-19 06:46:32,493: WARNING -     utility.execute()
2023-11-19 06:46:32,494: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/core/management/__init__.py", line 413, in execute
2023-11-19 06:46:32,494: WARNING -     self.fetch_command(subcommand).run_from_argv(self.argv)
2023-11-19 06:46:32,495: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/core/management/base.py", line 354, in run_from_argv
2023-11-19 06:46:32,495: WARNING -     self.execute(*args, **cmd_options)
2023-11-19 06:46:32,498: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/core/management/base.py", line 398, in execute
2023-11-19 06:46:32,499: WARNING -     output = self.handle(*args, **options)
2023-11-19 06:46:32,499: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/core/management/base.py", line 89, in wrapped
2023-11-19 06:46:32,501: WARNING -     res = handle_func(*args, **kwargs)
2023-11-19 06:46:32,502: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/core/management/commands/migrate.py", line 244, in handle
2023-11-19 06:46:32,502: WARNING -     post_migrate_state = executor.migrate(
2023-11-19 06:46:32,503: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/db/migrations/executor.py", line 117, in migrate
2023-11-19 06:46:32,503: WARNING -     state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
2023-11-19 06:46:32,504: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/db/migrations/executor.py", line 147, in _migrate_all_forwards
2023-11-19 06:46:32,505: WARNING -     state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
2023-11-19 06:46:32,505: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/db/migrations/executor.py", line 227, in apply_migration
2023-11-19 06:46:32,506: WARNING -     state = migration.apply(state, schema_editor)
2023-11-19 06:46:32,506: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/db/migrations/migration.py", line 126, in apply
2023-11-19 06:46:32,507: WARNING -     operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
2023-11-19 06:46:32,507: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/contrib/postgres/operations.py", line 25, in database_forwards
2023-11-19 06:46:32,508: WARNING -     schema_editor.execute(
2023-11-19 06:46:32,508: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/db/backends/base/schema.py", line 145, in execute
2023-11-19 06:46:32,509: WARNING -     cursor.execute(sql, params)
2023-11-19 06:46:32,509: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 66, in execute
2023-11-19 06:46:32,510: WARNING -     return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
2023-11-19 06:46:32,510: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
2023-11-19 06:46:32,511: WARNING -     return executor(sql, params, many, context)
2023-11-19 06:46:32,511: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
2023-11-19 06:46:32,512: WARNING -     return self.cursor.execute(sql, params)
2023-11-19 06:46:32,512: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/db/utils.py", line 90, in __exit__
2023-11-19 06:46:32,513: WARNING -     raise dj_exc_value.with_traceback(traceback) from exc_value
2023-11-19 06:46:32,513: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
2023-11-19 06:46:32,514: WARNING -     return self.cursor.execute(sql, params)
2023-11-19 06:46:32,514: WARNING - django.db.utils.ProgrammingError: permission denied to create extension "pg_trgm"
2023-11-19 06:46:32,514: WARNING - HINT:  Must be superuser to create this extension.
2023-11-19 06:46:32,515: DEBUG - 
2023-11-19 06:46:32,804: DEBUG -   Applying bookwyrm.0006_auto_20200221_1702_squashed_0064_merge_20201101_1913...+ ynh_exit_properly
2023-11-19 06:46:32,804: DEBUG - + [[ install =~ ^install$|^upgrade$|^restore$ ]]
2023-11-19 06:46:34,308: ERROR - Impossible d'installer bookwyrm : Une erreur est survenue dans le script d'installation de l'application


Hello!
May you please share the whole logs? It’s then easier to understand the context of the issue.

Ho yes, sorry.
Here it is

args:
  app: bookwyrm
  force: false
  label: undefined
  no_remove_on_failure: false
ended_at: 2023-11-19 05:46:34.309007
env:
  YNH_APP_ACTION: install
  YNH_APP_ARG_ADMIN: wiltur
  YNH_APP_ARG_DOMAIN: biblio.maindomain.tld
  YNH_APP_ARG_INIT_MAIN_PERMISSION: visitors
  YNH_APP_ARG_LANGUAGE: fr-fr
  YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_bln1p5cs
  YNH_APP_ID: bookwyrm
  YNH_APP_INSTANCE_NAME: bookwyrm
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_APP_MANIFEST_VERSION: 0.6.6~ynh1
  YNH_APP_PACKAGING_FORMAT: '2.0'
  YNH_ARCH: amd64
  YNH_DEBIAN_VERSION: bullseye
error: Une erreur est survenue dans le script d'installation de l'application
interface: api
operation: app_install
parent: null
related_to:
- - app
  - bookwyrm
started_at: 2023-11-19 05:45:33.471505
success: false
yunohost_version: 11.2.5

============

2023-11-19 06:45:33,479: INFO - Installation de bookwyrm...
2023-11-19 06:45:33,484: INFO - Provisionning sources...
2023-11-19 06:45:33,484: DEBUG - Prefetching asset main: https://github.com/bookwyrm-social/bookwyrm/archive/refs/tags/v0.6.6.tar.gz ...
2023-11-19 06:45:34,692: INFO - Provisionning system_user...
2023-11-19 06:45:34,794: INFO - Provisionning install_dir...
2023-11-19 06:45:34,806: INFO - Provisionning data_dir...
2023-11-19 06:45:34,814: INFO - Provisionning permissions...
2023-11-19 06:45:35,044: DEBUG - Permission 'bookwyrm.main' mise à jour
2023-11-19 06:45:35,133: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20231119-054535-permission_url-bookwyrm" style="text-decoration:underline"> Mise à jour de l'URL associée à l'autorisation 'bookwyrm' </a>'
2023-11-19 06:45:35,314: DEBUG - Permission 'bookwyrm.main' créée
2023-11-19 06:45:35,314: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20231119-054534-permission_create-bookwyrm" style="text-decoration:underline"> Créer permission 'bookwyrm' </a>'
2023-11-19 06:45:35,600: DEBUG - Permission 'bookwyrm.main' mise à jour
2023-11-19 06:45:35,601: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20231119-054535-user_permission_update-bookwyrm" style="text-decoration:underline"> Mise à jour des accès pour la permission 'bookwyrm' </a>'
2023-11-19 06:45:35,774: DEBUG - Nothing to update in LDAP
2023-11-19 06:45:35,774: DEBUG - Permission 'bookwyrm.main' mise à jour
2023-11-19 06:45:35,826: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20231119-054535-permission_url-bookwyrm" style="text-decoration:underline"> Mise à jour de l'URL associée à l'autorisation 'bookwyrm' </a>'
2023-11-19 06:45:35,930: DEBUG - The permission database has been resynchronized
2023-11-19 06:45:36,053: DEBUG - La configuration de SSOwat a été regénérée
2023-11-19 06:45:36,058: INFO - Provisionning ports...
2023-11-19 06:45:36,079: INFO - Provisionning apt...
2023-11-19 06:45:36,095: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./provision_or_update_apt"  7>&1']'
2023-11-19 06:45:36,102: DEBUG - + source /usr/share/yunohost/helpers
2023-11-19 06:45:36,102: DEBUG - +++ grep xtrace
2023-11-19 06:45:36,103: DEBUG - +++ set +o
2023-11-19 06:45:36,104: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2023-11-19 06:45:36,104: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2023-11-19 06:45:36,121: DEBUG - + ynh_abort_if_errors
2023-11-19 06:45:36,121: DEBUG - + trap ynh_exit_properly EXIT
2023-11-19 06:45:36,122: DEBUG - + ynh_install_app_dependencies postgresql postgresql-contrib python3-venv libpq-dev python3-dev
2023-11-19 06:45:36,122: DEBUG - + local 'dependencies=postgresql postgresql-contrib python3-venv libpq-dev python3-dev'
2023-11-19 06:45:36,122: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
2023-11-19 06:45:36,122: DEBUG - ++ echo 'postgresql postgresql-contrib python3-venv libpq-dev python3-dev'
2023-11-19 06:45:36,123: DEBUG - + dependencies='postgresql, postgresql-contrib, python3-venv, libpq-dev, python3-dev'
2023-11-19 06:45:36,123: DEBUG - + local 'dependencies=postgresql, postgresql-contrib, python3-venv, libpq-dev, python3-dev'
2023-11-19 06:45:36,124: DEBUG - ++ ynh_read_manifest --manifest_key=version
2023-11-19 06:45:36,136: DEBUG - ++ '[' '!' -e '' ']'
2023-11-19 06:45:36,137: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_9gdyx3wa/manifest.json ']'
2023-11-19 06:45:36,137: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_9gdyx3wa/manifest.toml ']'
2023-11-19 06:45:36,137: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_9gdyx3wa/manifest.toml
2023-11-19 06:45:36,137: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_9gdyx3wa/manifest.toml
2023-11-19 06:45:36,137: DEBUG - ++ grep -q '\.json$'
2023-11-19 06:45:36,139: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_9gdyx3wa/manifest.toml
2023-11-19 06:45:36,139: DEBUG - ++ jq .version --raw-output
2023-11-19 06:45:36,140: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))'
2023-11-19 06:45:36,183: DEBUG - + local version=0.6.6~ynh1
2023-11-19 06:45:36,183: DEBUG - + '[' -z 0.6.6~ynh1 ']'
2023-11-19 06:45:36,183: DEBUG - + '[' 0.6.6~ynh1 == null ']'
2023-11-19 06:45:36,183: DEBUG - + local dep_app=bookwyrm
2023-11-19 06:45:36,183: DEBUG - + [[ postgresql, postgresql-contrib, python3-venv, libpq-dev, python3-dev =~ [<=>] ]]
2023-11-19 06:45:36,183: DEBUG - ++ grep -oP '(?<=php)[0-9.]+(?=-|\>|)'
2023-11-19 06:45:36,183: DEBUG - ++ sort -u
2023-11-19 06:45:36,184: DEBUG - ++ echo postgresql, postgresql-contrib, python3-venv, libpq-dev, python3-dev
2023-11-19 06:45:36,185: DEBUG - + local specific_php_version=
2023-11-19 06:45:36,185: DEBUG - + grep --quiet php
2023-11-19 06:45:36,186: DEBUG - ++ ynh_package_is_installed postgresql-13
2023-11-19 06:45:36,190: DEBUG - ++ ynh_wait_dpkg_free
2023-11-19 06:45:36,266: DEBUG - ++ return 0
2023-11-19 06:45:36,267: DEBUG - ++ grep --count 'ok installed'
2023-11-19 06:45:36,267: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-13
2023-11-19 06:45:36,278: DEBUG - ++ echo yes
2023-11-19 06:45:36,278: DEBUG - + local psql_installed=yes
2023-11-19 06:45:36,278: DEBUG - + [[ true == \t\r\u\e ]]
2023-11-19 06:45:36,278: DEBUG - + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false
2023-11-19 06:45:36,278: DEBUG - + cat
2023-11-19 06:45:36,279: DEBUG - + ynh_package_install_from_equivs /tmp/bookwyrm-ynh-deps.control
2023-11-19 06:45:36,279: DEBUG - + local controlfile=/tmp/bookwyrm-ynh-deps.control
2023-11-19 06:45:36,280: DEBUG - ++ cut '--delimiter= ' --fields=2
2023-11-19 06:45:36,280: DEBUG - ++ grep '^Package: ' /tmp/bookwyrm-ynh-deps.control
2023-11-19 06:45:36,281: DEBUG - + local pkgname=bookwyrm-ynh-deps
2023-11-19 06:45:36,282: DEBUG - ++ grep '^Version: ' /tmp/bookwyrm-ynh-deps.control
2023-11-19 06:45:36,282: DEBUG - ++ cut '--delimiter= ' --fields=2
2023-11-19 06:45:36,283: DEBUG - + local pkgversion=0.6.6~ynh1
2023-11-19 06:45:36,283: DEBUG - + [[ -z bookwyrm-ynh-deps ]]
2023-11-19 06:45:36,283: DEBUG - + [[ -z 0.6.6~ynh1 ]]
2023-11-19 06:45:36,283: DEBUG - + ynh_package_update
2023-11-19 06:45:36,283: DEBUG - + ynh_apt update
2023-11-19 06:45:36,283: DEBUG - + ynh_wait_dpkg_free
2023-11-19 06:45:36,345: DEBUG - + return 0
2023-11-19 06:45:36,345: DEBUG - + LC_ALL=C
2023-11-19 06:45:36,345: DEBUG - + DEBIAN_FRONTEND=noninteractive
2023-11-19 06:45:36,345: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2023-11-19 06:45:36,528: DEBUG - Hit:1 http://deb.debian.org/debian bullseye InRelease
2023-11-19 06:45:36,528: DEBUG - Get:2 http://security.debian.org bullseye-security InRelease [48.4 kB]
2023-11-19 06:45:36,542: DEBUG - Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
2023-11-19 06:45:36,567: DEBUG - Hit:4 http://mirror.hetzner.de/debian/packages bullseye InRelease
2023-11-19 06:45:36,592: DEBUG - Get:5 http://mirror.hetzner.de/debian/packages bullseye-updates InRelease [44.1 kB]
2023-11-19 06:45:36,619: DEBUG - Hit:6 https://packages.sury.org/php bullseye InRelease
2023-11-19 06:45:36,669: DEBUG - Get:7 http://mirror.hetzner.de/debian/security bullseye-security InRelease [48.4 kB]
2023-11-19 06:45:36,804: DEBUG - Get:8 http://security.debian.org bullseye-security/main Sources [159 kB]
2023-11-19 06:45:41,590: DEBUG - Hit:9 http://forge.yunohost.org/debian bullseye InRelease
2023-11-19 06:45:41,673: DEBUG - Fetched 344 kB in 5s (65.4 kB/s)
2023-11-19 06:45:42,545: DEBUG - Reading package lists...
2023-11-19 06:45:42,568: DEBUG - ++ mktemp --directory
2023-11-19 06:45:42,570: DEBUG - + local TMPDIR=/tmp/tmp.MxeBZjL35m
2023-11-19 06:45:42,570: DEBUG - + rm -f /usr/share/equivs/template/debian/compat
2023-11-19 06:45:42,571: DEBUG - + ynh_wait_dpkg_free
2023-11-19 06:45:42,644: DEBUG - + return 0
2023-11-19 06:45:42,644: DEBUG - + cp /tmp/bookwyrm-ynh-deps.control /tmp/tmp.MxeBZjL35m/control
2023-11-19 06:45:42,645: DEBUG - + cd /tmp/tmp.MxeBZjL35m
2023-11-19 06:45:42,645: DEBUG - + LC_ALL=C
2023-11-19 06:45:42,645: DEBUG - + equivs-build ./control
2023-11-19 06:45:42,891: DEBUG - dpkg-buildpackage: info: source package bookwyrm-ynh-deps
2023-11-19 06:45:42,891: DEBUG - dpkg-buildpackage: info: source version 0.6.6~ynh1
2023-11-19 06:45:42,891: DEBUG - dpkg-buildpackage: info: source distribution unstable
2023-11-19 06:45:42,891: DEBUG - dpkg-buildpackage: info: source changed by Equivs Dummy Package Generator <root@debian9-2gb-hel1-7>
2023-11-19 06:45:42,954: DEBUG -  dpkg-source --before-build .
2023-11-19 06:45:42,954: DEBUG - dpkg-buildpackage: info: host architecture amd64
2023-11-19 06:45:43,103: DEBUG -  debian/rules clean
2023-11-19 06:45:43,106: DEBUG - dh clean
2023-11-19 06:45:43,175: DEBUG -    dh_clean
2023-11-19 06:45:43,208: DEBUG -  debian/rules binary
2023-11-19 06:45:43,209: DEBUG - dh binary
2023-11-19 06:45:43,303: DEBUG -    dh_update_autotools_config
2023-11-19 06:45:43,326: DEBUG -    dh_autoreconf
2023-11-19 06:45:43,373: DEBUG -    create-stamp debian/debhelper-build-stamp
2023-11-19 06:45:43,373: DEBUG -    dh_prep
2023-11-19 06:45:43,420: DEBUG -    dh_install
2023-11-19 06:45:43,468: DEBUG -    dh_installdocs
2023-11-19 06:45:43,516: DEBUG -    dh_installchangelogs
2023-11-19 06:45:43,601: DEBUG -    dh_perl
2023-11-19 06:45:43,632: DEBUG -    dh_link
2023-11-19 06:45:43,661: DEBUG -    dh_strip_nondeterminism
2023-11-19 06:45:43,723: DEBUG -    dh_compress
2023-11-19 06:45:43,755: DEBUG -    dh_fixperms
2023-11-19 06:45:43,787: DEBUG -    dh_missing
2023-11-19 06:45:43,810: DEBUG -    dh_installdeb
2023-11-19 06:45:43,844: DEBUG -    dh_gencontrol
2023-11-19 06:45:43,940: DEBUG -    dh_md5sums
2023-11-19 06:45:43,969: DEBUG -    dh_builddeb
2023-11-19 06:45:43,992: DEBUG - dpkg-deb: building package 'bookwyrm-ynh-deps' in '../bookwyrm-ynh-deps_0.6.6~ynh1_all.deb'.
2023-11-19 06:45:44,023: DEBUG -  dpkg-genbuildinfo --build=binary
2023-11-19 06:45:44,434: DEBUG -  dpkg-genchanges --build=binary >../bookwyrm-ynh-deps_0.6.6~ynh1_amd64.changes
2023-11-19 06:45:44,499: DEBUG - dpkg-genchanges: info: binary-only upload (no source code included)
2023-11-19 06:45:44,502: DEBUG -  dpkg-source --after-build .
2023-11-19 06:45:44,586: DEBUG - dpkg-buildpackage: info: binary-only upload (no source included)
2023-11-19 06:45:44,591: DEBUG - 
2023-11-19 06:45:44,591: DEBUG - The package has been created.
2023-11-19 06:45:44,591: DEBUG - Attention, the package has been created in the current directory,
2023-11-19 06:45:44,592: DEBUG - not in ".." as indicated by the message above!
2023-11-19 06:45:44,592: DEBUG - + LC_ALL=C
2023-11-19 06:45:44,593: DEBUG - + dpkg --force-depends --install ./bookwyrm-ynh-deps_0.6.6~ynh1_all.deb
2023-11-19 06:45:44,593: DEBUG - + tee ./dpkg_log
2023-11-19 06:45:44,622: DEBUG - Selecting previously unselected package bookwyrm-ynh-deps.
2023-11-19 06:45:44,838: DEBUG - (Reading database ... 67074 files and directories currently installed.)
2023-11-19 06:45:44,840: DEBUG - Preparing to unpack .../bookwyrm-ynh-deps_0.6.6~ynh1_all.deb ...
2023-11-19 06:45:44,843: DEBUG - Unpacking bookwyrm-ynh-deps (0.6.6~ynh1) ...
2023-11-19 06:45:44,858: DEBUG - dpkg: bookwyrm-ynh-deps: dependency problems, but configuring anyway as you requested:
2023-11-19 06:45:44,858: DEBUG -  bookwyrm-ynh-deps depends on postgresql; however:
2023-11-19 06:45:44,858: DEBUG -   Package postgresql is not installed.
2023-11-19 06:45:44,858: DEBUG -  bookwyrm-ynh-deps depends on postgresql-contrib; however:
2023-11-19 06:45:44,859: DEBUG -   Package postgresql-contrib is not installed.
2023-11-19 06:45:44,859: DEBUG -  bookwyrm-ynh-deps depends on libpq-dev; however:
2023-11-19 06:45:44,859: DEBUG -   Package libpq-dev is not installed.
2023-11-19 06:45:44,859: DEBUG - 
2023-11-19 06:45:44,859: DEBUG - Setting up bookwyrm-ynh-deps (0.6.6~ynh1) ...
2023-11-19 06:45:44,871: DEBUG - + ynh_package_install --fix-broken
2023-11-19 06:45:44,872: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2023-11-19 06:45:44,872: DEBUG - + ynh_wait_dpkg_free
2023-11-19 06:45:44,942: DEBUG - + return 0
2023-11-19 06:45:44,942: DEBUG - + LC_ALL=C
2023-11-19 06:45:44,942: DEBUG - + DEBIAN_FRONTEND=noninteractive
2023-11-19 06:45:44,942: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2023-11-19 06:45:45,097: DEBUG - Reading package lists...
2023-11-19 06:45:45,284: DEBUG - Building dependency tree...
2023-11-19 06:45:45,286: DEBUG - Reading state information...
2023-11-19 06:45:45,413: DEBUG - Correcting dependencies... Done
2023-11-19 06:45:45,536: DEBUG - The following additional packages will be installed:
2023-11-19 06:45:45,536: DEBUG -   libpq-dev postgresql postgresql-contrib
2023-11-19 06:45:45,537: DEBUG - Suggested packages:
2023-11-19 06:45:45,537: DEBUG -   postgresql-doc-13 postgresql-doc
2023-11-19 06:45:45,555: DEBUG - The following NEW packages will be installed:
2023-11-19 06:45:45,555: DEBUG -   libpq-dev postgresql postgresql-contrib
2023-11-19 06:45:45,877: DEBUG - 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
2023-11-19 06:45:45,878: DEBUG - Need to get 0 B/271 kB of archives.
2023-11-19 06:45:45,878: DEBUG - After this operation, 711 kB of additional disk space will be used.
2023-11-19 06:45:45,907: DEBUG - Selecting previously unselected package libpq-dev.
2023-11-19 06:45:45,928: DEBUG - (Reading database ... 67078 files and directories currently installed.)
2023-11-19 06:45:45,931: DEBUG - Preparing to unpack .../libpq-dev_13.13-0+deb11u1_amd64.deb ...
2023-11-19 06:45:45,933: DEBUG - Unpacking libpq-dev (13.13-0+deb11u1) ...
2023-11-19 06:45:45,980: DEBUG - Selecting previously unselected package postgresql.
2023-11-19 06:45:45,985: DEBUG - Preparing to unpack .../postgresql_13+225_all.deb ...
2023-11-19 06:45:45,987: DEBUG - Unpacking postgresql (13+225) ...
2023-11-19 06:45:46,018: DEBUG - Selecting previously unselected package postgresql-contrib.
2023-11-19 06:45:46,022: DEBUG - Preparing to unpack .../postgresql-contrib_13+225_all.deb ...
2023-11-19 06:45:46,024: DEBUG - Unpacking postgresql-contrib (13+225) ...
2023-11-19 06:45:46,075: DEBUG - Setting up libpq-dev (13.13-0+deb11u1) ...
2023-11-19 06:45:46,079: DEBUG - Setting up postgresql-contrib (13+225) ...
2023-11-19 06:45:46,083: DEBUG - Setting up postgresql (13+225) ...
2023-11-19 06:45:46,087: DEBUG - Processing triggers for man-db (2.9.4-2) ...
2023-11-19 06:45:47,520: DEBUG - + [[ -n /tmp/tmp.MxeBZjL35m ]]
2023-11-19 06:45:47,521: DEBUG - + rm --recursive --force /tmp/tmp.MxeBZjL35m
2023-11-19 06:45:47,523: DEBUG - + ynh_package_is_installed bookwyrm-ynh-deps
2023-11-19 06:45:47,531: DEBUG - + ynh_wait_dpkg_free
2023-11-19 06:45:47,604: DEBUG - + return 0
2023-11-19 06:45:47,605: DEBUG - + grep --count 'ok installed'
2023-11-19 06:45:47,605: DEBUG - + dpkg-query --show '--showformat=${Status}' bookwyrm-ynh-deps
2023-11-19 06:45:47,628: DEBUG - + rm /tmp/bookwyrm-ynh-deps.control
2023-11-19 06:45:47,630: DEBUG - ++ ynh_package_is_installed postgresql-13
2023-11-19 06:45:47,640: DEBUG - ++ ynh_wait_dpkg_free
2023-11-19 06:45:47,745: DEBUG - ++ return 0
2023-11-19 06:45:47,745: DEBUG - ++ grep --count 'ok installed'
2023-11-19 06:45:47,746: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-13
2023-11-19 06:45:47,756: DEBUG - ++ echo yes
2023-11-19 06:45:47,756: DEBUG - + local psql_installed2=yes
2023-11-19 06:45:47,756: DEBUG - + [[ yes != \y\e\s ]]
2023-11-19 06:45:47,756: DEBUG - + ynh_exit_properly
2023-11-19 06:45:47,756: DEBUG - + [[ provision_or_update_apt =~ ^install$|^upgrade$|^restore$ ]]
2023-11-19 06:45:48,758: INFO - Provisionning database...
2023-11-19 06:45:48,933: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./provision_database"  7>&1']'
2023-11-19 06:45:48,940: DEBUG - + source /usr/share/yunohost/helpers
2023-11-19 06:45:48,941: DEBUG - +++ set +o
2023-11-19 06:45:48,941: DEBUG - +++ grep xtrace
2023-11-19 06:45:48,942: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2023-11-19 06:45:48,942: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2023-11-19 06:45:48,974: DEBUG - + ynh_abort_if_errors
2023-11-19 06:45:48,975: DEBUG - + trap ynh_exit_properly EXIT
2023-11-19 06:45:48,975: DEBUG - + ynh_psql_create_user bookwyrm ae41f95e021657fdc13dea5f
2023-11-19 06:45:48,975: DEBUG - + local user=bookwyrm
2023-11-19 06:45:48,975: DEBUG - + local pwd=**********
2023-11-19 06:45:48,975: DEBUG - + ynh_psql_execute_as_root '--sql=CREATE USER bookwyrm WITH ENCRYPTED PASSWORD '\''**********'\'''
2023-11-19 06:45:48,993: DEBUG - + database=
2023-11-19 06:45:48,994: DEBUG - + '[' -n '' ']'
2023-11-19 06:45:48,994: DEBUG - ++ cat /etc/yunohost/psql
2023-11-19 06:45:48,996: DEBUG - + ynh_psql_connect_as --user=postgres --password=**********
2023-11-19 06:45:49,041: DEBUG - + database=
2023-11-19 06:45:49,042: DEBUG - + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=********** psql ''
2023-11-19 06:45:49,141: DEBUG - CREATE ROLE
2023-11-19 06:45:49,143: DEBUG - + ynh_psql_create_db bookwyrm bookwyrm
2023-11-19 06:45:49,143: DEBUG - + local db=bookwyrm
2023-11-19 06:45:49,143: DEBUG - + local user=bookwyrm
2023-11-19 06:45:49,143: DEBUG - + local 'sql=CREATE DATABASE bookwyrm;'
2023-11-19 06:45:49,144: DEBUG - + '[' -n bookwyrm ']'
2023-11-19 06:45:49,144: DEBUG - + sql+='ALTER DATABASE bookwyrm OWNER TO bookwyrm;'
2023-11-19 06:45:49,144: DEBUG - + sql+='GRANT ALL PRIVILEGES ON DATABASE bookwyrm TO bookwyrm WITH GRANT OPTION;'
2023-11-19 06:45:49,144: DEBUG - + ynh_psql_execute_as_root '--sql=CREATE DATABASE bookwyrm;ALTER DATABASE bookwyrm OWNER TO bookwyrm;GRANT ALL PRIVILEGES ON DATABASE bookwyrm TO bookwyrm WITH GRANT OPTION;'
2023-11-19 06:45:49,156: DEBUG - + database=
2023-11-19 06:45:49,156: DEBUG - + '[' -n '' ']'
2023-11-19 06:45:49,156: DEBUG - ++ cat /etc/yunohost/psql
2023-11-19 06:45:49,158: DEBUG - + ynh_psql_connect_as --user=postgres --password=**********
2023-11-19 06:45:49,191: DEBUG - + database=
2023-11-19 06:45:49,191: DEBUG - + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=********** psql ''
2023-11-19 06:45:49,563: DEBUG - CREATE DATABASE
2023-11-19 06:45:49,564: DEBUG - ALTER DATABASE
2023-11-19 06:45:49,566: DEBUG - GRANT
2023-11-19 06:45:49,569: DEBUG - + ynh_exit_properly
2023-11-19 06:45:49,569: DEBUG - + [[ provision_database =~ ^install$|^upgrade$|^restore$ ]]
2023-11-19 06:45:50,594: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./install"  7>&1']'
2023-11-19 06:45:50,602: DEBUG - + source _common.sh
2023-11-19 06:45:50,603: DEBUG - + source /usr/share/yunohost/helpers
2023-11-19 06:45:50,603: DEBUG - +++ set +o
2023-11-19 06:45:50,603: DEBUG - +++ grep xtrace
2023-11-19 06:45:50,605: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2023-11-19 06:45:50,605: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2023-11-19 06:45:50,635: DEBUG - ++ ynh_user_get_info --username=wiltur --key=username
2023-11-19 06:45:50,673: DEBUG - ++ yunohost user info wiltur --output-as json --quiet
2023-11-19 06:45:50,673: DEBUG - ++ jq -r .username
2023-11-19 06:45:51,204: DEBUG - + admin_mail=wiltur
2023-11-19 06:45:51,204: DEBUG - ++ ynh_string_random --length=32
2023-11-19 06:45:51,220: DEBUG - ++ length=32
2023-11-19 06:45:51,220: DEBUG - ++ filter=A-Za-z0-9
2023-11-19 06:45:51,220: DEBUG - ++ tr --complement --delete A-Za-z0-9
2023-11-19 06:45:51,221: DEBUG - ++ dd if=/dev/urandom bs=1 count=1000
2023-11-19 06:45:51,221: DEBUG - ++ sed --quiet 's/\(.\{32\}\).*/\1/p'
2023-11-19 06:45:51,225: DEBUG - + key=VQEOHmITfjS7ZLFMVXv47sh9bNI0tJTF
2023-11-19 06:45:51,302: DEBUG - + ynh_setup_source --dest_dir=/var/www/bookwyrm
2023-11-19 06:45:51,302: INFO - [++..................] > Setting up source files...
2023-11-19 06:45:51,332: DEBUG - + keep=
2023-11-19 06:45:51,332: DEBUG - + full_replace=0
2023-11-19 06:45:51,332: DEBUG - + test -e /var/cache/yunohost/app_tmp_work_dirs/app_bln1p5cs/manifest.toml
2023-11-19 06:45:51,332: DEBUG - + jq -e .resources.sources
2023-11-19 06:45:51,334: DEBUG - + cat /var/cache/yunohost/app_tmp_work_dirs/app_bln1p5cs/manifest.toml
2023-11-19 06:45:51,338: DEBUG - + toml_to_json
2023-11-19 06:45:51,338: DEBUG - + python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))'
2023-11-19 06:45:51,385: DEBUG - + source_id=main
2023-11-19 06:45:51,385: DEBUG - ++ toml_to_json
2023-11-19 06:45:51,385: DEBUG - ++ jq '.resources.sources["main"]'
2023-11-19 06:45:51,386: DEBUG - ++ python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))'
2023-11-19 06:45:51,394: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_bln1p5cs/manifest.toml
2023-11-19 06:45:51,425: DEBUG - + local 'sources_json={
2023-11-19 06:45:51,425: DEBUG -   "url": "https://github.com/bookwyrm-social/bookwyrm/archive/refs/tags/v0.6.6.tar.gz",
2023-11-19 06:45:51,425: DEBUG -   "sha256": "e19b802e5ebcbaeb979f174f8f7fbd23690acee9000468a48016118257df5939",
2023-11-19 06:45:51,425: DEBUG -   "autoupdate": {
2023-11-19 06:45:51,425: DEBUG -     "strategy": "latest_github_tag"
2023-11-19 06:45:51,425: DEBUG -   }
2023-11-19 06:45:51,425: DEBUG - }'
2023-11-19 06:45:51,425: DEBUG - + jq -re .url
2023-11-19 06:45:51,450: DEBUG - https://github.com/bookwyrm-social/bookwyrm/archive/refs/tags/v0.6.6.tar.gz
2023-11-19 06:45:51,450: DEBUG - + local arch_prefix=
2023-11-19 06:45:51,450: DEBUG - ++ jq -r .url
2023-11-19 06:45:51,451: DEBUG - ++ sed 's/^null$//'
2023-11-19 06:45:51,477: DEBUG - + local src_url=https://github.com/bookwyrm-social/bookwyrm/archive/refs/tags/v0.6.6.tar.gz
2023-11-19 06:45:51,477: DEBUG - ++ jq -r .sha256
2023-11-19 06:45:51,478: DEBUG - ++ sed 's/^null$//'
2023-11-19 06:45:51,504: DEBUG - + local src_sum=e19b802e5ebcbaeb979f174f8f7fbd23690acee9000468a48016118257df5939
2023-11-19 06:45:51,504: DEBUG - + local src_sumprg=sha256sum
2023-11-19 06:45:51,505: DEBUG - ++ jq -r .format
2023-11-19 06:45:51,505: DEBUG - ++ sed 's/^null$//'
2023-11-19 06:45:51,531: DEBUG - + local src_format=
2023-11-19 06:45:51,532: DEBUG - ++ jq -r .in_subdir
2023-11-19 06:45:51,532: DEBUG - ++ sed 's/^null$//'
2023-11-19 06:45:51,558: DEBUG - + local src_in_subdir=
2023-11-19 06:45:51,559: DEBUG - ++ jq -r .extract
2023-11-19 06:45:51,559: DEBUG - ++ sed 's/^null$//'
2023-11-19 06:45:51,586: DEBUG - + local src_extract=
2023-11-19 06:45:51,587: DEBUG - ++ jq -r .platform
2023-11-19 06:45:51,587: DEBUG - ++ sed 's/^null$//'
2023-11-19 06:45:51,614: DEBUG - + local src_platform=
2023-11-19 06:45:51,615: DEBUG - ++ jq -r .rename
2023-11-19 06:45:51,615: DEBUG - ++ sed 's/^null$//'
2023-11-19 06:45:51,642: DEBUG - + local src_rename=
2023-11-19 06:45:51,642: DEBUG - + [[ -n https://github.com/bookwyrm-social/bookwyrm/archive/refs/tags/v0.6.6.tar.gz ]]
2023-11-19 06:45:51,642: DEBUG - + [[ -n e19b802e5ebcbaeb979f174f8f7fbd23690acee9000468a48016118257df5939 ]]
2023-11-19 06:45:51,642: DEBUG - + [[ -z '' ]]
2023-11-19 06:45:51,642: DEBUG - + [[ https://github.com/bookwyrm-social/bookwyrm/archive/refs/tags/v0.6.6.tar.gz =~ ^.*\.zip$ ]]
2023-11-19 06:45:51,642: DEBUG - + [[ https://github.com/bookwyrm-social/bookwyrm/archive/refs/tags/v0.6.6.tar.gz =~ ^.*/zipball/.*$ ]]
2023-11-19 06:45:51,643: DEBUG - + [[ https://github.com/bookwyrm-social/bookwyrm/archive/refs/tags/v0.6.6.tar.gz =~ ^.*\.tar\.gz$ ]]
2023-11-19 06:45:51,643: DEBUG - + src_format=tar.gz
2023-11-19 06:45:51,643: DEBUG - + src_sumprg=sha256sum
2023-11-19 06:45:51,643: DEBUG - + src_in_subdir=true
2023-11-19 06:45:51,643: DEBUG - + src_format=tar.gz
2023-11-19 06:45:51,643: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2023-11-19 06:45:51,643: DEBUG - ++ echo tar.gz
2023-11-19 06:45:51,644: DEBUG - + src_format=tar.gz
2023-11-19 06:45:51,644: DEBUG - + src_extract=true
2023-11-19 06:45:51,644: DEBUG - + [[ true != \t\r\u\e ]]
2023-11-19 06:45:51,644: DEBUG - + local local_src=/opt/yunohost-apps-src/bookwyrm/main
2023-11-19 06:45:51,644: DEBUG - ++ dirname /var/cache/yunohost/download/bookwyrm/main
2023-11-19 06:45:51,646: DEBUG - + mkdir -p /var/cache/yunohost/download/bookwyrm
2023-11-19 06:45:51,647: DEBUG - + src_filename=/var/cache/yunohost/download/bookwyrm/main
2023-11-19 06:45:51,647: DEBUG - + '[' tar.gz = docker ']'
2023-11-19 06:45:51,647: DEBUG - + test -e /opt/yunohost-apps-src/bookwyrm/main
2023-11-19 06:45:51,647: DEBUG - + '[' -n https://github.com/bookwyrm-social/bookwyrm/archive/refs/tags/v0.6.6.tar.gz ']'
2023-11-19 06:45:51,647: DEBUG - + '[' -e /var/cache/yunohost/download/bookwyrm/main ']'
2023-11-19 06:45:51,647: DEBUG - + sha256sum --check --status
2023-11-19 06:45:51,662: DEBUG - + '[' '!' -e /var/cache/yunohost/download/bookwyrm/main ']'
2023-11-19 06:45:51,662: DEBUG - + sha256sum --check --status
2023-11-19 06:45:51,675: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2023-11-19 06:45:51,676: DEBUG - + '[' -n '' ']'
2023-11-19 06:45:51,676: DEBUG - + mkdir --parents /var/www/bookwyrm
2023-11-19 06:45:51,677: DEBUG - + '[' -n /var/www/bookwyrm ']'
2023-11-19 06:45:51,678: DEBUG - + '[' /var/www/bookwyrm == /var/www/bookwyrm ']'
2023-11-19 06:45:51,678: DEBUG - + _ynh_apply_default_permissions /var/www/bookwyrm
2023-11-19 06:45:51,678: DEBUG - + local target=/var/www/bookwyrm
2023-11-19 06:45:51,678: DEBUG - ++ ynh_read_manifest --manifest_key=requirements.yunohost
2023-11-19 06:45:51,678: DEBUG - ++ tr -d '<>= '
2023-11-19 06:45:51,691: DEBUG - ++ '[' '!' -e '' ']'
2023-11-19 06:45:51,691: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_bln1p5cs/manifest.json ']'
2023-11-19 06:45:51,691: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_bln1p5cs/manifest.toml ']'
2023-11-19 06:45:51,691: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_bln1p5cs/manifest.toml
2023-11-19 06:45:51,691: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_bln1p5cs/manifest.toml
2023-11-19 06:45:51,691: DEBUG - ++ grep -q '\.json$'
2023-11-19 06:45:51,693: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_bln1p5cs/manifest.toml
2023-11-19 06:45:51,693: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))'
2023-11-19 06:45:51,693: DEBUG - ++ jq .requirements.yunohost --raw-output
2023-11-19 06:45:51,723: DEBUG - + local ynh_requirement=null
2023-11-19 06:45:51,723: DEBUG - + dpkg --compare-versions 2.0 ge 2
2023-11-19 06:45:51,724: DEBUG - + chmod o-rwx /var/www/bookwyrm
2023-11-19 06:45:51,725: DEBUG - + chmod g-w /var/www/bookwyrm
2023-11-19 06:45:51,726: DEBUG - + chown -R root:root /var/www/bookwyrm
2023-11-19 06:45:51,727: DEBUG - + ynh_system_user_exists bookwyrm
2023-11-19 06:45:51,734: DEBUG - + getent passwd bookwyrm
2023-11-19 06:45:51,736: DEBUG - + chown bookwyrm:bookwyrm /var/www/bookwyrm
2023-11-19 06:45:51,738: DEBUG - + echo /var/www/bookwyrm
2023-11-19 06:45:51,738: DEBUG - + grep -q '^/etc/cron\|/etc/php\|/etc/nginx/conf.d\|/etc/fail2ban\|/etc/systemd/system'
2023-11-19 06:45:51,739: DEBUG - + '[' -n '' ']'
2023-11-19 06:45:51,740: DEBUG - + [[ true == \f\a\l\s\e ]]
2023-11-19 06:45:51,740: DEBUG - + [[ tar.gz == \d\o\c\k\e\r ]]
2023-11-19 06:45:51,740: DEBUG - + [[ tar.gz == \z\i\p ]]
2023-11-19 06:45:51,740: DEBUG - + local strip=
2023-11-19 06:45:51,740: DEBUG - + '[' true '!=' false ']'
2023-11-19 06:45:51,740: DEBUG - + '[' true == true ']'
2023-11-19 06:45:51,740: DEBUG - + local sub_dirs=1
2023-11-19 06:45:51,740: DEBUG - + strip='--strip-components 1'
2023-11-19 06:45:51,740: DEBUG - + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
2023-11-19 06:45:51,740: DEBUG - + tar --extract --file=/var/cache/yunohost/download/bookwyrm/main --directory=/var/www/bookwyrm --strip-components 1
2023-11-19 06:45:51,815: DEBUG - + ynh_secure_remove --file=/var/cache/yunohost/download/bookwyrm/main
2023-11-19 06:45:51,829: DEBUG - + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_bln1p5cs/sources/patches/ ']'
2023-11-19 06:45:51,829: DEBUG - ++ realpath /var/cache/yunohost/app_tmp_work_dirs/app_bln1p5cs/sources/patches/
2023-11-19 06:45:51,830: DEBUG - + local patches_folder=/var/cache/yunohost/app_tmp_work_dirs/app_bln1p5cs/sources/patches
2023-11-19 06:45:51,831: DEBUG - ++ find /var/cache/yunohost/app_tmp_work_dirs/app_bln1p5cs/sources/patches -type f -name 'main-*.patch'
2023-11-19 06:45:51,831: DEBUG - ++ wc --lines
2023-11-19 06:45:51,833: DEBUG - + (( 0 > 0 ))
2023-11-19 06:45:51,833: DEBUG - + test -e /var/cache/yunohost/app_tmp_work_dirs/app_bln1p5cs/sources/extra_files/main
2023-11-19 06:45:51,833: DEBUG - + '[' -n '' ']'
2023-11-19 06:45:51,833: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2023-11-19 06:45:51,834: DEBUG - + chmod -R o-rwx /var/www/bookwyrm
2023-11-19 06:45:51,840: DEBUG - + chown -R bookwyrm:www-data /var/www/bookwyrm
2023-11-19 06:45:51,899: INFO - [##+++...............] > Installing service script...
2023-11-19 06:45:51,900: DEBUG - + ynh_add_config --template=../conf/.env.production --destination=/var/www/bookwyrm/.env
2023-11-19 06:45:51,925: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_bln1p5cs/conf/../conf/.env.production ']'
2023-11-19 06:45:51,925: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_bln1p5cs/conf/../conf/.env.production
2023-11-19 06:45:51,926: DEBUG - + ynh_backup_if_checksum_is_different --file=/var/www/bookwyrm/.env
2023-11-19 06:45:51,936: DEBUG - + local checksum_setting_name=checksum__var_www_bookwyrm_.env
2023-11-19 06:45:51,936: DEBUG - ++ ynh_app_setting_get --app=bookwyrm --key=checksum__var_www_bookwyrm_.env
2023-11-19 06:45:51,936: DEBUG - ++ local _globalapp=bookwyrm
2023-11-19 06:45:51,966: DEBUG - ++ app=bookwyrm
2023-11-19 06:45:51,966: DEBUG - ++ [[ checksum__var_www_bookwyrm_.env =~ (unprotected|protected|skipped)_ ]]
2023-11-19 06:45:51,966: DEBUG - ++ ynh_app_setting get bookwyrm checksum__var_www_bookwyrm_.env
2023-11-19 06:45:52,002: DEBUG - + local checksum_value=
2023-11-19 06:45:52,002: DEBUG - + backup_file_checksum=
2023-11-19 06:45:52,002: DEBUG - + '[' -n '' ']'
2023-11-19 06:45:52,003: DEBUG - + touch /var/www/bookwyrm/.env
2023-11-19 06:45:52,003: DEBUG - + chown root:root /var/www/bookwyrm/.env
2023-11-19 06:45:52,006: DEBUG - + chmod 640 /var/www/bookwyrm/.env
2023-11-19 06:45:52,007: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_bln1p5cs/conf/../conf/.env.production /var/www/bookwyrm/.env
2023-11-19 06:45:52,009: DEBUG - + _ynh_apply_default_permissions /var/www/bookwyrm/.env
2023-11-19 06:45:52,009: DEBUG - + local target=/var/www/bookwyrm/.env
2023-11-19 06:45:52,009: DEBUG - ++ tr -d '<>= '
2023-11-19 06:45:52,010: DEBUG - ++ ynh_read_manifest --manifest_key=requirements.yunohost
2023-11-19 06:45:52,031: DEBUG - ++ '[' '!' -e '' ']'
2023-11-19 06:45:52,031: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_bln1p5cs/manifest.json ']'
2023-11-19 06:45:52,032: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_bln1p5cs/manifest.toml ']'
2023-11-19 06:45:52,032: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_bln1p5cs/manifest.toml
2023-11-19 06:45:52,032: DEBUG - ++ grep -q '\.json$'
2023-11-19 06:45:52,032: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_bln1p5cs/manifest.toml
2023-11-19 06:45:52,033: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))'
2023-11-19 06:45:52,033: DEBUG - ++ jq .requirements.yunohost --raw-output
2023-11-19 06:45:52,041: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_bln1p5cs/manifest.toml
2023-11-19 06:45:52,078: DEBUG - + local ynh_requirement=null
2023-11-19 06:45:52,078: DEBUG - + dpkg --compare-versions 2.0 ge 2
2023-11-19 06:45:52,079: DEBUG - + chmod o-rwx /var/www/bookwyrm/.env
2023-11-19 06:45:52,080: DEBUG - + chmod g-w /var/www/bookwyrm/.env
2023-11-19 06:45:52,081: DEBUG - + chown -R root:root /var/www/bookwyrm/.env
2023-11-19 06:45:52,082: DEBUG - + ynh_system_user_exists bookwyrm
2023-11-19 06:45:52,089: DEBUG - + getent passwd bookwyrm
2023-11-19 06:45:52,090: DEBUG - + chown bookwyrm:bookwyrm /var/www/bookwyrm/.env
2023-11-19 06:45:52,091: DEBUG - + echo /var/www/bookwyrm/.env
2023-11-19 06:45:52,091: DEBUG - + grep -q '^/etc/cron\|/etc/php\|/etc/nginx/conf.d\|/etc/fail2ban\|/etc/systemd/system'
2023-11-19 06:45:52,093: DEBUG - + ynh_replace_vars --file=/var/www/bookwyrm/.env
2023-11-19 06:45:52,099: DEBUG - + test -n /
2023-11-19 06:45:52,099: DEBUG - + local path_url_slash_less=
2023-11-19 06:45:52,099: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/var/www/bookwyrm/.env
2023-11-19 06:45:52,146: DEBUG - + sed --in-place $'s\001__PATH__/\001/\001g' /var/www/bookwyrm/.env
2023-11-19 06:45:52,149: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/var/www/bookwyrm/.env
2023-11-19 06:45:52,205: DEBUG - + sed --in-place $'s\001__PATH__\001/\001g' /var/www/bookwyrm/.env
2023-11-19 06:45:52,206: DEBUG - + test -n bookwyrm
2023-11-19 06:45:52,206: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=bookwyrm --target_file=/var/www/bookwyrm/.env
2023-11-19 06:45:52,269: DEBUG - + sed --in-place $'s\001__NAME__\001bookwyrm\001g' /var/www/bookwyrm/.env
2023-11-19 06:45:52,271: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=bookwyrm --target_file=/var/www/bookwyrm/.env
2023-11-19 06:45:52,333: DEBUG - + sed --in-place $'s\001__NAMETOCHANGE__\001bookwyrm\001g' /var/www/bookwyrm/.env
2023-11-19 06:45:52,334: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=bookwyrm --target_file=/var/www/bookwyrm/.env
2023-11-19 06:45:52,372: DEBUG - + sed --in-place $'s\001__USER__\001bookwyrm\001g' /var/www/bookwyrm/.env
2023-11-19 06:45:52,374: DEBUG - + test -n ''
2023-11-19 06:45:52,374: DEBUG - + dpkg --compare-versions 2.0 lt 2
2023-11-19 06:45:52,374: DEBUG - + test -n ''
2023-11-19 06:45:52,375: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /var/www/bookwyrm/.env
2023-11-19 06:45:52,375: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2023-11-19 06:45:52,376: DEBUG - ++ sort --unique
2023-11-19 06:45:52,378: DEBUG - + uniques_vars=('admin_mail' 'db_name' 'db_pwd' 'db_user' 'domain' 'install_dir' 'key' 'language')
2023-11-19 06:45:52,378: DEBUG - + local delimit=@
2023-11-19 06:45:52,378: DEBUG - + for one_var in "${uniques_vars[@]}"
2023-11-19 06:45:52,378: DEBUG - + [[ -v admin_mail ]]
2023-11-19 06:45:52,378: DEBUG - + match_string=__ADMIN_MAIL__
2023-11-19 06:45:52,378: DEBUG - + match_string=__ADMIN_MAIL__
2023-11-19 06:45:52,378: DEBUG - + replace_string=wiltur
2023-11-19 06:45:52,378: DEBUG - + replace_string=wiltur
2023-11-19 06:45:52,378: DEBUG - + replace_string=wiltur
2023-11-19 06:45:52,378: DEBUG - + sed --in-place s@__ADMIN_MAIL__@wiltur@g /var/www/bookwyrm/.env
2023-11-19 06:45:52,379: DEBUG - + for one_var in "${uniques_vars[@]}"
2023-11-19 06:45:52,379: DEBUG - + [[ -v db_name ]]
2023-11-19 06:45:52,379: DEBUG - + match_string=__DB_NAME__
2023-11-19 06:45:52,379: DEBUG - + match_string=__DB_NAME__
2023-11-19 06:45:52,379: DEBUG - + replace_string=bookwyrm
2023-11-19 06:45:52,379: DEBUG - + replace_string=bookwyrm
2023-11-19 06:45:52,379: DEBUG - + replace_string=bookwyrm
2023-11-19 06:45:52,379: DEBUG - + sed --in-place s@__DB_NAME__@bookwyrm@g /var/www/bookwyrm/.env
2023-11-19 06:45:52,380: DEBUG - + for one_var in "${uniques_vars[@]}"
2023-11-19 06:45:52,380: DEBUG - + [[ -v db_pwd ]]
2023-11-19 06:45:52,380: DEBUG - + match_string=__DB_PWD__
2023-11-19 06:45:52,380: DEBUG - + match_string=__DB_PWD__
2023-11-19 06:45:52,380: DEBUG - + replace_string=**********
2023-11-19 06:45:52,380: DEBUG - + replace_string=**********
2023-11-19 06:45:52,380: DEBUG - + replace_string=**********
2023-11-19 06:45:52,380: DEBUG - + sed --in-place s@__DB_PWD__@**********@g /var/www/bookwyrm/.env
2023-11-19 06:45:52,381: DEBUG - + for one_var in "${uniques_vars[@]}"
2023-11-19 06:45:52,381: DEBUG - + [[ -v db_user ]]
2023-11-19 06:45:52,381: DEBUG - + match_string=__DB_USER__
2023-11-19 06:45:52,381: DEBUG - + match_string=__DB_USER__
2023-11-19 06:45:52,382: DEBUG - + replace_string=bookwyrm
2023-11-19 06:45:52,382: DEBUG - + replace_string=bookwyrm
2023-11-19 06:45:52,382: DEBUG - + replace_string=bookwyrm
2023-11-19 06:45:52,382: DEBUG - + sed --in-place s@__DB_USER__@bookwyrm@g /var/www/bookwyrm/.env
2023-11-19 06:45:52,382: DEBUG - + for one_var in "${uniques_vars[@]}"
2023-11-19 06:45:52,382: DEBUG - + [[ -v domain ]]
2023-11-19 06:45:52,383: DEBUG - + match_string=__DOMAIN__
2023-11-19 06:45:52,383: DEBUG - + match_string=__DOMAIN__
2023-11-19 06:45:52,383: DEBUG - + replace_string=biblio.maindomain.tld
2023-11-19 06:45:52,383: DEBUG - + replace_string=biblio.maindomain.tld
2023-11-19 06:45:52,383: DEBUG - + replace_string=biblio.maindomain.tld
2023-11-19 06:45:52,383: DEBUG - + sed --in-place s@__DOMAIN__@biblio.maindomain.tld@g /var/www/bookwyrm/.env
2023-11-19 06:45:52,384: DEBUG - + for one_var in "${uniques_vars[@]}"
2023-11-19 06:45:52,384: DEBUG - + [[ -v install_dir ]]
2023-11-19 06:45:52,384: DEBUG - + match_string=__INSTALL_DIR__
2023-11-19 06:45:52,384: DEBUG - + match_string=__INSTALL_DIR__
2023-11-19 06:45:52,384: DEBUG - + replace_string=/var/www/bookwyrm
2023-11-19 06:45:52,384: DEBUG - + replace_string=/var/www/bookwyrm
2023-11-19 06:45:52,384: DEBUG - + replace_string=/var/www/bookwyrm
2023-11-19 06:45:52,384: DEBUG - + sed --in-place s@__INSTALL_DIR__@/var/www/bookwyrm@g /var/www/bookwyrm/.env
2023-11-19 06:45:52,385: DEBUG - + for one_var in "${uniques_vars[@]}"
2023-11-19 06:45:52,385: DEBUG - + [[ -v key ]]
2023-11-19 06:45:52,385: DEBUG - + match_string=__KEY__
2023-11-19 06:45:52,385: DEBUG - + match_string=__KEY__
2023-11-19 06:45:52,385: DEBUG - + replace_string=VQEOHmITfjS7ZLFMVXv47sh9bNI0tJTF
2023-11-19 06:45:52,385: DEBUG - + replace_string=VQEOHmITfjS7ZLFMVXv47sh9bNI0tJTF
2023-11-19 06:45:52,385: DEBUG - + replace_string=VQEOHmITfjS7ZLFMVXv47sh9bNI0tJTF
2023-11-19 06:45:52,385: DEBUG - + sed --in-place s@__KEY__@VQEOHmITfjS7ZLFMVXv47sh9bNI0tJTF@g /var/www/bookwyrm/.env
2023-11-19 06:45:52,386: DEBUG - + for one_var in "${uniques_vars[@]}"
2023-11-19 06:45:52,386: DEBUG - + [[ -v language ]]
2023-11-19 06:45:52,386: DEBUG - + match_string=__LANGUAGE__
2023-11-19 06:45:52,386: DEBUG - + match_string=__LANGUAGE__
2023-11-19 06:45:52,387: DEBUG - + replace_string=fr-fr
2023-11-19 06:45:52,387: DEBUG - + replace_string=fr-fr
2023-11-19 06:45:52,387: DEBUG - + replace_string=fr-fr
2023-11-19 06:45:52,387: DEBUG - + sed --in-place s@__LANGUAGE__@fr-fr@g /var/www/bookwyrm/.env
2023-11-19 06:45:52,388: DEBUG - + ynh_store_file_checksum --file=/var/www/bookwyrm/.env
2023-11-19 06:45:52,389: DEBUG - + update_only=0
2023-11-19 06:45:52,401: DEBUG - + local checksum_setting_name=checksum__var_www_bookwyrm_.env
2023-11-19 06:45:52,401: DEBUG - ++ md5sum /var/www/bookwyrm/.env
2023-11-19 06:45:52,401: DEBUG - ++ cut '--delimiter= ' --fields=1
2023-11-19 06:45:52,403: DEBUG - + ynh_app_setting_set --app=bookwyrm --key=checksum__var_www_bookwyrm_.env --value=d26fa1aae3c192baa122fa56bcef2457
2023-11-19 06:45:52,403: DEBUG - + local _globalapp=bookwyrm
2023-11-19 06:45:52,442: DEBUG - + app=bookwyrm
2023-11-19 06:45:52,443: DEBUG - + [[ checksum__var_www_bookwyrm_.env =~ (unprotected|protected|skipped)_ ]]
2023-11-19 06:45:52,443: DEBUG - + ynh_app_setting set bookwyrm checksum__var_www_bookwyrm_.env d26fa1aae3c192baa122fa56bcef2457
2023-11-19 06:45:52,477: DEBUG - + '[' -n '' ']'
2023-11-19 06:45:52,477: DEBUG - + unset backup_file_checksum
2023-11-19 06:45:52,477: DEBUG - + chmod 600 /var/www/bookwyrm/.env
2023-11-19 06:45:52,478: DEBUG - + chown bookwyrm:www-data /var/www/bookwyrm/.env
2023-11-19 06:45:52,479: DEBUG - + set -a
2023-11-19 06:45:52,479: DEBUG - + source /var/www/bookwyrm/.env
2023-11-19 06:45:52,479: DEBUG - ++ SECRET_KEY=VQEOHmITfjS7ZLFMVXv47sh9bNI0tJTF
2023-11-19 06:45:52,479: DEBUG - ++ DEBUG=false
2023-11-19 06:45:52,479: DEBUG - ++ USE_HTTPS=true
2023-11-19 06:45:52,479: DEBUG - ++ DOMAIN=biblio.maindomain.tld
2023-11-19 06:45:52,479: DEBUG - ++ LANGUAGE_CODE=fr-fr
2023-11-19 06:45:52,479: DEBUG - ++ DEFAULT_LANGUAGE=English
2023-11-19 06:45:52,479: DEBUG - ++ MEDIA_ROOT=/var/www/bookwyrm/images/
2023-11-19 06:45:52,480: DEBUG - ++ PGPORT=5432
2023-11-19 06:45:52,480: DEBUG - ++ POSTGRES_PASSWORD=**********
2023-11-19 06:45:52,480: DEBUG - ++ POSTGRES_USER=bookwyrm
2023-11-19 06:45:52,480: DEBUG - ++ POSTGRES_DB=bookwyrm
2023-11-19 06:45:52,480: DEBUG - ++ POSTGRES_HOST=localhost
2023-11-19 06:45:52,480: DEBUG - ++ MAX_STREAM_LENGTH=200
2023-11-19 06:45:52,480: DEBUG - ++ REDIS_ACTIVITY_HOST=localhost
2023-11-19 06:45:52,480: DEBUG - ++ REDIS_ACTIVITY_PORT=6379
2023-11-19 06:45:52,480: DEBUG - ++ REDIS_ACTIVITY_PASSWORD=
2023-11-19 06:45:52,480: DEBUG - ++ REDIS_BROKER_HOST=localhost
2023-11-19 06:45:52,480: DEBUG - ++ REDIS_BROKER_PORT=6379
2023-11-19 06:45:52,480: DEBUG - ++ REDIS_BROKER_PASSWORD=
2023-11-19 06:45:52,480: DEBUG - ++ FLOWER_PORT=8888
2023-11-19 06:45:52,480: DEBUG - ++ FLOWER_USER=admin
2023-11-19 06:45:52,480: DEBUG - ++ FLOWER_PASSWORD=changeme
2023-11-19 06:45:52,480: DEBUG - ++ EMAIL_HOST=localhost
2023-11-19 06:45:52,480: DEBUG - ++ EMAIL_PORT=587
2023-11-19 06:45:52,480: DEBUG - ++ EMAIL_HOST_USER=wiltur
2023-11-19 06:45:52,481: DEBUG - ++ EMAIL_HOST_PASSWORD=
2023-11-19 06:45:52,481: DEBUG - ++ EMAIL_USE_TLS=true
2023-11-19 06:45:52,481: DEBUG - ++ EMAIL_USE_SSL=false
2023-11-19 06:45:52,481: DEBUG - ++ EMAIL_SENDER_NAME=wiltur
2023-11-19 06:45:52,481: DEBUG - ++ SEARCH_TIMEOUT=5
2023-11-19 06:45:52,481: DEBUG - ++ QUERY_TIMEOUT=5
2023-11-19 06:45:52,481: DEBUG - ++ ENABLE_THUMBNAIL_GENERATION=false
2023-11-19 06:45:52,481: DEBUG - ++ USE_S3=false
2023-11-19 06:45:52,481: DEBUG - ++ AWS_ACCESS_KEY_ID=
2023-11-19 06:45:52,481: DEBUG - ++ AWS_SECRET_ACCESS_KEY=
2023-11-19 06:45:52,481: DEBUG - ++ ENABLE_PREVIEW_IMAGES=False
2023-11-19 06:45:52,481: DEBUG - ++ PREVIEW_BG_COLOR=use_dominant_color_light
2023-11-19 06:45:52,481: DEBUG - ++ PREVIEW_TEXT_COLOR='#363636'
2023-11-19 06:45:52,481: DEBUG - ++ PREVIEW_IMG_WIDTH=1200
2023-11-19 06:45:52,481: DEBUG - ++ PREVIEW_IMG_HEIGHT=630
2023-11-19 06:45:52,481: DEBUG - ++ PREVIEW_DEFAULT_COVER_COLOR='#002549'
2023-11-19 06:45:52,481: DEBUG - ++ OTEL_EXPORTER_OTLP_ENDPOINT=
2023-11-19 06:45:52,481: DEBUG - ++ OTEL_EXPORTER_OTLP_HEADERS=
2023-11-19 06:45:52,481: DEBUG - ++ OTEL_SERVICE_NAME=
2023-11-19 06:45:52,482: DEBUG - ++ HTTP_X_FORWARDED_PROTO=false
2023-11-19 06:45:52,482: DEBUG - + set +a
2023-11-19 06:45:52,482: DEBUG - + mkdir /var/www/bookwyrm/venv
2023-11-19 06:45:52,482: DEBUG - + python3 -m venv /var/www/bookwyrm/venv
2023-11-19 06:45:54,148: DEBUG - + /var/www/bookwyrm/venv/bin/pip3 install -r /var/www/bookwyrm/requirements.txt
2023-11-19 06:45:55,960: DEBUG - Collecting aiohttp==3.8.5
2023-11-19 06:45:55,967: DEBUG -   Using cached aiohttp-3.8.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB)
2023-11-19 06:45:56,015: DEBUG - Collecting bleach==5.0.1
2023-11-19 06:45:56,019: DEBUG -   Using cached bleach-5.0.1-py3-none-any.whl (160 kB)
2023-11-19 06:45:56,112: DEBUG - Collecting celery==5.2.7
2023-11-19 06:45:56,117: DEBUG -   Using cached celery-5.2.7-py3-none-any.whl (405 kB)
2023-11-19 06:45:56,247: DEBUG - Collecting colorthief==0.2.1
2023-11-19 06:45:56,251: DEBUG -   Using cached colorthief-0.2.1-py2.py3-none-any.whl (6.1 kB)
2023-11-19 06:45:56,440: DEBUG - Collecting Django==3.2.20
2023-11-19 06:45:56,465: DEBUG -   Using cached Django-3.2.20-py3-none-any.whl (7.9 MB)
2023-11-19 06:45:56,676: DEBUG - Collecting django-celery-beat==2.4.0
2023-11-19 06:45:56,682: DEBUG -   Using cached django_celery_beat-2.4.0-py3-none-any.whl (94 kB)
2023-11-19 06:45:56,839: DEBUG - Collecting django-compressor==4.3.1
2023-11-19 06:45:56,845: DEBUG -   Using cached django_compressor-4.3.1-py2.py3-none-any.whl (148 kB)
2023-11-19 06:45:57,012: DEBUG - Collecting django-imagekit==4.1.0
2023-11-19 06:45:57,018: DEBUG -   Using cached django_imagekit-4.1.0-py2.py3-none-any.whl (43 kB)
2023-11-19 06:45:57,072: DEBUG - Collecting django-model-utils==4.3.1
2023-11-19 06:45:57,077: DEBUG -   Using cached django_model_utils-4.3.1-py3-none-any.whl (36 kB)
2023-11-19 06:45:57,232: DEBUG - Collecting django-sass-processor==1.2.2
2023-11-19 06:45:57,238: DEBUG -   Using cached django_sass_processor-1.2.2-py3-none-any.whl (20 kB)
2023-11-19 06:45:57,374: DEBUG - Collecting django-csp==3.7
2023-11-19 06:45:57,379: DEBUG -   Using cached django_csp-3.7-py2.py3-none-any.whl (17 kB)
2023-11-19 06:45:57,558: DEBUG - Collecting environs==9.5.0
2023-11-19 06:45:57,562: DEBUG -   Using cached environs-9.5.0-py2.py3-none-any.whl (12 kB)
2023-11-19 06:45:57,612: DEBUG - Collecting flower==1.2.0
2023-11-19 06:45:57,617: DEBUG -   Using cached flower-1.2.0-py2.py3-none-any.whl (410 kB)
2023-11-19 06:45:57,675: DEBUG - Collecting gunicorn==20.0.4
2023-11-19 06:45:57,677: DEBUG -   Using cached gunicorn-20.0.4-py2.py3-none-any.whl (77 kB)
2023-11-19 06:45:57,836: DEBUG - Collecting libsass==0.22.0
2023-11-19 06:45:57,868: DEBUG -   Using cached libsass-0.22.0-cp36-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl (9.4 MB)
2023-11-19 06:45:57,939: DEBUG - Collecting Markdown==3.4.1
2023-11-19 06:45:57,941: DEBUG -   Using cached Markdown-3.4.1-py3-none-any.whl (93 kB)
2023-11-19 06:45:57,985: DEBUG - Collecting packaging==21.3
2023-11-19 06:45:57,988: DEBUG -   Using cached packaging-21.3-py3-none-any.whl (40 kB)
2023-11-19 06:45:58,549: DEBUG - Collecting Pillow==9.4.0
2023-11-19 06:45:58,559: DEBUG -   Using cached Pillow-9.4.0-cp39-cp39-manylinux_2_28_x86_64.whl (3.4 MB)
2023-11-19 06:45:58,743: DEBUG - Collecting psycopg2==2.9.5
2023-11-19 06:45:58,747: DEBUG -   Using cached psycopg2-2.9.5.tar.gz (384 kB)
2023-11-19 06:45:59,391: DEBUG - Collecting pycryptodome==3.16.0
2023-11-19 06:45:59,399: DEBUG -   Using cached pycryptodome-3.16.0-cp35-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (2.3 MB)
2023-11-19 06:45:59,466: DEBUG - Collecting python-dateutil==2.8.2
2023-11-19 06:45:59,471: DEBUG -   Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
2023-11-19 06:45:59,572: DEBUG - Collecting redis==4.5.4
2023-11-19 06:45:59,575: DEBUG -   Using cached redis-4.5.4-py3-none-any.whl (238 kB)
2023-11-19 06:45:59,688: DEBUG - Collecting requests==2.31.0
2023-11-19 06:45:59,691: DEBUG -   Using cached requests-2.31.0-py3-none-any.whl (62 kB)
2023-11-19 06:45:59,740: DEBUG - Collecting responses==0.22.0
2023-11-19 06:45:59,743: DEBUG -   Using cached responses-0.22.0-py3-none-any.whl (51 kB)
2023-11-19 06:45:59,865: DEBUG - Collecting pytz>=2022.7
2023-11-19 06:45:59,870: DEBUG -   Using cached pytz-2023.3.post1-py2.py3-none-any.whl (502 kB)
2023-11-19 06:46:00,661: DEBUG - Collecting boto3==1.26.57
2023-11-19 06:46:00,664: DEBUG -   Using cached boto3-1.26.57-py3-none-any.whl (132 kB)
2023-11-19 06:46:00,737: DEBUG - Collecting django-storages==1.13.2
2023-11-19 06:46:00,740: DEBUG -   Using cached django_storages-1.13.2-py3-none-any.whl (46 kB)
2023-11-19 06:46:00,795: DEBUG - Collecting django-storages[azure]
2023-11-19 06:46:00,798: DEBUG -   Using cached django_storages-1.14.2-py3-none-any.whl (47 kB)
2023-11-19 06:46:00,959: DEBUG - Collecting django-redis==5.2.0
2023-11-19 06:46:00,963: DEBUG -   Using cached django_redis-5.2.0-py3-none-any.whl (30 kB)
2023-11-19 06:46:01,028: DEBUG - Collecting opentelemetry-api==1.16.0
2023-11-19 06:46:01,031: DEBUG -   Using cached opentelemetry_api-1.16.0-py3-none-any.whl (57 kB)
2023-11-19 06:46:01,072: DEBUG - Collecting opentelemetry-exporter-otlp-proto-grpc==1.16.0
2023-11-19 06:46:01,075: DEBUG -   Using cached opentelemetry_exporter_otlp_proto_grpc-1.16.0-py3-none-any.whl (20 kB)
2023-11-19 06:46:01,117: DEBUG - Collecting opentelemetry-instrumentation-celery==0.37b0
2023-11-19 06:46:01,120: DEBUG -   Using cached opentelemetry_instrumentation_celery-0.37b0-py3-none-any.whl (12 kB)
2023-11-19 06:46:01,261: DEBUG - Collecting opentelemetry-instrumentation-django==0.37b0
2023-11-19 06:46:01,263: DEBUG -   Using cached opentelemetry_instrumentation_django-0.37b0-py3-none-any.whl (18 kB)
2023-11-19 06:46:01,307: DEBUG - Collecting opentelemetry-instrumentation-psycopg2==0.37b0
2023-11-19 06:46:01,310: DEBUG -   Using cached opentelemetry_instrumentation_psycopg2-0.37b0-py3-none-any.whl (10 kB)
2023-11-19 06:46:01,357: DEBUG - Collecting opentelemetry-sdk==1.16.0
2023-11-19 06:46:01,360: DEBUG -   Using cached opentelemetry_sdk-1.16.0-py3-none-any.whl (94 kB)
2023-11-19 06:46:01,909: DEBUG - Collecting protobuf==3.20.*
2023-11-19 06:46:01,914: DEBUG -   Using cached protobuf-3.20.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB)
2023-11-19 06:46:01,947: DEBUG - Collecting pyotp==2.8.0
2023-11-19 06:46:01,950: DEBUG -   Using cached pyotp-2.8.0-py3-none-any.whl (12 kB)
2023-11-19 06:46:01,975: DEBUG - Collecting qrcode==7.3.1
2023-11-19 06:46:01,978: DEBUG -   Using cached qrcode-7.3.1.tar.gz (43 kB)
2023-11-19 06:46:02,542: DEBUG - Collecting yarl<2.0,>=1.0
2023-11-19 06:46:02,545: DEBUG -   Using cached yarl-1.9.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (269 kB)
2023-11-19 06:46:02,808: DEBUG - Collecting charset-normalizer<4.0,>=2.0
2023-11-19 06:46:02,812: DEBUG -   Using cached charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (142 kB)
2023-11-19 06:46:03,420: DEBUG - Collecting multidict<7.0,>=4.5
2023-11-19 06:46:03,423: DEBUG -   Using cached multidict-6.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (114 kB)
2023-11-19 06:46:03,455: DEBUG - Collecting async-timeout<5.0,>=4.0.0a3
2023-11-19 06:46:03,458: DEBUG -   Using cached async_timeout-4.0.3-py3-none-any.whl (5.7 kB)
2023-11-19 06:46:03,625: DEBUG - Collecting frozenlist>=1.1.1
2023-11-19 06:46:03,629: DEBUG -   Using cached frozenlist-1.4.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (228 kB)
2023-11-19 06:46:03,708: DEBUG - Collecting attrs>=17.3.0
2023-11-19 06:46:03,712: DEBUG -   Using cached attrs-23.1.0-py3-none-any.whl (61 kB)
2023-11-19 06:46:03,750: DEBUG - Collecting aiosignal>=1.1.2
2023-11-19 06:46:03,754: DEBUG -   Using cached aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
2023-11-19 06:46:03,807: DEBUG - Collecting webencodings
2023-11-19 06:46:03,811: DEBUG -   Using cached webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
2023-11-19 06:46:03,864: DEBUG - Collecting six>=1.9.0
2023-11-19 06:46:03,870: DEBUG -   Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
2023-11-19 06:46:03,931: DEBUG - Collecting s3transfer<0.7.0,>=0.6.0
2023-11-19 06:46:03,935: DEBUG -   Using cached s3transfer-0.6.2-py3-none-any.whl (79 kB)
2023-11-19 06:46:04,971: DEBUG - Collecting botocore<1.30.0,>=1.29.57
2023-11-19 06:46:05,003: DEBUG -   Using cached botocore-1.29.165-py3-none-any.whl (11.0 MB)
2023-11-19 06:46:05,075: DEBUG - Collecting jmespath<2.0.0,>=0.7.1
2023-11-19 06:46:05,079: DEBUG -   Using cached jmespath-1.0.1-py3-none-any.whl (20 kB)
2023-11-19 06:46:05,222: DEBUG - Collecting click<9.0,>=8.0.3
2023-11-19 06:46:05,225: DEBUG -   Using cached click-8.1.7-py3-none-any.whl (97 kB)
2023-11-19 06:46:05,261: DEBUG - Collecting click-didyoumean>=0.0.3
2023-11-19 06:46:05,264: DEBUG -   Using cached click_didyoumean-0.3.0-py3-none-any.whl (2.7 kB)
2023-11-19 06:46:05,285: DEBUG - Collecting click-plugins>=1.1.1
2023-11-19 06:46:05,288: DEBUG -   Using cached click_plugins-1.1.1-py2.py3-none-any.whl (7.5 kB)
2023-11-19 06:46:05,366: DEBUG - Collecting kombu<6.0,>=5.2.3
2023-11-19 06:46:05,369: DEBUG -   Using cached kombu-5.3.4-py3-none-any.whl (199 kB)
2023-11-19 06:46:05,396: DEBUG - Collecting vine<6.0,>=5.0.0
2023-11-19 06:46:05,400: DEBUG -   Using cached vine-5.1.0-py3-none-any.whl (9.6 kB)
2023-11-19 06:46:05,423: DEBUG - Collecting click-repl>=0.2.0
2023-11-19 06:46:05,425: DEBUG -   Using cached click_repl-0.3.0-py3-none-any.whl (10 kB)
2023-11-19 06:46:05,472: DEBUG - Collecting billiard<4.0,>=3.6.4.0
2023-11-19 06:46:05,475: DEBUG -   Using cached billiard-3.6.4.0-py3-none-any.whl (89 kB)
2023-11-19 06:46:05,519: DEBUG - Collecting sqlparse>=0.2.2
2023-11-19 06:46:05,522: DEBUG -   Using cached sqlparse-0.4.4-py3-none-any.whl (41 kB)
2023-11-19 06:46:05,577: DEBUG - Collecting asgiref<4,>=3.3.2
2023-11-19 06:46:05,579: DEBUG -   Using cached asgiref-3.7.2-py3-none-any.whl (24 kB)
2023-11-19 06:46:05,643: DEBUG - Collecting tzdata
2023-11-19 06:46:05,646: DEBUG -   Using cached tzdata-2023.3-py2.py3-none-any.whl (341 kB)
2023-11-19 06:46:05,724: DEBUG - Collecting django-timezone-field>=5.0
2023-11-19 06:46:05,727: DEBUG -   Using cached django_timezone_field-6.0.1-py3-none-any.whl (11 kB)
2023-11-19 06:46:05,866: DEBUG - Collecting python-crontab>=2.3.4
2023-11-19 06:46:05,869: DEBUG -   Using cached python_crontab-3.0.0-py3-none-any.whl (27 kB)
2023-11-19 06:46:05,911: DEBUG - Collecting rcssmin==1.1.1
2023-11-19 06:46:05,917: DEBUG -   Using cached rcssmin-1.1.1-cp39-cp39-manylinux1_x86_64.whl (41 kB)
2023-11-19 06:46:06,104: DEBUG - Collecting rjsmin==1.2.1
2023-11-19 06:46:06,108: DEBUG -   Using cached rjsmin-1.2.1-cp39-cp39-manylinux1_x86_64.whl (28 kB)
2023-11-19 06:46:06,241: DEBUG - Collecting django-appconf>=1.0.3
2023-11-19 06:46:06,245: DEBUG -   Using cached django_appconf-1.0.5-py3-none-any.whl (6.4 kB)
2023-11-19 06:46:06,462: DEBUG - Collecting pilkit>=0.2.0
2023-11-19 06:46:06,466: DEBUG -   Using cached pilkit-3.0-py3-none-any.whl (20 kB)
2023-11-19 06:46:06,680: DEBUG - Collecting marshmallow>=3.0.0
2023-11-19 06:46:06,683: DEBUG -   Using cached marshmallow-3.20.1-py3-none-any.whl (49 kB)
2023-11-19 06:46:06,802: DEBUG - Collecting python-dotenv
2023-11-19 06:46:06,805: DEBUG -   Using cached python_dotenv-1.0.0-py3-none-any.whl (19 kB)
2023-11-19 06:46:06,892: DEBUG - Collecting prometheus-client>=0.8.0
2023-11-19 06:46:06,896: DEBUG -   Using cached prometheus_client-0.18.0-py3-none-any.whl (61 kB)
2023-11-19 06:46:07,112: DEBUG - Collecting tornado<7.0.0,>=5.0.0
2023-11-19 06:46:07,115: DEBUG -   Using cached tornado-6.3.3-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (427 kB)
2023-11-19 06:46:07,187: DEBUG - Collecting humanize
2023-11-19 06:46:07,190: DEBUG -   Using cached humanize-4.8.0-py3-none-any.whl (117 kB)
2023-11-19 06:46:07,208: DEBUG - Requirement already satisfied: setuptools>=3.0 in /var/www/bookwyrm/venv/lib/python3.9/site-packages (from gunicorn==20.0.4->-r /var/www/bookwyrm/requirements.txt (line 14)) (44.1.1)
2023-11-19 06:46:07,330: DEBUG - Collecting importlib-metadata>=4.4
2023-11-19 06:46:07,332: DEBUG -   Using cached importlib_metadata-6.8.0-py3-none-any.whl (22 kB)
2023-11-19 06:46:07,377: DEBUG - Collecting deprecated>=1.2.6
2023-11-19 06:46:07,379: DEBUG -   Using cached Deprecated-1.2.14-py2.py3-none-any.whl (9.6 kB)
2023-11-19 06:46:07,432: DEBUG - Collecting backoff<3.0.0,>=1.10.0
2023-11-19 06:46:07,435: DEBUG -   Using cached backoff-2.2.1-py3-none-any.whl (15 kB)
2023-11-19 06:46:08,953: DEBUG - Collecting grpcio<2.0.0,>=1.0.0
2023-11-19 06:46:09,065: DEBUG -   Downloading grpcio-1.59.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.3 MB)
2023-11-19 06:46:09,328: DEBUG - Collecting opentelemetry-proto==1.16.0
2023-11-19 06:46:09,331: DEBUG -   Using cached opentelemetry_proto-1.16.0-py3-none-any.whl (52 kB)
2023-11-19 06:46:09,397: DEBUG - Collecting googleapis-common-protos~=1.52
2023-11-19 06:46:09,400: DEBUG -   Using cached googleapis_common_protos-1.61.0-py2.py3-none-any.whl (230 kB)
2023-11-19 06:46:09,457: DEBUG - Collecting opentelemetry-instrumentation==0.37b0
2023-11-19 06:46:09,460: DEBUG -   Using cached opentelemetry_instrumentation-0.37b0-py3-none-any.whl (24 kB)
2023-11-19 06:46:09,494: DEBUG - Collecting opentelemetry-semantic-conventions==0.37b0
2023-11-19 06:46:09,496: DEBUG -   Using cached opentelemetry_semantic_conventions-0.37b0-py3-none-any.whl (26 kB)
2023-11-19 06:46:09,680: DEBUG - Collecting opentelemetry-instrumentation-wsgi==0.37b0
2023-11-19 06:46:09,683: DEBUG -   Using cached opentelemetry_instrumentation_wsgi-0.37b0-py3-none-any.whl (12 kB)
2023-11-19 06:46:09,732: DEBUG - Collecting opentelemetry-util-http==0.37b0
2023-11-19 06:46:09,735: DEBUG -   Using cached opentelemetry_util_http-0.37b0-py3-none-any.whl (6.7 kB)
2023-11-19 06:46:09,911: DEBUG - Collecting opentelemetry-instrumentation-dbapi==0.37b0
2023-11-19 06:46:09,914: DEBUG -   Using cached opentelemetry_instrumentation_dbapi-0.37b0-py3-none-any.whl (10 kB)
2023-11-19 06:46:09,981: DEBUG - Collecting typing-extensions>=3.7.4
2023-11-19 06:46:09,984: DEBUG -   Using cached typing_extensions-4.8.0-py3-none-any.whl (31 kB)
2023-11-19 06:46:10,101: DEBUG - Collecting pyparsing!=3.0.5,>=2.0.2
2023-11-19 06:46:10,104: DEBUG -   Using cached pyparsing-3.1.1-py3-none-any.whl (103 kB)
2023-11-19 06:46:10,223: DEBUG - Collecting idna<4,>=2.5
2023-11-19 06:46:10,226: DEBUG -   Using cached idna-3.4-py3-none-any.whl (61 kB)
2023-11-19 06:46:10,295: DEBUG - Collecting certifi>=2017.4.17
2023-11-19 06:46:10,318: DEBUG -   Downloading certifi-2023.11.17-py3-none-any.whl (162 kB)
2023-11-19 06:46:10,444: DEBUG - Collecting urllib3<3,>=1.21.1
2023-11-19 06:46:10,447: DEBUG -   Using cached urllib3-2.1.0-py3-none-any.whl (104 kB)
2023-11-19 06:46:10,636: DEBUG - Collecting types-toml
2023-11-19 06:46:10,639: DEBUG -   Using cached types_toml-0.10.8.7-py3-none-any.whl (4.6 kB)
2023-11-19 06:46:10,728: DEBUG - Collecting toml
2023-11-19 06:46:10,731: DEBUG -   Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
2023-11-19 06:46:11,053: DEBUG - Collecting wrapt<2.0.0,>=1.0.0
2023-11-19 06:46:11,056: DEBUG -   Using cached wrapt-1.16.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (80 kB)
2023-11-19 06:46:11,389: DEBUG - Collecting urllib3<3,>=1.21.1
2023-11-19 06:46:11,392: DEBUG -   Using cached urllib3-1.26.18-py2.py3-none-any.whl (143 kB)
2023-11-19 06:46:11,543: DEBUG - Collecting prompt-toolkit>=3.0.36
2023-11-19 06:46:11,546: DEBUG -   Using cached prompt_toolkit-3.0.41-py3-none-any.whl (385 kB)
2023-11-19 06:46:11,781: DEBUG - Collecting zipp>=0.5
2023-11-19 06:46:11,783: DEBUG -   Using cached zipp-3.17.0-py3-none-any.whl (7.4 kB)
2023-11-19 06:46:11,867: DEBUG - Collecting amqp<6.0.0,>=5.1.1
2023-11-19 06:46:11,870: DEBUG -   Using cached amqp-5.2.0-py3-none-any.whl (50 kB)
2023-11-19 06:46:11,982: DEBUG - Collecting wcwidth
2023-11-19 06:46:11,984: DEBUG -   Using cached wcwidth-0.2.10-py2.py3-none-any.whl (105 kB)
2023-11-19 06:46:12,453: DEBUG - Collecting django-storages[azure]
2023-11-19 06:46:12,455: DEBUG -   Using cached django_storages-1.14.1-py3-none-any.whl (46 kB)
2023-11-19 06:46:12,475: DEBUG -   Using cached django_storages-1.14-py3-none-any.whl (46 kB)
2023-11-19 06:46:12,697: DEBUG - Collecting azure-storage-blob>=12.0.0
2023-11-19 06:46:12,700: DEBUG -   Using cached azure_storage_blob-12.19.0-py3-none-any.whl (394 kB)
2023-11-19 06:46:13,223: DEBUG - Collecting cryptography>=2.1.4
2023-11-19 06:46:13,233: DEBUG -   Using cached cryptography-41.0.5-cp37-abi3-manylinux_2_28_x86_64.whl (4.4 MB)
2023-11-19 06:46:13,300: DEBUG - Collecting azure-core<2.0.0,>=1.28.0
2023-11-19 06:46:13,303: DEBUG -   Using cached azure_core-1.29.5-py3-none-any.whl (192 kB)
2023-11-19 06:46:13,327: DEBUG - Collecting isodate>=0.6.1
2023-11-19 06:46:13,330: DEBUG -   Using cached isodate-0.6.1-py2.py3-none-any.whl (41 kB)
2023-11-19 06:46:13,834: DEBUG - Collecting cffi>=1.12
2023-11-19 06:46:13,838: DEBUG -   Using cached cffi-1.16.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (443 kB)
2023-11-19 06:46:13,874: DEBUG - Collecting pycparser
2023-11-19 06:46:13,877: DEBUG -   Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
2023-11-19 06:46:13,978: DEBUG - Using legacy 'setup.py install' for psycopg2, since package 'wheel' is not installed.
2023-11-19 06:46:13,978: DEBUG - Using legacy 'setup.py install' for qrcode, since package 'wheel' is not installed.
2023-11-19 06:46:14,373: DEBUG - Installing collected packages: wrapt, wcwidth, vine, urllib3, typing-extensions, six, pycparser, idna, deprecated, charset-normalizer, certifi, sqlparse, requests, pytz, python-dateutil, pyparsing, prompt-toolkit, opentelemetry-api, jmespath, click, cffi, asgiref, amqp, zipp, protobuf, Pillow, packaging, opentelemetry-util-http, opentelemetry-semantic-conventions, opentelemetry-instrumentation, multidict, kombu, isodate, frozenlist, Django, cryptography, click-repl, click-plugins, click-didyoumean, botocore, billiard, azure-core, async-timeout, yarl, webencodings, tzdata, types-toml, tornado, toml, s3transfer, rjsmin, redis, rcssmin, python-dotenv, python-crontab, prometheus-client, pilkit, opentelemetry-sdk, opentelemetry-proto, opentelemetry-instrumentation-wsgi, opentelemetry-instrumentation-dbapi, marshmallow, importlib-metadata, humanize, grpcio, googleapis-common-protos, django-timezone-field, django-storages, django-appconf, celery, backoff, azure-storage-blob, attrs, aiosignal, responses, qrcode, pyotp, pycryptodome, psycopg2, opentelemetry-instrumentation-psycopg2, opentelemetry-instrumentation-django, opentelemetry-instrumentation-celery, opentelemetry-exporter-otlp-proto-grpc, Markdown, libsass, gunicorn, flower, environs, django-sass-processor, django-redis, django-model-utils, django-imagekit, django-csp, django-compressor, django-celery-beat, colorthief, boto3, bleach, aiohttp
2023-11-19 06:46:19,383: DEBUG -     Running setup.py install for qrcode: started
2023-11-19 06:46:19,657: DEBUG -     Running setup.py install for qrcode: finished with status 'done'
2023-11-19 06:46:19,999: DEBUG -     Running setup.py install for psycopg2: started
2023-11-19 06:46:25,778: DEBUG -     Running setup.py install for psycopg2: finished with status 'done'
2023-11-19 06:46:26,579: DEBUG - Successfully installed Django-3.2.20 Markdown-3.4.1 Pillow-9.4.0 aiohttp-3.8.5 aiosignal-1.3.1 amqp-5.2.0 asgiref-3.7.2 async-timeout-4.0.3 attrs-23.1.0 azure-core-1.29.5 azure-storage-blob-12.19.0 backoff-2.2.1 billiard-3.6.4.0 bleach-5.0.1 boto3-1.26.57 botocore-1.29.165 celery-5.2.7 certifi-2023.11.17 cffi-1.16.0 charset-normalizer-3.3.2 click-8.1.7 click-didyoumean-0.3.0 click-plugins-1.1.1 click-repl-0.3.0 colorthief-0.2.1 cryptography-41.0.5 deprecated-1.2.14 django-appconf-1.0.5 django-celery-beat-2.4.0 django-compressor-4.3.1 django-csp-3.7 django-imagekit-4.1.0 django-model-utils-4.3.1 django-redis-5.2.0 django-sass-processor-1.2.2 django-storages-1.13.2 django-timezone-field-6.0.1 environs-9.5.0 flower-1.2.0 frozenlist-1.4.0 googleapis-common-protos-1.61.0 grpcio-1.59.3 gunicorn-20.0.4 humanize-4.8.0 idna-3.4 importlib-metadata-6.8.0 isodate-0.6.1 jmespath-1.0.1 kombu-5.3.4 libsass-0.22.0 marshmallow-3.20.1 multidict-6.0.4 opentelemetry-api-1.16.0 opentelemetry-exporter-otlp-proto-grpc-1.16.0 opentelemetry-instrumentation-0.37b0 opentelemetry-instrumentation-celery-0.37b0 opentelemetry-instrumentation-dbapi-0.37b0 opentelemetry-instrumentation-django-0.37b0 opentelemetry-instrumentation-psycopg2-0.37b0 opentelemetry-instrumentation-wsgi-0.37b0 opentelemetry-proto-1.16.0 opentelemetry-sdk-1.16.0 opentelemetry-semantic-conventions-0.37b0 opentelemetry-util-http-0.37b0 packaging-21.3 pilkit-3.0 prometheus-client-0.18.0 prompt-toolkit-3.0.41 protobuf-3.20.3 psycopg2-2.9.5 pycparser-2.21 pycryptodome-3.16.0 pyotp-2.8.0 pyparsing-3.1.1 python-crontab-3.0.0 python-dateutil-2.8.2 python-dotenv-1.0.0 pytz-2023.3.post1 qrcode-7.3.1 rcssmin-1.1.1 redis-4.5.4 requests-2.31.0 responses-0.22.0 rjsmin-1.2.1 s3transfer-0.6.2 six-1.16.0 sqlparse-0.4.4 toml-0.10.2 tornado-6.3.3 types-toml-0.10.8.7 typing-extensions-4.8.0 tzdata-2023.3 urllib3-1.26.18 vine-5.1.0 wcwidth-0.2.10 webencodings-0.5.1 wrapt-1.16.0 yarl-1.9.2 zipp-3.17.0
2023-11-19 06:46:27,107: DEBUG - + /var/www/bookwyrm/venv/bin/python3 /var/www/bookwyrm/manage.py migrate
2023-11-19 06:46:27,107: INFO - [#####++.............] > Initializing database...
2023-11-19 06:46:28,674: DEBUG - Operations to perform:
2023-11-19 06:46:28,675: DEBUG -   Apply all migrations: admin, auth, bookwyrm, contenttypes, django_celery_beat, sessions
2023-11-19 06:46:28,675: DEBUG - Running migrations:
2023-11-19 06:46:28,688: DEBUG -   Applying contenttypes.0001_initial... OK
2023-11-19 06:46:28,695: DEBUG -   Applying contenttypes.0002_remove_content_type_name... OK
2023-11-19 06:46:28,726: DEBUG -   Applying auth.0001_initial... OK
2023-11-19 06:46:28,735: DEBUG -   Applying auth.0002_alter_permission_name_max_length... OK
2023-11-19 06:46:28,743: DEBUG -   Applying auth.0003_alter_user_email_max_length... OK
2023-11-19 06:46:28,748: DEBUG -   Applying auth.0004_alter_user_username_opts... OK
2023-11-19 06:46:28,758: DEBUG -   Applying auth.0005_alter_user_last_login_null... OK
2023-11-19 06:46:28,761: DEBUG -   Applying auth.0006_require_contenttypes_0002... OK
2023-11-19 06:46:28,769: DEBUG -   Applying auth.0007_alter_validators_add_error_messages... OK
2023-11-19 06:46:28,775: DEBUG -   Applying auth.0008_alter_user_username_max_length... OK
2023-11-19 06:46:28,782: DEBUG -   Applying auth.0009_alter_user_last_name_max_length... OK
2023-11-19 06:46:28,792: DEBUG -   Applying auth.0010_alter_group_name_max_length... OK
2023-11-19 06:46:28,799: DEBUG -   Applying auth.0011_update_proxy_permissions... OK
2023-11-19 06:46:29,050: DEBUG -   Applying bookwyrm.0001_initial... OK
2023-11-19 06:46:29,076: DEBUG -   Applying admin.0001_initial... OK
2023-11-19 06:46:29,088: DEBUG -   Applying admin.0002_logentry_remove_auto_add... OK
2023-11-19 06:46:29,098: DEBUG -   Applying admin.0003_logentry_add_action_flag_choices... OK
2023-11-19 06:46:29,104: DEBUG -   Applying auth.0012_alter_user_first_name_max_length... OK
2023-11-19 06:46:29,143: DEBUG -   Applying bookwyrm.0002_auto_20200219_0816... OK
2023-11-19 06:46:29,353: DEBUG -   Applying bookwyrm.0003_auto_20200221_0131... OK
2023-11-19 06:46:29,378: DEBUG -   Applying bookwyrm.0004_tag... OK
2023-11-19 06:46:29,460: DEBUG -   Applying bookwyrm.0005_auto_20200221_1645... OK
2023-11-19 06:46:32,489: WARNING - Traceback (most recent call last):
2023-11-19 06:46:32,489: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
2023-11-19 06:46:32,490: WARNING -     return self.cursor.execute(sql, params)
2023-11-19 06:46:32,491: WARNING - psycopg2.errors.InsufficientPrivilege: permission denied to create extension "pg_trgm"
2023-11-19 06:46:32,491: WARNING - HINT:  Must be superuser to create this extension.
2023-11-19 06:46:32,491: DEBUG - 
2023-11-19 06:46:32,491: DEBUG - 
2023-11-19 06:46:32,492: WARNING - The above exception was the direct cause of the following exception:
2023-11-19 06:46:32,492: DEBUG - 
2023-11-19 06:46:32,492: WARNING - Traceback (most recent call last):
2023-11-19 06:46:32,492: WARNING -   File "/var/www/bookwyrm/manage.py", line 18, in <module>
2023-11-19 06:46:32,493: WARNING -     execute_from_command_line(sys.argv)
2023-11-19 06:46:32,493: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
2023-11-19 06:46:32,493: WARNING -     utility.execute()
2023-11-19 06:46:32,494: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/core/management/__init__.py", line 413, in execute
2023-11-19 06:46:32,494: WARNING -     self.fetch_command(subcommand).run_from_argv(self.argv)
2023-11-19 06:46:32,495: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/core/management/base.py", line 354, in run_from_argv
2023-11-19 06:46:32,495: WARNING -     self.execute(*args, **cmd_options)
2023-11-19 06:46:32,498: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/core/management/base.py", line 398, in execute
2023-11-19 06:46:32,499: WARNING -     output = self.handle(*args, **options)
2023-11-19 06:46:32,499: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/core/management/base.py", line 89, in wrapped
2023-11-19 06:46:32,501: WARNING -     res = handle_func(*args, **kwargs)
2023-11-19 06:46:32,502: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/core/management/commands/migrate.py", line 244, in handle
2023-11-19 06:46:32,502: WARNING -     post_migrate_state = executor.migrate(
2023-11-19 06:46:32,503: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/db/migrations/executor.py", line 117, in migrate
2023-11-19 06:46:32,503: WARNING -     state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
2023-11-19 06:46:32,504: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/db/migrations/executor.py", line 147, in _migrate_all_forwards
2023-11-19 06:46:32,505: WARNING -     state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
2023-11-19 06:46:32,505: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/db/migrations/executor.py", line 227, in apply_migration
2023-11-19 06:46:32,506: WARNING -     state = migration.apply(state, schema_editor)
2023-11-19 06:46:32,506: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/db/migrations/migration.py", line 126, in apply
2023-11-19 06:46:32,507: WARNING -     operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
2023-11-19 06:46:32,507: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/contrib/postgres/operations.py", line 25, in database_forwards
2023-11-19 06:46:32,508: WARNING -     schema_editor.execute(
2023-11-19 06:46:32,508: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/db/backends/base/schema.py", line 145, in execute
2023-11-19 06:46:32,509: WARNING -     cursor.execute(sql, params)
2023-11-19 06:46:32,509: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 66, in execute
2023-11-19 06:46:32,510: WARNING -     return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
2023-11-19 06:46:32,510: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
2023-11-19 06:46:32,511: WARNING -     return executor(sql, params, many, context)
2023-11-19 06:46:32,511: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
2023-11-19 06:46:32,512: WARNING -     return self.cursor.execute(sql, params)
2023-11-19 06:46:32,512: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/db/utils.py", line 90, in __exit__
2023-11-19 06:46:32,513: WARNING -     raise dj_exc_value.with_traceback(traceback) from exc_value
2023-11-19 06:46:32,513: WARNING -   File "/var/www/bookwyrm/venv/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
2023-11-19 06:46:32,514: WARNING -     return self.cursor.execute(sql, params)
2023-11-19 06:46:32,514: WARNING - django.db.utils.ProgrammingError: permission denied to create extension "pg_trgm"
2023-11-19 06:46:32,514: WARNING - HINT:  Must be superuser to create this extension.
2023-11-19 06:46:32,515: DEBUG - 
2023-11-19 06:46:32,804: DEBUG -   Applying bookwyrm.0006_auto_20200221_1702_squashed_0064_merge_20201101_1913...+ ynh_exit_properly
2023-11-19 06:46:32,804: DEBUG - + [[ install =~ ^install$|^upgrade$|^restore$ ]]
2023-11-19 06:46:34,308: ERROR - Impossible d'installer bookwyrm : Une erreur est survenue dans le script d'installation de l'application


Speculative fix here: Initialize pg_trgm as root. by orhtej2 · Pull Request #52 · YunoHost-Apps/bookwyrm_ynh · GitHub

You can test it by running

sudo yunohost app install https://github.com/orhtej2/bookwyrm_ynh/tree/patch-1

Well it doesn’t works too :frowning:

But thank for the try.

Would it be possible for you to share the installation logs again?

I’m switching to a new hosting provider, I’ll try there, and tell if works :slight_smile:

1 Like

Well It work now with debain 11 . Maybe it’s my was debian 9 the problem…

What ?
How did you managed to have Debian 9 with YunoHost 11 ? o_O
YunoHost 11 is working on Debian 11, and only on Debian 11.
(and in the topic header you also said Bullseyes, which is Debian 11)