6 min read #OpenCloud#Tech

OpenCloud · Operations

Running OpenCloud: updates without poring over changelogs

Between 6.2.0 and 8.1.0, OpenCloud went through several changes that convert data on the server. The migrations run by themselves on first start and report their progress in the log. New tools let you check and rebuild PosixFS storage and the search index, a banner carries announcements to all users, and the Graph API exposes Prometheus metrics. If you use the Helm chart, you also get theming and an automatic search index migration.

For many operators, an update is the most nerve-racking moment of the year. If you look after OpenCloud on the side for a club or a small office, you have no test environment and no colleague to double-check the changelog. If you run a large installation, you have both, but also millions of files and thousands of spaces that make every migration take longer than expected. Both want the same thing: the update should go through, you should be able to see what's happening, and if something is wrong, you need a tool that finds the problem. The rolling releases from May to October 2026 worked on exactly these points.

Automatic migrations on startup

Two changes in this period altered stored data, and both handle it by themselves on first start. With 6.2.0, the key format of the ID cache in the PosixFS driver changed. Previously, paths were stored there as a long list, so deleting or moving a folder meant searching the entire list. Now the key mirrors the folder structure, and all entries below a folder can be queried directly. The cache is rebuilt during the update. According to the release notes, depending on the size of the storage this takes up to a few minutes, during which individual spaces are not yet available.

The step in 7.0.0 was bigger. Since then, space memberships are stored in the share manager like shares. On first start, the sharing service transfers the existing memberships to the new format. While that runs, you can't change members or create or delete spaces, and member lists may be incomplete. Reading and working continue. With SHARING_LOG_LEVEL=info or OC_LOG_LEVEL=info, the service writes its progress to the log and reports when the migration has finished. If it is interrupted, it picks up again on the next start. The update also requires a configuration change, which opencloud init --diff generates as a patch; the upgrade guide describes the steps.

In 7.0.0, however, spaces that were disabled at the time of the migration were skipped. 7.1.0 therefore ran the migration a second time. Since 8.0.0, a fresh installation skips the migration wait on startup entirely, because there is nothing to migrate.

CLI: check, repair, reindex

If you put files directly on the file system or restore storage from a backup, you need tools that reconcile OpenCloud's state with the file system. For the PosixFS driver, 7.1.0 added opencloud posixfs scan, which picks up new files and updates the ID cache. The opencloud posixfs consistency command existed before; since 7.4.0 it also checks file size and checksums. Both commands can be limited to a space, a folder or a file instead of always walking the entire storage. The consistency check only recalculates wrong checksums with --fix-checksums, because that requires reading every file. 8.1.0 added opencloud posixfs index, which writes spaces from disk back into the internal indexes. According to the pull request, this is needed after restoring a space from a backup.

For the search index, 7.4.0 reworked the opencloud search index --all-spaces command. It now indexes several spaces at once, three by default, configurable via SEARCH_REINDEX_MAX_CONCURRENCY. While running, it counts finished spaces, logs successful and failed ones and can be canceled with Ctrl+C. The old ten-minute limit was supposed to go with this change but was only actually removed in 8.0.1. That was just in time, because 8.0.0 requires a full index rebuild after the update; more on that in the post about search. Since 8.1.0, spaces that were disabled during the reindex are caught up as soon as they are enabled again.

When an update is coming up or the search index is being rebuilt, users should know about it. Until now, that only worked by group email. Since 7.4.0, the admin settings have an announcement banner under “General”. Admins enter a short text and optionally a longer text in Markdown that opens in a dialog on click, see a preview and turn the banner on or off. All users see it above the top bar, even on the login page, so you can announce things like an outage of the login provider. For the same reason, it's no place for confidential information. The announcement is stored centrally on the server, so no configuration file needs to be changed.

  1. Admin settings, “Announcement banner” section: short text “Maintenance on Saturday, 8–10 am: OpenCloud will not be available.”, below it an editor with the longer text, at the bottom the “Show banner” toggle switched on and the “Preview” and “Save” buttons.
    Under “General”, enter the short text and optionally a longer text in Markdown, then turn on “Show banner”.
  2. Yellow strip above the top bar with the short text, “Details” and a close icon on the right.
    All users see the banner above the top bar.
  3. “Announcement” dialog with the short text as heading and the formatted longer text.
    “Details” opens the longer text in a dialog (OpenCloud 8.1.0).

Also in 7.4.0 came a space role for viewing with versions (also labeled “Can view” in the UI, with the description “View and download including the history.”): members can view and download a space's files and also see the versions. Like the comparable share roles from 7.3.0, it is disabled by default. If you want to offer it, add its ID 3de465fc-6e17-4839-8b8a-a77cc497878b to the GRAPH_AVAILABLE_ROLES list, but then you have to list all the roles you want there.

In 8.1.0, the admin settings became easier to handle day to day. Search also finds users by username and email address, the detail view shows used storage, the edit dialogs for users and groups have been redesigned, and “Login allowed” is a toggle. The chosen table sorting is kept.

User edit dialog in OpenCloud 8.0.0, with login as a “Login” dropdown set to “Allowed”.

Before (8.0.0): “Login” is a dropdown.

User edit dialog in OpenCloud 8.1.0, organized into “Profile” and “Access”, with the “Login allowed” toggle.

After (8.1.0): reorganized, and “Login allowed” is a toggle.

Kubernetes: metrics and rollouts

For larger installations, 8.0.0 gave the Graph service Prometheus metrics. They measure the duration of incoming HTTP requests by path and status code, the number of concurrent requests, the duration of outgoing LDAP operations and calls to the identity backend, each as a histogram. This lets you surface error rates, percentiles and slow LDAP servers in Grafana. The metrics are off by default because their runtime overhead hasn't been measured yet. You turn them on with GRAPH_HTTP_METRICS_DISABLE=false, GRAPH_LDAP_METRICS_DISABLE=false and GRAPH_IDENTITY_BACKEND_METRICS_DISABLE=false. As with the other services, you scrape them from the debug endpoint, which for the Graph service is 127.0.0.1:9124 by default. With GRAPH_HTTP_DISABLE and GRAPH_EVENTS_DISABLE_CONSUMER you can also run instances that only answer requests or only process events. According to the release notes, other services are to follow this pattern.

Two additions from the 8.0.0 release notes concern the OpenCloud Helm chart. You can include a custom theme as a container image from any registry, including private ones; a sidecar copies it into the OpenCloud container before startup. And the chart handles the search index migration itself: a pre-update hook checks whether the OpenSearch index schema changes and creates the new index, and a post-update hook triggers the rebuild for all spaces. The release notes mention one limitation: while an actual rebuild is running, the instance is currently unavailable.

Sources