Nextcloud TTFB extreme long

Hello Nextcloud-Community,

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

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.

I hope someone can help me.

Thank you in advance!
Best regards,

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).

  1. browser (developer tools > F12)
  2. network trace
  3. reverse proxy if used
  4. web server
  5. Nextcloud application log

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.

@Bajang What apps do you have installed?

Hey @wwe,

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.

I appreciate the help!

Hey @szaimen,

thank you for the reply!
I’m currently running the following apps within Nextcloud (all of them, which are listed in the Apps tab in Nextcloud):

  1. Accessibility
  2. Activity
  3. Brute-force settings
  4. Calendar
  5. Collabora Online
  6. Collabora Online - Built-in CODE Server
  8. Contacts
  9. Contacts Interaction
  10. Collaborative tags
  11. Dashboard
  12. Deleted files
  13. Federation
  14. File sharing
  15. First run wizard
  16. Log Reader
  17. Mail
  18. Monitoring
  19. Nextcloud announcements
  20. Notifications
  21. Password policy
  22. PDF viewer
  23. Photos
  24. Privacy
  25. Recommendations
  26. Right-click
  27. Share by mail
  28. Support
  29. Talk
  30. Text
  31. Theming
  32. Update notification
  33. Usage survey
  34. User status
  35. Versions
  36. Video player
  37. Weather status
  38. Auditing / Logging
  39. Default encryption module
  40. External storage support
  41. LDAP user and group backend

Thank you for the help.


Please disable this app and it should work again!

Hey @szaimen,

THANK YOU SO MUCH. That was the issue.
You are a great help!

1 Like