Aide commandes Nextcloud

What type of hardware are you using: Raspberry Pi 3, 4+
What YunoHost version are you running: YunoHost 12.0.11 (stable)
What app is this about: Nextcloud

Describe your issue

Bonjour,

Après mise à jour de Nextcloud, j’ai ces deux avertissements :

One or more mimetype migrations are available. Occasionally new mimetypes are added to better handle certain file types. Migrating the mimetypes take a long time on larger instances so this is not done automatically during upgrades. Use the command occ maintenance:repair --include-expensive to perform the migrations.
Il existe une configuration LDAP inactive: s01

Pour le premier avertissement j’ai fait :

root@arnauld:/var/www/nextcloud# occ maintenance:repair --include-expensive

Mais sans résultat : bash: occ: command not found

Comment utiliser les commandes occ de Nextcloud ?

Et pour le deuxième avertissement,

LDAP inactive: s01

que faire ? A quoi cela correspond-il ?

Merci de vos conseils.

Share relevant logs or error messages

na

sudo -u nextcloud php8.3 --define apc.enable_cli=1 /var/www/nextcloud/occ ldap:delete-config s01
1 Like

sudo yunohost app shell nextcloud
Then
php occ blablabla
Replace blablabla with the command you want

2 Likes

Merci.

Merci.

Cependant cela ne fonctionne pas :slight_smile:

arnauld@arnauld:~ $ sudo -u nextcloud php8.3 --define apc.enable_cli=1 /var/www/nextcloud/occ ldap:delete-config s01
Sorry, user arnauld is not allowed to execute '/usr/bin/php8.3 --define apc.enable_cli=1 /var/www/nextcloud/occ ldap:delete-config s01' as nextcloud on arnauld.org.

Tu n’es pas autorisé, mets-toi en root et recommence.
Puis :
Et éventuellement :

systemctl restart php8.3-fpm.service
1 Like

Merci :

root@arnauld:/home/arnauld# sudo -u nextcloud php8.3 --define apc.enable_cli=1 /var/www/nextcloud/occ ldap:delete-config s01
Deleted configuration with configID 's01'

Alors, résolu ou pas ?

1 Like

Oui, merci beaucoup @JfmbLinux de tes conseils :

root@arnauld:/home/arnauld# sudo -u nextcloud php8.3 --define apc.enable_cli=1 /var/www/nextcloud/occ ldap:delete-config s01
Deleted configuration with configID 's01'

Je ne peux pas cocher les deux solutions, la tienne et celle de jarod5001 à mes deux problèmes comme solution…

Bon dimanche.

1 Like