this post was submitted on 07 Jul 2023
111 points (99.1% liked)

Selfhosted

40734 readers
419 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

I used to simply use the 'latest' version tag, but that occasionally caused problems with breaking changes in major updates.

I'm currently using podman-compose and I manually update the release tags periodically, but the number of containers keeps increasing, so I'm not very happy with this solution. I do have a simple script which queries the Docker Hub API for tags, which makes it slightly easier to find out whether there are updates.

I imagine a solution with a nice UI for seeing if updates are available and possibly applying them to the relevant compose files. Does anything like this exist or is there a better solution?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 12 points 1 year ago (2 children)

You read breaking changes before you update things, that's how.

[–] ThreeHalflings 8 points 1 year ago* (last edited 1 year ago) (2 children)

Seriously. All this talk of automatically updating versions has my head spinning!

[–] deleted 4 points 1 year ago

I use watchtower and hope nothing will break. I never read breaking changes.

When an issue happens, I just search the internet or change the tag to a known working version until the issue is resolved.

I can afford to have my server down for a few days. It’s not critical to me.

[–] mea_rah 2 points 1 year ago

It kind of depends on what are your priorities. In my experience it's usually much easier to upgrade to latest version from previous version, than to jump couple versions ahead, because you didn't have time doing upgrades recently..

When you think about it, from the development point of view, the upgrade from previous to last version is the most tested path. The developers of the service probably did exactly this upgrade themselves. Many users probably did the same and reported bugs. When you're upgrading from version released many months ago to the current stable, you might be the only one with such combination of versions. The devs are also much more likely to consider all the changes that were introduced between the latest versions.

If you encounter issue upgrading, how many people will experience the same problem with your specific versions combination? How likely are you to see issue on GitHub compared to a bunch of people that are always upgrading to latest?

Also moving between latest versions, there's only limited set of changes to consider if you encounter issues. If you jumped 30 versions ahead, you might end up spending quite some time figuring out which version introduced the breaking change.

Also no matter how carefully you look at it, there's always a chance that the upgrade fails and you'll have to rollback. So if you don't mind a little downtime, you can just let the automation do the job and at worst you'll do the rollback from backup.

It's also pretty good litmus test. If service regularly breaks when upgrading to latest without any good reason, perhaps it isn't mature enough yet.

We're obviously talking about home lab where time is sometimes limited, but some downtime usually not a problem.

[–] [email protected] 3 points 1 year ago (2 children)

Are they documented separately from other changes?

[–] ThreeHalflings 6 points 1 year ago

They're usually clearly documented in support forums by people saying "MY STUFF WON'T BOOT PLESE HALP"

[–] [email protected] 1 points 1 year ago (1 children)

It depends on the project. If the project doesn't make an effort to highlight them I would consider using a different one.

But any decent OSS will make a good change log for their updates that you can read.

[–] [email protected] 0 points 1 year ago* (last edited 1 year ago) (1 children)

I've just been updating my containers every week or so and if something breaks I'll try and fix it. It would definitely be preferable to "fix" in advance, but with enough containers getting updated, checking/reading every change becomes a fair amount of work. Most of the time nothing breaks.

Downvotes are cool but if this is a bad way of doing things just tell me.

[–] [email protected] 1 points 1 year ago (1 children)

What is driving you to need to update so often?

[–] [email protected] 1 points 1 year ago (1 children)

Nothing. Is this too frequent?

[–] [email protected] 1 points 1 year ago

Well, there's always the "if it ain't broke don't fix it" mantra. There's a few reasons I tend to update. Because there's a feature I want or need, to fix a big that affects me, or because a software frequently updates with breaking changes and keeping up with reading change logs is the best way to deal with that. The last option is usually because if I keep up with it I don't have to read and fix multiple months of breaking changes.