Skip to content
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

Document migration from 2.0.0 to 3.0.0 #516

Closed
micbar opened this issue Jun 5, 2023 · 3 comments · Fixed by #522
Closed

Document migration from 2.0.0 to 3.0.0 #516

micbar opened this issue Jun 5, 2023 · 3 comments · Fixed by #522

Comments

@micbar
Copy link
Contributor

micbar commented Jun 5, 2023

Description

Steps

  1. Shut down ocis
  2. Update ocis (docker pull or binary)
  3. Add the Graph Application ID to the config
  • Either editing the ocis.yaml by adding application -> id under the graph key (recommended)
  • OR setting GRAPH_APPLICATION_ID as ENV variable
  1. Delete the full search index (rm -rf <ocis-data-path>/search/*)
  2. Start ocis again
  3. During the restart of ocis the metadata store in the DecomposedFS will be migrated to messagepack. You will see some related log messages. If you want to prevent the migration, set OCIS_DECOMPOSEDFS_METADATA_BACKEND=xattrs. The xattrs backend is considered deprecated and will be removed soon.
  4. The empty search index will be recreated space by space when something changes in a space. You can also use the ocis cli to re-index all spaces. (@mmattel I think we have a link for that)

Example part of ocis.yaml

graph:
  application:
    id: ac641fbb-f54b-44d9-993a-6aaf123983f9
...
@mmattel
Copy link
Contributor

mmattel commented Jun 6, 2023

References: owncloud/ocis#6458 ([docs-only] GRAPH_APPLICATION_ID envvar text fix)

@mmattel
Copy link
Contributor

mmattel commented Jun 6, 2023

@micbar when upgrading from 2 to 3, manually setting GRAPH_APPLICATION_ID is ok.
But what to do when you have a fresh installation?

@micbar
Copy link
Contributor Author

micbar commented Jun 6, 2023

But what to do when you have a fresh installation?

The application ID is part of ocis init and will be created automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants