abra recipe sync traefik fails #332

Closed
opened 2022-06-30 09:21:30 +00:00 by yksflip · 2 comments
Owner

helloo,
i was about to upgrade the traefik recipe to v2.8.0, but therecipe sync command failed o.O

the label looks good to me:
- "coop-cloud.${STACK_NAME}.version=1.0.1+v2.5.6"

➜ abra -v
abra version 0.5.0-alpha-578e91e
➜ abra r upgrade traefik
? upgrade to which tag? (service: app, image: traefik, tag: v2.5.6) v2.8.0
➜ abra r sync -d traefik
DEBU[0000] read map[COMPOSE_FILE:compose.yml DOMAIN:{{ .Domain }} LETS_ENCRYPT_EMAIL:certs@example.com LETS_ENCRYPT_ENV:production LOG_LEVEL:WARN TYPE:traefik] from /home/yksflip/.abra/recipes/traefik/.env.sample  caller="/drone/src/pkg/config/env.go:50 ReadEnv"
DEBU[0000] [DEBUG] HEAD https://recipes.coopcloud.tech/recipes.json  caller="/drone/src/pkg/web/client.go:17 customLeveledLogger.Printf"
DEBU[0000] file system cached recipe catalogue is up-to-date  caller="/drone/src/pkg/recipe/recipe.go:700 recipeCatalogueFSIsLatest"
DEBU[0000] read recipe catalogue from file system cache in /home/yksflip/.abra/catalogue/recipes.json  caller="/drone/src/pkg/recipe/recipe.go:743 readRecipeCatalogueFS"
DEBU[0000] recipe metadata retrieved for traefik         caller="/drone/src/pkg/recipe/recipe.go:813 GetRecipeMeta"
DEBU[0000] validated traefik as recipe argument          caller="/drone/src/cli/internal/validate.go:114 ValidateRecipeWithPrompt"
DEBU[0000] stripped library/traefik to traefik for parsing  caller="/drone/src/pkg/formatter/formatter.go:67 StripTagMeta"
DEBU[0000] stripped library/traefik to traefik for parsing  caller="/drone/src/pkg/formatter/formatter.go:67 StripTagMeta"
DEBU[0000] detected 1.0.0+v2.5.2, 1.0.1+v2.5.6, v2.4.8, v2.4.8_1, v2.4.9 as tags for recipe traefik  caller="/drone/src/pkg/recipe/recipe.go:200 Recipe.Tags"

You need to make a decision about what kind of an update this new recipe
version is. If someone else performs this upgrade, do they have to do some
migration work or take care of some breaking changes? This can be signaled in
the version you specify on the recipe deploy label and is called a semantic
version.

The latest published version is v2.4.9.

Here is a semver cheat sheet (more on https://semver.org):

    major: new features/bug fixes, backwards incompatible (e.g 1.0.0 -> 2.0.0).
           the upgrade won't work without some preparation work and others need
           to take care when performing it. "it could go wrong".

    minor: new features/bug fixes, backwards compatible (e.g. 0.1.0 -> 0.2.0).
           the upgrade should Just Work and there are no breaking changes in
           the app and the recipe config. "it should go fine".

    patch: bug fixes, backwards compatible (e.g. 0.0.1 -> 0.0.2). this upgrade
           should also Just Work and is mostly to do with minor bug fixes
           and/or security patches. "nothing to worry about".

? select recipe version increment type minor
FATA[0002] object not found                              caller="/drone/src/cli/recipe/sync.go:136 glob..func5" stack="/drone/src/cli/recipe/sync.go:136                        glob..func5\n/go/pkg/mod/github.com/urfave/cli@v1.22.8/app.go:524     HandleAction\n/go/pkg/mod/github.com/urfave/cli@v1.22.8/command.go:173 Command.Run\n/go/pkg/mod/github.com/urfave/cli@v1.22.8/app.go:405     (*App).RunAsSubcommand\n/go/pkg/mod/github.com/urfave/cli@v1.22.8/command.go:378 Command.startApp\n/go/pkg/mod/github.com/urfave/cli@v1.22.8/command.go:102 Command.Run\n/go/pkg/mod/github.com/urfave/cli@v1.22.8/app.go:277     (*App).Run\n/drone/src/cli/cli.go:198                                RunApp\n/drone/src/cmd/abra/main.go:22                           main\n/usr/local/go/src/runtime/proc.go:250                    main\n/usr/local/go/src/runtime/asm_amd64.s:1571               goexit"
helloo, i was about to upgrade the traefik recipe to `v2.8.0`, but the*recipe sync* command failed o.O the label looks good to me: `- "coop-cloud.${STACK_NAME}.version=1.0.1+v2.5.6"` ``` ➜ abra -v abra version 0.5.0-alpha-578e91e ➜ abra r upgrade traefik ? upgrade to which tag? (service: app, image: traefik, tag: v2.5.6) v2.8.0 ➜ abra r sync -d traefik DEBU[0000] read map[COMPOSE_FILE:compose.yml DOMAIN:{{ .Domain }} LETS_ENCRYPT_EMAIL:certs@example.com LETS_ENCRYPT_ENV:production LOG_LEVEL:WARN TYPE:traefik] from /home/yksflip/.abra/recipes/traefik/.env.sample caller="/drone/src/pkg/config/env.go:50 ReadEnv" DEBU[0000] [DEBUG] HEAD https://recipes.coopcloud.tech/recipes.json caller="/drone/src/pkg/web/client.go:17 customLeveledLogger.Printf" DEBU[0000] file system cached recipe catalogue is up-to-date caller="/drone/src/pkg/recipe/recipe.go:700 recipeCatalogueFSIsLatest" DEBU[0000] read recipe catalogue from file system cache in /home/yksflip/.abra/catalogue/recipes.json caller="/drone/src/pkg/recipe/recipe.go:743 readRecipeCatalogueFS" DEBU[0000] recipe metadata retrieved for traefik caller="/drone/src/pkg/recipe/recipe.go:813 GetRecipeMeta" DEBU[0000] validated traefik as recipe argument caller="/drone/src/cli/internal/validate.go:114 ValidateRecipeWithPrompt" DEBU[0000] stripped library/traefik to traefik for parsing caller="/drone/src/pkg/formatter/formatter.go:67 StripTagMeta" DEBU[0000] stripped library/traefik to traefik for parsing caller="/drone/src/pkg/formatter/formatter.go:67 StripTagMeta" DEBU[0000] detected 1.0.0+v2.5.2, 1.0.1+v2.5.6, v2.4.8, v2.4.8_1, v2.4.9 as tags for recipe traefik caller="/drone/src/pkg/recipe/recipe.go:200 Recipe.Tags" You need to make a decision about what kind of an update this new recipe version is. If someone else performs this upgrade, do they have to do some migration work or take care of some breaking changes? This can be signaled in the version you specify on the recipe deploy label and is called a semantic version. The latest published version is v2.4.9. Here is a semver cheat sheet (more on https://semver.org): major: new features/bug fixes, backwards incompatible (e.g 1.0.0 -> 2.0.0). the upgrade won't work without some preparation work and others need to take care when performing it. "it could go wrong". minor: new features/bug fixes, backwards compatible (e.g. 0.1.0 -> 0.2.0). the upgrade should Just Work and there are no breaking changes in the app and the recipe config. "it should go fine". patch: bug fixes, backwards compatible (e.g. 0.0.1 -> 0.0.2). this upgrade should also Just Work and is mostly to do with minor bug fixes and/or security patches. "nothing to worry about". ? select recipe version increment type minor FATA[0002] object not found caller="/drone/src/cli/recipe/sync.go:136 glob..func5" stack="/drone/src/cli/recipe/sync.go:136 glob..func5\n/go/pkg/mod/github.com/urfave/cli@v1.22.8/app.go:524 HandleAction\n/go/pkg/mod/github.com/urfave/cli@v1.22.8/command.go:173 Command.Run\n/go/pkg/mod/github.com/urfave/cli@v1.22.8/app.go:405 (*App).RunAsSubcommand\n/go/pkg/mod/github.com/urfave/cli@v1.22.8/command.go:378 Command.startApp\n/go/pkg/mod/github.com/urfave/cli@v1.22.8/command.go:102 Command.Run\n/go/pkg/mod/github.com/urfave/cli@v1.22.8/app.go:277 (*App).Run\n/drone/src/cli/cli.go:198 RunApp\n/drone/src/cmd/abra/main.go:22 main\n/usr/local/go/src/runtime/proc.go:250 main\n/usr/local/go/src/runtime/asm_amd64.s:1571 goexit" ```
yksflip added the
bug
abra
labels 2022-06-30 09:21:30 +00:00
Owner

hey @yksflip there was a bunch of old tags on this recipe from our initial experiments with versioning which I've removed. I think this might be fixed now? Lemme know, thanks for diving in :)

hey @yksflip there was a bunch of old tags on this recipe from our initial experiments with versioning which I've removed. I think this might be fixed now? Lemme know, thanks for diving in :)
Author
Owner

deleting the old tags made it work for me :) good to know, thanks for your help!

deleting the old tags made it work for me :) good to know, thanks for your help!
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/organising#332
No description provided.