[Bug]: Nextcloud 27 very slow
⚠️ This issue respects the following points: ⚠️
- [X] This is a bug, not a question or a configuration/webserver/proxy issue.
- [X] This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- [X] Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- [X] I agree to follow Nextcloud's Code of Conduct.
Bug description
Just upgraded to Nextcloud 27 (PHP 8.2.7) and all pages are deathly slow. Nextcloud 26 had some lag but was generally snappy.
Based on troubleshooting, it seems to be related to the size of these Javascript files. For example, /dist/core-common.js?v=7308632d-22 seems to be downloading 16.1 MB on all pages (this is on the login screen):
In fact, /dist/core-common.js?v=7308632d-22 is redownloading on every new page no matter the browser (i.e., even if the file has to be that big, it's not caching locally).
There are other files that seem huge as well. For example, once I login, file /apps/calendar/js/calendar-main.js?v=7308632d-22 is 9.9 MB:
I'm not seeing any errors on the Admin Overview page:
Nothing in the logs suggesting any other hang-up. Perhaps this is a header problem? (Ignore the check in Chrome's Disable Cache box - same problem occurs even when cache is enabled/that check isn't there.)
Steps to reproduce
- Upgrade to Nextcloud 27.
- Click on any Nextcloud page.
Expected behavior
Better than each page taking 2-4 minutes to download.
Installation method
None
Nextcloud Server version
27
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 22 to 23)
Are you using the Nextcloud Server Encryption module?
Encryption is Enabled
What user-backends are you using?
- [ ] Default user-backend (database)
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response
With this, files will certainly be redownloaded.
With this, files will certainly be redownloaded.
As I mentioned but probably wasn't clear, the screen print was taken with "Disable cache" checked. However, I've also tried it without it checked and I have the same problem.
Not directly related (as the file should still be cached in the browser) but linking to #38502 and https://help.nextcloud.com/t/public-library-dist-core-common-js-is-very-large/162339 as the size of the file has grown from v25.
Edit: See also https://help.nextcloud.com/t/slow-page-load-super-large-assets/161001/3.
After fiddling a lot, the issue seems to be gone. Sadly, I can't tell what I changed that made the difference. Closing.
