args:
  app: nextcloud
  purge: false
ended_at: 2022-05-04 15:38:05.685610
env:
  BASH_XTRACEFD: '7'
  YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_ohw0u6of
  YNH_APP_ID: nextcloud
  YNH_APP_INSTANCE_NAME: nextcloud
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_APP_MANIFEST_VERSION: 22.2.3~ynh1
  YNH_APP_PURGE: '0'
  YNH_ARCH: armhf
  YNH_CWD: /var/cache/yunohost/app_tmp_work_dirs/app_ohw0u6of/scripts
  YNH_INTERFACE: cli
  YNH_STDRETURN: /tmp/tmptwo2imyj/stdreturn
error: 'This action seems to have broken these important services: mysql (failed)'
interface: cli
operation: app_remove
parent: 20220504-151912-app_upgrade-nextcloud
related_to:
- - app
  - nextcloud
started_at: 2022-05-04 15:36:37.046261
success: false
yunohost_version: 4.3.6.3

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

2022-05-04 15:36:37,122: INFO - Removing nextcloud...
2022-05-04 15:36:41,223: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./remove"  7>&1']'
2022-05-04 15:36:41,256: DEBUG - + source _common.sh
2022-05-04 15:36:41,259: DEBUG - ++ YNH_PHP_VERSION=7.3
2022-05-04 15:36:41,261: DEBUG - ++ pkg_dependencies='imagemagick libmagickcore-6.q16-6-extra acl tar smbclient at php7.3-bz2 php7.3-imap php7.3-gmp php7.3-gd php7.3-json php7.3-intl php7.3-curl php7.3-apcu php7.3-redis php7.3-ldap php7.3-imagick php7.3-zip php7.3-mbstring php7.3-xml php7.3-mysql php7.3-igbinary php7.3-bcmath'
2022-05-04 15:36:41,264: DEBUG - + source /usr/share/yunohost/helpers
2022-05-04 15:36:41,269: DEBUG - +++ set +o
2022-05-04 15:36:41,272: DEBUG - +++ grep xtrace
2022-05-04 15:36:41,290: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2022-05-04 15:36:41,293: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2022-05-04 15:36:42,226: INFO - [....................] > Loading installation settings...
2022-05-04 15:36:42,240: DEBUG - + app=nextcloud
2022-05-04 15:36:42,242: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=domain
2022-05-04 15:36:42,245: DEBUG - ++ local _globalapp=nextcloud
2022-05-04 15:36:42,459: DEBUG - ++ app=nextcloud
2022-05-04 15:36:42,461: DEBUG - ++ [[ domain =~ (unprotected|protected|skipped)_ ]]
2022-05-04 15:36:42,464: DEBUG - ++ ynh_app_setting get nextcloud domain
2022-05-04 15:36:43,016: DEBUG - + domain=nextcloud.maindomain.tld
2022-05-04 15:36:43,022: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=db_name
2022-05-04 15:36:43,025: DEBUG - ++ local _globalapp=nextcloud
2022-05-04 15:36:43,247: DEBUG - ++ app=nextcloud
2022-05-04 15:36:43,250: DEBUG - ++ [[ db_name =~ (unprotected|protected|skipped)_ ]]
2022-05-04 15:36:43,252: DEBUG - ++ ynh_app_setting get nextcloud db_name
2022-05-04 15:36:43,797: DEBUG - + db_name=nextcloud
2022-05-04 15:36:43,802: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=final_path
2022-05-04 15:36:43,805: DEBUG - ++ local _globalapp=nextcloud
2022-05-04 15:36:44,041: DEBUG - ++ app=nextcloud
2022-05-04 15:36:44,044: DEBUG - ++ [[ final_path =~ (unprotected|protected|skipped)_ ]]
2022-05-04 15:36:44,049: DEBUG - ++ ynh_app_setting get nextcloud final_path
2022-05-04 15:36:44,591: DEBUG - + final_path=/var/www/nextcloud
2022-05-04 15:36:44,596: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=datadir
2022-05-04 15:36:44,599: DEBUG - ++ local _globalapp=nextcloud
2022-05-04 15:36:44,829: DEBUG - ++ app=nextcloud
2022-05-04 15:36:44,832: DEBUG - ++ [[ datadir =~ (unprotected|protected|skipped)_ ]]
2022-05-04 15:36:44,835: DEBUG - ++ ynh_app_setting get nextcloud datadir
2022-05-04 15:36:45,392: DEBUG - + datadir=/home/yunohost.app/nextcloud
2022-05-04 15:36:45,908: INFO - [+++++++++...........] > Removing dependencies...
2022-05-04 15:36:45,918: DEBUG - + ynh_remove_app_dependencies
2022-05-04 15:36:45,921: DEBUG - + local dep_app=nextcloud
2022-05-04 15:36:45,923: DEBUG - + local current_dependencies=
2022-05-04 15:36:45,925: DEBUG - + ynh_package_is_installed --package=nextcloud-ynh-deps
2022-05-04 15:36:45,987: DEBUG - + ynh_wait_dpkg_free
2022-05-04 15:36:46,603: DEBUG - + return 0
2022-05-04 15:36:46,609: DEBUG - + dpkg-query --show '--showformat=${Status}' nextcloud-ynh-deps
2022-05-04 15:36:46,611: DEBUG - + grep --count 'ok installed'
2022-05-04 15:36:46,733: DEBUG - ++ dpkg-query --show '--showformat=${Depends}' nextcloud-ynh-deps
2022-05-04 15:36:46,832: DEBUG - + current_dependencies='imagemagick, libmagickcore-6.q16-6-extra, acl, tar, smbclient, at, php7.3-bz2, php7.3-imap, php7.3-gmp, php7.3-gd, php7.3-json, php7.3-intl, php7.3-curl, php7.3-apcu, php7.3-redis, php7.3-ldap, php7.3-imagick, php7.3-zip, php7.3-mbstring, php7.3-xml, php7.3-mysql, php7.3-igbinary, php7.3-bcmath '
2022-05-04 15:36:46,836: DEBUG - + current_dependencies='imagemagick, libmagickcore-6.q16-6-extra, acl, tar, smbclient, at, php7.3-bz2, php7.3-imap, php7.3-gmp, php7.3-gd, php7.3-json, php7.3-intl, php7.3-curl, php7.3-apcu, php7.3-redis, php7.3-ldap, php7.3-imagick, php7.3-zip, php7.3-mbstring, php7.3-xml, php7.3-mysql, php7.3-igbinary, php7.3-bcmath '
2022-05-04 15:36:46,839: DEBUG - + ynh_package_autopurge nextcloud-ynh-deps
2022-05-04 15:36:46,841: DEBUG - + ynh_apt autoremove --purge nextcloud-ynh-deps
2022-05-04 15:36:46,843: DEBUG - + ynh_wait_dpkg_free
2022-05-04 15:36:47,517: DEBUG - + return 0
2022-05-04 15:36:47,520: DEBUG - + LC_ALL=C
2022-05-04 15:36:47,523: DEBUG - + DEBIAN_FRONTEND=noninteractive
2022-05-04 15:36:47,525: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 autoremove --purge nextcloud-ynh-deps
2022-05-04 15:36:48,177: DEBUG - Reading package lists...
2022-05-04 15:36:49,673: DEBUG - Building dependency tree...
2022-05-04 15:36:49,684: DEBUG - Reading state information...
2022-05-04 15:36:52,202: DEBUG - The following packages will be REMOVED:
2022-05-04 15:36:52,205: DEBUG -   libarchive13* libavahi-client3* libavahi-common-data* libavahi-common3*
2022-05-04 15:36:52,214: DEBUG -   libc-client2007e* libcups2* libjansson4* libldb1* libsmbclient* libtalloc2*
2022-05-04 15:36:52,219: DEBUG -   libtdb1* libtevent0* libwbclient0* libzip4* mlock* nextcloud-ynh-deps*
2022-05-04 15:36:52,221: DEBUG -   php7.3-apcu* php7.3-bcmath* php7.3-bz2* php7.3-gmp* php7.3-igbinary*
2022-05-04 15:36:52,225: DEBUG -   php7.3-imap* php7.3-redis* php7.3-zip* python-talloc* samba-common*
2022-05-04 15:36:52,235: DEBUG -   samba-libs* smbclient*
2022-05-04 15:36:56,260: DEBUG - 0 upgraded, 0 newly installed, 28 to remove and 0 not upgraded.
2022-05-04 15:36:56,264: DEBUG - After this operation, 24.0 MB disk space will be freed.
2022-05-04 15:36:56,993: DEBUG - (Reading database ... 53702 files and directories currently installed.)
2022-05-04 15:36:57,014: DEBUG - Removing nextcloud-ynh-deps (22.2.7~ynh1) ...
2022-05-04 15:36:57,111: DEBUG - Removing smbclient (2:4.9.5+dfsg-5+deb10u3) ...
2022-05-04 15:36:57,243: DEBUG - Removing libarchive13:armhf (3.3.3-4+deb10u1) ...
2022-05-04 15:36:57,345: DEBUG - Removing libsmbclient:armhf (2:4.9.5+dfsg-5+deb10u3) ...
2022-05-04 15:36:57,444: DEBUG - Removing samba-libs:armhf (2:4.9.5+dfsg-5+deb10u3) ...
2022-05-04 15:36:57,698: DEBUG - Removing libcups2:armhf (2.2.10-6+deb10u5) ...
2022-05-04 15:36:57,791: DEBUG - Removing libavahi-client3:armhf (0.7-4+deb10u1) ...
2022-05-04 15:36:58,012: DEBUG - Removing libavahi-common3:armhf (0.7-4+deb10u1) ...
2022-05-04 15:36:58,071: DEBUG - Removing libavahi-common-data:armhf (0.7-4+deb10u1) ...
2022-05-04 15:36:58,246: DEBUG - Removing php7.3-imap (7.3.33-1+0~20211119.91+debian10~1.gbp618351) ...
2022-05-04 15:36:58,905: DEBUG - Removing libc-client2007e (8:2007f~dfsg-6) ...
2022-05-04 15:36:58,998: DEBUG - Removing libjansson4:armhf (2.12-1) ...
2022-05-04 15:36:59,089: DEBUG - Removing libldb1:armhf (2:1.5.1+really1.4.6-3+deb10u1) ...
2022-05-04 15:36:59,188: DEBUG - Removing libtevent0:armhf (0.9.37-1) ...
2022-05-04 15:36:59,277: DEBUG - Removing python-talloc:armhf (2.1.14-2) ...
2022-05-04 15:36:59,370: DEBUG - Removing libtalloc2:armhf (2.1.14-2) ...
2022-05-04 15:36:59,478: DEBUG - Removing libtdb1:armhf (1.3.16-2+b1) ...
2022-05-04 15:36:59,569: DEBUG - Removing libwbclient0:armhf (2:4.9.5+dfsg-5+deb10u3) ...
2022-05-04 15:36:59,662: DEBUG - Removing php7.3-zip (7.3.33-1+0~20211119.91+debian10~1.gbp618351) ...
2022-05-04 15:37:00,168: DEBUG - Removing libzip4:armhf (1.7.3-1+0~20210114.10+debian10~1.gbp4c125d) ...
2022-05-04 15:37:00,260: DEBUG - Removing mlock (8:2007f~dfsg-6) ...
2022-05-04 15:37:00,356: DEBUG - Removing php7.3-apcu (5.1.21+4.0.11-7+0~20220117.31+debian10~1.gbp9a887a) ...
2022-05-04 15:37:00,957: DEBUG - Removing php7.3-bcmath (7.3.33-1+0~20211119.91+debian10~1.gbp618351) ...
2022-05-04 15:37:01,457: DEBUG - Removing php7.3-bz2 (7.3.33-1+0~20211119.91+debian10~1.gbp618351) ...
2022-05-04 15:37:01,953: DEBUG - Removing php7.3-gmp (7.3.33-1+0~20211119.91+debian10~1.gbp618351) ...
2022-05-04 15:37:02,508: DEBUG - Removing php7.3-redis (5.3.7+4.3.0-1+0~20220330.42+debian10~1.gbp6fe8b7) ...
2022-05-04 15:37:03,006: DEBUG - Removing php7.3-igbinary (3.2.6+2.0.8-6+0~20220131.33+debian10~1.gbp1d540e) ...
2022-05-04 15:37:03,518: DEBUG - Removing samba-common (2:4.9.5+dfsg-5+deb10u3) ...
2022-05-04 15:37:03,783: DEBUG - Processing triggers for libc-bin (2.28-10+deb10u1) ...
2022-05-04 15:37:04,651: DEBUG - Processing triggers for man-db (2.8.5-2) ...
2022-05-04 15:37:06,561: DEBUG - Processing triggers for php7.3-fpm (7.3.33-1+0~20211119.91+debian10~1.gbp618351) ...
2022-05-04 15:37:12,617: DEBUG - (Reading database ... 53224 files and directories currently installed.)
2022-05-04 15:37:12,648: DEBUG - Purging configuration files for php7.3-bcmath (7.3.33-1+0~20211119.91+debian10~1.gbp618351) ...
2022-05-04 15:37:12,784: DEBUG - /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2022-05-04 15:37:13,198: DEBUG - /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2022-05-04 15:37:14,243: DEBUG - Purging configuration files for php7.3-apcu (5.1.21+4.0.11-7+0~20220117.31+debian10~1.gbp9a887a) ...
2022-05-04 15:37:14,340: DEBUG - Purging configuration files for php7.3-bz2 (7.3.33-1+0~20211119.91+debian10~1.gbp618351) ...
2022-05-04 15:37:14,418: DEBUG - /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2022-05-04 15:37:14,769: DEBUG - /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2022-05-04 15:37:15,749: DEBUG - Purging configuration files for samba-common (2:4.9.5+dfsg-5+deb10u3) ...
2022-05-04 15:37:15,812: DEBUG - /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2022-05-04 15:37:16,111: DEBUG - /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2022-05-04 15:37:17,495: DEBUG - /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2022-05-04 15:37:17,781: DEBUG - /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2022-05-04 15:37:18,386: DEBUG - Purging configuration files for php7.3-redis (5.3.7+4.3.0-1+0~20220330.42+debian10~1.gbp6fe8b7) ...
2022-05-04 15:37:18,482: DEBUG - Purging configuration files for php7.3-gmp (7.3.33-1+0~20211119.91+debian10~1.gbp618351) ...
2022-05-04 15:37:18,558: DEBUG - /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2022-05-04 15:37:18,852: DEBUG - /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2022-05-04 15:37:19,765: DEBUG - Purging configuration files for php7.3-igbinary (3.2.6+2.0.8-6+0~20220131.33+debian10~1.gbp1d540e) ...
2022-05-04 15:37:19,870: DEBUG - Purging configuration files for php7.3-imap (7.3.33-1+0~20211119.91+debian10~1.gbp618351) ...
2022-05-04 15:37:19,947: DEBUG - /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2022-05-04 15:37:20,271: DEBUG - /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2022-05-04 15:37:21,329: DEBUG - Purging configuration files for php7.3-zip (7.3.33-1+0~20211119.91+debian10~1.gbp618351) ...
2022-05-04 15:37:21,438: DEBUG - /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2022-05-04 15:37:21,735: DEBUG - /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2022-05-04 15:37:24,416: DEBUG - ++ echo imagemagick, libmagickcore-6.q16-6-extra, acl, tar, smbclient, at, php7.3-bz2, php7.3-imap, php7.3-gmp, php7.3-gd, php7.3-json, php7.3-intl, php7.3-curl, php7.3-apcu, php7.3-redis, php7.3-ldap, php7.3-imagick, php7.3-zip, php7.3-mbstring, php7.3-xml, php7.3-mysql, php7.3-igbinary, php7.3-bcmath
2022-05-04 15:37:24,422: DEBUG - ++ sed s/php//g
2022-05-04 15:37:24,425: DEBUG - ++ sort
2022-05-04 15:37:24,436: DEBUG - ++ grep -o -E '\<php[0-9.]+\>'
2022-05-04 15:37:24,438: DEBUG - ++ uniq
2022-05-04 15:37:24,449: DEBUG - ++ tr - ' '
2022-05-04 15:37:24,463: DEBUG - + local specific_php_version=7.3
2022-05-04 15:37:24,465: DEBUG - + [[ 7.3 != \7\.\3 ]]
2022-05-04 15:37:24,468: DEBUG - + specific_php_version=
2022-05-04 15:37:24,993: INFO - [#########+++........] > Removing the MySQL database...
2022-05-04 15:37:25,001: DEBUG - + ynh_mysql_remove_db --db_user=nextcloud --db_name=nextcloud
2022-05-04 15:37:25,008: DEBUG - + local -Ar args_array
2022-05-04 15:37:25,256: DEBUG - + mysqlshow
2022-05-04 15:37:25,259: DEBUG - + grep -q '^| nextcloud '
2022-05-04 15:37:29,017: WARNING - mysqlshow: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)
2022-05-04 15:37:29,019: DEBUG - + ynh_print_warn '--message=Database nextcloud not found'
2022-05-04 15:37:29,153: DEBUG - + ynh_print_log 'Database nextcloud not found'
2022-05-04 15:37:29,155: DEBUG - + echo -e 'Database nextcloud not found'
2022-05-04 15:37:29,159: WARNING - Database nextcloud not found
2022-05-04 15:37:29,169: DEBUG - + ynh_mysql_user_exists --user=nextcloud
2022-05-04 15:37:29,254: DEBUG - ++ ynh_mysql_execute_as_root '--sql=SELECT User from mysql.user WHERE User = '\''nextcloud'\'';'
2022-05-04 15:37:29,396: DEBUG - ++ database=
2022-05-04 15:37:29,398: DEBUG - ++ '[' -n '' ']'
2022-05-04 15:37:29,401: DEBUG - ++ mysql -B ''
2022-05-04 15:37:29,501: WARNING - ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)
2022-05-04 15:37:29,512: DEBUG - + [[ -z '' ]]
2022-05-04 15:37:29,514: DEBUG - + return 1
2022-05-04 15:37:30,066: INFO - [############+.......] > Removing app main directory...
2022-05-04 15:37:30,072: DEBUG - + ynh_secure_remove --file=/var/www/nextcloud
2022-05-04 15:37:35,838: INFO - [#############.......] > Removing NGINX web server configuration...
2022-05-04 15:37:35,848: DEBUG - + ynh_remove_nginx_config
2022-05-04 15:37:35,850: DEBUG - + ynh_secure_remove --file=/etc/nginx/conf.d/nextcloud.maindomain.tld.d/nextcloud.conf
2022-05-04 15:37:36,012: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload
2022-05-04 15:37:36,625: DEBUG - + service_name=nginx
2022-05-04 15:37:36,628: DEBUG - + action=reload
2022-05-04 15:37:36,630: DEBUG - + line_match=
2022-05-04 15:37:36,632: DEBUG - + length=20
2022-05-04 15:37:36,634: DEBUG - + log_path=/var/log/nginx/nginx.log
2022-05-04 15:37:36,637: DEBUG - + timeout=300
2022-05-04 15:37:36,639: DEBUG - + '[' reload == stop ']'
2022-05-04 15:37:36,644: DEBUG - + '[' reload == reload ']'
2022-05-04 15:37:36,646: DEBUG - + action=reload-or-restart
2022-05-04 15:37:36,648: DEBUG - + systemctl reload-or-restart nginx
2022-05-04 15:37:38,526: INFO - [#############+......] > Removing PHP-FPM configuration...
2022-05-04 15:37:38,532: DEBUG - + ynh_remove_fpm_config
2022-05-04 15:37:38,537: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=fpm_config_dir
2022-05-04 15:37:38,542: DEBUG - ++ local _globalapp=nextcloud
2022-05-04 15:37:38,817: DEBUG - ++ app=nextcloud
2022-05-04 15:37:38,820: DEBUG - ++ [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]]
2022-05-04 15:37:38,822: DEBUG - ++ ynh_app_setting get nextcloud fpm_config_dir
2022-05-04 15:37:39,478: DEBUG - + local fpm_config_dir=/etc/php/7.3/fpm
2022-05-04 15:37:39,482: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=fpm_service
2022-05-04 15:37:39,485: DEBUG - ++ local _globalapp=nextcloud
2022-05-04 15:37:39,732: DEBUG - ++ app=nextcloud
2022-05-04 15:37:39,734: DEBUG - ++ [[ fpm_service =~ (unprotected|protected|skipped)_ ]]
2022-05-04 15:37:39,738: DEBUG - ++ ynh_app_setting get nextcloud fpm_service
2022-05-04 15:37:40,291: DEBUG - + local fpm_service=php7.3-fpm
2022-05-04 15:37:40,298: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=fpm_dedicated_service
2022-05-04 15:37:40,302: DEBUG - ++ local _globalapp=nextcloud
2022-05-04 15:37:40,563: DEBUG - ++ app=nextcloud
2022-05-04 15:37:40,565: DEBUG - ++ [[ fpm_dedicated_service =~ (unprotected|protected|skipped)_ ]]
2022-05-04 15:37:40,568: DEBUG - ++ ynh_app_setting get nextcloud fpm_dedicated_service
2022-05-04 15:37:41,135: DEBUG - + local dedicated_service=0
2022-05-04 15:37:41,137: DEBUG - + dedicated_service=0
2022-05-04 15:37:41,142: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=phpversion
2022-05-04 15:37:41,147: DEBUG - ++ local _globalapp=nextcloud
2022-05-04 15:37:41,464: DEBUG - ++ app=nextcloud
2022-05-04 15:37:41,466: DEBUG - ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2022-05-04 15:37:41,469: DEBUG - ++ ynh_app_setting get nextcloud phpversion
2022-05-04 15:37:42,010: DEBUG - + local phpversion=7.3
2022-05-04 15:37:42,012: DEBUG - + phpversion=7.3
2022-05-04 15:37:42,015: DEBUG - + '[' -z /etc/php/7.3/fpm ']'
2022-05-04 15:37:42,017: DEBUG - + ynh_secure_remove --file=/etc/php/7.3/fpm/pool.d/nextcloud.conf
2022-05-04 15:37:42,169: DEBUG - + '[' -e /etc/php/7.3/fpm/conf.d/20-nextcloud.ini ']'
2022-05-04 15:37:42,175: DEBUG - + ynh_package_is_installed --package=php7.3-fpm
2022-05-04 15:37:42,247: DEBUG - + ynh_wait_dpkg_free
2022-05-04 15:37:42,773: DEBUG - + return 0
2022-05-04 15:37:42,778: DEBUG - + grep --count 'ok installed'
2022-05-04 15:37:42,781: DEBUG - + dpkg-query --show '--showformat=${Status}' php7.3-fpm
2022-05-04 15:37:42,882: DEBUG - + ynh_systemd_action --service_name=php7.3-fpm --action=reload
2022-05-04 15:37:43,496: DEBUG - + service_name=php7.3-fpm
2022-05-04 15:37:43,498: DEBUG - + action=reload
2022-05-04 15:37:43,501: DEBUG - + line_match=
2022-05-04 15:37:43,503: DEBUG - + length=20
2022-05-04 15:37:43,505: DEBUG - + log_path=/var/log/php7.3-fpm/php7.3-fpm.log
2022-05-04 15:37:43,508: DEBUG - + timeout=300
2022-05-04 15:37:43,510: DEBUG - + '[' reload == stop ']'
2022-05-04 15:37:43,514: DEBUG - + '[' reload == reload ']'
2022-05-04 15:37:43,516: DEBUG - + action=reload-or-restart
2022-05-04 15:37:43,518: DEBUG - + systemctl reload-or-restart php7.3-fpm
2022-05-04 15:37:43,708: DEBUG - + '[' 7.3 '!=' 7.3 ']'
2022-05-04 15:37:44,167: INFO - [##############+.....] > Removing logrotate configuration...
2022-05-04 15:37:44,181: DEBUG - + ynh_remove_logrotate
2022-05-04 15:37:44,183: DEBUG - + '[' -e /etc/logrotate.d/nextcloud ']'
2022-05-04 15:37:44,185: DEBUG - + rm /etc/logrotate.d/nextcloud
2022-05-04 15:37:44,823: INFO - [###############+++..] > Removing Fail2Ban configuration...
2022-05-04 15:37:44,829: DEBUG - + ynh_remove_fail2ban_config
2022-05-04 15:37:44,833: DEBUG - + ynh_secure_remove --file=/etc/fail2ban/jail.d/nextcloud.conf
2022-05-04 15:37:44,981: DEBUG - + ynh_secure_remove --file=/etc/fail2ban/filter.d/nextcloud.conf
2022-05-04 15:37:45,131: DEBUG - + ynh_systemd_action --service_name=fail2ban --action=reload
2022-05-04 15:37:45,764: DEBUG - + service_name=fail2ban
2022-05-04 15:37:45,767: DEBUG - + action=reload
2022-05-04 15:37:45,769: DEBUG - + line_match=
2022-05-04 15:37:45,772: DEBUG - + length=20
2022-05-04 15:37:45,774: DEBUG - + log_path=/var/log/fail2ban/fail2ban.log
2022-05-04 15:37:45,777: DEBUG - + timeout=300
2022-05-04 15:37:45,779: DEBUG - + '[' reload == stop ']'
2022-05-04 15:37:45,784: DEBUG - + '[' reload == reload ']'
2022-05-04 15:37:45,786: DEBUG - + action=reload-or-restart
2022-05-04 15:37:45,787: DEBUG - + systemctl reload-or-restart fail2ban
2022-05-04 15:37:47,810: DEBUG - + ynh_secure_remove --file=/etc/cron.d/nextcloud
2022-05-04 15:37:47,974: DEBUG - ++ ls /home
2022-05-04 15:37:47,989: DEBUG - + for i in $(ls /home)
2022-05-04 15:37:47,991: DEBUG - + [[ ! admin == yunohost.* ]]
2022-05-04 15:37:47,993: DEBUG - + setfacl --remove g:nextcloud:rwx
2022-05-04 15:37:48,003: DEBUG - setfacl: Option -x: Invalid argument near character 13
2022-05-04 15:37:48,006: DEBUG - + for i in $(ls /home)
2022-05-04 15:37:48,008: DEBUG - + [[ ! ani == yunohost.* ]]
2022-05-04 15:37:48,010: DEBUG - + setfacl --remove g:nextcloud:rwx
2022-05-04 15:37:48,014: DEBUG - setfacl: Option -x: Invalid argument near character 13
2022-05-04 15:37:48,017: DEBUG - + for i in $(ls /home)
2022-05-04 15:37:48,020: DEBUG - + [[ ! fredux == yunohost.* ]]
2022-05-04 15:37:48,022: DEBUG - + setfacl --remove g:nextcloud:rwx
2022-05-04 15:37:48,025: DEBUG - setfacl: Option -x: Invalid argument near character 13
2022-05-04 15:37:48,029: DEBUG - + for i in $(ls /home)
2022-05-04 15:37:48,031: DEBUG - + [[ ! illico == yunohost.* ]]
2022-05-04 15:37:48,033: DEBUG - + setfacl --remove g:nextcloud:rwx
2022-05-04 15:37:48,037: DEBUG - setfacl: Option -x: Invalid argument near character 13
2022-05-04 15:37:48,041: DEBUG - + for i in $(ls /home)
2022-05-04 15:37:48,047: DEBUG - + [[ ! isa == yunohost.* ]]
2022-05-04 15:37:48,049: DEBUG - + setfacl --remove g:nextcloud:rwx
2022-05-04 15:37:48,056: DEBUG - setfacl: Option -x: Invalid argument near character 13
2022-05-04 15:37:48,057: DEBUG - + for i in $(ls /home)
2022-05-04 15:37:48,059: DEBUG - + [[ ! jirafeau == yunohost.* ]]
2022-05-04 15:37:48,060: DEBUG - + setfacl --remove g:nextcloud:rwx
2022-05-04 15:37:48,070: DEBUG - setfacl: Option -x: Invalid argument near character 13
2022-05-04 15:37:48,076: DEBUG - + for i in $(ls /home)
2022-05-04 15:37:48,077: DEBUG - + [[ ! lost+found == yunohost.* ]]
2022-05-04 15:37:48,079: DEBUG - + setfacl --remove g:nextcloud:rwx
2022-05-04 15:37:48,089: DEBUG - setfacl: Option -x: Invalid argument near character 13
2022-05-04 15:37:48,094: DEBUG - + for i in $(ls /home)
2022-05-04 15:37:48,096: DEBUG - + [[ ! lufi == yunohost.* ]]
2022-05-04 15:37:48,097: DEBUG - + setfacl --remove g:nextcloud:rwx
2022-05-04 15:37:48,107: DEBUG - setfacl: Option -x: Invalid argument near character 13
2022-05-04 15:37:48,116: DEBUG - + for i in $(ls /home)
2022-05-04 15:37:48,118: DEBUG - + [[ ! nathaclik == yunohost.* ]]
2022-05-04 15:37:48,119: DEBUG - + setfacl --remove g:nextcloud:rwx
2022-05-04 15:37:48,129: DEBUG - setfacl: Option -x: Invalid argument near character 13
2022-05-04 15:37:48,134: DEBUG - + for i in $(ls /home)
2022-05-04 15:37:48,136: DEBUG - + [[ ! nextcloud == yunohost.* ]]
2022-05-04 15:37:48,137: DEBUG - + setfacl --remove g:nextcloud:rwx
2022-05-04 15:37:48,147: DEBUG - setfacl: Option -x: Invalid argument near character 13
2022-05-04 15:37:48,151: DEBUG - + for i in $(ls /home)
2022-05-04 15:37:48,153: DEBUG - + [[ ! tierce == yunohost.* ]]
2022-05-04 15:37:48,156: DEBUG - + setfacl --remove g:nextcloud:rwx
2022-05-04 15:37:48,162: DEBUG - setfacl: Option -x: Invalid argument near character 13
2022-05-04 15:37:48,166: DEBUG - + for i in $(ls /home)
2022-05-04 15:37:48,168: DEBUG - + [[ ! yunohost.app == yunohost.* ]]
2022-05-04 15:37:48,171: DEBUG - + for i in $(ls /home)
2022-05-04 15:37:48,173: DEBUG - + [[ ! yunohost.backup == yunohost.* ]]
2022-05-04 15:37:48,176: DEBUG - + for i in $(ls /home)
2022-05-04 15:37:48,178: DEBUG - + [[ ! yunohost.conf == yunohost.* ]]
2022-05-04 15:37:48,181: DEBUG - + for i in $(ls /home)
2022-05-04 15:37:48,183: DEBUG - + [[ ! yunohost.multimedia == yunohost.* ]]
2022-05-04 15:37:48,520: INFO - [##################+.] > Removing the dedicated system user...
2022-05-04 15:37:48,526: DEBUG - + ynh_system_user_delete --username=nextcloud
2022-05-04 15:37:48,598: DEBUG - + ynh_system_user_exists nextcloud
2022-05-04 15:37:48,678: DEBUG - + getent passwd nextcloud
2022-05-04 15:37:48,692: DEBUG - + deluser nextcloud
2022-05-04 15:37:49,425: DEBUG - Removing user `nextcloud' ...
2022-05-04 15:37:49,427: DEBUG - Warning: group `nextcloud' has no more members.
2022-05-04 15:37:50,813: DEBUG - Done.
2022-05-04 15:37:50,826: DEBUG - + ynh_system_group_exists nextcloud
2022-05-04 15:37:50,908: DEBUG - + getent group nextcloud
2022-05-04 15:37:51,505: INFO - [####################] > Removal of nextcloud completed
2022-05-04 15:37:52,532: SUCCESS - nextcloud uninstalled
2022-05-04 15:37:53,288: DEBUG - initializing ldap interface
2022-05-04 15:37:54,288: DEBUG - Permission 'nextcloud.api' deleted
2022-05-04 15:37:54,311: DEBUG - To view the log of the operation 'Delete permission 'nextcloud'', use the command 'yunohost log show 20220504-153754-permission_delete-nextcloud'
2022-05-04 15:37:55,142: DEBUG - Permission 'nextcloud.main' deleted
2022-05-04 15:37:55,146: DEBUG - To view the log of the operation 'Delete permission 'nextcloud'', use the command 'yunohost log show 20220504-153755-permission_delete-nextcloud'
2022-05-04 15:37:57,785: DEBUG - The permission database has been resynchronized
2022-05-04 15:37:58,574: DEBUG - SSOwat configuration regenerated
2022-05-04 15:37:58,621: DEBUG - Checking that required services are up and running...