BITNAMI - Custom (and not custom) workspaces lost after some time and reboot and ip changed
Custom (and not custom) workspaces lost after some time and reboot and ip changed
Reproduction Steps:
-
Running Bitnami image in virtualbox on windows 10 anniversary update 64bit
-
Installed php from "ready to go" tab
-
Installed Bitnami Express recipe under "stack library tab"
-
Some errors in creating new workspaces (typos....)
-
I've created custom stacks (ubuntu node 4.x with harp ) filling the textarea into the "custom stack" tab. Everything was working correctly. Here is the recipe I've provided
FROM codenvy/ubuntu_jre RUN sudo apt-get update RUN sudo apt-get -y install build-essential libssl-dev libkrb5-dev gcc make ruby-full rubygems-integration python RUN curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - RUN sudo apt-get install -y nodejs EXPOSE 9000 9001 9002 5000 3000 RUN sudo npm install -g harp WORKDIR /projects CMD tail -f /dev/null -
created various projects and installed others dependencies
-
stopped workspaces and created snapshots
-
shutted down the virtual machine
sudo shutdown - h now -
shutted down the computer
-
I went to sleep ;)
-
Wake up the day after
-
Restarted the computer and the virtual machine (everything fine)
-
obtained new ip (dhcp)
Expected behavior:
Find all the previous workspaces created after loggin in in the new ip (chenged over night due to dhcp)
Observed behavior:
Find only php workspace. In the folder
/opt/bitnami/apps/eclipseche/che/workspaces
every project is still there.
Che version: 4.7.2-0 (64-bit)
OS and version: windows 10 anniversary / ubuntu 14.04
Docker version: 1.12.1
Che install: Bitnami on Virtualbox 5.1.6 r110634 (Qt5.5.1)
Additional information:
- Problem started happening recently, didn't happen in an older version of Che: No
- Problem can be reliably reproduced, doesn't happen randomly: No
Thank you
@bmicklea - can you pull in the proper Bitnami engineers to take a peak at this? I suspect this is a Bitnami VM configuration issue.
Ok I've asked.
PS i've mentioned this discussion in the support question. Please do not close this until the problem is solved.
Thank You!
@matteo-bombelli @TylerJewell it is possible that Che hasn't saved workspaces into local storage. I am unfamiliar with Bitnami setup but, we you find /opt/bitnami/apps/eclipseche/che/storage/workspaces.json somewhere in the VM?
Also, if you go to $che-IP/api/workspace, can you see your workspaces there or is there only the php one?
thank you @eivantsov,
the file /opt/bitnami/apps/eclipseche/che/storage/workspaces.json contains only the php workspace.
can I add to the objects in the json the exported json from Export as a file button in the workspace detali menu?
In the folder /opt/bitnami/apps/eclipseche/che/workspaces workspaces files are present (there is a folder with the workspaces names)
I've taken snapshots of the missing workspaces, do you know where they should be?
Other Infos: the Virtualbox machine has 2048MB of RAM reseved / 1 CPU @ 91% (CPU 2,50GH i3-3120M)
PS: maybe this is a symptom: when the machine is booting up i can see an error:
intel8x0:measure unrielable DMA position
repeated two times
Thank You.
@matteo-bombelli are you certain you have correctly stopped those workspaces and the server itself? It is possible that is the VM was just switched off, Che failed to save workspace config in that json.
@eivantsov I've stopped them from the interface before shutting down the machine
@matteo-bombelli - we made some important improvements into how workspaces are stopped / started in the 5.0.0-M release train. Can you retry with the latest 5.0.0-latest version? I believe that your issue will be resolved.
@TylerJewell Thank You!
Looking for the Bitnami virtual machine (still on 4.7): sorry I'm not an IT... I will try to install it in my Virtualbox (I'm having issues with Docker compose also... but will see)
Bitnami has updated their services to 5.0 and these issues should no longer be present. Going to close the issue as a long-dated thread. Ok to reopen with current diagnostic on current version.
sorry, still 4.7.1 on the website
https://bitnami.com/stack/eclipse-che/virtual-machine
@amrecio - we thought that the Bitnami images had been updated to use Che 5.0, but the link posted above still shows 4.7.1. Can you help here?
Hi @bmicklea,
We're working on building and testing Eclipse Che 5.0 along with the latest version of Docker that includes security fixes. On 2016-12-16 a security issue affecting Docker was published. For versions lower than 1.12.6, there is a risk of "a specific attack that uses ptrace and improperly-flushed file descriptors to gain access to content outside a container" (https://access.redhat.com/security/vulnerabilities/cve-2016-9962).
We expect to release this new version along today or tomorrow. We'll update this ticket as soon as it's released.
Sorry for the inconveniences.
Regards, Jota
Thanks @jotamartos for the explanation.
@jotamartos , @bmicklea , @TylerJewell @eivantsov , Thank you so much.
Waiting for the new version on Bitnami.
Hi,
Just a quick note to let you know that Eclipse Che 5.0 is available in bitnami.com now.
https://bitnami.com/stack/eclipse-che
Regards, Jota
@jotamartos thank you!
@matteo-bombelli can you give us any update on this? Is the issue still there for you?
Closing the issue. @matteo-bombelli feel free to reopen if the problem persists.