Mysql Hors service

root@sphd:~# sudo ls -la /home/adminyunohost/.local/share
total 12
drwx------ 3 adminyunohost adminyunohost 4096 Aug  9 21:50 .
drwxr-xr-x 3 adminyunohost adminyunohost 4096 Aug  9 21:50 ..
drwx------ 2 adminyunohost adminyunohost 4096 Aug  9 21:50 nano
root@sphd:~# rm -rf /home/adminyunohost/.local/share
root@sphd:~# ls -la /home/adminyunohost/.local
total 8
drwxr-xr-x  2 adminyunohost adminyunohost 4096 Feb  7 21:05 .
drwxrwxr-x+ 3 adminyunohost adminyunohost 4096 Aug 10 08:07 ..
root@sphd:~# cd /var/www/nextcloud
root@sphd:/var/www/nextcloud# sudo -u nextcloud php8.2 --define apc.enable_cli=1 occ files:scan -vv --all
Starting scan for user 1 out of 3 (adminyunohost)
        Folder  /adminyunohost/
        Folder  /adminyunohost/files
        File    /adminyunohost/files/Nextcloud.png
        File    /adminyunohost/files/Nextcloud Manual.pdf
        File    /adminyunohost/files/Readme.md
        File    /adminyunohost/files/Templates credits.md
        File    /adminyunohost/files/Reasons to use Nextcloud.pdf
        File    /adminyunohost/files/Nextcloud intro.mp4
        Folder  /adminyunohost/files/Documents
        File    /adminyunohost/files/Documents/Example.md
        File    /adminyunohost/files/Documents/Nextcloud flyer.pdf
        File    /adminyunohost/files/Documents/Readme.md
        File    /adminyunohost/files/Documents/Welcome to Nextcloud Hub.docx
        Folder  /adminyunohost/files/Photos
        File    /adminyunohost/files/Photos/Toucan.jpg
        File    /adminyunohost/files/Photos/Birdie.jpg
        File    /adminyunohost/files/Photos/Nextcloud community.jpg
        File    /adminyunohost/files/Photos/Vineyard.jpg
        File    /adminyunohost/files/Photos/Steps.jpg
        File    /adminyunohost/files/Photos/Library.jpg
        File    /adminyunohost/files/Photos/Gorilla.jpg
        File    /adminyunohost/files/Photos/Readme.md
        File    /adminyunohost/files/Photos/Frog.jpg
        Folder  /adminyunohost/cache
        Folder  /adminyunohost/files_trashbin
        Folder  /adminyunohost/files_trashbin/versions
        Folder  /adminyunohost/files_trashbin/files
        Folder  /adminyunohost/files_trashbin/files/Modèles.d1691656298
        File    /adminyunohost/files_trashbin/files/Modèles.d1691656298/Party invitation.odt
        File    /adminyunohost/files_trashbin/files/Modèles.d1691656298/Timesheet.ods
        File    /adminyunohost/files_trashbin/files/Modèles.d1691656298/Syllabus.odt
        File    /adminyunohost/files_trashbin/files/Modèles.d1691656298/Mother's day.odt
        File    /adminyunohost/files_trashbin/files/Modèles.d1691656298/Impact effort matrix.whiteboard
        File    /adminyunohost/files_trashbin/files/Modèles.d1691656298/Org chart.odg
        File    /adminyunohost/files_trashbin/files/Modèles.d1691656298/Flowchart.odg
        File    /adminyunohost/files_trashbin/files/Modèles.d1691656298/Photo book.odt
        File    /adminyunohost/files_trashbin/files/Modèles.d1691656298/Mindmap.odg
        File    /adminyunohost/files_trashbin/files/Modèles.d1691656298/Gotong royong.odp
        File    /adminyunohost/files_trashbin/files/Modèles.d1691656298/Letter.odt
        File    /adminyunohost/files_trashbin/files/Modèles.d1691656298/Modern company.odp
        File    /adminyunohost/files_trashbin/files/Modèles.d1691656298/Meeting notes.md
        File    /adminyunohost/files_trashbin/files/Modèles.d1691656298/Diagram & table.ods
        File    /adminyunohost/files_trashbin/files/Modèles.d1691656298/Elegant.odp
        File    /adminyunohost/files_trashbin/files/Modèles.d1691656298/Business model canvas.ods
        File    /adminyunohost/files_trashbin/files/Modèles.d1691656298/Simple.odp
        File    /adminyunohost/files_trashbin/files/Modèles.d1691656298/Invoice.odt
        File    /adminyunohost/files_trashbin/files/Modèles.d1691656298/Product plan.md
        File    /adminyunohost/files_trashbin/files/Modèles.d1691656298/Yellow idea.odp
        File    /adminyunohost/files_trashbin/files/Modèles.d1691656298/Readme.md
        File    /adminyunohost/files_trashbin/files/Modèles.d1691656298/SWOT analysis.whiteboard
        File    /adminyunohost/files_trashbin/files/Modèles.d1691656298/Resume.odt
        File    /adminyunohost/files_trashbin/files/Modèles.d1691656298/Expense report.ods
        File    /adminyunohost/files_trashbin/files/Modèles.d1691656298/Business model canvas.odg
        Folder  /adminyunohost/files_trashbin/keys
        Folder  /adminyunohost/files/Home/
        File    /adminyunohost/files/Home/.bashrc
        File    /adminyunohost/files/Home/.bash_logout
        File    /adminyunohost/files/Home/.profile
        File    /adminyunohost/files/Home/.bash_history
        Folder  /adminyunohost/files/Home/.local
        Folder  /adminyunohost/files/Home/Multimedia
        Folder  /adminyunohost/files/Home/Multimedia/Picture
        Folder  /adminyunohost/files/Home/Multimedia/Music
        Folder  /adminyunohost/files/Home/Multimedia/eBook
        Folder  /adminyunohost/files/Home/Multimedia/Share
        Folder  /adminyunohost/files/Home/Multimedia/Share/Picture
        Folder  /adminyunohost/files/Home/Multimedia/Share/Music
        Folder  /adminyunohost/files/Home/Multimedia/Share/eBook
        Folder  /adminyunohost/files/Home/Multimedia/Share/Video
        Folder  /adminyunohost/files/Home/Multimedia/Video
        Folder  /adminyunohost/files/Home/media
        Folder  /adminyunohost/files/Séverine/
        File    /adminyunohost/files/Séverine/Repertoire.ini
        File    /adminyunohost/files/Séverine/Galaxy_Orientation_2021.exe
        Folder  /adminyunohost/files/Séverine/Perso
        Folder  /adminyunohost/files/Séverine/Perso/Appartement Jean de la Varende
Exception during scan: An exception occurred while executing a query: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
#0 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1938): Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter->convert()
#1 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1880): Doctrine\DBAL\Connection->handleDriverException()
#2 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1105): Doctrine\DBAL\Connection->convertExceptionDuringQuery()
#3 /var/www/nextcloud/lib/private/DB/Connection.php(261): Doctrine\DBAL\Connection->executeQuery()
#4 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php(337): OC\DB\Connection->executeQuery()
#5 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php(377): Doctrine\DBAL\Query\QueryBuilder->executeQuery()
#6 /var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(280): Doctrine\DBAL\Query\QueryBuilder->execute()
#7 /var/www/nextcloud/lib/private/Files/Cache/Cache.php(248): OC\DB\QueryBuilder\QueryBuilder->execute()
#8 /var/www/nextcloud/lib/private/Files/Cache/Wrapper/CacheWrapper.php(120): OC\Files\Cache\Cache->getFolderContentsById()
#9 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(373): OC\Files\Cache\Wrapper\CacheWrapper->getFolderContentsById()
#10 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(426): OC\Files\Cache\Scanner->getExistingChildren()
#11 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(397): OC\Files\Cache\Scanner->handleChildren()
#12 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(400): OC\Files\Cache\Scanner->scanChildren()
#13 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(400): OC\Files\Cache\Scanner->scanChildren()
#14 /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(347): OC\Files\Cache\Scanner->scanChildren()
#15 /var/www/nextcloud/lib/private/Files/Utils/Scanner.php(273): OC\Files\Cache\Scanner->scan()
#16 /var/www/nextcloud/apps/files/lib/Command/Scan.php(180): OC\Files\Utils\Scanner->scan()
#17 /var/www/nextcloud/apps/files/lib/Command/Scan.php(241): OCA\Files\Command\Scan->scanFiles()
#18 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(298): OCA\Files\Command\Scan->execute()
#19 /var/www/nextcloud/core/Command/Base.php(177): Symfony\Component\Console\Command\Command->run()
#20 /var/www/nextcloud/3rdparty/symfony/console/Application.php(1040): OC\Core\Command\Base->run()
#21 /var/www/nextcloud/3rdparty/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#22 /var/www/nextcloud/3rdparty/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#23 /var/www/nextcloud/lib/private/Console/Application.php(206): Symfony\Component\Console\Application->run()
#24 /var/www/nextcloud/console.php(100): OC\Console\Application->run()
#25 /var/www/nextcloud/occ(11): require_once('...')
#26 {main}


In Connection.php line 139:

  [Doctrine\DBAL\Exception (2002)]
  Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused


Exception trace:
  at /var/www/nextcloud/lib/private/DB/Connection.php:139
 OC\DB\Connection->connect() at /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php:1654
 Doctrine\DBAL\Connection->getWrappedConnection() at /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php:1081
 Doctrine\DBAL\Connection->executeQuery() at /var/www/nextcloud/lib/private/DB/Connection.php:261
 OC\DB\Connection->executeQuery() at /var/www/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php:337
 Doctrine\DBAL\Query\QueryBuilder->executeQuery() at /var/www/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php:377
 Doctrine\DBAL\Query\QueryBuilder->execute() at /var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php:280
 OC\DB\QueryBuilder\QueryBuilder->execute() at /var/www/nextcloud/lib/private/User/Database.php:392
 OC\User\Database->loadUser() at /var/www/nextcloud/lib/private/User/Database.php:438
 OC\User\Database->userExists() at /var/www/nextcloud/lib/private/User/Manager.php:179
 OC\User\Manager->get() at /var/www/nextcloud/lib/private/User/Manager.php:223
 OC\User\Manager->userExists() at /var/www/nextcloud/apps/files/lib/Command/Scan.php:239
 OCA\Files\Command\Scan->execute() at /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php:298
 Symfony\Component\Console\Command\Command->run() at /var/www/nextcloud/core/Command/Base.php:177
 OC\Core\Command\Base->run() at /var/www/nextcloud/3rdparty/symfony/console/Application.php:1040
 Symfony\Component\Console\Application->doRunCommand() at /var/www/nextcloud/3rdparty/symfony/console/Application.php:301
 Symfony\Component\Console\Application->doRun() at /var/www/nextcloud/3rdparty/symfony/console/Application.php:171
 Symfony\Component\Console\Application->run() at /var/www/nextcloud/lib/private/Console/Application.php:206
 OC\Console\Application->run() at /var/www/nextcloud/console.php:100
 require_once() at /var/www/nextcloud/occ:11

files:scan [--output [OUTPUT]] [-p|--path PATH] [--generate-metadata [GENERATE-METADATA]] [--all] [--unscanned] [--shallow] [--home-only] [--] [<user_id>...]

Toujours une exception

Ça avance mais

E cherchant à propos de cette erreur, la solution est d’augmenter wait_timeout et max_allowed_packet dans my.cnf, mais je ne sais pas où se trouve ce fichier.
Sinon que donne
journalctl -xe
Et
sudo service mysql status

root@sphd:~# journalctl -xe
Feb 07 22:04:04 sphd.cvj.eu sshd[1584]: Disconnected from invalid user rails 103.146.16.45 port 35426 [preauth]
Feb 07 22:04:14 sphd.cvj.eu sshd[1589]: Connection from 190.167.98.151 port 37588 on 192.168.0.220 port 22 rdomain ""
Feb 07 22:04:15 sphd.cvj.eu sshd[1589]: Invalid user lavori from 190.167.98.151 port 37588
Feb 07 22:04:15 sphd.cvj.eu sshd[1589]: pam_unix(sshd:auth): check pass; user unknown
Feb 07 22:04:15 sphd.cvj.eu sshd[1589]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruse>
Feb 07 22:04:17 sphd.cvj.eu sshd[1589]: Failed password for invalid user lavori from 190.167.98.151 port 37588 ssh2
Feb 07 22:04:18 sphd.cvj.eu sshd[1589]: Received disconnect from 190.167.98.151 port 37588:11: Bye Bye [preauth]
Feb 07 22:04:18 sphd.cvj.eu sshd[1589]: Disconnected from invalid user lavori 190.167.98.151 port 37588 [preauth]
Feb 07 22:04:28 sphd.cvj.eu sshd[1596]: Connection from 180.101.88.221 port 63978 on 192.168.0.220 port 22 rdomain ""
Feb 07 22:04:29 sphd.cvj.eu sshd[1596]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruse>
Feb 07 22:04:31 sphd.cvj.eu sudo[1598]:     root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/usr/bin/ls -la /home/ad>
Feb 07 22:04:31 sphd.cvj.eu sudo[1598]: pam_unix(sudo:session): session opened for user root(uid=0) by adminyunohost(ui>
Feb 07 22:04:31 sphd.cvj.eu sudo[1598]: pam_unix(sudo:session): session closed for user root
Feb 07 22:04:31 sphd.cvj.eu sshd[1596]: Failed password for root from 180.101.88.221 port 63978 ssh2
Feb 07 22:04:32 sphd.cvj.eu sshd[1600]: Connection from 152.32.188.4 port 19238 on 192.168.0.220 port 22 rdomain ""
Feb 07 22:04:34 sphd.cvj.eu sshd[1596]: Failed password for root from 180.101.88.221 port 63978 ssh2
Feb 07 22:04:38 sphd.cvj.eu sshd[1596]: Failed password for root from 180.101.88.221 port 63978 ssh2
Feb 07 22:04:38 sphd.cvj.eu sshd[1596]: Received disconnect from 180.101.88.221 port 63978:11:  [preauth]
Feb 07 22:04:38 sphd.cvj.eu sshd[1596]: Disconnected from authenticating user root 180.101.88.221 port 63978 [preauth]
Feb 07 22:04:38 sphd.cvj.eu sshd[1596]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=>
Feb 07 22:05:01 sphd.cvj.eu CRON[1602]: pam_unix(cron:session): session opened for user nextcloud(uid=996) by (uid=0)
Feb 07 22:05:01 sphd.cvj.eu CRON[1603]: (nextcloud) CMD (/usr/bin/php8.2 --define apc.enable_cli=1 -f /var/www/nextclou>
Feb 07 22:05:02 sphd.cvj.eu mariadbd[749]: 240207 22:05:02 [ERROR] mysqld got signal 11 ;
Feb 07 22:05:02 sphd.cvj.eu mariadbd[749]: This could be because you hit a bug. It is also possible that this binary
Feb 07 22:05:02 sphd.cvj.eu mariadbd[749]: or one of the libraries it was linked against is corrupt, improperly built,
Feb 07 22:05:02 sphd.cvj.eu mariadbd[749]: or misconfigured. This error can also be caused by malfunctioning hardware.
Feb 07 22:05:02 sphd.cvj.eu mariadbd[749]: To report this bug, see https://mariadb.com/kb/en/reporting-bugs
Feb 07 22:05:02 sphd.cvj.eu mariadbd[749]: We will try our best to scrape up some info that will hopefully help
Feb 07 22:05:02 sphd.cvj.eu mariadbd[749]: diagnose the problem, but since we have already crashed,
lines 2645-2673/2673 (END)

root@sphd:~# sudo service mysql status
● mariadb.service - MariaDB 10.5.21 database server
     Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2024-02-07 22:05:09 UTC; 3min 0s ago
       Docs: man:mariadbd(8)
             https://mariadb.com/kb/en/library/systemd/
    Process: 1623 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCE>
    Process: 1624 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCC>
    Process: 1626 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= ||   VAR=`cd /usr/bin/..; /usr/bin/>
    Process: 1687 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUC>
    Process: 1689 ExecStartPost=/etc/mysql/debian-start (code=exited, status=0/SUCCESS)
   Main PID: 1673 (mariadbd)
     Status: "Taking your SQL requests now..."
      Tasks: 13 (limit: 5652)
     Memory: 105.1M
        CPU: 955ms
     CGroup: /system.slice/mariadb.service
             └─1673 /usr/sbin/mariadbd

Feb 07 22:05:09 sphd.cvj.eu systemd[1]: Started MariaDB 10.5.21 database server.
Feb 07 22:05:09 sphd.cvj.eu /etc/mysql/debian-start[1691]: Upgrading MySQL tables if necessary.
Feb 07 22:05:09 sphd.cvj.eu mariadbd[1673]: 2024-02-07 22:05:09 0 [Note] InnoDB: Buffer pool(s) load completed at 24020>
Feb 07 22:05:09 sphd.cvj.eu /etc/mysql/debian-start[1694]: Looking for 'mariadb' as: /usr/bin/mariadb
Feb 07 22:05:09 sphd.cvj.eu /etc/mysql/debian-start[1694]: Looking for 'mariadb-check' as: /usr/bin/mariadb-check
Feb 07 22:05:09 sphd.cvj.eu /etc/mysql/debian-start[1694]: This installation of MariaDB is already upgraded to 10.5.19->
Feb 07 22:05:09 sphd.cvj.eu /etc/mysql/debian-start[1694]: There is no need to run mysql_upgrade again for 10.5.21-Mari>
Feb 07 22:05:09 sphd.cvj.eu /etc/mysql/debian-start[1694]: You can use --force if you still want to run mysql_upgrade
Feb 07 22:05:09 sphd.cvj.eu /etc/mysql/debian-start[1702]: Checking for insecure root accounts.
Feb 07 22:05:09 sphd.cvj.eu /etc/mysql/debian-start[1706]: Triggering myisam-recover for all MyISAM tables and aria-rec>
lines 1-28/28 (END)

Mysql plante régulièrement et il m’est impossible de le redémarrer, pour retrouver un Msql en fonctionnement je dois recharger une sauvegarde de ma VM

Bonjour @jarod5001
Je crois que je vais m’orienter vers la désinstallation de Nextcloud avant de tout réinstaller proprement.
J’ai essayé de le faire par la webadmin mais ça plante.
J’ai essayé par la console en faisant :

dpkg --list
sudo apt-get --purge remove nextcloud-ynh-deps
sudo apt autoremove

Les paquets semblent supprimés dans la console mais quand je regarde sur la webadmin j’ai toujours Nextcloud.
Quelle commande dans la console pourrais-je faire pour désintaller complètement Nexcloud ainsi que les data associées ?

Le log de la desinstallation ? Quelles erreurs ? On ne peut pas avancer sans log

Désinstallation à partir de la webadmin

Retraçage

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/yunohost/log.py", line 410, in func_wrapper
    result = func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/yunohost/app.py", line 1486, in app_remove
    shutil.rmtree(app_setting_path)
  File "/usr/lib/python3.9/shutil.py", line 718, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/usr/lib/python3.9/shutil.py", line 655, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  File "/usr/lib/python3.9/shutil.py", line 655, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  File "/usr/lib/python3.9/shutil.py", line 675, in _rmtree_safe_fd
    onerror(os.unlink, fullname, sys.exc_info())
  File "/usr/lib/python3.9/shutil.py", line 673, in _rmtree_safe_fd
    os.unlink(entry.name, dir_fd=topfd)
OSError: [Errno 30] Read-only file system: 'screenshot.png'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.9/logging/__init__.py", line 1153, in close
    self.flush()
  File "/usr/lib/python3.9/logging/__init__.py", line 1063, in flush
    self.stream.flush()
OSError: [Errno 30] Read-only file system

During handling of the above exception, another exception occurred:

OSError: [Errno 30] Read-only file system

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/moulinette/interfaces/api.py", line 453, in process
    ret = self.actionsmap.process(arguments, timeout=30, route=_route)
  File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 580, in process
    return func(**arguments)
  File "/usr/lib/python3/dist-packages/yunohost/log.py", line 412, in func_wrapper
    operation_logger.error(e)
  File "/usr/lib/python3/dist-packages/yunohost/log.py", line 678, in error
    return self.close(error)
  File "/usr/lib/python3/dist-packages/yunohost/log.py", line 707, in close
    self.file_handler.close()
  File "/usr/lib/python3.9/logging/__init__.py", line 1158, in close
    stream.close()
OSError: [Errno 30] Read-only file system

Pendant le traitement de l’action, le serveur a dit :

Suppression de nextcloud...
Removing system configurations related to nextcloud...
Removal of nextcloud completed
Deprovisioning database...
Deprovisioning apt...
Deprovisioning permissions...
Deprovisioning data_dir...
Deprovisioning install_dir...
Failed to deprovision install_dir : [Errno 74] Bad message: '/var/www/nextcloud/apps/files_reminders/lib/Model'
Deprovisioning system_user...
Failed to deprovision system_user : Failed to delete system user for nextcloud
Failed to delete system user for nextcloud

Désinstallation par la console

root@sphd:~# sudo apt-get --purge remove nextcloud-ynh-deps
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fontconfig fonts-droid-fallback fonts-noto-mono ghostscript gsfonts hicolor-icon-theme imagemagick
  imagemagick-6-common imagemagick-6.q16 libc-client2007e libcairo2 libdatrie1 libdjvulibre-text libdjvulibre21
  libfftw3-double3 libgraphite2-3 libgs9 libgs9-common libharfbuzz0b libijs-0.35 libilmbase25 libjbig2dec0
  libjxr-tools libjxr0 liblcms2-2 liblqr-1-0 libmagickcore-6.q16-6 libmagickcore-6.q16-6-extra libmagickwand-6.q16-6
  libnetpbm10 libopenexr25 libopenjp2-7 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpaper-utils libpaper1
  libpixman-1-0 libthai-data libthai0 libwebpdemux2 libwebpmux3 libwmf0.2-7 libxcb-render0 libxcb-shm0 libxext6
  libxrender1 libzip4 mlock netpbm php8.1-gd php8.2 php8.2-apcu php8.2-bcmath php8.2-bz2 php8.2-curl php8.2-gd
  php8.2-gmp php8.2-igbinary php8.2-imagick php8.2-imap php8.2-intl php8.2-ldap php8.2-mysql php8.2-redis php8.2-zip
  poppler-data
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  nextcloud-ynh-deps*
0 upgraded, 0 newly installed, 1 to remove and 19 not upgraded.
After this operation, 10.2 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 54233 files and directories currently installed.)
Removing nextcloud-ynh-deps (27.1.4~ynh1) ...
root@sphd:~# sudo apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  fontconfig fonts-droid-fallback fonts-noto-mono ghostscript gsfonts hicolor-icon-theme imagemagick
  imagemagick-6-common imagemagick-6.q16 libc-client2007e libcairo2 libdatrie1 libdjvulibre-text libdjvulibre21
  libfftw3-double3 libgraphite2-3 libgs9 libgs9-common libharfbuzz0b libijs-0.35 libilmbase25 libjbig2dec0
  libjxr-tools libjxr0 liblcms2-2 liblqr-1-0 libmagickcore-6.q16-6 libmagickcore-6.q16-6-extra libmagickwand-6.q16-6
  libnetpbm10 libopenexr25 libopenjp2-7 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpaper-utils libpaper1
  libpixman-1-0 libthai-data libthai0 libwebpdemux2 libwebpmux3 libwmf0.2-7 libxcb-render0 libxcb-shm0 libxext6
  libxrender1 libzip4 mlock netpbm php8.1-gd php8.2 php8.2-apcu php8.2-bcmath php8.2-bz2 php8.2-curl php8.2-gd
  php8.2-gmp php8.2-igbinary php8.2-imagick php8.2-imap php8.2-intl php8.2-ldap php8.2-mysql php8.2-redis php8.2-zip
  poppler-data
0 upgraded, 0 newly installed, 67 to remove and 8 not upgraded.
After this operation, 82.6 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 54229 files and directories currently installed.)
Removing libmagickcore-6.q16-6-extra:arm64 (8:6.9.11.60+dfsg-1.3+deb11u1) ...
Removing libpangocairo-1.0-0:arm64 (1.46.2-3) ...
Removing libpangoft2-1.0-0:arm64 (1.46.2-3) ...
Removing libpango-1.0-0:arm64 (1.46.2-3) ...
Removing fontconfig (2.13.1-4.2) ...
Removing fonts-droid-fallback (1:6.0.1r16-1.1) ...
Removing fonts-noto-mono (20201225-1) ...
Removing ghostscript (9.53.3~dfsg-7+deb11u6) ...
Removing gsfonts (1:8.11+urwcyr1.0.7~pre44-4.5) ...
Removing imagemagick (8:6.9.11.60+dfsg-1.3+deb11u1) ...
Removing imagemagick-6.q16 (8:6.9.11.60+dfsg-1.3+deb11u1) ...
Removing hicolor-icon-theme (0.17-2) ...
Removing php8.2-imagick (3.7.0-4+0~20231125.43+debian11~1.gbpbf7e27) ...
Removing libmagickwand-6.q16-6:arm64 (8:6.9.11.60+dfsg-1.3+deb11u1) ...
Removing libmagickcore-6.q16-6:arm64 (8:6.9.11.60+dfsg-1.3+deb11u1) ...
Removing imagemagick-6-common (8:6.9.11.60+dfsg-1.3+deb11u1) ...
Removing php8.2-imap (8.2.14-1+0~20231221.38+debian11~1.gbp698136) ...
Removing libc-client2007e (8:2007f~dfsg-7) ...
Removing libcairo2:arm64 (1.16.0-5) ...
Removing libthai0:arm64 (0.1.28-3) ...
Removing libdatrie1:arm64 (0.2.13-1) ...
Removing libdjvulibre21:arm64 (3.5.28-2) ...
Removing libdjvulibre-text (3.5.28-2) ...
Removing libfftw3-double3:arm64 (3.3.8-2) ...
Removing libharfbuzz0b:arm64 (2.7.4-1) ...
Removing libgraphite2-3:arm64 (1.3.14-1) ...
Removing libgs9:arm64 (9.53.3~dfsg-7+deb11u6) ...
Removing libgs9-common (9.53.3~dfsg-7+deb11u6) ...
Removing libijs-0.35:arm64 (0.35-15) ...
Removing libopenexr25:arm64 (2.5.4-2+deb11u1) ...
Removing libilmbase25:arm64 (2.5.4-1) ...
Removing libjbig2dec0:arm64 (0.19-2) ...
Removing libjxr-tools (1.1-6+b1) ...
Removing libjxr0:arm64 (1.1-6+b1) ...
Removing liblcms2-2:arm64 (2.12~rc1-2) ...
Removing liblqr-1-0:arm64 (0.4.2-2.1) ...
Removing netpbm (2:10.0-15.4) ...
Removing libnetpbm10 (2:10.0-15.4) ...
Removing libopenjp2-7:arm64 (2.4.0-3) ...
Removing libpaper-utils (1.1.28+b1) ...
Removing libpaper1:arm64 (1.1.28+b1) ...
Removing libpixman-1-0:arm64 (0.40.0-1.1~deb11u1) ...
Removing libthai-data (0.1.28-3) ...
Removing libwebpdemux2:arm64 (0.6.1-2.1+deb11u2) ...
Removing libwebpmux3:arm64 (0.6.1-2.1+deb11u2) ...
Removing libwmf0.2-7:arm64 (0.2.8.4-17) ...
Removing libxcb-render0:arm64 (1.14-3) ...
Removing libxcb-shm0:arm64 (1.14-3) ...
Removing libxext6:arm64 (2:1.3.3-1.1) ...
Removing libxrender1:arm64 (1:0.9.10-1) ...
Removing php8.2-zip (8.2.14-1+0~20231221.38+debian11~1.gbp698136) ...
Removing libzip4:arm64 (1.7.3-1) ...
Removing mlock (8:2007f~dfsg-7) ...
Removing php8.1-gd (8.1.27-1+0~20231221.58+debian11~1.gbp3895b2) ...
Removing php8.2 (8.2.14-1+0~20231221.38+debian11~1.gbp698136) ...
Removing php8.2-apcu (5.1.23-1+0~20231125.39+debian11~1.gbp8bf49a) ...
Removing php8.2-bcmath (8.2.14-1+0~20231221.38+debian11~1.gbp698136) ...
Removing php8.2-bz2 (8.2.14-1+0~20231221.38+debian11~1.gbp698136) ...
Removing php8.2-curl (8.2.14-1+0~20231221.38+debian11~1.gbp698136) ...
Removing php8.2-gd (8.2.14-1+0~20231221.38+debian11~1.gbp698136) ...
Removing php8.2-gmp (8.2.14-1+0~20231221.38+debian11~1.gbp698136) ...
Removing php8.2-redis (6.0.2-1+0~20231128.56+debian11~1.gbp9f3071) ...
Removing php8.2-igbinary (3.2.15-1+0~20231202.49+debian11~1.gbpe9ffe8) ...
Removing php8.2-intl (8.2.14-1+0~20231221.38+debian11~1.gbp698136) ...
Removing php8.2-ldap (8.2.14-1+0~20231221.38+debian11~1.gbp698136) ...
Removing php8.2-mysql (8.2.14-1+0~20231221.38+debian11~1.gbp698136) ...
Removing poppler-data (0.4.10-1) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for php8.2-fpm (8.2.14-1+0~20231221.38+debian11~1.gbp698136) ...
Processing triggers for php8.1-fpm (8.1.27-1+0~20231221.58+debian11~1.gbp3895b2) ...
Processing triggers for mailcap (3.69) ...
Processing triggers for libc-bin (2.31-13+deb11u7) ...

Why??
Sur yunohost c’est sudo yunohost app remove nextcloud --purge

Il est rare d’utiliser apt et apt-get, sauf cas contraire.

Essai sudo rm -rf /var/www/nextcloud/apps/files_reminders
Puis réessaye avec la commande de yunohost.

root@sphd:~# sudo yunohost app remove nextcloud --purge
Info: Removing nextcloud...
Info: [++++++++++++++++....] > Removing system configurations related to nextcloud...
Info: [####################] > Removal of nextcloud completed
Info: Deprovisioning database...
Info: Deprovisioning apt...
Info: Deprovisioning permissions...
Info: Deprovisioning data_dir...
Info: Deprovisioning install_dir...
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/yunohost/utils/resources.py", line 65, in apply
    old.deprovision(context=context)
  File "/usr/lib/python3/dist-packages/yunohost/utils/resources.py", line 929, in deprovision
    rm(self.dir, recursive=True)
  File "/usr/lib/python3/dist-packages/moulinette/utils/filesystem.py", line 361, in rm
    shutil.rmtree(path, ignore_errors=force)
  File "/usr/lib/python3.9/shutil.py", line 718, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/usr/lib/python3.9/shutil.py", line 655, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  File "/usr/lib/python3.9/shutil.py", line 655, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  File "/usr/lib/python3.9/shutil.py", line 655, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  File "/usr/lib/python3.9/shutil.py", line 631, in _rmtree_safe_fd
    onerror(os.scandir, path, sys.exc_info())
  File "/usr/lib/python3.9/shutil.py", line 628, in _rmtree_safe_fd
    entries = list(scandir_it)
OSError: [Errno 74] Bad message: '/var/www/nextcloud/apps/updatenotification/templates'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.9/logging/__init__.py", line 1083, in emit
    self.flush()
  File "/usr/lib/python3.9/logging/__init__.py", line 1063, in flush
    self.stream.flush()
OSError: [Errno 30] Read-only file system
Call stack:
  File "/usr/bin/yunohost", line 77, in <module>
    yunohost.cli(
  File "/usr/lib/python3/dist-packages/yunohost/__init__.py", line 41, in cli
    ret = moulinette.cli(
  File "/usr/lib/python3/dist-packages/moulinette/__init__.py", line 110, in cli
    Cli(
  File "/usr/lib/python3/dist-packages/moulinette/interfaces/cli.py", line 503, in run
    ret = self.actionsmap.process(args, timeout=timeout)
  File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 580, in process
    return func(**arguments)
  File "/usr/lib/python3/dist-packages/yunohost/log.py", line 410, in func_wrapper
    result = func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/yunohost/app.py", line 1475, in app_remove
    AppResourceManager(app, wanted={}, current=manifest).apply(
  File "/usr/lib/python3/dist-packages/yunohost/utils/resources.py", line 77, in apply
    logger.warning(f"Failed to {todo} {name} : {e}")
  File "/usr/lib/python3.9/logging/__init__.py", line 1454, in warning
    self._log(WARNING, msg, args, **kwargs)
  File "/usr/lib/python3/dist-packages/moulinette/utils/log.py", line 132, in _log
    return super()._log(*args, **kwargs)
Message: "Failed to deprovision install_dir : [Errno 74] Bad message: '/var/www/nextcloud/apps/updatenotification/templates'"
Arguments: ()
Warning: Failed to deprovision install_dir : [Errno 74] Bad message: '/var/www/nextcloud/apps/updatenotification/templates'
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/yunohost/utils/resources.py", line 65, in apply
    old.deprovision(context=context)
  File "/usr/lib/python3/dist-packages/yunohost/utils/resources.py", line 929, in deprovision
    rm(self.dir, recursive=True)
  File "/usr/lib/python3/dist-packages/moulinette/utils/filesystem.py", line 361, in rm
    shutil.rmtree(path, ignore_errors=force)
  File "/usr/lib/python3.9/shutil.py", line 718, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/usr/lib/python3.9/shutil.py", line 655, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  File "/usr/lib/python3.9/shutil.py", line 655, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  File "/usr/lib/python3.9/shutil.py", line 655, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  File "/usr/lib/python3.9/shutil.py", line 631, in _rmtree_safe_fd
    onerror(os.scandir, path, sys.exc_info())
  File "/usr/lib/python3.9/shutil.py", line 628, in _rmtree_safe_fd
    entries = list(scandir_it)
OSError: [Errno 74] Bad message: '/var/www/nextcloud/apps/updatenotification/templates'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.9/logging/__init__.py", line 1083, in emit
    self.flush()
  File "/usr/lib/python3.9/logging/__init__.py", line 1063, in flush
    self.stream.flush()
OSError: [Errno 30] Read-only file system
Call stack:
  File "/usr/bin/yunohost", line 77, in <module>
    yunohost.cli(
  File "/usr/lib/python3/dist-packages/yunohost/__init__.py", line 41, in cli
    ret = moulinette.cli(
  File "/usr/lib/python3/dist-packages/moulinette/__init__.py", line 110, in cli
    Cli(
  File "/usr/lib/python3/dist-packages/moulinette/interfaces/cli.py", line 503, in run
    ret = self.actionsmap.process(args, timeout=timeout)
  File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 580, in process
    return func(**arguments)
  File "/usr/lib/python3/dist-packages/yunohost/log.py", line 410, in func_wrapper
    result = func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/yunohost/app.py", line 1475, in app_remove
    AppResourceManager(app, wanted={}, current=manifest).apply(
  File "/usr/lib/python3/dist-packages/yunohost/utils/resources.py", line 77, in apply
    logger.warning(f"Failed to {todo} {name} : {e}")
  File "/usr/lib/python3.9/logging/__init__.py", line 1454, in warning
    self._log(WARNING, msg, args, **kwargs)
  File "/usr/lib/python3/dist-packages/moulinette/utils/log.py", line 132, in _log
    return super()._log(*args, **kwargs)
Message: "Failed to deprovision install_dir : [Errno 74] Bad message: '/var/www/nextcloud/apps/updatenotification/templates'"
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.9/logging/__init__.py", line 1083, in emit
    self.flush()
  File "/usr/lib/python3.9/logging/__init__.py", line 1063, in flush
    self.stream.flush()
OSError: [Errno 30] Read-only file system
Call stack:
  File "/usr/bin/yunohost", line 77, in <module>
    yunohost.cli(
  File "/usr/lib/python3/dist-packages/yunohost/__init__.py", line 41, in cli
    ret = moulinette.cli(
  File "/usr/lib/python3/dist-packages/moulinette/__init__.py", line 110, in cli
    Cli(
  File "/usr/lib/python3/dist-packages/moulinette/interfaces/cli.py", line 503, in run
    ret = self.actionsmap.process(args, timeout=timeout)
  File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 580, in process
    return func(**arguments)
  File "/usr/lib/python3/dist-packages/yunohost/log.py", line 410, in func_wrapper
    result = func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/yunohost/app.py", line 1475, in app_remove
    AppResourceManager(app, wanted={}, current=manifest).apply(
  File "/usr/lib/python3/dist-packages/yunohost/utils/resources.py", line 64, in apply
    logger.info(f"Deprovisioning {name}...")
  File "/usr/lib/python3.9/logging/__init__.py", line 1442, in info
    self._log(INFO, msg, args, **kwargs)
  File "/usr/lib/python3/dist-packages/moulinette/utils/log.py", line 132, in _log
    return super()._log(*args, **kwargs)
Message: 'Deprovisioning system_user...'
Arguments: ()
Info: Deprovisioning system_user...
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.9/logging/__init__.py", line 1083, in emit
    self.flush()
  File "/usr/lib/python3.9/logging/__init__.py", line 1063, in flush
    self.stream.flush()
OSError: [Errno 30] Read-only file system
Call stack:
  File "/usr/bin/yunohost", line 77, in <module>
    yunohost.cli(
  File "/usr/lib/python3/dist-packages/yunohost/__init__.py", line 41, in cli
    ret = moulinette.cli(
  File "/usr/lib/python3/dist-packages/moulinette/__init__.py", line 110, in cli
    Cli(
  File "/usr/lib/python3/dist-packages/moulinette/interfaces/cli.py", line 503, in run
    ret = self.actionsmap.process(args, timeout=timeout)
  File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 580, in process
    return func(**arguments)
  File "/usr/lib/python3/dist-packages/yunohost/log.py", line 410, in func_wrapper
    result = func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/yunohost/app.py", line 1475, in app_remove
    AppResourceManager(app, wanted={}, current=manifest).apply(
  File "/usr/lib/python3/dist-packages/yunohost/utils/resources.py", line 64, in apply
    logger.info(f"Deprovisioning {name}...")
  File "/usr/lib/python3.9/logging/__init__.py", line 1442, in info
    self._log(INFO, msg, args, **kwargs)
  File "/usr/lib/python3/dist-packages/moulinette/utils/log.py", line 132, in _log
    return super()._log(*args, **kwargs)
Message: 'Deprovisioning system_user...'
Arguments: ()
userdel: cannot lock /etc/passwd; try again later.
/usr/sbin/deluser: `/sbin/userdel nextcloud' returned error code 1. Exiting.
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/yunohost/utils/resources.py", line 65, in apply
    old.deprovision(context=context)
  File "/usr/lib/python3/dist-packages/yunohost/utils/resources.py", line 793, in deprovision
    raise YunohostError(
yunohost.utils.error.YunohostError: Failed to delete system user for nextcloud

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.9/logging/__init__.py", line 1083, in emit
    self.flush()
  File "/usr/lib/python3.9/logging/__init__.py", line 1063, in flush
    self.stream.flush()
OSError: [Errno 30] Read-only file system
Call stack:
  File "/usr/bin/yunohost", line 77, in <module>
    yunohost.cli(
  File "/usr/lib/python3/dist-packages/yunohost/__init__.py", line 41, in cli
    ret = moulinette.cli(
  File "/usr/lib/python3/dist-packages/moulinette/__init__.py", line 110, in cli
    Cli(
  File "/usr/lib/python3/dist-packages/moulinette/interfaces/cli.py", line 503, in run
    ret = self.actionsmap.process(args, timeout=timeout)
  File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 580, in process
    return func(**arguments)
  File "/usr/lib/python3/dist-packages/yunohost/log.py", line 410, in func_wrapper
    result = func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/yunohost/app.py", line 1475, in app_remove
    AppResourceManager(app, wanted={}, current=manifest).apply(
  File "/usr/lib/python3/dist-packages/yunohost/utils/resources.py", line 77, in apply
    logger.warning(f"Failed to {todo} {name} : {e}")
  File "/usr/lib/python3.9/logging/__init__.py", line 1454, in warning
    self._log(WARNING, msg, args, **kwargs)
  File "/usr/lib/python3/dist-packages/moulinette/utils/log.py", line 132, in _log
    return super()._log(*args, **kwargs)
Message: 'Failed to deprovision system_user : Failed to delete system user for nextcloud'
Arguments: ()
Warning: Failed to deprovision system_user : Failed to delete system user for nextcloud
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/yunohost/utils/resources.py", line 65, in apply
    old.deprovision(context=context)
  File "/usr/lib/python3/dist-packages/yunohost/utils/resources.py", line 793, in deprovision
    raise YunohostError(
yunohost.utils.error.YunohostError: Failed to delete system user for nextcloud

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.9/logging/__init__.py", line 1083, in emit
    self.flush()
  File "/usr/lib/python3.9/logging/__init__.py", line 1063, in flush
    self.stream.flush()
OSError: [Errno 30] Read-only file system
Call stack:
  File "/usr/bin/yunohost", line 77, in <module>
    yunohost.cli(
  File "/usr/lib/python3/dist-packages/yunohost/__init__.py", line 41, in cli
    ret = moulinette.cli(
  File "/usr/lib/python3/dist-packages/moulinette/__init__.py", line 110, in cli
    Cli(
  File "/usr/lib/python3/dist-packages/moulinette/interfaces/cli.py", line 503, in run
    ret = self.actionsmap.process(args, timeout=timeout)
  File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 580, in process
    return func(**arguments)
  File "/usr/lib/python3/dist-packages/yunohost/log.py", line 410, in func_wrapper
    result = func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/yunohost/app.py", line 1475, in app_remove
    AppResourceManager(app, wanted={}, current=manifest).apply(
  File "/usr/lib/python3/dist-packages/yunohost/utils/resources.py", line 77, in apply
    logger.warning(f"Failed to {todo} {name} : {e}")
  File "/usr/lib/python3.9/logging/__init__.py", line 1454, in warning
    self._log(WARNING, msg, args, **kwargs)
  File "/usr/lib/python3/dist-packages/moulinette/utils/log.py", line 132, in _log
    return super()._log(*args, **kwargs)
Message: 'Failed to deprovision system_user : Failed to delete system user for nextcloud'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.9/logging/__init__.py", line 1083, in emit
    self.flush()
  File "/usr/lib/python3.9/logging/__init__.py", line 1063, in flush
    self.stream.flush()
OSError: [Errno 30] Read-only file system
Call stack:
  File "/usr/bin/yunohost", line 77, in <module>
    yunohost.cli(
  File "/usr/lib/python3/dist-packages/yunohost/__init__.py", line 41, in cli
    ret = moulinette.cli(
  File "/usr/lib/python3/dist-packages/moulinette/__init__.py", line 110, in cli
    Cli(
  File "/usr/lib/python3/dist-packages/moulinette/interfaces/cli.py", line 503, in run
    ret = self.actionsmap.process(args, timeout=timeout)
  File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 580, in process
    return func(**arguments)
  File "/usr/lib/python3/dist-packages/yunohost/log.py", line 410, in func_wrapper
    result = func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/yunohost/app.py", line 1475, in app_remove
    AppResourceManager(app, wanted={}, current=manifest).apply(
  File "/usr/lib/python3/dist-packages/yunohost/utils/resources.py", line 122, in apply
    logger.error(exception)
  File "/usr/lib/python3.9/logging/__init__.py", line 1471, in error
    self._log(ERROR, msg, args, **kwargs)
  File "/usr/lib/python3/dist-packages/moulinette/utils/log.py", line 132, in _log
    return super()._log(*args, **kwargs)
Message: YunohostError('Failed to delete system user for nextcloud')
Arguments: ()
Error: Failed to delete system user for nextcloud
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.9/logging/__init__.py", line 1083, in emit
    self.flush()
  File "/usr/lib/python3.9/logging/__init__.py", line 1063, in flush
    self.stream.flush()
OSError: [Errno 30] Read-only file system
Call stack:
  File "/usr/bin/yunohost", line 77, in <module>
    yunohost.cli(
  File "/usr/lib/python3/dist-packages/yunohost/__init__.py", line 41, in cli
    ret = moulinette.cli(
  File "/usr/lib/python3/dist-packages/moulinette/__init__.py", line 110, in cli
    Cli(
  File "/usr/lib/python3/dist-packages/moulinette/interfaces/cli.py", line 503, in run
    ret = self.actionsmap.process(args, timeout=timeout)
  File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 580, in process
    return func(**arguments)
  File "/usr/lib/python3/dist-packages/yunohost/log.py", line 410, in func_wrapper
    result = func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/yunohost/app.py", line 1475, in app_remove
    AppResourceManager(app, wanted={}, current=manifest).apply(
  File "/usr/lib/python3/dist-packages/yunohost/utils/resources.py", line 122, in apply
    logger.error(exception)
  File "/usr/lib/python3.9/logging/__init__.py", line 1471, in error
    self._log(ERROR, msg, args, **kwargs)
  File "/usr/lib/python3/dist-packages/moulinette/utils/log.py", line 132, in _log
    return super()._log(*args, **kwargs)
Message: YunohostError('Failed to delete system user for nextcloud')
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/yunohost/log.py", line 410, in func_wrapper
    result = func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/yunohost/app.py", line 1486, in app_remove
    shutil.rmtree(app_setting_path)
  File "/usr/lib/python3.9/shutil.py", line 718, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/usr/lib/python3.9/shutil.py", line 655, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  File "/usr/lib/python3.9/shutil.py", line 655, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  File "/usr/lib/python3.9/shutil.py", line 675, in _rmtree_safe_fd
    onerror(os.unlink, fullname, sys.exc_info())
  File "/usr/lib/python3.9/shutil.py", line 673, in _rmtree_safe_fd
    os.unlink(entry.name, dir_fd=topfd)
OSError: [Errno 30] Read-only file system: 'screenshot.png'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.9/logging/__init__.py", line 1153, in close
    self.flush()
  File "/usr/lib/python3.9/logging/__init__.py", line 1063, in flush
    self.stream.flush()
OSError: [Errno 30] Read-only file system

During handling of the above exception, another exception occurred:

OSError: [Errno 30] Read-only file system

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 580, in process
    return func(**arguments)
  File "/usr/lib/python3/dist-packages/yunohost/log.py", line 412, in func_wrapper
    operation_logger.error(e)
  File "/usr/lib/python3/dist-packages/yunohost/log.py", line 678, in error
    return self.close(error)
  File "/usr/lib/python3/dist-packages/yunohost/log.py", line 707, in close
    self.file_handler.close()
  File "/usr/lib/python3.9/logging/__init__.py", line 1158, in close
    stream.close()
OSError: [Errno 30] Read-only file system

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.9/logging/__init__.py", line 1083, in emit
    self.flush()
  File "/usr/lib/python3.9/logging/__init__.py", line 1063, in flush
    self.stream.flush()
OSError: [Errno 30] Read-only file system
Call stack:
  File "/usr/bin/yunohost", line 77, in <module>
    yunohost.cli(
  File "/usr/lib/python3/dist-packages/yunohost/__init__.py", line 41, in cli
    ret = moulinette.cli(
  File "/usr/lib/python3/dist-packages/moulinette/__init__.py", line 110, in cli
    Cli(
  File "/usr/lib/python3/dist-packages/moulinette/interfaces/cli.py", line 503, in run
    ret = self.actionsmap.process(args, timeout=timeout)
  File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 583, in process
    logger.debug("action [%s] executed in %.3fs", log_id, stop - start)
Message: 'action [%s] executed in %.3fs'
Arguments: ('1835.1', 57.92837572097778)
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/yunohost/log.py", line 410, in func_wrapper
    result = func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/yunohost/app.py", line 1486, in app_remove
    shutil.rmtree(app_setting_path)
  File "/usr/lib/python3.9/shutil.py", line 718, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/usr/lib/python3.9/shutil.py", line 655, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  File "/usr/lib/python3.9/shutil.py", line 655, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  File "/usr/lib/python3.9/shutil.py", line 675, in _rmtree_safe_fd
    onerror(os.unlink, fullname, sys.exc_info())
  File "/usr/lib/python3.9/shutil.py", line 673, in _rmtree_safe_fd
    os.unlink(entry.name, dir_fd=topfd)
OSError: [Errno 30] Read-only file system: 'screenshot.png'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.9/logging/__init__.py", line 1153, in close
    self.flush()
  File "/usr/lib/python3.9/logging/__init__.py", line 1063, in flush
    self.stream.flush()
OSError: [Errno 30] Read-only file system

During handling of the above exception, another exception occurred:

OSError: [Errno 30] Read-only file system

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 580, in process
    return func(**arguments)
  File "/usr/lib/python3/dist-packages/yunohost/log.py", line 412, in func_wrapper
    operation_logger.error(e)
  File "/usr/lib/python3/dist-packages/yunohost/log.py", line 678, in error
    return self.close(error)
  File "/usr/lib/python3/dist-packages/yunohost/log.py", line 707, in close
    self.file_handler.close()
  File "/usr/lib/python3.9/logging/__init__.py", line 1158, in close
    stream.close()
OSError: [Errno 30] Read-only file system

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.9/logging/__init__.py", line 1083, in emit
    self.flush()
  File "/usr/lib/python3.9/logging/__init__.py", line 1063, in flush
    self.stream.flush()
OSError: [Errno 30] Read-only file system
Call stack:
  File "/usr/bin/yunohost", line 77, in <module>
    yunohost.cli(
  File "/usr/lib/python3/dist-packages/yunohost/__init__.py", line 41, in cli
    ret = moulinette.cli(
  File "/usr/lib/python3/dist-packages/moulinette/__init__.py", line 110, in cli
    Cli(
  File "/usr/lib/python3/dist-packages/moulinette/interfaces/cli.py", line 503, in run
    ret = self.actionsmap.process(args, timeout=timeout)
  File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 583, in process
    logger.debug("action [%s] executed in %.3fs", log_id, stop - start)
  File "/usr/lib/python3/dist-packages/moulinette/core.py", line 424, in __exit__
    self.release()
  File "/usr/lib/python3/dist-packages/moulinette/core.py", line 376, in release
    logger.debug("lock has been released")
Message: 'lock has been released'
Arguments: ()
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/yunohost/log.py", line 410, in func_wrapper
    result = func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/yunohost/app.py", line 1486, in app_remove
    shutil.rmtree(app_setting_path)
  File "/usr/lib/python3.9/shutil.py", line 718, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/usr/lib/python3.9/shutil.py", line 655, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  File "/usr/lib/python3.9/shutil.py", line 655, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  File "/usr/lib/python3.9/shutil.py", line 675, in _rmtree_safe_fd
    onerror(os.unlink, fullname, sys.exc_info())
  File "/usr/lib/python3.9/shutil.py", line 673, in _rmtree_safe_fd
    os.unlink(entry.name, dir_fd=topfd)
OSError: [Errno 30] Read-only file system: 'screenshot.png'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.9/logging/__init__.py", line 1153, in close
    self.flush()
  File "/usr/lib/python3.9/logging/__init__.py", line 1063, in flush
    self.stream.flush()
OSError: [Errno 30] Read-only file system

During handling of the above exception, another exception occurred:

OSError: [Errno 30] Read-only file system

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/yunohost", line 77, in <module>
    yunohost.cli(
  File "/usr/lib/python3/dist-packages/yunohost/__init__.py", line 41, in cli
    ret = moulinette.cli(
  File "/usr/lib/python3/dist-packages/moulinette/__init__.py", line 110, in cli
    Cli(
  File "/usr/lib/python3/dist-packages/moulinette/interfaces/cli.py", line 503, in run
    ret = self.actionsmap.process(args, timeout=timeout)
  File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 580, in process
    return func(**arguments)
  File "/usr/lib/python3/dist-packages/yunohost/log.py", line 412, in func_wrapper
    operation_logger.error(e)
  File "/usr/lib/python3/dist-packages/yunohost/log.py", line 678, in error
    return self.close(error)
  File "/usr/lib/python3/dist-packages/yunohost/log.py", line 707, in close
    self.file_handler.close()
  File "/usr/lib/python3.9/logging/__init__.py", line 1158, in close
    stream.close()
OSError: [Errno 30] Read-only file system
root@sphd:~#

Hdd, ssd? Est-ce qu’il y a encore de l’espace dans la VM ?
Que donnent :

df -h # pour afficher l'occupation de l'espace 
sudo fsck -f /dev/sda # remplace /dev/sda par ton disque 
sudo reboot # redémarrer pour la commande fsck soit lancée

Puis réessaye avec la desinstallation

La VM est installée sur SSD en Raid 1

root@sphd:~# df -h
Filesystem                      Size  Used Avail Use% Mounted on
udev                            2.3G     0  2.3G   0% /dev
tmpfs                           481M  748K  480M   1% /run
/dev/vda1                       118G   92G   22G  81% /
tmpfs                           2.4G   40K  2.4G   1% /dev/shm
tmpfs                           5.0M     0  5.0M   0% /run/lock
/dev/vda15                      127M  148K  127M   1% /boot/efi
//mafreebox.freebox.fr/Freebox  1.8T  638G  1.2T  35% /mnt/Freebox
//mafreebox.freebox.fr/DONNEES  1.8T  551G  1.3T  30% /mnt/DONNEES
tmpfs                           481M     0  481M   0% /run/user/17809
root@sphd:~#
root@sphd:~# sudo fsck -f /dev/vda1
fsck from util-linux 2.36.1
e2fsck 1.46.2 (28-Feb-2021)
/dev/vda1 is mounted.
e2fsck: Cannot continue, aborting.
root@sphd:~#
root@sphd:~# sudo reboot
root@sphd:~# Connection to 192.168.0.220 closed by remote host.
Connection to 192.168.0.220 closed.
sudo yunohost app remove nextcloud --purge

redonne les mêmes erreurs que précédemment

Bonsoir @jarod5001
Je me suis résolu à refaire toute ma VM en réinstallant Debian 11 puis Yunohost et enfin Nextcloud.
Sur navigateur j’arrive sans aucun problème à me connecter à mon Nextcloud avec https://mondomaine/nexcloud/
Par contre impossible avec le client Nextcloud que ce soit sur Windows ou Linux ou Android


J’ai désinstallé Nextcloud desktop et réinstallé avec la même erreur.
Y-a-t-il un problème avec NC 28.0.2~ynh1 ?

Nextcloud et nextcloud api doivent être accessibles par les visiteurs dans la webadmin > utilisateurs > permissions

1 Like

Yes c’était ça !
Merci beaucoup @jarod5001

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.