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

Office.vue:198 FAILED #2016

Closed
shaun-ba opened this issue Feb 3, 2022 · 9 comments
Closed

Office.vue:198 FAILED #2016

shaun-ba opened this issue Feb 3, 2022 · 9 comments
Labels
1. to develop Waiting for a developer bug Something isn't working info needed Further information is requested

Comments

@shaun-ba
Copy link

shaun-ba commented Feb 3, 2022

Describe the bug
Intermittant failure to load documents in Nextcloud Office (Collabora)

To Reproduce
Open a document.

Expected behavior
It should open without error

Screenshots
d65ab57c4c7dcfdb8d30301285d4157158209ce7

Client details:

  • OS: Linux
  • Browser: Brave/Chrome/Firefox

Server details

PHP version:
7.4

Nextcloud version:

23.0.1 RC1

Version of the richdocuments app
Latest

Version of Collabora Online
Latest

Logs
Office.vue:198 FAILED
(anonymous)	@	Office.vue:198
setTimeout (async)		
load	@	Office.vue:197
mounted	@	Office.vue:184
await in mounted (async)		
We	@	vue.runtime.esm.js:1863
un	@	vue.runtime.esm.js:4235
insert	@	vue.runtime.esm.js:3158
D	@	vue.runtime.esm.js:6390
vo.nodeOps	@	vue.runtime.esm.js:6609
e._update	@	vue.runtime.esm.js:3963
r	@	vue.runtime.esm.js:4081
bn.get	@	vue.runtime.esm.js:4495
bn.run	@	vue.runtime.esm.js:4570
yn	@	vue.runtime.esm.js:4326
(anonymous)	@	vue.runtime.esm.js:1989
et	@	vue.runtime.esm.js:1915
Promise.then (async)		
Xe	@	vue.runtime.esm.js:1942
it	@	vue.runtime.esm.js:1999
(anonymous)	@	vue.runtime.esm.js:4418
bn.update	@	vue.runtime.esm.js:4560
de.notify	@	vue.runtime.esm.js:730
set	@	vue.runtime.esm.js:1055
Cn.set	@	vue.runtime.esm.js:4644
(anonymous)	@	Viewer.vue:405
c	@	runtime.js:63
(anonymous)	@	runtime.js:294
(anonymous)	@	runtime.js:119
ka	@	viewer-main.js?v=f26e428a-0:2
a	@	viewer-main.js?v=f26e428a-0:2
Promise.then (async)		
ka	@	viewer-main.js?v=f26e428a-0:2
a	@	viewer-main.js?v=f26e428a-0:2
(anonymous)	@	viewer-main.js?v=f26e428a-0:2
(anonymous)	@	viewer-main.js?v=f26e428a-0:2
openFile	@	Viewer.vue:363
file	@	Viewer.vue:277
We	@	vue.runtime.esm.js:1863
bn.run	@	vue.runtime.esm.js:4584
yn	@	vue.runtime.esm.js:4326
(anonymous)	@	vue.runtime.esm.js:1989
et	@	vue.runtime.esm.js:1915
Promise.then (async)		
Xe	@	vue.runtime.esm.js:1942
it	@	vue.runtime.esm.js:1999
(anonymous)	@	vue.runtime.esm.js:4418
bn.update	@	vue.runtime.esm.js:4560
de.notify	@	vue.runtime.esm.js:730
set	@	vue.runtime.esm.js:1055
value	@	Viewer.js:183
na	@	FilesActionHandler.js:36
action	@	merged-index.js?v=f26e428a-0:2983
_onClickFile	@	merged-index.js?v=f26e428a-0:4917
Xe	@	_executeBound.js:8
(anonymous)	@	bind.js:10
(anonymous)	@	restArguments.js:16
dispatch	@	jquery.js:5183
g.handle	@	jquery.js:4991
@juliusknorr
Copy link
Member

Can you maybe post the full log output from the browser console? Looks similar to #2017

@juliusknorr juliusknorr added 1. to develop Waiting for a developer bug Something isn't working info needed Further information is requested labels Feb 14, 2022
@juliusknorr juliusknorr moved this to Backlog in 📝 Office team Feb 14, 2022
@juliusknorr juliusknorr moved this from Backlog (no not pick) to Todo in 📝 Office team Feb 16, 2022
@joergmschulz
Copy link

here this effect can be created when I rename my nextcloud installation (server.somewhere.com to server2.somewhere.com). Yes, all other apps work after I change the overwrite sections in the nc config files.
It happens regardless whether or not I use different / new browsers. The log files and console.log don't give away any information worth pasting here. Still investigating ....

@isdnfan
Copy link

isdnfan commented Jul 4, 2022

I see this issue on my docker installation running Nextcloud 24 and Collabora 21.11.5.3.1 (and 22.05.. as well). The error shows for short time and then the document load successfully. The period how long the error is shown slightly differs. So far I can see the problem is due to timeout defined in Office.vue line 201 which is kind of expected in my system where containers are stored on magnetic disks and Collabora starts pretty slowly.. is there a way to extend this timeout?

the longest single request I see on the browser is:
https://mynextcloud.tld/apps/richdocuments/index?fileId=123456&requesttoken=E682.....8%3D&path=%2Fmydocument.ods
it takes 4171 msec

UPDATE: I solved my issue. The root cause was failing/long DNS resolution inside docker against DNS server running on same docker instance. This resulted in DNS requests to each docker container public fqdn hosted on same system took 5 or more seconds effectively running into the timeout mentioned before. Now once DNS resolution works fine richdocuments/Collabora runs fast as never did - documents loads in less than 2-3 secs, not more timeouts..

@eBug
Copy link

eBug commented Aug 10, 2022

I see this issue on my docker installation running Nextcloud 24 and Collabora 21.11.5.3.1 (and 22.05.. as well). The error shows for short time and then the document load successfully. The period how long the error is shown slightly differs. So far I can see the problem is due to timeout defined in Office.vue line 201 which is kind of expected in my system where containers are stored on magnetic disks and Collabora starts pretty slowly.. is there a way to extend this timeout?

the longest single request I see on the browser is: https://mynextcloud.tld/apps/richdocuments/index?fileId=123456&requesttoken=E682.....8%3D&path=%2Fmydocument.ods it takes 4171 msec

UPDATE: I solved my issue. The root cause was failing/long DNS resolution inside docker against DNS server running on same docker instance. This resulted in DNS requests to each docker container public fqdn hosted on same system took 5 or more seconds effectively running into the timeout mentioned before. Now once DNS resolution works fine richdocuments/Collabora runs fast as never did - documents loads in less than 2-3 secs, not more timeouts..

Could you give more details on how you solved the DNS problem?

@isdnfan
Copy link

isdnfan commented Aug 10, 2022

cat /etc/docker/daemon.json
{
"dns": ["192.168.179.1"]
}
use a DNS resolver running on a host different from Docker daemon. There must be a better solution but this one works good for me.

@psarvaiya
Copy link

Hi team,

I am facing the similar issue. Document loading fails in 15 secs, and it automatically loads completely, it takes around 27-30 secs.
Is there a way I can increase the timeout from 15 secs to 45 secs, that will reduce this probability of getting this.

@Mannshoch
Copy link

Any news on that?

@Mannshoch
Copy link

In my case I have the error, I assume it's not the same timeout like above described.
loadingTimeout Office.vue:212

@juliusknorr juliusknorr moved this from 📄 To do (~10 entries) to 🧭 Planning evaluation (don't pick) in 📝 Office team Nov 11, 2023
@juliusknorr
Copy link
Member

We should have way better checks and hints for admins these days that help figure out why a document cannot be opened when configuring a Collabora server so I'll close this. If anyone still has troubles it would be interesting to have an individual ticket to investigate the reason in those specific cases and maybe further improve admin guidance

@github-project-automation github-project-automation bot moved this from 🧭 Planning evaluation (don't pick) to ☑️ Done in 📝 Office team Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Waiting for a developer bug Something isn't working info needed Further information is requested
Projects
Archived in project
Development

No branches or pull requests

7 participants