-
Notifications
You must be signed in to change notification settings - Fork 30
Upgrade process from 4.0.x to 7.0.x #863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Heiko-Pohl
wants to merge
4
commits into
main
Choose a base branch
from
upgrade-process-from-4.x-to-7.x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+226
−0
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,226 @@ | ||
| --- | ||
| sidebar_position: 4 | ||
| id: upgrade-7.0.x | ||
| title: Upgrade 7.0.x | ||
| description: Upgrading to 7.0.x | ||
| draft: false | ||
| --- | ||
|
|
||
| import Tabs from '@theme/Tabs' | ||
| import TabItem from '@theme/TabItem' | ||
|
|
||
| # Upgrading to OpenCloud 7.0.x | ||
|
|
||
| This guide explains how to upgrade an existing OpenCloud deployment to the 7.0.x release. | ||
| It includes all required migration steps, configuration changes, and search index updates introduced in this release. | ||
|
|
||
| The upgrade applies to deployments using: | ||
|
|
||
| - Docker Compose | ||
| - Docker Named Volumes | ||
| - Bind Mounts | ||
|
|
||
| Following this guide ensures a safe migration to OpenCloud 7.0.x. | ||
|
|
||
| ## Before starting the upgrade | ||
|
|
||
| - Ensure you have OpenCloud 4.0.7 installed | ||
| - Create a complete backup of your configuration and data. | ||
| - Ensure you have access to your current opencloud.yaml. | ||
| - Verify that your current deployment is healthy before upgrading. | ||
|
|
||
| ## Backup Config and Data | ||
|
|
||
| :::important | ||
| Always create a backup before upgrading to prevent data loss. | ||
| ::: | ||
|
|
||
| - Using Bind Mounts | ||
|
|
||
| ```bash | ||
| cp -a /mnt/opencloud/config /mnt/opencloud/config-backup | ||
| cp -a /mnt/opencloud/data /mnt/opencloud/data-backup | ||
| ``` | ||
|
|
||
| - Using Docker Named Volumes | ||
| - Create Backup Directory | ||
|
|
||
| ```bash | ||
| mkdir -p ~/opencloud-backups | ||
| ``` | ||
|
|
||
| - Backup Config and Data | ||
|
|
||
| ```bash | ||
| docker cp opencloud_full-opencloud-1:/var/lib/opencloud ~/opencloud-backups/data-backup | ||
| docker cp opencloud_full-opencloud-1:/etc/opencloud ~/opencloud-backups/config-backup | ||
| ``` | ||
|
|
||
| - Stop OpenCloud | ||
| - Docker | ||
|
|
||
| ```bash | ||
| docker stop opencloud | ||
| ``` | ||
|
|
||
| - Docker Compose | ||
|
|
||
| ```bash | ||
| docker compose stop | ||
| ``` | ||
|
|
||
| - Pull the New Release Image | ||
|
|
||
| ```bash | ||
| docker pull opencloudeu/opencloud:7.0.x | ||
| ``` | ||
|
|
||
| ## Configuration Migration Breaking Change | ||
|
|
||
| OpenCloud 7.0.x introduces a breaking configuration change. | ||
|
|
||
| Reference: [Migration PR](https://github.com/opencloud-eu/opencloud/pull/2760) | ||
|
|
||
| - Verify Configuration Changes | ||
|
|
||
| - Go inside the opencloud container. | ||
|
|
||
| - Using Bind Mounts | ||
|
|
||
| - Replace **your-home-directory** with your actual directory. | ||
|
|
||
| ```bash | ||
| docker run --rm -it --entrypoint /bin/sh -v "your-home-directory-path":/etc/opencloud opencloudeu/opencloud:7.0.x | ||
| ``` | ||
|
|
||
| - Using Docker Named Volumes | ||
|
|
||
| - Replace **your-named-volume** with your actual volume name. | ||
|
|
||
| ```bash | ||
| docker run --rm -it --entrypoint /bin/sh -v "your-named-volume-path":/etc/opencloud opencloudeu/opencloud:7.0.x | ||
| ``` | ||
|
|
||
| - Generate the Configuration Diff | ||
| - Inside the container run: | ||
|
|
||
| ```bash | ||
| opencloud init --diff | ||
| ``` | ||
|
|
||
| - Example output: | ||
|
|
||
| ```bash | ||
| diff -u /etc/opencloud/opencloud.yaml /etc/opencloud/opencloud.yaml.tmp | ||
| --- /etc/opencloud/opencloud.yaml | ||
| +++ /etc/opencloud/opencloud.yaml.tmp | ||
| @@ -90,6 +90,9 @@ | ||
| sharing: | ||
| events: | ||
| tls_insecure: false | ||
| ``` | ||
|
|
||
| - service_account: | ||
| - service_account_id: 05bca760-ff47-44e3-9532-de8568e097bc | ||
| - service_account_secret: NavT+c9okb.AD+170x3..!W78EVXJtSM | ||
| storage_users: | ||
| events: | ||
| tls_insecure: false | ||
|
|
||
| diff written to /etc/opencloud/opencloud.config.patch | ||
|
|
||
| - A patch file will automatically be created: | ||
|
|
||
| ```bash | ||
| /etc/opencloud/opencloud.config.patch | ||
| ``` | ||
|
|
||
| - Apply the Configuration Patch | ||
| - Go to the configuration directory: | ||
|
|
||
| ```bash cd /etc/opencloud | ||
|
|
||
| ``` | ||
|
|
||
| - Verify the generated files: | ||
|
|
||
| Example: | ||
|
|
||
| ```bash | ||
| ls | ||
| banned-password-list.txt | ||
| csp.yaml | ||
| opencloud.config.patch | ||
| opencloud.yaml | ||
| opencloud.yaml.2026-05-19-15-45-44.backup | ||
| ``` | ||
|
|
||
| - Testing the patch: | ||
| - Run the following command: | ||
|
|
||
| ```bash | ||
| patch --dry-run opencloud.yaml < opencloud.config.patch | ||
| ``` | ||
|
|
||
| - Expecting output: | ||
|
|
||
| ```bash | ||
| checking file opencloud.yaml | ||
| ``` | ||
|
|
||
| - Apply the patch: | ||
| - Run the following command: | ||
|
|
||
| ```bash | ||
| patch opencloud.yaml < opencloud.config.patch | ||
| ``` | ||
|
|
||
| - Expected output: | ||
|
|
||
| ```bash | ||
| patching file opencloud.yaml | ||
| ``` | ||
|
|
||
| ## The following configuration entries must exist in opencloud.yaml | ||
|
|
||
| ```bash | ||
| service_account: | ||
| service_account_id: 62b789c9-0dd0-4647-afd3-d6969eab03b8 | ||
| service_account_secret: wAiwglE93^S-y3hm0bo5FS9sFj^rzQ&i | ||
| ``` | ||
|
|
||
| ## Web Breaking Changes | ||
|
|
||
| OpenCloud Web also includes breaking changes in this release. | ||
|
|
||
| Review the official OpenCloud 7.0.x release notes carefully: | ||
|
|
||
| - Verification | ||
| Your OpenCloud instance should now be running on 7.0.x. | ||
| - Essential Checks | ||
| - User Accounts — Verify all users can log in | ||
| - Shared Folders — Confirm shares remain functional | ||
| - Public Links — Test public links | ||
| - Search — Verify search works correctly after reindexing | ||
| - Project Spaces — Check members and permissions | ||
| - Service Health — Review logs for warnings or errors | ||
| - Troubleshooting | ||
|
|
||
| - If issues occur during or after the upgrade: | ||
| - Review container logs | ||
| - Verify opencloud.yaml | ||
| - Re-run the configuration diff if necessary | ||
| - Restore from backup if required | ||
| - Consult the troubleshooting documentation | ||
| - Open an issue on GitHub if needed | ||
|
|
||
| - Useful resources: | ||
| - OpenCloud Troubleshooting Guide | ||
| - OpenCloud GitHub Issues | ||
|
|
||
| ## Updating Web Extensions for OpenCloud 7.0.x | ||
|
|
||
| OpenCloud 7.0.x introduces breaking changes in the web client architecture. | ||
| Because of these changes, older web extension versions are no longer compatible with OpenCloud 7.0.x and must be updated. | ||
|
|
||
| New extension versions are available in the App Store inside the OpenCloud UI or on [GitHub](https://github.com/opencloud-eu/web-extensions/releases). To update your extensions, download their latest version and follow the [app installation guide](../../configuration/web-applications.md). | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
search index updates for opensearch engine
that should only related people who use opensearch