If a deploy fails, log output to file for inspection #473
Closed
opened 2025-01-07 14:07:59 +00:00 by fauno
·
8 comments
No Branch/Tag Specified
main
local-integration-testing
renovate/otel-weaver-0.x
renovate/codespell-2.x
renovate/github.com-charmbracelet-lipgloss-2.x
renovate/github.com-charmbracelet-bubbletea-2.x
renovate/tonistiigi-xx-1.x
renovate/alpine-3.x
renovate/github.com-charmbracelet-log-2.x
chore-deps
fix/492
fix/deps
fix/613
0.13.0-beta
0.13.0-rc2-beta
0.13.0-rc1-beta
0.12.0-beta
0.11.0-beta
0.10.1-beta
0.10.0-beta
0.10.0-rc2-beta
0.10.0-rc1-beta
0.9.0-beta
0.8.1-beta
0.8.0-beta
0.8.0-rc2-beta
0.8.0-rc1-beta
0.7.0-beta
0.7.0-rc3-beta
0.7.0-rc2-beta
0.6.0-beta
0.5.1-beta
0.5.0-alpha
0.4.1-alpha
0.4.0-alpha
0.4.0-alpha-rc8
0.4.0-alpha-rc7
0.4.0-alpha-rc6
0.4.0-alpha-rc5
0.4.0-alpha-rc4
0.4.0-alpha-rc3
0.4.0-alpha-rc2
0.4.0-alpha-rc1
0.3.1-alpha-rc2
0.3.1-alpha-rc1
0.3.1-rc1
0.3.0-alpha
0.2.2-alpha
0.2.1-alpha
0.2.0-alpha
0.1.8-alpha
0.1.7-alpha
0.1.6-alpha
0.1.5-alpha
0.1.4-alpha
0.1.3-alpha
0.1.2-alpha
0.1.1-alpha
0.1.0-alpha
10.0.5
10.0.3
10.0.2
10.0.1
10.0.0
9.0.0
8.0.1
8.0.0
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
checkout
0.6.0
0.5.0
0.4.1
0.4.0
0.3.1
0.3.0
0.2.0
0.1.2
0.1.1
0.1.0
Labels
Clear labels
bug
build
ci/cd
critical fix
design
documentation
duplicate
easy-first-issue
enhancement
help wanted
i10n
i18n
installer
invalid
question
release
release-candidate
security
tech-debt
test
wontfix
Something is not working
go build related issues
Building things with CI/CD
https://docs.coopcloud.tech/federation/resolutions/passed/010/
UI/UX
Documenting all the things
This issue or pull request already exists
Something for new people to get stuck into. We hope it's easy!
New feature
Need some help
Everything to do with localisation
Everything to do with internationalisation
Everything to do with the install script.
Something is wrong
More information is needed
Release management
Related to the new release candidate
Security related
Unit/integration testing
This won't be fixed
Milestone
No items
No Milestone
Projects
Clear projects
No project
abra v0.10.0
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
BornDeleuze
Brooke
carla
cas (Cassowary)
coopcloud
cyrnel
decentral1se (d1)
dede
devydave
fauno (fauno)
iexos
jade (Jade Ambrose)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
moosemower
moritz
notplants
oxaliq (sorrel)
p4u1
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
renovate-bot (Comrade Renovate Bot)
ripclap
simon
sixsmith (Sixsmith)
stevensting
trav
val (val (he/him))
yksflip
Clear assignees
No Assignees
decentral1se
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: toolshed/abra#473
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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?
When an app fails to converge, you're suggested to run
abra app logsbut this only shows the latest lines, which don't necessarily indicate what happened. Is it possible to show the logs during deploy, on the same output? That way I could see what failed during deploy, instead of guessing when are logs available (I can't, always seem to get less output that I need)@fauno that's a very interesting idea 🤔 If others support this idea, we could think about wiring up a prototype to test it out. I think it would in theory give more clarity to what is going on?
And to check we're on the same page, if the deployment passes, the logs stop tailing? And if it fails, it stops tailing. And you get the same message at the end as per usual?
The current work-around is something like this after the deployment:
But I now notice that this actually hangs with 0 output 😭 That's a 🐛update: typo,
👉10 minutes10 minutes agoworks 🎉Yeah that should do it! I didn't notice the
--sinceflag :/@fauno cool! actually, it does work 😅 I just had a typo in the obscure
datesyntax in my comment above. hopefully that helps for now. but yeh, if you could try gather more input on this feature request, it'd be great!#478 feels related.
@fauno any ideas how a layout might look in combination with #478 (comment)? (🤯) Ideally we'd have both the status updates from Docker itself and the logs tailing alongside somewhere. We don't have so much screen real estate but I'd love to combine. This could make things finally visible and informative...see #473 (comment)@fauno a wild idea appears: we can record the start time of the deployment. then, run the deployment. when #478 is implemented we will know for sure if a deployment failed or not. if a deployment fails, we can dump all the logs from all containers since the deployment start time directly without prompt (because you would do this anyway). if the deployment succeeds, we show no logs. how does this sound for a design?
sounds great!
Alternatively, taking some parts of what
@forestwas talking about here we could also log all output of a failed deployment to file in~/.abra/logs/<server>/<app>_<timestamp>(or something like this) for further inspection (and also ease ofscp ...to fellow workers for inspection!I think that also might be an easier and a more sustainable option, giving people the full overview but then instead of a potentially confusing dump of some limited amount (or worse, too much) of logs in the terminal all at once!
Add logs to deploy command?to If a deploy fails, log output to file for inspection