che icon indicating copy to clipboard operation
che copied to clipboard

BITNAMI - Custom (and not custom) workspaces lost after some time and reboot and ip changed

Open matteo-bombelli opened this issue 10 years ago • 18 comments

Custom (and not custom) workspaces lost after some time and reboot and ip changed

Reproduction Steps:

  1. Running Bitnami image in virtualbox on windows 10 anniversary update 64bit

  2. Installed php from "ready to go" tab

  3. Installed Bitnami Express recipe under "stack library tab"

  4. Some errors in creating new workspaces (typos....)

  5. 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
    
  6. created various projects and installed others dependencies

  7. stopped workspaces and created snapshots

  8. shutted down the virtual machine sudo shutdown - h now

  9. shutted down the computer

  10. I went to sleep ;)

  11. Wake up the day after

  12. Restarted the computer and the virtual machine (everything fine)

  13. 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

matteo-bombelli avatar Sep 24 '16 16:09 matteo-bombelli

@bmicklea - can you pull in the proper Bitnami engineers to take a peak at this? I suspect this is a Bitnami VM configuration issue.

TylerJewell avatar Sep 24 '16 17:09 TylerJewell

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 avatar Sep 24 '16 17:09 matteo-bombelli

@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?

ghost avatar Sep 25 '16 07:09 ghost

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 avatar Sep 25 '16 14:09 matteo-bombelli

@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.

ghost avatar Sep 26 '16 06:09 ghost

@eivantsov I've stopped them from the interface before shutting down the machine

matteo-bombelli avatar Dec 03 '16 18:12 matteo-bombelli

@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 avatar Dec 06 '16 02:12 TylerJewell

@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)

matteo-bombelli avatar Dec 06 '16 15:12 matteo-bombelli

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.

TylerJewell avatar Jan 21 '17 19:01 TylerJewell

sorry, still 4.7.1 on the website

https://bitnami.com/stack/eclipse-che/virtual-machine

matteo-bombelli avatar Jan 23 '17 14:01 matteo-bombelli

@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?

bmicklea avatar Jan 23 '17 15:01 bmicklea

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

jotamartos avatar Jan 24 '17 13:01 jotamartos

Thanks @jotamartos for the explanation.

bmicklea avatar Jan 24 '17 14:01 bmicklea

@jotamartos , @bmicklea , @TylerJewell @eivantsov , Thank you so much.

Waiting for the new version on Bitnami.

matteo-bombelli avatar Jan 24 '17 17:01 matteo-bombelli

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 avatar Jan 25 '17 18:01 jotamartos

@jotamartos thank you!

matteo-bombelli avatar Jan 27 '17 20:01 matteo-bombelli

@matteo-bombelli can you give us any update on this? Is the issue still there for you?

ghost avatar Feb 06 '17 13:02 ghost

Closing the issue. @matteo-bombelli feel free to reopen if the problem persists.

ghost avatar Feb 20 '17 05:02 ghost