-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Workspace configurations are not saved on Che server restart. #2670
Comments
adding labels asked by @JamesDrummond |
М4 already released. moved to M5 |
@bmicklea please also move it to M5 milestone plan |
To be clear - the use case is that we need to honor the CHE_DATA_FOLDER and CHE_CONF_FOLDER variables that are in the CLI and in the che-launcher containers. These systems pass along certain configuration data to within the che-server. https://eclipse-che.readme.io/docs/configuration#section-environment-variables Also, if a user has 4.7.2 and they have their old JSON files saved with one of these values, then when the upgrade takes place, we should not lose that location. This should be fine, because within the che-server they were always saved in the same location. These values just change the location where they are volume mounted into che-server. |
I'm not really familiar with che-launcher internals. @benoitf @TylerJewell can you confirm that changing |
@skabashnyuk I would say it will at least restore the previous way of mounting storage folder But before it seems this folder was also configurable through |
Ok let's restore previous way. |
On persistent storage with H2/JPA in che and docker containers
datasource is used as
https://github.com/eclipse/che/blob/dda5acf61ebe9e89a9dda6b6afe738b6fd09bfa6/assembly/assembly-main/src/assembly/tomcat/conf/server.xml#L53
and folder for db is using
https://github.com/eclipse/che/blob/dda5acf61ebe9e89a9dda6b6afe738b6fd09bfa6/assembly/assembly-main/src/assembly/bin/che.sh#L611
so database is saved into ${CHE_HOME}/db/
but when reading https://eclipse-che.readme.io/docs/usage-docker#workspace-storage we can use
-e CHE_DATA_FOLDER
to customize the host directory where to save the datahttps://github.com/eclipse/che/blob/master/assembly/assembly-wsmaster-war/src/main/webapp/WEB-INF/classes/codenvy/che.properties#L28-L29
Reproduction Steps:
Expected behavior:
All workspace configurations are changed after restart.
Observed behavior:
Workspace configurations are not saved after restart.
Che version: 5.0.0 master(M3)
Additional information:
The text was updated successfully, but these errors were encountered: