gitpod icon indicating copy to clipboard operation
gitpod copied to clipboard

All uncommitted data in active workspaces lost

Open lechien73 opened this issue 5 years ago • 29 comments

Bug description

As of this morning, any uncommitted data in non-garbage collected workspaces has been lost.

A workspace can show any number of changes between it and the main branch on GitHub, but when opening the workspace the changes are no longer there. I lost a workspace with 4,264 pending changes this morning. Students are reporting mass loss of data and work.

Steps to reproduce

Find a workspace that shows changes: Screenshot 2021-07-01 at 09 05 12

Start the workspace and it will revert to: Screenshot 2021-07-01 at 09 06 03

Losing the uncommitted changes.

Expected behavior

The expected behaviour would be for Gitpod to open workspaces normally, and for the uncommitted changes to be there.

Example repository

No response

Anything else?

No response

lechien73 avatar Jul 01 '21 08:07 lechien73

My workspace was affected by this issue this morning. When I typed python3 app.py in terminal today for my workspace, it said Flask is not installed. Also my env.py file was missing.

Franciskadtt avatar Jul 01 '21 08:07 Franciskadtt

My workspace was affected by this issue this morning. When I typed python3 app.py in terminal today for my workspace, it said Flask is not installed. Also my env.py file was missing.

Same thing happened to me had to re-create my env.py file

yetnetbehailu avatar Jul 01 '21 08:07 yetnetbehailu

Hi @lechien73 and @Franciskadtt, we're so sorry about this unexpected critical incident.

We're actively investigating this problem. We'll try to mitigate it as soon as possible, and try to safe and recover any lost data.

If you have an affected workspace, please:

  1. Save the workspace ID or URL somewhere (this might help with restoring data later)

  2. Then, create a fresh new workspace, to continue work from there (that's because continuing work in the old affected workspace, or restarting that workspace again multiple times, could interfere with the backup & restore mechanism and decrease our chances of restoring the old data)

jankeromnes avatar Jul 01 '21 08:07 jankeromnes

Same problems for me. I'm running a Django project and it gives message : " ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?"

BXS-Archipelago avatar Jul 01 '21 08:07 BXS-Archipelago

Thanks @jankeromnes - we'll get that out there to our affected students.

For me, the main two are: amaranth-aardwolf-lj653ml1 and maroon-dog-9xusrtau

lechien73 avatar Jul 01 '21 08:07 lechien73

Just FYI thanks... My main workspace is https://pink-nightingale-71ra1tyl.ws-eu09.gitpod.io/

Now it is giving : This page isn’t workingIf the problem continues, contact the site owner. HTTP ERROR 401

BXS-Archipelago avatar Jul 01 '21 08:07 BXS-Archipelago

We updated our status page: https://www.gitpodstatus.com/incidents/ggspjq9qlbwx

The good news is: No data is lost. We're working on restoring the data as smooth as possible. We'll post again once we in a position to do so.

corneliusludmann avatar Jul 01 '21 10:07 corneliusludmann

What do you mean no data is lost? Does not apply to me unfortunately. I lost a complete database this morning and there was nothing I could have done to prevent this, apparently. Gitpod people, this is not good enough, I am sorry! Heroku manages to send heads-up emails when maintenance is required. Do the same and add information as to what the possible consequences are for users and how to prevent/mitigate them.

JochenFM avatar Jul 01 '21 11:07 JochenFM

What do you mean no data is lost?

it means we're in the process of recovering the data and will make it available to you (and all other affected users) ASAP.

meysholdt avatar Jul 01 '21 11:07 meysholdt

That sounds very good - thank you!

JochenFM avatar Jul 01 '21 11:07 JochenFM

If we continue to develop into the workspace, will those be affected by the data recovery?

higorgeous avatar Jul 01 '21 12:07 higorgeous

Do you yet have an ETA as to when we can start our workspaces and check whether they are wokring as expected yet?

C-Undritz avatar Jul 01 '21 13:07 C-Undritz

Status: We've identified and fixed the bug.

  1. If you re-start a workspace now that has a backup from before 5:30 UTC today, that backup will be restored
  2. If you have started a workspace between 5:30 UTC today and 12:36 UTC today, we will still do a backup, but if there is one from before the incident, that one will be loaded on the next re-start. Please contact us via [email protected] if you need access to the newer backup.

We are very sorry for this incident and all the damage it caused to our users.

JanKoehnlein avatar Jul 01 '21 14:07 JanKoehnlein

Thanks for fixing, I can confirm my workspace is back working. Thanks for the resolution and the updates.

pmeeny avatar Jul 01 '21 15:07 pmeeny

@JanKoehnlein We are still having issues. Sent an email to [email protected] and replied to the messages from your support team.

We noticed the workspace had been restored last night AEST and continued working, however this morning, it's now reverted again. Can we get pink-stingray-8ty21riw reverted to what it was at 1:30am AEST. Thank you.

higorgeous avatar Jul 02 '21 00:07 higorgeous

My workspace was working yesterday (17:00 UTC), but when I started it today the changes from yesterday afternoon were lost.

jlaasonen avatar Jul 02 '21 06:07 jlaasonen

My workspace was working yesterday (17:00 UTC), but when I started it today the changes from yesterday afternoon were lost.

Same.

higorgeous avatar Jul 02 '21 06:07 higorgeous

@higorgeous I have (hopefully) restored the state to what it was at 1:30am AEST. Due to the nature of the incident we're left with a sort of "split brain" situation where we have two backups for the same workspace in different states. That makes it rather hard to communicate the options, but also to keep track of what's what. I'm very sorry for this mess.

csweichel avatar Jul 02 '21 07:07 csweichel

@jlaasonen I have (hopefully) restored your workspace backup to its latest state. Please let me know if it is in the state you expected it to be in.

csweichel avatar Jul 02 '21 07:07 csweichel

@higorgeous I have (hopefully) restored the state to what it was at 1:30am AEST. Due to the nature of the incident we're left with a sort of "split brain" situation where we have two backups for the same workspace in different states. That makes it rather hard to communicate the options, but also to keep track of what's what. I'm very sorry for this mess.

Thank you for your help but I am not seeing any of these changes available in the workspace. If you can see the files, we should have a .env.local in the root and within src/components there should be a Library containing Textarea, Textfield and Form directories, and AddCharity directory containing index.tsx and styles.tsx. Inside src/context we should also have a directory called Theme that contains index.tsx. I think off the top of my head, we had 35 commits to be pushed.

Will try stopping the workspace and restarting to see if that shows the changes.

higorgeous avatar Jul 02 '21 07:07 higorgeous