Sunday, January 21, 2024
support@conference.yunohost.org
January
Mon Tue Wed Thu Fri Sat Sun
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 20
21
22
23
24
25
26
27
28
29
30
31
       
             

[11:08:58] <Svarttjern> Hi there I hope someone can help me with a little App installation issue I'm having
[11:11:11] <Svarttjern> I'm trying to get Kavita to run, but there seems to be a permission issue and it fails to cache Covers and is unable to open files
[11:16:04] <Svarttjern> I installed Calibre-Web as well and that works no issue so far
[11:16:33] <craigvb> Is there trouble with nextcloud updates and/or install at the moment? ( https://paste.yunohost.org/raw/imosayeguj ) not working for me to update, so I deleted it and tried installing in a new folder with no joy
[11:20:49] <Salamandar> > <@craigvb:matrix.org> Is there trouble with nextcloud updates and/or install at the moment? ( https://paste.yunohost.org/raw/imosayeguj ) not working for me to update, so I deleted it and tried installing in a new folder with no joy

> 4-01-21 21:17:10,838: DEBUG - + sudo -u nextcloud php8.2 --define apc.enable_cli=1 occ --no-interaction --no-ansi maintenance:install --database mysql --database-name nextcloud --database-user nextcloud --database-pass 2e569b78b5c22348704e3f77 --admin-user admin --admin-pass ********** --data-dir /home/yunohost.app/nextcloud/data 2024-01-21 21:17:12,020: DEBUG - Username is invalid because files already exist for this user
[11:22:51] <Salamandar> Well that's an error i had never seen before
[11:23:25] <Alexandre> Yes it looks like Nextcloud can't be installed nor updated on YunoHost. I have NextCloud 22 on my production server. All update attempt fails...
[11:26:07] <Alexandre> And I can't install it on my test server. I'm trying to update the system and I'll try again next.
[11:29:00] <Alexandre> Same after updating system. Nextcloud unmet some dependencies and is unable to install it itself. Don't want to break another apps or YunoHost itself by forcing updates manually
[12:18:18] <craigvb> It's not just me then...that's kinda good, and kinda bad LOL Hopefully they'll fix it soon and I can do a re-install of it
[12:18:33] <Aleks (he/him/il/lui)> > <@Salamandar:matrix.org> > 4-01-21 21:17:10,838: DEBUG - + sudo -u nextcloud php8.2 --define apc.enable_cli=1 occ --no-interaction --no-ansi maintenance:install --database mysql --database-name nextcloud --database-user nextcloud --database-pass 2e569b78b5c22348704e3f77 --admin-user admin --admin-pass ********** --data-dir /home/yunohost.app/nextcloud/data 2024-01-21 21:17:12,020: DEBUG - Username is invalid because files already exist for this user

that's because there's already some file for "admin" ...
[12:18:45] <Aleks (he/him/il/lui)> is this the very first install attempt or did you have a failed install prior to this one
[12:18:54] <Aleks (he/him/il/lui)> also can you see some folder named "admin" in `ls -l /home/`, or maybe `ls -l /home/yunohost.app/nextcloud/`
[12:19:11] <Alexandre> Aleks (he/him/il/lui): Même sans installation préalable, j'ai l'impression que le paquet Nextcloud est capricieux depuis un petit moment. Mais dans mon cas, c'est peut-être parce que j'ai migré vers YunoHost 11. Certaines dépendances ne se sont peut-être pas correctement mises à jour et donc ça bloque
[12:22:31] <Aleks (he/him/il/lui)> bah certe mais "capricieux" c'est pas un mot qu'on peut débugger 😬
[12:22:34] <Aleks (he/him/il/lui)> en tout cas oui ce message de `Username is invalid because files already exist for this user` perso je l'ai vu plein de fois rapporté par diverses personnes
[12:22:40] <Alexandre> Moi il m'a fait ça quand j'ai voulu le passer de v22 à v28 ce matin : https://paste.yunohost.org/raw/livenoyeci
[12:25:55] <Alexandre> De ce que j'en comprends, il semble ne pas réussir à passer l'application sous PHP v8.2 (au lieu de 7.4)
[12:32:16] <Aleks (he/him/il/lui)> non ça parle pas de php 8.2
[12:32:52] <hook> I forgot, is this (and other YNH rooms) bridged between XMPP and Matrix?
[12:32:59] <Alexandre> Alors je n'arrive pas trop à comprendre ce qui le bloque
[12:37:51] <hook> Oddly enough though, the XMPP side says there are 306 users connected, while the Matrix side says 550
[12:39:30] <Aleks (he/him/il/lui)> pourtant ça dit : `Exception: Updates between multiple major versions and downgrades are unsupported.`
[12:40:23] <Aleks (he/him/il/lui)> tu peux confimer via l'admin de ton Nextcloud qu'il est en `22.1.1` ?
[12:41:30] <Aleks (he/him/il/lui)> supposedly yes
[12:41:49] <Hook> It seems it is, yes :)
[12:41:53] <Hook> Thanks
[12:42:04] <Alexandre> https://aria.im/_matrix/media/v1/download/am-networks.fr/SbiGjCkqfZDsTrIcmEmyBmMe
[12:42:31] <Alexandre> > <@Alekswag:matrix.org> supposedly yes

On est bien en 22.1.1 sur NextCloud
[12:48:56] <hook> But apparently no delay from XMPP to Matrix
[12:51:10] <hook> I take it back, there’s a slight (0-1') delay from XMPP to Matrix, but the message gets put in the right order.
[12:52:07] <Aleks (he/him/il/lui)> du couuuuup
[12:52:29] <Aleks (he/him/il/lui)> marf ca devrait être géré par notre script d'upgrade aussi mais en l'état c'est pas le cas x_x
[12:52:37] <Hook> There is cca 7' delay for messages from Matrix to XMPP
[12:52:47] <Alexandre> > <@t.menon:matrix.org> Toutes les applications sont à jours?

Les autres applications ? Pour la plupart oui. Et les paquets Linux ont été mis à jour récemment il me semble. Ça doit bien faire 1 an que mon Nextcloud ne se met plus à jour, mais étant donné qu'il fonctionne en l'état, ça ne m'a pas inquiété plus que ça
[12:54:41] <Alexandre> Je viens de constater que quelques paquets Linux ne sont pas à jour, je vais tenter ça, mais j'ai peur que ça casse mon NextCloud 😂
[12:56:26] <Aleks (he/him/il/lui)> comme dit il faut trouver un moyen de passer en 22.2 pour pouvoir faire les autres montées de version
[12:56:34] <Aleks (he/him/il/lui)> c'est un peu un hasard que ça t'arrives, j'imagine que pleins d'autres personnes mettent régulièrement à jour leur nextcloud et ne tombent pas dans ce cas à la con pas géré par notre script d'upgrade
[12:56:41] <Alexandre> Si je fais la MàJ depuis la page NextCloud que j'ai envoyé en capture d'écran, vous pensez que ça fonctionnera ?
[12:56:41] <Aleks (he/him/il/lui)> je vais taffer sur ça + d'autres bricoles cette aprem
[13:22:33] <Raphael> Dites question en parallèle, je ne voulais pas interrompre: c’est quoi déjà la commande yunohost pour lancer un shell en tant que user?
[13:22:34] <Raphael> > <@t.menon:matrix.org> Oui mais de la 22 à la 24 c’est problématique car elle ne sont plus maintenues

Je ne pense pas que parce qu’elle ne sont plus maintenues que les archives n’existent plus
[13:23:07] <Raphael> et en effet avant 23 je crois qu’il faut php7.4
[13:23:07] <Raphael> juste tu n’auras plus de màj de sécurité
[13:23:07] <Raphael> peut-être aussi faudrait il faire un repair?

`sudo -u nextcloud /usr/bin/php7.4 --define apc.enable_cli=1 /var/www/nextcloud/occ maintenance:repair`
[13:23:08] <Alexandre> Raphael: J'avais vu la question, mais je n'avais pas la réponse ;-)
[13:23:08] <Alexandre> Merci beaucoup Aleks (he/him/il/lui) , je tente et te tiens au jus 😊
[13:23:08] <Alexandre> Pour l'instant on en est là ^^'
[13:23:08] <Aleks (he/him/il/lui)> Alexandre: `yunohost app upgrade nextcloud -u https://github.com/YunoHost-Apps/nextcloud_ynh/tree/41f5f902e7c7cd3c30a6793020562ba98b9bf3e9` -> ca devrait upgrader vers la 22.2.10, ensuite tu pourras faire les autres montées de version via une upgrade yunohost classique
[13:23:08] <Raphael> > <@ashledombos:matrix.org> Dites question en parallèle, je ne voulais pas interrompre: c’est quoi déjà la commande yunohost pour lancer un shell en tant que user?

Je réup ma question car elle a pu être noyée, je crois que c’est yunohost user ou yunohost tools quelque chose mais je n’arrive plus à trouver dans l’aide ou dans mon historique bash
[13:23:08] <Raphael> avec le nom de l’utilisateur
[13:23:08] <Alexandre> Aleks (he/him/il/lui): On est pas mal, ta commande semble fonctionner 😊
[13:23:08] <Alexandre> https://aria.im/_matrix/media/v1/download/am-networks.fr/pdFGMOwObGXjUxvAbtiKedty
[13:23:08] <Raphael> ah j’ai trouvé c’est sudo yunohost app shell
[13:23:08] <Raphael> sudo yunohost app shell user
[13:23:15] <Alexandre> https://aria.im/_matrix/media/v1/download/am-networks.fr/xnJEgEIukwhWkVYDlPYNCCBM
[13:24:16] <Aleks (he/him/il/lui)> en faisait de l'archéogitologie
[13:24:16] <Raphael> > <@Alekswag:matrix.org> Alexandre: `yunohost app upgrade nextcloud -u https://github.com/YunoHost-Apps/nextcloud_ynh/tree/41f5f902e7c7cd3c30a6793020562ba98b9bf3e9` -> ca devrait upgrader vers la 22.2.10, ensuite tu pourras faire les autres montées de version via une upgrade yunohost classique

Comment tu trouves le bon commit?
[13:24:17] <Alexandre> Migration 22.2.10 ✅ Je viens de lancer la commande de mise à jour classique 😊 Merci M. L'Archéogitologue 😂
[13:24:41] <Aleks (he/him/il/lui)> j'ai retrouvé https://github.com/YunoHost-Apps/nextcloud_ynh/pull/497 puis https://github.com/YunoHost-Apps/nextcloud_ynh/pull/498 et donc tout en bas le commit 41f5f90
[14:13:14] <Alexandre> C'est triste, il a réussi à passer v23, v24, v25, v26, v27 mais plantage à la v28 😞 J'espère qu'il a bien fait les backups entre les versions sinon la restauration va être difficile
[14:17:58] <Hook> And some messages seem out of sync between the two. Maybe someone should check the bridge if there’s anything wrong :/
[14:18:10] <Aleks (he/him/il/lui)> > <@am:am-networks.fr> On est bien en 22.1.1 sur NextCloud

je me demande si c'est pas parce qu'il faut être sur la toute dernière version de la version majeure pour passer à la suivante ... dans le cas précis, la 22.2.10
[14:19:04] <Raphael> autant Yunohost que Nextcloud avec OCC fait des backups
[14:19:05] <Raphael> par contre elles s’effacent d’une version à l’autre
[14:19:05] <Raphael> s’écrasent*
[14:19:07] <Salamandar> @am:am-networks.fr Sauf ligne de commande spécifique de ta part, une sauvegarde est faite avant une mise à jour
[14:19:15] <Alexandre> Ca devrait être bon alors ; et je crois que c'est l'application NextCloud "KeeWeb" qui pose problème :

```
2024-01-21 15:08:40,428: DEBUG - Update app files_photospheres from App Store
2024-01-21 15:08:41,362: DEBUG - Update app forms from App Store
2024-01-21 15:08:42,429: DEBUG - Update app integration_mattermost from App Store
2024-01-21 15:08:44,177: DEBUG - Update app keeweb from App Store
2024-01-21 15:08:45,116: DEBUG - An unhandled exception has been thrown:
2024-01-21 15:08:45,117: DEBUG - Error: Undefined constant OCA\Keeweb\Migration\RegisterMimeType::CUSTOM_MIMETYPEALIASES in /var/www/nextcloud/apps/keeweb/lib/Migration/RegisterMimeType.php:25
2024-01-21 15:08:45,117: DEBUG - Stack trace:
2024-01-21 15:08:45,117: DEBUG - #0 /var/www/nextcloud/apps/keeweb/lib/Migration/RegisterMimeType.php(41): OCA\Keeweb\Migration\RegisterMimeType->registerForNewFiles()
2024-01-21 15:08:45,117: DEBUG - #1 /var/www/nextcloud/lib/private/Repair.php(127): OCA\Keeweb\Migration\RegisterMimeType->run()
2024-01-21 15:08:45,117: DEBUG - #2 /var/www/nextcloud/lib/private/legacy/OC_App.php(836): OC\Repair->run()
2024-01-21 15:08:45,117: DEBUG - #3 /var/www/nextcloud/lib/private/Installer.php(166): OC_App::executeRepairSteps()
2024-01-21 15:08:45,117: DEBUG - #4 /var/www/nextcloud/lib/private/legacy/OC_App.php(264): OC\Installer->installApp()
2024-01-21 15:08:45,117: DEBUG - #5 /var/www/nextcloud/lib/private/Updater.php(431): OC_App->enable()
2024-01-21 15:08:45,118: DEBUG - #6 /var/www/nextcloud/lib/private/Updater.php(284): OC\Updater->upgradeAppStoreApps()
2024-01-21 15:08:45,118: DEBUG - #7 /var/www/nextcloud/lib/private/Updater.php(140): OC\Updater->doUpgrade()
2024-01-21 15:08:45,118: DEBUG - #8 /var/www/nextcloud/core/Command/Upgrade.php(222): OC\Updater->upgrade()
2024-01-21 15:08:45,118: DEBUG - #9 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(298): OC\Core\Command\Upgrade->execute()
2024-01-21 15:08:45,118: DEBUG - #10 /var/www/nextcloud/3rdparty/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run()
2024-01-21 15:08:45,118: DEBUG - #11 /var/www/nextcloud/3rdparty/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
2024-01-21 15:08:45,120: DEBUG - #12 /var/www/nextcloud/3rdparty/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
2024-01-21 15:08:45,120: DEBUG - #13 /var/www/nextcloud/lib/private/Console/Application.php(206): Symfony\Component\Console\Application->run()
2024-01-21 15:08:45,121: DEBUG - #14 /var/www/nextcloud/console.php(100): OC\Console\Application->run()
2024-01-21 15:08:45,121: DEBUG - #15 /var/www/nextcloud/occ(11): require_once('...')
2024-01-21 15:08:45,365: DEBUG - #16 {main}+ '[' 1 -eq 3 ']'
2024-01-21 15:08:45,366: DEBUG - + ynh_die '--message=Unable to upgrade Nextcloud'
2024-01-21 15:08:45,422: WARNING - 0/0 [----->----------------------] 0%Unable to upgrade Nextcloud
2024-01-21 15:08:45,423: DEBUG - + ynh_exit_properly
2024-01-21 15:08:45,423: DEBUG - + [[ upgrade =~ ^install$|^upgrade$|^restore$ ]]
2024-01-21 15:08:46,960: ERROR - Could not upgrade nextcloud: An error occurred inside the app upgrade script
```
[14:19:58] <Aleks (he/him/il/lui)> > <@am:am-networks.fr> Si je fais la MàJ depuis la page NextCloud que j'ai envoyé en capture d'écran, vous pensez que ça fonctionnera ?

non .. attends je te crafte une commande ...
[14:19:59] <Raphael> En ce qui me concerne j’ai du mettre à jour manuellement, d’abord avec

`sudo -u nextcloud /usr/bin/php8.0 --define apc.enable_cli=1 /var/www/nextcloud/updater/updater.phar`

puis quand il demande si il faut faire un occ je disais non pour le faire à la main avec la commande

`sudo -u nextcloud /usr/bin/php8.0 --define apc.enable_cli=1 /var/www/nextcloud/occ upgrade`
[14:21:11] <Alexandre> Il m'a restauré la 22.2.10 🥲
[14:22:49] <Raphael> au pire ça ne fait rien, au mieux ça répare les deux ou trois trucs qui pourraient poser problèmes
[14:22:49] <Raphael> Tu devrais peut-être quand même lancer une phase de réparation juste au cas où (avec la maintenance en off, pour que les apps aussi soient nettoyées)
[14:22:49] <Alexandre> > <@ashledombos:matrix.org> Tu devrais peut-être quand même lancer une phase de réparation juste au cas où (avec la maintenance en off, pour que les apps aussi soient nettoyées)

Je lui envoie ça ? `nextcloud /usr/bin/php7.4 --define apc.enable_cli=1 /var/www/nextcloud/occ maintenance:repair`
Ou `nextcloud /usr/bin/php7.4 --define apc.enable_cli=1 /var/www/nextcloud/occ maintenance:off` ?
[14:23:52] <Raphael> déjà si tu es en 22, je passerais à php8.0
[14:24:02] <Raphael> le 2 n’est nécessaire que si la maintenance est off
[14:24:05] <Raphael> on pardon
[14:24:10] <Alexandre> Actuellement il utilise PHP 7.4.33
[14:24:10] <Raphael> donc je dirai le premier en changeant juste la version de php
[14:25:21] <Raphael> ok, dans ce cas reste avec 7.4
[14:25:39] <Alexandre> Merci, je tente ^^
[14:27:18] <Raphael> par contre le début je n’avais pas vu
[14:27:25] <Raphael> sudo -u avant (à moins qu’il n’y ait une commande nextcloud que je ne connais pas)
[14:27:44] <Alexandre> Bien vu, je l'avais retiré par réflexe, vu que je n'utilise pas sudo pour administrer le serveur ^^
[14:29:28] <Alexandre> Raphael: Pas mal d'infos en sortie de la commande, mais pas certain qu'il ait corrigé des choses
[14:30:19] <Raphael> s’il corrige quelque chose c’est explicite, donc c’est que tout est bon
[14:30:20] <Alexandre> ```
root@am-networks:/var/www/nextcloud# sudo -u nextcloud /usr/bin/php7.4 --define apc.enable_cli=1 /var/www/nextcloud/occ maintenance:repair
- Repair MySQL collation
- All tables already have the correct collation -> nothing to do
- Repair mime types
- Clean tags and favorites
- 0 tags of deleted users have been removed.
- 0 tags for delete files have been removed.
- 0 tag entries for deleted tags have been removed.
- 0 tags with no entries have been removed.
- Repair invalid shares
- Move .step file of updater to backup location
- Add move avatar background job
- Repair step already executed
- Add preview cleanup background jobs
- Fix potential broken mount points
- No mounts updated
- Repair language codes
- Install new core bundle components
- Add log rotate job
- Clear frontend caches
- Image cache cleared
- SCSS cache cleared
- JS cache cleared
- Clear every generated avatar on major updates
- Add preview background cleanup job
- Queue a one-time job to cleanup old backups of the updater
- Cleanup invalid photocache files for carddav
- Add background job to cleanup login flow v2 tokens
- Remove potentially over exposing share links
- No need to remove link shares.
- Clear access cache of projects
- Reset generated avatar flag
- Keep legacy encryption enabled
- Check encryption key format
- Remove old dashboard app config data
- Add job to cleanup the bruteforce entries
- Queue a one-time job to check for user uploaded certificates
- Repair DAV shares
- Add background job to set the lookup server share state for users
- Update name of the stored view
- Upgrading Circles App
- Fix component of birthday calendars
- 3 birthday calendars updated.
- Regenerating birthday calendars to use new icons and fix old birthday events without year
- Repair step already executed
- Fix broken values of calendar objects
0 [->--------------------------]
- Registering building of calendar search index as background job
- Repair step already executed
- Register building of social profile search index as background job
- Repair step already executed
- Registering background jobs to update cache for webcal calendars
- Added 0 background jobs to update webcal calendars
- Registering building of calendar reminder index as background job
- Repair step already executed
- Clean up orphan event and contact data
- 0 events without a calendar have been cleaned up
- 0 properties without an events have been cleaned up
- 0 changes without a calendar have been cleaned up
- 0 cached events without a calendar subscription have been cleaned up
- 0 changes without a calendar subscription have been cleaned up
- 0 contacts without an addressbook have been cleaned up
- 0 properties without a contact have been cleaned up
- 0 changes without an addressbook have been cleaned up
- Remove activity entries of private events
- Removed 0 activity entries
- Clean up old calendar subscriptions from deleted users that were not cleaned-up
3/3 [============================] 100%
- 0 calendar subscriptions without an user have been cleaned up
- Copy default images to the app data directory
- Icon external.svg already exists
- Icon external-dark.svg already exists
- Icon settings.svg already exists
- Fix the share type of guest shares when migrating from ownCloud
- Copy the share password into the dedicated column
- Set existing shares as accepted
- Clean up meta table
- Update OAuth token expiration times
- Polls - Create indices and foreign key constraints
- Polls - Indices created.
- Polls - Foreign key contraints created.
- Install dependencies
- Create help command
- Invalidate access cache for projects conversation provider
- Invalidation not required
- Cache the user display names
- Switches from default updater server to the customer one if a valid subscription is available
- Repair step already executed
- Send an admin notification if monthly report is disabled
- Add background job to check for backup codes
- Insert UUIDFix background job for user and group in batches
- Remove deprecated refresh time markers for LDAP user records
- Populating added database structures for workflows
```
[14:32:26] <Alexandre> J'ai viré complètement l'application Keeweb dans NextCloud, je retente l'upgrade
[14:52:53] <Alexandre> Jusque là tout va bien...
```
Info: Updating system_user...
Info: Updating install_dir...
Info: Provisioning data_dir...
Info: Provisioning permissions...
Info: Provisioning apt...
Info: Provisioning database...
Info: [+...................] > Ensuring downward compatibility...
Info: [#+++................] > Upgrading Nextcloud...
Info: Upgrade to Nextcloud 23.0.0
Info: '/tmp/tmp.Rntc2ByzUl' wasn't deleted because it doesn't exist.
Warning: Nextcloud or one of the apps require upgrade - only a limited number of commands are available
Warning: You may use your browser or the occ upgrade command to do the upgrade
Warning: Nextcloud or one of the apps require upgrade - only a limited number of commands are available
Warning: You may use your browser or the occ upgrade command to do the upgrade
Warning: Starting ...
Warning: 0/0 [>---------------------------] 0% Starting ...
Warning: 0/3 [>---------------------------] 0%
Warning: Starting ...
Warning: 3/3 [============================] 100% Starting ...
Info: Upgrade to Nextcloud 24.0.0
Info: '/tmp/tmp.Xz9ImHEbs2' wasn't deleted because it doesn't exist.
Warning: 0/0 [----->----------------------] 0%Nextcloud or one of the apps require upgrade - only a limited number of commands are available
Warning: You may use your browser or the occ upgrade command to do the upgrade
Warning: Nextcloud or one of the apps require upgrade - only a limited number of commands are available
Warning: You may use your browser or the occ upgrade command to do the upgrade
Warning: Starting ...
Warning: 0/0 [>---------------------------] 0% Starting ...
Warning: 0/3 [>---------------------------] 0%
Warning: Starting ...
Warning: 3/3 [============================] 100% Starting ...
Warning: 0/0 [----->----------------------] 0%
Info: Upgrade to Nextcloud 25.0.0
Info: '/tmp/tmp.Pw4rCuegBq' wasn't deleted because it doesn't exist.
```
[15:20:53] <Alexandre> Suspense !
[15:21:14] <Alexandre> https://aria.im/_matrix/media/v1/download/am-networks.fr/qVpEnlRFXnbWzzinLyUiqPte
[15:46:53] <Alexandre> Finalement échec... Et il ne m'a pas restauré la sauvegarde.
J'ai voulu la restaurer manuellement, mais j'aime pas trop ce qu'il me demande :
```
root@am-networks:/home/yunohost.backup/archives# yunohost backup restore nextcloud-pre-upgrade2.tar.gz
Warning: YunoHost is already installed
Do you really want to restore an already installed system? [y/N]:
```

Aleks (he/him/il/lui) , Raphael , je fais quoi ? 😅
[15:47:03] <Aleks (he/him/il/lui)> pff oui c'est une question à la con, on aurait du la jarter dans ce genre de situation depuis un moment mais bref
[15:47:06] <Aleks (he/him/il/lui)> "y"
[15:47:07] <Aleks (he/him/il/lui)> il faut mieux juste partager le log pour qu'on puisse debug ...
[15:47:07] <Aleks (he/him/il/lui)> mais si il a pas réussi à restaurer le backup à la fin de l'upgrade alors ça va pas mieux fonctionner en le lancant à la main
[15:47:25] <Alexandre> J'essaie de vous le fournir, mais en relançant la commande de restauration de backup et en validant, ça m'a considérablement ralenti le webadmin YH
[15:48:27] <Alexandre> Log de MàJ : https://paste.yunohost.org/raw/ezotobomub
Log de suppression ensuite (alors que j'ai jamais demandé de suppression) : https://paste.yunohost.org/raw/uredohikiy
[15:49:39] <Alexandre> https://aria.im/_matrix/media/v1/download/am-networks.fr/HTsBOYJZCtyXmyZaWHbwohTh
[15:49:39] <Aleks (he/him/il/lui)> oui certes c'est parce que l'upgrade a échoué, donc il tente de restaurer l'app, et la restauration échoue, donc il supprime l'app plutôt que de la laisser dans un état cassé
[15:51:11] <Alexandre> Aleks (he/him/il/lui): En restauration manuelle...
[15:57:03] <Aleks (he/him/il/lui)> il n'a pas tenté de restaurer l'app après l'échec de l'upgrade ..?
[15:58:11] <Alexandre> Justement je n'ai pas l'impression, la simple restauration manuelle a fonctionné
[15:58:38] <Aleks (he/him/il/lui)> 😐️
[15:58:43] <Aleks (he/him/il/lui)> bon ben en tout cas l'échec de l'upgrade vient de `Error: App "Talk Matterbridge" cannot be installed because the following dependencies are not fulfilled: Server version 26 or lower is required.`
[15:58:55] <Raphael> > <@Alekswag:matrix.org> il n'a pas tenté de restaurer l'app après l'échec de l'upgrade ..?

Si mais il y a eu cette erreur Error: App "Talk Matterbridge" cannot be installed because the following dependencies are not fulfilled: Server version 26 or lower is required.
[15:59:22] <Aleks (he/him/il/lui)> certes mais ça c'était pendant l'upgrade, moi je parle de la tentative de restoration de l'app après l'échec de l'upgrade
[15:59:40] <Alexandre> J'ai presque envie de virer toutes les apps 😂 Et de faire manuellement l'upgrade version par version (commit par commit comme avec le lien que tu m'as transmis tout à l'heure)
[16:01:35] <Alexandre> Enfin major par major hein 😂
[16:04:25] <Raphael> je ne pense pas que tu aies besoin de virer les apps, occ les désactive de lui même
[16:13:43] <Alexandre> Bah après, des apps, ça se réinstalle, et il n'y a que peu de config dessus...
[16:22:06] <(ĝ)> Allo! J'offre 50$ a n'importe qui qui ajoute Sliding Sync pour le package de matrix Sinapse
[16:24:00] <(ĝ)> *synapse
[16:27:11] <Raphael> > <@ashledombos:matrix.org> je ne pense pas que tu aies besoin de virer les apps, occ les désactive de lui même

si elles sont incompatibles je veux dire
[16:29:52] <Raphael> tu devrais quand même faire un backup explicite si ton NC est en bon état
[16:41:17] <Alexandre> Backup explicite = backup manuel ?
[16:47:01] <Raphael> comme ça tu reviens à cet état si jamais quelque chose dérape
[16:48:04] <Raphael> > <@am:am-networks.fr> Backup explicite = backup manuel ?

oui
[16:49:03] <Raphael> pas juste compter sur le pre-upgrade
[16:49:54] <Raphael> dans ce cas spécifique
[16:50:28] <Raphael> dans mon cas la maj manuelle en alternant upgrade.phar suivi de occ a marché
[16:51:20] <Raphael> > <@ashledombos:matrix.org> En ce qui me concerne j’ai du mettre à jour manuellement, d’abord avec
>
> `sudo -u nextcloud /usr/bin/php8.0 --define apc.enable_cli=1 /var/www/nextcloud/updater/updater.phar`
>
> puis quand il demande si il faut faire un occ je disais non pour le faire à la main avec la commande
>
> `sudo -u nextcloud /usr/bin/php8.0 --define apc.enable_cli=1 /var/www/nextcloud/occ upgrade`

je parle de cette suite de commande
[16:52:11] <Alexandre> Je vais essayer, mais à un moment, il va falloir que j'arrive à le passer en PHP8 oui ^^
[16:53:22] <Raphael> par contre en faisant comme ça Yunohost ne saura pas que tu as évolué de version
[16:57:53] <Raphael> donc, mais là un dev yunohost pourra dire si c’est le mieux, j’ai d’abord fait l’upgrade yunohost avec l’option -c
[16:58:42] <Raphael> et même l’option -b vu que tu as fait ton backup manuel
[16:59:43] <Raphael> ensuite j’ai fait les upgrade NC à la main avec update.phar et occ upgrade
[17:03:25] <Raphael> l’avantage est que tu peux voir dans le détail tout ce qui se passe
[17:05:34] <Alexandre> Je vais attendre la fin du backup et je vais déjà voir pour faire un peu de ménage dans les extensions (virer celles qui sont en désactivé) et essayer de passer déjà NC v23 via le commit correspondant dans nextcloud_ynh
Si ça fonctionne, je fais faire de même avec les versions majeures suivantes et comme ça, je devrais voir si ça bloque et où ça bloque ^^
Parce que quand il passe toutes les versions en successif automatique, y a que très peu d'infos
[17:07:29] <Raphael> oui, c’est ce qui pose problème, et parfois c’est juste à la fin que ça bloque, et tu annules touuuuuuuutes tes mises à jour qui ont fonctionné
[17:08:17] <Alexandre> C'est exactement ça ! 😂
C'est ma faute, j'ai trop attendu avant de me préoccuper de cette MàJ : vu que ça fonctionnait correctement, je m'en suis pas inquiété
[17:12:55] <Alexandre> Mais vu qu'une fois j'ai déjà cassé mon YH principal et que j'ai pu le récupérer in extremis (j'en étais arrivé à devoir réinstaller les paquets YH et c'est au moment du post-install qu'il a capté qu'il y avait une installation précédente), maintenant je me méfie 😂
[18:29:55] <Salamandar> > <(ĝ)> Allo! J'offre 50$ a n'importe qui qui ajoute Sliding Sync pour le package de matrix Sinapse

il y a une config particulière à faire ? o.O
[18:31:52] <Salamandar> ah faut peut-être installer le sliding sync proxy…
[18:34:25] <Alexandre> Raphael Aleks (he/him/il/lui) : Bon bah... En passant les upgrades une par une avec l'URL du commit GitHub concerné, ça a l'air de fonctionner. J'ai déjà passé v23 à v26 sans problème. v27 en cours, je croise les doigts 😉
Note à moi-même : ne plus oublier de mettre à jour les applis YunoHost 😂
[18:55:58] <(ĝ)> > ah faut peut-être installer le sliding sync proxy…
Oui, intéressé?
[20:56:48] <Alexandre> Aleks (he/him/il/lui): Encore un cas particulier : Mon YunoHost a un peu perdu les pédales pendant le passage de NextCloud à la v28. En gros, il considère la mise à jour en erreur alors qu'elle a fonctionné :
```
Info: [#####+++++++........] > Reconfiguring Nextcloud...
Warning: 5/0 [------->--------------------] 0%File /var/www/nextcloud/config/config.php has been manually modified since the installation or last upgrade. So it has been duplicated in /var/cache/yunohost/appconfbackup//var/www/nextcloud/config/config.php.backup.20240121.210352
Info: [############........] > Upgrading logrotate configuration...
Info: [############+++++...] > Reconfiguring Fail2Ban...
Info: The service fail2ban has correctly executed the action reload-or-restart.
Info: [#################++.] > Reloading PHP-FPM...
Info: [####################] > Upgrade of nextcloud completed
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
Error: Could not upgrade nextcloud: This action broke dpkg/APT (the system package managers)... You can try to solve this issue by connecting through SSH and running `sudo apt install --fix-broken` and/or `sudo dpkg --configure -a`.
Info: The operation 'Upgrade the 'nextcloud' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20240121-195114-app_upgrade-nextcloud' to get help
Error: The operation 'Upgrade the 'nextcloud' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20240121-195114-app_upgrade-nextcloud' to get help
```
Ce qui est embêtant, c'est que pour NextCloud je suis en v28.0.0 alors que pour YunoHost, je suis en 27.0.0.
J'ai essayé de refaire une mise à jour de NextCloud, pour passer à la 28.0.1 mais ça bloque :
```
root@am-networks:~# yunohost app upgrade nextcloud -u https://github.com/YunoHost-Apps/nextcloud_ynh/tree/ab33a96bc4e08ce4e8367a8a4e8bbc293fe8d176
Info: Now upgrading nextcloud...
Info: Creating a safety backup prior to the upgrade
Info: Collecting files to be backed up for nextcloud...
Info: Loading installation settings...
Info: Declaring files to be backed up...
Warning: Source path '' does not exist
Error: Could not back up nextcloud
Info: The operation 'Create a backup archive' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20240121-203323-backup_create' to get help
Error: Nothing to save
root@am-networks:~#
```

Aurais-tu une petite idée de ce que je pourrais faire ?
[20:58:03] <Aleks (he/him/il/lui)> >Please share the full log of this operation using the command 'yunohost log share 20240121-195114-app_upgrade-nextcloud' to get help
[20:58:29] <Alexandre> https://paste.yunohost.org/raw/imuwamilol
[21:07:25] <Alexandre> Prend le temps qu'il te faut, y a pas de souci, ça peut attendre demain ou un autre jour de la semaine 😉 C'était au cas où tu aurais une piste en tête
[21:08:41] <Aleks (he/him/il/lui)> que raconte `sudo dpkg --configure -a`
[21:09:28] <Alexandre> Retour vide
[21:11:22] <Aleks (he/him/il/lui)> ou `dpkg --audit`
[21:11:44] <Alexandre> > <@Alekswag:matrix.org> ou `dpkg --audit`

Retour vide également
[21:13:27] <Aleks (he/him/il/lui)> 😐️
[21:13:56] <Aleks (he/him/il/lui)> > pour NextCloud je suis en v28.0.0 alors que pour YunoHost, je suis en 27.0.0

comment tu vois ça du coup
[21:14:30] <Aleks (he/him/il/lui)> (et aussi `yunohost log share 20240121-203323-backup_create` pour partager le log de backup)
[21:15:07] <Alexandre> ```
root@am-networks:~# yunohost app info nextcloud
description: Online storage, file sharing platform and various other applications
domain_path: files.am-networks.fr/
name: Nextcloud
version: 27.0.0~ynh1
```
[21:15:54] <Alexandre> https://aria.im/_matrix/media/v1/download/am-networks.fr/lXlkJNfTrWZXzxQxiMKcOpuJ
[21:16:59] <Alexandre> > <@Alekswag:matrix.org> (et aussi `yunohost log share 20240121-203323-backup_create` pour partager le log de backup)

https://paste.yunohost.org/raw/oduwiwaxux
[21:18:25] <Aleks (he/him/il/lui)> hmmm ouai je crois que je vois la situation
[21:18:42] <Aleks (he/him/il/lui)> ¯\_(ツ)_/¯
[21:19:08] <Aleks (he/him/il/lui)> le plus "simple" c'est de desinstsaller l'app, restaurer le backup pre-upgrade qui a été fait automatiquement, refaire l'upgrade...
[21:19:24] <Alexandre> C'est ce que je pensais faire, je tente ça ;) Merci
[22:11:17] <estebanvihaio> Hello All, what's up?

I've recently started to use Yuno, so still in the learning curve. Question: YunoH is running on a Pie. I have a disk attached to it
Can I make a NAS with this attached disk?
[22:12:48] <Alexandre> > <@estebanvihaio:matrix.org> Hello All, what's up?
>
> I've recently started to use Yuno, so still in the learning curve. Question: YunoH is running on a Pie. I have a disk attached to it
> Can I make a NAS with this attached disk?

Hi Esteban,

I think it's possible, but you'll need to mount your disk on your RaspberryPi if it didn't automatically.
You can check it by going into `/media`.
If your disk is mounted, you must see it there and you'll be able to use it with a NAS application with there's any.
I don't think you can use YH like a NAS with SMB shares. But in webUI, you have Nextcloud or Pydio.