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

Update CachedRequestService.php #4439

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

erdogan-work
Copy link

Otherwise I get a timeout instead on this page:
image

Fixes Issue nextcloud#1486

Signed-off-by: erdogan-work <[email protected]>
@elzody
Copy link
Contributor

elzody commented Feb 4, 2025

This might be one for @juliusknorr to review since I am unsure about the implications of this and he worked on it.

@juliusknorr
Copy link
Member

Can you share more details about your setup? Are you using the built-in CODE server (richdocumentscode app) or a dedicated collabora server as docker or package installation? The timeout is probably way too large for usual setups where i would expect the requets to finish faster then 1 second

@juliusknorr juliusknorr added bug Something isn't working info needed Further information is requested 2. developing Work in progress labels Feb 5, 2025
@erdogan-work
Copy link
Author

erdogan-work commented Feb 5, 2025

Sure!
It's a Nextcloud 30.0.5 Enterprise, built-in Collabora Online Development Edition 24.04.11.2 b6712dc6c4.
It's visible in the screenshot I uploaded.

Its a Linux SLES 15 SP 6.
Directly installed as OS Packages without docker.
We use php8-fpm with apache2 Webserver.

I got timeouts when tried to open office documents and read in the logfiles about the expired timout.

image

Umut Erdogan

@juliusknorr
Copy link
Member

Can you do a manual curl request towards https://yourcollaboraurl/hosting/discovery on the Nextcloud server and measure the time? We should really avoid such long timeouts and I'd rather expect some setup issue there then.

@erdogan-work
Copy link
Author

The Url with https://yourcollaboraurl/hosting/discovery displays an error page:
image
It took this time:
real 0m0.081s
user 0m0.020s
sys 0m0.008s

The Url https://yourcollaboraurl/apps/richdocumentscode/proxy.php?req=/hosting/discovery
shows the expected xml file:
image
It took this time:
real 0m0.028s
user 0m0.019s
sys 0m0.004s

Maybe I can try it with the original settings for a while to test whether it would now work?

KR
Umut Erdogan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. developing Work in progress bug Something isn't working info needed Further information is requested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

504 Gateway Time-out when enabling richdocuments
3 participants