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

How do you I change the default storage location "/var/tmp/ocis"? #1688

Closed
jradxl opened this issue Feb 19, 2021 · 6 comments · Fixed by #2590
Closed

How do you I change the default storage location "/var/tmp/ocis"? #1688

jradxl opened this issue Feb 19, 2021 · 6 comments · Fixed by #2590

Comments

@jradxl
Copy link

jradxl commented Feb 19, 2021

Your documentation leads me to "Configuration using config files",
it then mentions "ocis-proxy reads proxy.json..." which seems to be an archived project,
and then says full configuration examples in our repositories, but the ones that could provide an answer are blank.
Running the Server has not provided a default ocis.yml anywhere I can find.
So, please, can someone explain how to change "/var/tmp/ocis".

example.json and example.yml in following are blank
https://github.com/owncloud/ocis/tree/master/ocis/config

@wkloucek
Copy link
Contributor

wkloucek commented Feb 23, 2021

oCIS proxy and all other extensions have been archived because they were moved to the oCIS monorepo.

The configuration example files can be found in the subfolder "config" of the folders named after the extensions, eg. for the proxy it is here: https://github.com/owncloud/ocis/blob/master/proxy/config/proxy-example.json

For changing the default storage path you currently need to change a lot of parameters, but we are working on it to make it easier (#1048).

Following example is using environment variables to configure oCIS to store data to /var/lib/ocis

SETTINGS_DATA_PATH=/var/lib/ocis/data/settings
STORAGE_DRIVER_OCIS_ROOT=/var/lib/ocis/data/storage/ocis/users
STORAGE_SHARING_USER_JSON_FILE=/var/lib/ocis/data/storage/shares.json
STORAGE_SHARING_PUBLIC_JSON_FILE=/var/lib/ocis/data/storage/publicshares.json
STORAGE_HOME_TMP_FOLDER=/var/lib/ocis/data/tmp/storage/home
STORAGE_METADATA_TMP_FOLDER=/var/lib/ocis/data/tmp/storage/metadata
STORAGE_METADATA_ROOT=/var/lib/ocis/data/storage/metadata
STORE_DATA_PATH=/var/lib/ocis/data/store

@stale
Copy link

stale bot commented Apr 24, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

@stale
Copy link

stale bot commented Jun 24, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

@stale
Copy link

stale bot commented Aug 23, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

@timothyclin
Copy link

According to some of the recent release notes - one can specify $OCIS_BASE_DATA_PATH variable in the environment config files ... https://newreleases.io/project/github/owncloud/ocis/release/v1.14.0

However, when I tested it against OCIS 1.9.0 that variable is not respected, files kept getting created in the default /var/tmp/ocis/storage location

@wkloucek
Copy link
Contributor

According to some of the recent release notes - one can specify $OCIS_BASE_DATA_PATH variable in the environment config files ... https://newreleases.io/project/github/owncloud/ocis/release/v1.14.0

However, when I tested it against OCIS 1.9.0 that variable is not respected, files kept getting created in the default /var/tmp/ocis/storage location

Sure, it does not work in oCIS 1.9.0 because it was introduced in oCIS 1.14.0. There also is no equivalent in oCIS 1.9.0 to that. So there is no way around updating to oCIS 1.14.0 or later, but there are also a lot of other bug fixes you'll get with that ;-)

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