How to keep Collectives page working when moving the data folder to a new location?

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 32.0.1
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 24.04
  • Web server and version (e.g, Apache 2.4.25):
    • Apache
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • (none)
  • PHP version (e.g, 8.3):
    • 8.4
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • when i tried to move to a new server
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • bare metal
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

I copied an existing Nextcloud instance to a new server with a different path for the data folder and a new FQDN for the server.

Besides changing config/config.php as needed, I also updated the database, table oc_storages so the record for the local data storage contains the correct path (local::/mnt/nextcloud-data).

At a first glance everything seems to work - but most Collectives pages don’t show up at all. I check oc_collectives_page - all file IDs (file_id) also exist in oc_filecache (fileid).

After a file scan (occ files:scan --all) the Collective pages show again, but only in alphabetical order and without emojis.

I can manually rearrange all pages and manually set emojis again - but since I have many existing Collectives with many pages this is not really practical.

So the question is:

What is needed to make Collectives work again, when moving the data folder to another location?

I found the problem:

The path for the local storage was missing a trailing slash. The correct path must be local::/mnt/nextcloud-data/ and not local::/mnt/nextcloud-data.

After restored the database once more and only changed the local storage path in the correct way, everything works in the new location as well without running occ files:scan --all first.

2 Likes

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