Installation Nextcloud

Mon serveur YunoHost

Matériel: Raspberry Pi à la maison /
Version de YunoHost: 11.2.8.2
J’ai accès à mon serveur : En SSH | Par la webadmin | En direct avec un clavier/écran | …
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non
C’est une installation toute fraiche
Si votre requête est liée à une applicatio, précisez son nom et sa version: nextcloud 27.1.4~ynh1

Description du problème

Bonjour,
Souhaitant installer Nextcloud avec Yunohost sur RPI4, je me retrouve avec l’erreur :
L’installation est toute neuve, sans aucune modification

194756 WARNING PHP Fatal error:  Uncaught Error: Failed opening required '/var/www/nextcloud/console.php' (include_path='.:/usr/share/php') in /var/www/nextcloud/occ:11
194758 WARNING Stack trace:
194760 WARNING #0 {main}
194761 WARNING   thrown in /var/www/nextcloud/occ on line 11

194819 WARNING Unable to install Nextcloud

J’ai relancé plusieurs fois l’installation avec un utilisateur spécifique puis avec admin, mais rien n’y fait.

Je ne vois pas à quoi correspond cette erreur.

Si quelqu’un a une idée.
Bonnes fêtes à tous !

Comme pour tous les problèmes de ce genre : on ne peut rien pour toi sans le log complet, il suffit de cliquer sur le bouton vert “Partager avec Yunopaste” et de partager l’url générée …

Bonjour,

Effectivement, merci du rappel, ç’est mieux avec les logs
https://paste.yunohost.org/raw/yicuzelove

Est-ce que tu peux partager la sortie de : namei -l /var/www

et: namei -l /home/yunohost.app

?

Le retour pour les commandes

namei -l /var/www
f: /var/www
drwxr-xr-x root root /
drwxr-xr-x root root var
drwxr-xr-x root root www

namei -l /home/yunohost.app
f: /home/yunohost.app
drwxr-xr-x root root /
drwxr-xr-x root root home
drwxr-xr-x root root yunohost.app

Mokay and could it be that you performed a previous install of nextcloud (maybe another failed attempt) before this one, and there would be some remaining bits ?

Does ls -l /home/yunohost.app/nextcloud returns anything ?

Oui j’ai fait plusieurs tentatives, avec mais jes suis parti d’une intallation neuve

ls -l /home/yunohost.app/nextcloud
ls: cannot open directory ‘/home/yunohost.app/nextcloud’: Permission denied
admin@yunotest:~ $ sudo ls -l /home/yunohost.app/nextcloud
[sudo] password for admin:
total 4
drwxr-x— 4 nextcloud nextcloud 4096 Dec 26 20:24 data

Hmokay mais du coup il semble y avoir un utilisateur nextcloud sur ton systeme alors que l’app n’est pas installée ?

Que raconte namei -l /home/yunohost.app/nextcloud/data ?

Et grep nextcloud /etc/passwd ?

J’ai créé ce compte nextcloud pour avoir un compte spécifique pour gérer l’administration de nextcloud. Par contre j’avais au préalable tester avec le compte admin et le premier compte créé et l’instal avait échouée.

namei -l /home/yunohost.app/nextcloud/data
f: /home/yunohost.app/nextcloud/data
drwxr-xr-x root root /
drwxr-xr-x root root home
drwxr-xr-x root root yunohost.app
drwxr-x— nextcloud nextcloud nextcloud
data - Permission denied
admin@yunotest:~ $ grep nextcloud /etc/passwd
→ aucun retour

Mokay mais du coup c’est pour ça que l’app ne s’installe pas correctement, YunoHost est perdu car il voudrais créer un utilisateur système “nextcloud”, mais tu en as créé un via YunoHost, ce qui n’est pas censé être le cas

Quelle solution puis je envisager ?
Je viens de supprimer l’utilisateur nextcloud, redémarer et retenter l’instal mais même constat.
https://paste.yunohost.org/raw/nehikiwaji

Cannot create or write into the data directory /home/yunohost.app/nextcloud/data

Les permissions sont toujours fucké à cause du micmac précédent

En supposant que tu n’as pas de données dans ce dossier, j’imagine que tu peux faire sauvagement un sudo rm -rf /home/yunohost.app/nextcloud

Re,
Je viens de réinstaller ynh, fais la postinstall, vérifier et mettre à jour, faire un diag
Créer deux utilisateurs nicoj et admincloud
Tenter de réinstaller nextcloud avec le compte admincloud. Hélàs https://paste.yunohost.org/raw/sibumesofe

ls -l /home/yunohost.app/nextcloud
ls: cannot access ‘/home/yunohost.app/nextcloud’: No such file or directory

admin@yunohost:~ $ namei -l /var/www
f: /var/www
drwxr-xr-x root root /
drwxr-xr-x root root var
drwxr-xr-x root root www
admin@yunohost:~ $ namei -l /home/yunohost.app
f: /home/yunohost.app
drwxr-xr-x root root /
drwxr-xr-x root root home
drwxr-xr-x root root yunohost.app

Mouarf ben maintenant ça n’a rien à voir avec les problèmes précédent, c’est lié à la version 11.2.9 qui viens de sortir il y a quelques minutes/heures et change le comportement d’application des patchs dans les apps et ça pète un truc dans Nextcloud é_è …

Bonjour,
La dernière mise à jour de yunohost (11.2.9.1) vient corriger le problème.
Merci pour tant de réactivité.

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