Chaos commit "false" on abra 0.10.0-rc1-beta-8af87aa #471

Closed
opened 2025-01-07 13:31:26 +00:00 by fauno · 4 comments
Member

I made some local changes to the gitea recipe and tried to deploy it with abra 0.10, output says:

>_ abra-0.10 app new -D git.sutty.abyaya.la -S -s sutty.comun -C
? Select recipe gitea
INFO git.sutty.abyaya.la created successfully (version: false, chaos: false)

So when I try to upgrade it, it fails because it thinks "false" is a commit?

>_ abra-0.10 app upgrade -d git.sutty.abyaya.la
DEBU <cli/run.go:60> abra version 0.10.0-rc1-beta, commit 8af87aa38216c45a36135771755be187c66911ad
DEBU <app/app.go:293> collecting metadata from 3 servers: coopcloud.sutty.local, marmite.comun, sutty.comun
DEBU <git/read.go:130> no /home/fauno/.gitignore exists, skipping reading gitignore paths
DEBU <git/read.go:52> git status: /home/fauno/.abra/recipes/gitea: clean
DEBU <app/app.go:39> loaded app git.sutty.abyaya.la: {name: git.sutty.abyaya.la, recipe: {name: gitea, version : false, dirty: false, dir: /home/fauno/.abra/recipes/gitea, git url: https://git.coopcloud.tech/coop-cloud/gitea.git, ssh url: ssh://git@git.coopcloud.tech:2222/coop-cloud/gitea.git, compose: /home/fauno/.abra/recipes/gitea/compose.yml, readme: /home/fauno/.abra/recipes/gitea/README.md, sample env: /home/fauno/.abra/recipes/gitea/.env.sample, abra.sh: /home/fauno/.abra/recipes/gitea/abra.sh}, domain: git.sutty.abyaya.la, env map[COMPOSE_FILE:compose.yml:compose.mariadb.yml DOMAIN:git.sutty.abyaya.la ENABLE_BACKUPS:true GITEA_ALLOWED_USER_VISIBILITY_MODES:limited,private GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION:true GITEA_APP_NAME:Git with solidaritea GITEA_AUTO_WATCH_NEW_REPOS:false GITEA_DEFAULT_ALLOW_CREATE_ORGANIZATION:false GITEA_DEFAULT_KEEP_EMAIL_PRIVATE:true GITEA_DEFAULT_ORG_VISIBILITY:limited GITEA_DEFAULT_USER_VISIBILITY:limited GITEA_DISABLE_GRAVATAR:false GITEA_DISABLE_REGISTRATION:false GITEA_DISABLE_REGULAR_ORG_CREATION:true GITEA_DOMAIN:git.example.com GITEA_ENABLE_FEDERATED_AVATAR:true GITEA_ENABLE_NOTIFY_MAIL:true GITEA_ENABLE_OPENID_SIGNIN:true GITEA_ENABLE_OPENID_SIGNUP:true GITEA_ENABLE_USER_HEATMAP:false GITEA_LANDING_PAGE:organizations GITEA_MAILER_FROM:noreply@example.com GITEA_MAILER_USER:noreply@example.com GITEA_REPO_UPLOAD_ALLOWED_TYPES:*/* GITEA_REPO_UPLOAD_ENABLED:true GITEA_REPO_UPLOAD_MAX_FILES:5 GITEA_REPO_UPLOAD_MAX_SIZE:50 GITEA_REQUIRE_SIGNIN_VIEW:true GITEA_SHOW_USER_EMAIL:false GITEA_SSH_ENABLED:1 GITEA_SSH_PORT:2222 LETS_ENCRYPT_ENV:production SECRET_DB_PASSWORD_VERSION:v1 SECRET_DB_ROOT_PASSWORD_VERSION:v1 SECRET_INTERNAL_TOKEN_VERSION:v1 SECRET_JWT_SECRET_VERSION:v1 SECRET_SECRET_KEY_VERSION:v1 TYPE:gitea:false], server sutty.comun, path /home/fauno/.abra/servers/sutty.comun/git.sutty.abyaya.la.env}
DEBU <internal/validate.go:99> validated git.sutty.abyaya.la as app argument
DEBU <git/read.go:130> no /home/fauno/.gitignore exists, skipping reading gitignore paths
DEBU <git/read.go:52> git status: /home/fauno/.abra/recipes/gitea: clean
DEBU <git/branch.go:97> successfully checked out refs/heads/master in /home/fauno/.abra/recipes/gitea
DEBU <recipe/git.go:270> fetched latest git changes for gitea
DEBU <recipe/git.go:45> ensuring env version false
DEBU <recipe/git.go:143> read 1.0.0+1.14.5-rootless, 1.1.0+1.15.0-rootless, 1.1.1+1.15.3-rootless, 1.1.2+1.15.6-rootless, 1.1.3+1.15.10-rootless, 1.2.0+1.16.3-rootless, 1.2.1+1.16.8-rootless, 1.3.0+1.17.2-rootless, 1.3.1+1.17.3-rootless, 2.0.0+1.18.0-rootless, 2.0.1+1.18.2-rootless, 2.1.0+1.18.5-rootless, 2.1.2+1.19.3-rootless, 2.10.0+1.22.1-rootless, 2.10.1+1.22.2-rootless, 2.11.0+1.22.2-rootless, 2.2.0+1.19.3-rootless, 2.3.0+1.20.1-rootless, 2.3.1+1.20.1-rootless, 2.3.2+1.20.3-rootless, 2.3.3+1.20.5-rootless, 2.4.0+1.21.0-rootless, 2.5.0+1.21.1-rootless, 2.5.1+1.21.4-rootless, 2.5.2+1.21.5-rootless, 2.6.0+1.21.5-rootless, 2.6.1+1.21.10-rootless, 2.6.2+1.21.10-rootless, 2.7.0+1.21.11-rootless, 2.8.0+1.21.11-rootless, 2.9.0+1.22.0-rootless, 2.9.1+1.22.0-rootless, 3.0.0+1.22.2-rootless, 3.0.1+1.22.3-rootless, 3.1.0+1.22.3-rootless as tags for recipe gitea
DEBU <recipe/git.go:148> attempting to checkout 'false' as chaos commit
FATA <recipe/git.go:152> unable to resolve 'false': reference not found
I made some local changes to the gitea recipe and tried to deploy it with abra 0.10, output says: ``` >_ abra-0.10 app new -D git.sutty.abyaya.la -S -s sutty.comun -C ? Select recipe gitea INFO git.sutty.abyaya.la created successfully (version: false, chaos: false) ``` So when I try to upgrade it, it fails because it thinks "false" is a commit? ``` >_ abra-0.10 app upgrade -d git.sutty.abyaya.la DEBU <cli/run.go:60> abra version 0.10.0-rc1-beta, commit 8af87aa38216c45a36135771755be187c66911ad DEBU <app/app.go:293> collecting metadata from 3 servers: coopcloud.sutty.local, marmite.comun, sutty.comun DEBU <git/read.go:130> no /home/fauno/.gitignore exists, skipping reading gitignore paths DEBU <git/read.go:52> git status: /home/fauno/.abra/recipes/gitea: clean DEBU <app/app.go:39> loaded app git.sutty.abyaya.la: {name: git.sutty.abyaya.la, recipe: {name: gitea, version : false, dirty: false, dir: /home/fauno/.abra/recipes/gitea, git url: https://git.coopcloud.tech/coop-cloud/gitea.git, ssh url: ssh://git@git.coopcloud.tech:2222/coop-cloud/gitea.git, compose: /home/fauno/.abra/recipes/gitea/compose.yml, readme: /home/fauno/.abra/recipes/gitea/README.md, sample env: /home/fauno/.abra/recipes/gitea/.env.sample, abra.sh: /home/fauno/.abra/recipes/gitea/abra.sh}, domain: git.sutty.abyaya.la, env map[COMPOSE_FILE:compose.yml:compose.mariadb.yml DOMAIN:git.sutty.abyaya.la ENABLE_BACKUPS:true GITEA_ALLOWED_USER_VISIBILITY_MODES:limited,private GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION:true GITEA_APP_NAME:Git with solidaritea GITEA_AUTO_WATCH_NEW_REPOS:false GITEA_DEFAULT_ALLOW_CREATE_ORGANIZATION:false GITEA_DEFAULT_KEEP_EMAIL_PRIVATE:true GITEA_DEFAULT_ORG_VISIBILITY:limited GITEA_DEFAULT_USER_VISIBILITY:limited GITEA_DISABLE_GRAVATAR:false GITEA_DISABLE_REGISTRATION:false GITEA_DISABLE_REGULAR_ORG_CREATION:true GITEA_DOMAIN:git.example.com GITEA_ENABLE_FEDERATED_AVATAR:true GITEA_ENABLE_NOTIFY_MAIL:true GITEA_ENABLE_OPENID_SIGNIN:true GITEA_ENABLE_OPENID_SIGNUP:true GITEA_ENABLE_USER_HEATMAP:false GITEA_LANDING_PAGE:organizations GITEA_MAILER_FROM:noreply@example.com GITEA_MAILER_USER:noreply@example.com GITEA_REPO_UPLOAD_ALLOWED_TYPES:*/* GITEA_REPO_UPLOAD_ENABLED:true GITEA_REPO_UPLOAD_MAX_FILES:5 GITEA_REPO_UPLOAD_MAX_SIZE:50 GITEA_REQUIRE_SIGNIN_VIEW:true GITEA_SHOW_USER_EMAIL:false GITEA_SSH_ENABLED:1 GITEA_SSH_PORT:2222 LETS_ENCRYPT_ENV:production SECRET_DB_PASSWORD_VERSION:v1 SECRET_DB_ROOT_PASSWORD_VERSION:v1 SECRET_INTERNAL_TOKEN_VERSION:v1 SECRET_JWT_SECRET_VERSION:v1 SECRET_SECRET_KEY_VERSION:v1 TYPE:gitea:false], server sutty.comun, path /home/fauno/.abra/servers/sutty.comun/git.sutty.abyaya.la.env} DEBU <internal/validate.go:99> validated git.sutty.abyaya.la as app argument DEBU <git/read.go:130> no /home/fauno/.gitignore exists, skipping reading gitignore paths DEBU <git/read.go:52> git status: /home/fauno/.abra/recipes/gitea: clean DEBU <git/branch.go:97> successfully checked out refs/heads/master in /home/fauno/.abra/recipes/gitea DEBU <recipe/git.go:270> fetched latest git changes for gitea DEBU <recipe/git.go:45> ensuring env version false DEBU <recipe/git.go:143> read 1.0.0+1.14.5-rootless, 1.1.0+1.15.0-rootless, 1.1.1+1.15.3-rootless, 1.1.2+1.15.6-rootless, 1.1.3+1.15.10-rootless, 1.2.0+1.16.3-rootless, 1.2.1+1.16.8-rootless, 1.3.0+1.17.2-rootless, 1.3.1+1.17.3-rootless, 2.0.0+1.18.0-rootless, 2.0.1+1.18.2-rootless, 2.1.0+1.18.5-rootless, 2.1.2+1.19.3-rootless, 2.10.0+1.22.1-rootless, 2.10.1+1.22.2-rootless, 2.11.0+1.22.2-rootless, 2.2.0+1.19.3-rootless, 2.3.0+1.20.1-rootless, 2.3.1+1.20.1-rootless, 2.3.2+1.20.3-rootless, 2.3.3+1.20.5-rootless, 2.4.0+1.21.0-rootless, 2.5.0+1.21.1-rootless, 2.5.1+1.21.4-rootless, 2.5.2+1.21.5-rootless, 2.6.0+1.21.5-rootless, 2.6.1+1.21.10-rootless, 2.6.2+1.21.10-rootless, 2.7.0+1.21.11-rootless, 2.8.0+1.21.11-rootless, 2.9.0+1.22.0-rootless, 2.9.1+1.22.0-rootless, 3.0.0+1.22.2-rootless, 3.0.1+1.22.3-rootless, 3.1.0+1.22.3-rootless as tags for recipe gitea DEBU <recipe/git.go:148> attempting to checkout 'false' as chaos commit FATA <recipe/git.go:152> unable to resolve 'false': reference not found ```
Author
Member

Also deploy fails:

>_ abra-0.10 app deploy git.sutty.abyaya.la
FATA unable to resolve 'false': reference not found
Also deploy fails: ``` >_ abra-0.10 app deploy git.sutty.abyaya.la FATA unable to resolve 'false': reference not found ```
Author
Member

Realized the env file had TYPE=gitea:false, changing it to TYPE=gitea:COMMIT works for deploy

Realized the env file had `TYPE=gitea:false`, changing it to `TYPE=gitea:COMMIT` works for deploy
Author
Member

New deployment data is the commit I manually entered (also tagged a release just in case). I guess Current deployment is ok at N/A since it's the first deploy, but Chaos = false didn't follow the -C I initially gave it.

┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃                                         DEPLOY OVERVIEW                                         ┃
┃                                                                                                 ┃
┃ DOMAIN                     git.sutty.abyaya.la                                                  ┃
┃ RECIPE                     gitea                                                                ┃
┃ SERVER                     sutty.comun                                                          ┃
┃ CONFIG                     compose.yml:compose.sqlite3.yml:compose.forgejo.yml:compose.smtp.yml ┃
┃                                                                                                 ┃
┃ CURRENT DEPLOYMENT                                                                              ┃
┃ VERSION                    N/A                                                                  ┃
┃ CHAOS                      false                                                                ┃
┃                                                                                                 ┃
┃ NEW DEPLOYMENT                                                                                  ┃
┃ VERSION                    3.1.0+1.22.3-rootless                                                ┃
┃ CHAOS                      498e3ec7398658cddca6d05a7cadebe5265199b1                             ┃
┃                                                                                                 ┃
┃ GIT.SUTTY.ABYAYA.LA.ENV                                                                         ┃
┃ CURRENT VERSION            498e3ec7398658cddca6d05a7cadebe5265199b1                             ┃
┃ NEW VERSION                498e3ec7398658cddca6d05a7cadebe5265199b1                             ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
New deployment data is the commit I manually entered (also tagged a release just in case). I guess Current deployment is ok at N/A since it's the first deploy, but Chaos = false didn't follow the -C I initially gave it. ``` ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ DEPLOY OVERVIEW ┃ ┃ ┃ ┃ DOMAIN git.sutty.abyaya.la ┃ ┃ RECIPE gitea ┃ ┃ SERVER sutty.comun ┃ ┃ CONFIG compose.yml:compose.sqlite3.yml:compose.forgejo.yml:compose.smtp.yml ┃ ┃ ┃ ┃ CURRENT DEPLOYMENT ┃ ┃ VERSION N/A ┃ ┃ CHAOS false ┃ ┃ ┃ ┃ NEW DEPLOYMENT ┃ ┃ VERSION 3.1.0+1.22.3-rootless ┃ ┃ CHAOS 498e3ec7398658cddca6d05a7cadebe5265199b1 ┃ ┃ ┃ ┃ GIT.SUTTY.ABYAYA.LA.ENV ┃ ┃ CURRENT VERSION 498e3ec7398658cddca6d05a7cadebe5265199b1 ┃ ┃ NEW VERSION 498e3ec7398658cddca6d05a7cadebe5265199b1 ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ ```
Owner

tysm for testing @fauno! I do not have a test for this workflow 🤔 So, no surprises it is broken 🙃 I will get this patched up hopefully today/tmoro.

tysm for testing @fauno! I do not have a test for this workflow 🤔 So, no surprises it is broken 🙃 I will get this patched up hopefully today/tmoro.
decentral1se added the
bug
release-candidate
labels 2025-01-07 13:57:27 +00:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: toolshed/abra#471
No description provided.