Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to migrate from Poeschl/Hassio-Addons to Poeschl-HomeAssistant-Addons/repository? #3

Open
shalak opened this issue Oct 13, 2024 · 9 comments

Comments

@shalak
Copy link

shalak commented Oct 13, 2024

I cannot remove the https://github.com/Poeschl/Hassio-Addons repository, because there are add-ons that are in use.

image

Is there a way to migrate to https://github.com/Poeschl-HomeAssistant-Addons/repository without removing all installed add-ons and configuring everything from scratch?

@Poeschl
Copy link
Member

Poeschl commented Oct 14, 2024

Unfortunately I don't know a migration way.

But it is possible to have the legacy and the new one installed side-by-side to migrate the configuration over.

@JanPetterMG
Copy link

Not necessarily!
I can't even start the new addon in paralell because of conflicting port numbers. Changing those will definitively break my environment.

This is something that should have been accounted for a long time ago, I've discovered this new repo by an accident. There weren't any warnings about this anywhere else than in the add-on store, and I really think an update should have been released before archieving, triggering an warning in HA, with link to an migration wiki, so that everyone affected got informed, and not left in the dust without notice...

@Poeschl
Copy link
Member

Poeschl commented Oct 28, 2024

@JanPetterMG
I understand your points about the migration and I would be more than happy to implement this nice way with even flowers on the sides.
But reality strikes and this is still a project which I'm working on in my limited free time and for free. I was glad that I managed to split my add-ons into own repositories in my available time to make maintaining them easier and less time consuming for me.

For a migration guide feel free to note down your migration steps in this issue to help others and fill this lack of documentation for me. Also note: The "legacy" add-ons will not stop working and can be used as long as needed.

The rough steps for migration (out of my head) are:

  1. Install the new addon (don't start it)
  2. Copy the configuration as YAML from the legacy addon to the new addon
  3. Stop the legacy addon
  4. Start the new addon

@JanPetterMG
Copy link

Again, it's not that simple...

I'm using Synching in a multi-device environment, with full encryption and zero-trust enabled. Having to set up like new would require access to about a dozen devices, if not more, just to initialize the device handshake and enter the encryption key again.

Instead I ended up doing a full backup and restore over the SSH protocol, with certificates and everything. Luckily my 200GB of data was stored in the /share directory, meaning I didn't need to do anything about them, and my configuration could stay unchanged.

Now up and running again, but this time I migrated away from your repositories, and then I deleted them both.

I appreciate your time and commitment, I also know that voluntary community work can be hard sometimes, but you abounded your own community store without notice, further, leaving all the users in the dust with no updates ever more (repo is read only), and with no info about the migration process either. In fact, I had to Google the new repository as you didn't even leave a link to it before you abounded it.

All this just to save a few minutes uploading to GitHub. I hope it was worth it...

Open source is about trust, thanks, but no thanks.

@Poeschl
Copy link
Member

Poeschl commented Nov 10, 2024

To migrate also the data and config from old to new addons:

  • Install the new add-on and start it once and shut it down again
  • Then backup the old and new add-on in separate backup files.
  • Download and Open the new and old backup files on your machine
  • Copy all files from the 243ffc37_<addon>.tar over into the archive from the new add-on in the 68413af6_<addon>.tar
    image
  • Make sure to update/save the changed archive on close
  • Import the modified backup file of the new add-on back into Home Assistant
  • Restore it and the new add-on has all data from the old one

@JanPetterMG
Copy link

This was NOT a support request, and I was not trying to hijack this issue!
You seem to totally misunderstand my points.

Don't expect anyone to show you trust when you have no respect for your own user base. I left because of lack of trust, because the decicion to abandon your previous store seemingly was taken on impulse, without thought about the domino effect such huge changes might cause for the entire user base.

Don't post your migration guide here.

  1. Un-archive your old repositories.
  2. Create a new release triggering anyone still left in the dust to get an warning in HA, that they need to migrate to the new store, with an link to instructions.

@Dezemberkind
Copy link

I also just came across this post by chance when I noticed that my Homeassistant Syncthing version is relatively old.

I find that the repositories were archived without a message not ideal.

By the way, I used the terminal to migrate.

cd /addon_configs/243ffc37_syncthing/
cp cert.pem config.xml https-cert.pem https-key.pem key.pem /addon_configs/68413af6_syncthing/ 

@Poeschl
Copy link
Member

Poeschl commented Nov 11, 2024

@JanPetterMG I got your point and the steps you point out will be done.

Since I don't know when exactly it will happen and people might land here in the meantime, this might help.

@bobbinz
Copy link

bobbinz commented Nov 18, 2024

I also just came across this post by chance when I noticed that my Homeassistant Syncthing version is relatively old.

I find that the repositories were archived without a message not ideal.

By the way, I used the terminal to migrate.

cd /addon_configs/243ffc37_syncthing/
cp cert.pem config.xml https-cert.pem https-key.pem key.pem /addon_configs/68413af6_syncthing/ 

This is the way!

Install the new one, stop the old one.

Start the new one.

Stop the new one.

Jam that in the console,

Start the new one.

Check.

Remove the old one.

As for how to make sure how everybody finds out that this is required is another issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants