Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Échec de chargement de "nextcloud office" #77

Open
pierre-yves56 opened this issue Apr 7, 2023 · 9 comments
Open

Échec de chargement de "nextcloud office" #77

pierre-yves56 opened this issue Apr 7, 2023 · 9 comments

Comments

@pierre-yves56
Copy link

Bonjour,
J'installe un nouveau serveur yunohost sur un VPS pour une association. L'installation s'est bien déroulée, mais j'ai buté sur un problème : le lien "nextcloud office" et collabora, tous deux installés avec les apps de yunohsot. Après avoir longuement fouillé dans les forums, j'ai réinstallé le serveur (debian 11 ) et yunohost, puis nextcloud, collabora et enfin nextcloud office.

Describe the bug

Le paramétrage semble ok

image

Pourtant quand je tente l'édition d'un document j'obtiens le message suivant :

image

Context

Mon serveur YunoHost

Matériel: VPS 4G de RAM Debian 11.6

Version de YunoHost: 11.1.17 (stable)

J'ai accès à mon serveur : En SSH | Par la webadmin |

Êtes-vous dans un contexte particulier ou avez-vous effectué des modifications particulières sur votre instance ? : OUI

Si oui, expliquer: installation initiale

Voici les log de Collabora online office suite

https://paste.yunohost.org/paduwicili

ainsi que celle de nginx

https://paste.yunohost.org/bigonocota

J'observe plusieurs erreurs :

A la fin des logs de collabora

Apr 06 14:24:13 coolwsd[653]: wsd-00653-164053 2023-04-06 14:24:13.627207 +0000 [ docbroker_010 ] ERR  loading document exception: Access denied. WOPI::CheckFileInfo failed on: https://intra.resohabitat.fr/yunohost/sso/?r=aHR0cHM6Ly9pbnRyYS5yZXNvaGFiaXRhdC5mci9uZXh0Y2xvdWQvaW5kZXgucGhwL2FwcHMvcmljaGRvY3VtZW50cy93b3BpL2ZpbGVzLzUyX29jNmlyNmNiOHdtaj9wZXJtaXNzaW9uPWVkaXQmYWNjZXNzX3Rva2VuPUt4aTlYSkIyanllZEVyQVd0bkljS0s2Wkh6QmxxMnBIJmFjY2Vzc190b2tlbl90dGw9MTY4MDgyNzA1MTAwMA==&access_token=Kxi9XJB2jyedErAWtnIcKK6ZHzBlq2pH| wsd/DocumentBroker.cpp:2456
Apr 06 14:24:13 coolwsd[653]: wsd-00653-164053 2023-04-06 14:24:13.627232 +0000 [ docbroker_010 ] ERR  Failed to add session to [/nextcloud/index.php/apps/richdocuments/wopi/files/52_oc6ir6cb8wmj] with URI [https://intra.resohabitat.fr/nextcloud/index.php/apps/richdocuments/wopi/files/52_oc6ir6cb8wmj?access_token=Kxi9XJB2jyedErAWtnIcKK6ZHzBlq2pH&access_token_ttl=1680827051000&permission=edit]: Access denied. WOPI::CheckFileInfo failed on: https://intra.resohabitat.fr/yunohost/sso/?r=aHR0cHM6Ly9pbnRyYS5yZXNvaGFiaXRhdC5mci9uZXh0Y2xvdWQvaW5kZXgucGhwL2FwcHMvcmljaGRvY3VtZW50cy93b3BpL2ZpbGVzLzUyX29jNmlyNmNiOHdtaj9wZXJtaXNzaW9uPWVkaXQmYWNjZXNzX3Rva2VuPUt4aTlYSkIyanllZEVyQVd0bkljS0s2Wkh6QmxxMnBIJmFjY2Vzc190b2tlbl90dGw9MTY4MDgyNzA1MTAwMA==&access_token=Kxi9XJB2jyedErAWtnIcKK6ZHzBlq2pH| wsd/DocumentBroker.cpp:2418
Apr 06 14:24:13 coolwsd[653]: wsd-00653-164053 2023-04-06 14:24:13.627256 +0000 [ docbroker_010 ] ERR  Unauthorized Request while starting session on /nextcloud/index.php/apps/richdocuments/wopi/files/52_oc6ir6cb8wmj for socket #20. Terminating connection. Error: Access denied. WOPI::CheckFileInfo failed on: https://intra.resohabitat.fr/yunohost/sso/?r=aHR0cHM6Ly9pbnRyYS5yZXNvaGFiaXRhdC5mci9uZXh0Y2xvdWQvaW5kZXgucGhwL2FwcHMvcmljaGRvY3VtZW50cy93b3BpL2ZpbGVzLzUyX29jNmlyNmNiOHdtaj9wZXJtaXNzaW9uPWVkaXQmYWNjZXNzX3Rva2VuPUt4aTlYSkIyanllZEVyQVd0bkljS0s2Wkh6QmxxMnBIJmFjY2Vzc190b2tlbl90dGw9MTY4MDgyNzA1MTAwMA==&access_token=Kxi9XJB2jyedErAWtnIcKK6ZHzBlq2pH| wsd/COOLWSD.cpp:4933
Apr 06 14:24:13 coolwsd[653]: wsd-00653-164053 2023-04-06 14:24:13.631989 +0000 [ docbroker_010 ] ERR  #25: Read failed, have 0 buffered bytes (ECONNRESET: Connection reset by peer)| net/Socket.hpp:1150
Apr 06 14:24:13 coolwsd[653]: wsd-00653-164053 2023-04-06 14:24:13.632060 +0000 [ docbroker_010 ] WRN  #25: Unassociated Kit (164052) disconnected unexpectedly| wsd/COOLWSD.cpp:3426

Dans : LOGFILE: /var/log/nginx/collabora.resohabitat.fr-error.log


open() "/usr/share/nginx/html/healthcheck" failed (2: No such file or directory),

Dans : LOGFILE: /var/log/nginx/error.log


*440 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL hands

Dans : LOGFILE: /var/log/nginx/resohabitat.fr-error.log


46370#46370: *78 "/usr/share/nginx/html/yunohost/sso/index.html" is not found (2: No such file or directory),

Mais je souhaite un peu d'aide parce que je n'y arrive pas. Merci d'avance.

@lapineige
Copy link
Member

Utilises-tu uMatrix ou une extension similaire ? Est-ce que la requête au domaine d'installation de Collabora est bloquée ?

@pierre-yves56
Copy link
Author

Bonjour @lapineige, merci pour ta réponses.
Non pas de matrix.
la requête semble bloquée ? Je ne sais pas, voici quelques résultats :
1 - dans le navigateur si j'entre l'adresse https://collabora.resohabitat.fr j'obtiens le résultat suivant :
'This is where Collabora Online is installed. To actually be useful, this needs to be integrated in a front-end such as Nextcloud for example.'
2 - dans le navigateur si j'entre l'adresse https://intra.resohabitat.fr/status.php (adresse du serveur nextcloud) il renvoie vers la page d'accueil de yunohost : https://intra.resohabitat.fr/yunohost/sso/
3 - en revanche le test est positif avec https://collabora.resohabitat.fr/hosting/discovery (adresse collabora) : renvoie un fichier XML
4 - si dans un terminal à partir du serveur nextcloud, je tape la commande : curl https://collabora.resohabitat.fr/hosting/discovery. Le résultat est également positif : renvoie un fichier XML
5 - en revanche si je tape la commande : curl https://intra.resohabitat.fr/status.php : j'obtiens une erreur 302

Mon instalation est propre. Nouvellement installée.
J'aimerais bien y arriver. Mais toutes les réponses sont : utiliser CODE ou onlyoffice. Ce n'est pas satisfaisant pour moi.
Merci pour ton aide.

@pierre-yves56
Copy link
Author

Ça fonctionne en retirant les adresses IP de Allow list for WOPI requests, dans les paramètres avancés de Nextcloud office. J'y avais placé les IPV4 et IPV6 du serveur nextcloud, pour me conformer au message :

You have not configured the allow-list for WOPI requests. Without this setting users may download restricted files via WOPI requests to the Nextcloud server.

et à la recommandation suivante :

It is highly recommended to restrict WOPI requests to the IP addresses of the Collabora servers that are expected to request files from the Nextcloud installation. This can be done by setting the Allow list for WOPI requests option from the Office admin settings.

Cela fonctionne donc, mais pas de manière sécurisée si je comprends bien. Si quelqu'un peut m'aider, je lui en serais reconnaissant.

@lapineige
Copy link
Member

Je viens d'essayer, cela résoud aussi le problème dans mon cas.
Ici j'avais utilisé 127.0.0.1 (localhost), même problème.

@ianalexis
Copy link

Im getting same issue (i think if translator is working).
Clean install of yuno, nc and collabora.
Nextcloud at domain.com/nextcloud
collabora at office.domain.com

imagen

Nothing else than enter the office domain in /nextcloud/settings/admin/richdocuments and "save" but if i move to another setting and come back i get this:
imagen

Tried to change the domain, reinstall, opening 9980 port and always get
imagen

Any clue?

@mateMathieu
Copy link

Hi, I have the same issue.

By uninstalling, then reinstalling the app from the yunohost admin interface, it solved the problem.
Now it is working again. I have no clue of why, and I will keep track of it and repost here.
Here is the discussion about this issue on the forum: https://forum.yunohost.org/t/failed-to-load-next-office-collaborara-nextcloud-issue/24626/6

At least, I know how to make it work.

@ianalexis
Copy link

No luck for me after reinstalling and checking permissions.
Strange...

@etieng
Copy link

etieng commented Jun 3, 2023

I had something similar after doing an upgrade from collaboraYNH 22 to 23.
Nextcloud cannot open document even if connection is ok in admin page.
Here are Collabora logs:
https://paste.yunohost.org/ajukevujow

@lapineige
Copy link
Member

For the WOPI allow list : #86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants