How to make Nextcloud apps (Collectives, Notes, Bookmarks, Cookbook) recognize existing files after AIO reinstall?

@szaimen & @mejo

I would like to request advice on how to restore files in Collectives. I came across this thread, which outlines a possible solution: Import Markdown Files to Collectives.

This discussion is a year old, and I’m unsure if the solution still applies. I have the original Collectives content (from a previous installation Nextcloud AIO v31) located on the current Nextcloud server (clean installation v32) in the Collectives folder.

I attempted to upload the files through the web interface, but nothing appeared in the Collectives app.

I also tried running this command:

docker exec --user www-data -it nextcloud-aio-nextcloud php occ files:scan-app-data

But it didn’t resolve the issue, so I’m not sure if there’s a different syntax or solution for this in Nextcloud AIO.

I was able to successfully resolve the issues with Notes and Cookbook, but I’m still struggling with Collectives.

Any guidance would be greatly appreciated.


As a hint for the Collectives development team, I could imagine something similar to what is implemented in the Cookbook app, where there’s an option to click a Rescan button in the app settings. This would allow the app to automatically scan the directory and import any missing content into Collectives.