Upgrading from 23 to 24.10 corrupts local SSH keys
Short: Updating xPipe removed ssh keys contents
Full: I have 2 machines, work and home.
Vault Sync is connected. SSH keys themselves are local only on both machines and are not synced, multi-identities are.
I updated on work machine using auto updates, it probably used 23.99 and converted vault contents (it did ask about that). Everything worked fine on this vm.
Next day i started xpipe on home vm without updating, closed it and updated directly to 24.10 (as auto-updates did not work for some reason as it did not detect any new versions) After running xpipe all SSH key contents were empty. Key records are in place, but all their values (paths, key values stored directly in vault, usernames) are empty.
Downgrading to 23.99 and back to 24.10 did not improve situation
Im not sure from which version exactly i updated, but probably 23-something
Did you see any changes being pushed to git after 23.99 migrated? The contents are encryped, but it should still be possible to determine whether it somehow deleted the key or not in that step
Also, did you open the synced vault after it was migrated from the other machine with an older version like 23.9 at some point?
- Did you see any changes being pushed to git after 23.99 migrated? The contents are encryped, but it should still be possible to determine whether it somehow deleted the key or not in that step
There were pushes after first (the one i made at work machine) migration, for example
Update vaultversion
- `23.1`
+ `23.9`
... few hours later
Update vaultversion
- `23.9`
+ `24.10`
I dont see any pushes of said keys, (which makes sense, as they are local and not synced)
both are from same place, i dont remember exactly but i guess i started update, got distracted and updated again later. I unfortunately have no idea, which
Also, did you open the synced vault after it was migrated from the other machine with an older version like 23.9 at some point?
Yeah, i opened old xPipe (not sure of exact version) later that day on home machine, expecting a warning of incompatibility and\or update request, but there was none. Updating from within xPipe also did not work, so i just downloaded latest release (24.10) from Github and installed it manually (skipping 23.99x, as i did not know it was needed beforehand) Im not sure if i even checked if keys we valid\invalid before updating to 24.10 as i knew i need to update anyway
The problem was that old xpipe versions < 24 were very aggressive in removing data they could not read. They also didn't check for a newer version format properly. So launching the old version might have corrupted it. I sadly can't fix old versions retroactively
The data isn't lost. What you can do is revert the git vault to commit that was pushed after migration and before you opened it in the old version via this: https://docs.xpipe.io/guide/sync#reverting-to-a-previous-commit
Thank you, i will check it if i will need, fortunately i had a copy of .xpipe from before with all (or most) keys intact and just repaired what i need by hand.
But IMO it is major pain in the ass and would be nice for it to be safe to update in the future without in-depth reading before each update Im loving xPipe, but repeated problems with synced vaults (not log ago my git repo was down, sync stopped. and few days later after restart and re-attaching repo i lost all changes during these days, as they were not being synced \ commited even locally and i had no way of knowing it) prevent me from recommending it to rest of the team
Yes, those issues won't happen again. The main problem was that the whole vault format and handling was no longer up to the task, so I decided to fix all the issues at once for v24. Going forward, there shouldn't be any migration issues like this anymore.
I will look into the lost changes issue, that shouldn't happen regardless of which version you are on.
This is the second time I've experienced configured connections disappearing in XPipe. This time, after launching the application, it looked as though it had just been installed: all my connections were gone.
Fortunately, I still had a copy of my data in a separate PTB profile, which allowed me to recover connections. However, this is a different vault, so I can't consider the original data fully restored.
Thank you for XPipe and for your work on a free, open-source project. I like the application, which makes it especially disappointing to encounter this situation again. It does leave me concerned about the safety of my configuration during everyday use and updates.
The exact cause hasn't been established yet, so I'm not claiming this is the same bug described here. I'd appreciate any guidance: if Git synchronization wasn't enabled, are there automatic backups or other locations where I could look for the previous vault?
Automatic backups before vault format changes, a warning when attempting to open an incompatible vault, and clear recovery instructions for users without Git would also be very helpful. I understand these improvements take time and effort, and I hope sharing my experience can help make data handling more reliable.
@AryaPaw Was it the same situation as this issue where you opened the vault with an older version of XPipe? If there was no git sync, then under normal conditions, it is rate to open a vault with a wrong version, unless your somehow manually downgrade the XPipe version or e.g. launch another version like the PTB and open the same vault.
I can think of additional backups for future migrations. I can't fix the old versions though. V24 shouldn't wipe anything it can't read anymore, but old versions like v23 did, that was usually the cause