Size of a copied folder is showing as "Pending"

I have done fresh installation of nextcloud 28 version (php 8.1.2 & mariadb)

Step 1: I created a folder called “nextcloud” having a zip file & some folders.


Step 2: I copied “nextcloud” folder & a new folder called “nextcloud (copy)” gets created. The size of newly created folder & its sub-folder is showing as “Pending”.

Step 3: Fetched folder contents using “PROPFIND” api request ( {{http}}://{{urlfront}}/remote.php/dav/files/{{username}}/ ). The size of newly created “nextcloud (copy)” & its sub-folder is -1.


Step 4: I dig further & checked “file_cache” table in database [SELECT * FROM stable28.oc_filecache;]. The size of newly created “nextcloud (copy)” & its sub-folder is stored as -1.

Step 5: I tried following [Bug]: Empty folders show Pending as size in Web UI. Didn’t solve the issue.

Step 6: Once, I manually open the copied folder & all of its sub-folder the actual folder size is getting updated & also database size entry gets updated automatically.

Please help !!! or suggest something I have missed or done wrong.

Why do you not install latest Nextcloud 30. Also wait for correct size. Maybe updated with cron execution.

Also you can test

sudo -u www-data php occ files:scan --all

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.