Environments gone after update to 2022.7.0
Expected Behavior
After selecting an interface, it should be possible to select a different environment, from the one currently active.
Actual Behavior
The environment dropdown says that there are no environments. Even the previously active environment has now disappeared.
Reproduction Steps
- Click on a collection
- Click on a message
- Click on the environment dropdown
Is there an existing issue for this?
- [X] I have searched the issue tracker for this problem.
Additional Information
None
Insomnia Version
2022.7.0
What operating system are you using?
Windows
Operating System Version
Windows 10
Installation method
download from insomnia.rest
Last Known Working Insomnia version
2022.6.0
I opened the insomnia.Environment.db file in Notepad++. It has 25 entries, 14 of which have the name: New Environment. They are empty. 5 have the name: Base Environment. They are also empty. Which leaves 6 that I more or less recognize. The last time Insomnia still worked OK, I only had two environments.
As an experiment, I removed all New and Base environments from that .db file. Started Insomnia, clicked Manage Environments. There are no environments. Afterwards, a new Base Environment was created in the .db file.
I deleted the insomnia.Environment.db file and started Insomnia. I selected one of my requests and added a Test and Production environment. Gave them the appropriate green and red color. Added the data from a backup insomnia.Environment.db file (unfortunately, a backup from after the last app update). Exited Insomnia and looked at the insomnia.Environment.db file again. It contains 73 lines! 22 for Production, 42 for Test. And some New and Base entries. Most interesting (aside from those ridiculous numbers), the colors of the Test entries: next to 31 #ff0000 entries, also: null, #7d69cb, #00ff04, #2a832c, #34a236, #2eb230, #1cb01e, #04fb08, #00fb08, #000208, #001908.
Environment management seems to have major issues.
Same issue for me. All of my environments have been completely wiped which is truly unbelievable.
Edit:
My environment is actually in the Debug tab in New Document. Got very scared for a second.
Same issue for me. All of my environments have been completely wiped which is truly unbelievable.
Edit: My environment is actually in the
Debugtab inNew Document. Got very scared for a second.
I have read about the Debug tab in New Document in other issues, but I cannot find this in my version of Insomnia. I am on Windows 10. Where can I find the New Document button?
I see a New Document button if I create an empty project but all I get is a modal with "Create New Design Document" and a text field with my-spec.yaml pre-filled. There is no Debug tab that I can see.
All of my requests and environments are also missing after an automatic update to 2022.7.0.
Fortunately, I see snippets of my requests and environments in insomnia.Requests.db and insomnia.Environment.db respectively.
Update: I've found my requests! After creating or opening a document, at the top of the window, just under the title bar, are three tabs: Design, Debug, and Test. My environments are still missing, though.
Update 2: I've restored the data from my environment file by manually creating new environments in Insomnia 2022.7.0, and copy-pasting the value of the data field into the environment manager window. This is a scary bug! ... but ultimately recoverable.
After restoring my Environments as described above, now my Requests have gone missing from the Debug tab!
I see a
New Documentbutton if I create an empty project but all I get is a modal with "Create New Design Document" and a text field withmy-spec.yamlpre-filled. There is noDebugtab that I can see.All of my requests and environments are also missing after an automatic update to 2022.7.0.
Fortunately, I see snippets of my requests and environments in
insomnia.Requests.dbandinsomnia.Environment.dbrespectively.Update: I've found my requests! After creating or opening a document, at the top of the window, just under the title bar, are three tabs: Design, Debug, and Test. My environments are still missing, though.
![]()
Update 2: I've restored the data from my environment file by manually creating new environments in Insomnia 2022.7.0, and copy-pasting the value of the
datafield into the environment manager window. This is a scary bug! ... but ultimately recoverable.
@bredwrd Referring to your practice, I got my data back!
Best practice is creating a new project and new request, compare your old request, you will find insomnia.Requests.db was append, modify project\requestGroup\request parentId
Linked to https://github.com/Kong/insomnia/issues/5540 and https://github.com/Kong/insomnia/issues/5600
Also related to https://github.com/Kong/insomnia/issues/5167#issuecomment-1370014676
https://github.com/Kong/insomnia/issues/5540
I had a similar experience here. For many time I used the 2021.2.2 insomnia version. On last week, I installed a new version of my Linux Dist in another disk on PC, and install the 2022.7.0 insomnia version. After import the data from older version that I had use (in another disk), my collections did imported correctly but the environments are messed (all environments in a unique collection).
After spend time correcting this manually, and using application normally for one day, when open the app again today, the requests that I made, data changed, settings... all are gone.
Environments are messed again (all environments in a unique collection), as after import data few days ago. It seems to the app reset all data to state immediately after import.
EDIT (UPDATE): I made a little changes to test it again few minutes ago, and after close and open the application few times, the strange behavior that I described occured again. I lost data, request log and environments changes.
Insomnia just wakes up to ruin my day with these updates. Just lost years worth of collection and tried several suggested recovery methods without success
Hi @christianodejesus and @ThaDeveloper, I'm sorry this happened to you folks.
We've been having some issues with data migrations between older and modern versions of Insomnia.
We recently fixed issues with data not showing up on the UI (example) that had been dormant for a long time, only to uncover that other issues were creeping around the corner.
Would you be able to share with us some more information to help track this possible bug?
- What OS and OS version are you using
- What install method did you use (this is important) - e.g. downloaded from releases, or used homebrew, or used snapcraft, or from ubuntu app store, ... - and which package did you use
- What was your previous Insomnia version that you used for the longest time
- If you go into Insomnia's App data folder and you look for example at
insomnia.Workspace.dbandinsomnia.Environment.dbfiles, do you see any traces of your missing data?
Also I would recommend you use Insomnia Sync - it's free (for now it will say free trial, but it will be free for personal use, this is being changed on the website) and it will help always have a backup of your work end-to-end encrypted safely on the cloud.
Windows 10 Enterprise Build 19044.2486 downloaded from release unsure what previous version was. It always ran the auto-update Insomnia.Workspaces.db is only 205 bytes long and contains nothing useful
MacOS 11.2 Downloaded from release Not sure of previous version The files don't have my missing data
Having the same issue. MacOS 13.1 Version: 2022.7.1
I do export my Insomnia preferences so am able to rebuild the environments based what's in the yml files. Just chiming in with OS and software versions in case that helps troubleshoot the issue.
Hi @filfreire, thank you for attention, here more information about my setups:
What OS and OS version are you using
I using now Arch Linux, with 5.15.90-1-lts x86_64 kernel. I've used before PopOS 20.04 lts, since around early 2021.
What install method did you use
In both setups, I've installed via flatpak (from flathub repository).
What was your previous Insomnia version that you used for the longest time
Insomnia 2021.2.2
If you go into Insomnia's App data folder and you look for example at
insomnia.Workspace.dbandinsomnia.Environment.dbfiles, do you see any traces of your missing data?
In PopOS 22.04, after issues that I decribed in my original comment, I've installed Insomnia 2022.07.2 via .deb package downloaded from website (https://insomnia.rest/download). In this version, the same file was imported with success and no more data loss occured, but with messing envs issue yet, that I corrected manually again, and since this time I was using this version with success.
This week, I've decided move from PopOS to Arch Linux, and I've installed Insomnia from flatpak (2022.7.3 version). After importing data from the same file as before, the data is here, not lost, but again, environments are messed up, all in the same collection and not separated into their own as expected.
Now I'm not facing more data loss issue like before. This issue occured only on Pop OS 22.04 LTS, with Insomnia 2022.7.0, installed from flatpak.
EDIT/UPDATE: Few minutes ago, I've downloaded AppImage 2022.7.5 patch version from https://github.com/Kong/insomnia/releases/tag/[email protected] and import file with success, and no any issue as experienced before, no data loss, no envs messing. Even closing and opening application many times, no problems until now.
Same issues here with popos/insomnia flatpak - :clap: bravo... going back to postman
Have the developers considered pulling this release from circulation to stem the bleeding?
Hell no, I got hit yesterday. They will do nothing as there is no financial recourse or penalties!!!! Absolute garbage software created by what appears to be hacks. Please stop distributing this garbage!!! In my 30+ years of being a professional programmer I have NEVER seen such incompetence!
I lost all my collections! It was a huge work! bye bye insomnia..
Same for me this is quite an unfortunate surprise