[Bug] Deploying old app versions doesn't work if compose-files don't match with latest main commit #617
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Issue
Deploying old app versions doesn't work if compose-files don't match with latest main commit.
Steps to reproduce
With: https://git.coopcloud.tech/coop-cloud/nextcloud
app deploy -n --debug --force --no-converge-checks <domain> 5.0.3+27.0.1-fpm
FATA[0001] stat /home/sth/.abra/recipes/nextcloud/compose.apps.yml: no such file or directory
What's happening?
is beeing executed before this happens:
Afterwards this is executed:
Possible solution?
Don't call GetComposeFiles before EnsureVersion
@simon I'm not sure I understand what you're goal was here. You make a local commit and then don't use
--chaos
but pass a version. Shouldn'tabra
check out5.0.3+27.0.1-fpm
and the files should all be there? If youreCOMPOSE_FILES=...
has a file that doesn't exist in the old version then I expect this error? Apologies, I think I'm missing something here.Also, a note on process for using the "Critical fixes" project, please see R010: "The process for adding a ticket to the board requires getting confirmation from at least one other member of the federation." This is usually done in the Fedi/Tech chats on Matrix.
@decentral1se My goal was to redeploy a nextcloud-deployment with a different configuration but the same version as previously deployed. But at the same time I was working on the nextcloud recipe due to a completely unrelated issue, including local changes I had to commit to provide a clean working environment for abra.
And you're right,
abra
should check out5.0.3+27.0.1-fpm
but it doesn't, as it maps the compose from the config with the latestmain
commit, doesn't find thecompose.apps.yml
anymore and crashed, before even beeing able to check out5.0.3+27.0.1-fpm
.You should be able ro reproduce this as described above and abra should return an error on a missing compose.apps.yml
Expected behavior is that abra doesn't miss that compose.apps.yml as it clearly is available in
5.0.3+27.0.1-fpm
And thanks on the note to "Critical fixes". I think in the meantime, @3wordchant too voted for this.
@simon lemme know what you think of coop-cloud/abra#411 🙏
decentral1se referenced this issue2024-06-20 05:45:39 +00:00