I’ve just set up a Nextcloud VM with the following specifications:
Nextcloud version 20.0.5
Operating system and version: Umbuntu 20.04
Apache: 2.4.41
PHP version: 7.4.3
CPU: 2 Cores
RAM: 2GB
Now I’m facing the following issue:
Whenever I access the Nextcloud-URL via browser (no matter which browser I use), I face a TTFB of 45 seconds. This value does not seem to be random, because no matter what I do on the Nextcloud I face the same TTFB. After the login it takes me 45 seconds to get to the dashboard, if I log out again, it takes 45 seconds to get to the login screen.
I’ve already searched on the Internet for similar problems and tried all the solutions I could find. For example, disable the brute-force-protection, or enabling Memcache.
No matter what I try nothing changes. The loading time is always 45 seconds.
I’ve looked through apache, PHP, and Nextcloud logs but couldn’t find any indicators, but I’m a beginner anyhow.
If any logs are needed I’d be glad to provide them.
constant delay sounds somehow like a some timeout issue… It’s useless trying to guess and check some random issues. I suggest systematic analysis of the whole request path from the beginning to the end (or vice-versa).
for each station enable/increase log and review when you see the request and how fast it’s forwarded to the next component. once you identified the faulty element you can focus on troubleshooting it.
for such huge delay life tail of reverse proxy/web server log gives you a good idea already if the request and response reaches the component in timely manner.
thank you for the information! I’ll make sure to read up on how to properly network trace. As I’ve stated already, I’m still a beginner.
A reverse proxy is not used.
The Nextcloud application log is already running in debugging mode but doesn’t really help me find the issue, as far as I can tell.
I’ll double-check the logging level of my apache and PHP, maybe that would be helpful.