abra app logs does not show log entries in correct chronological order #416
Closed
opened 2023-02-13 13:28:58 +00:00 by yksflip
·
5 comments
Labels
Clear labels
abra
awaiting-feedback
backups
bug
build
ci/cd
community organising
contributing
coopcloud.tech
design
documentation
duplicate
enhancement
fedi
fedi-infra
finance
funding
good first issue
help wanted
installer
legal
performance
proposal
question
security
test
wontfix
Everything to do with abra
Ping/pong on comms
Something is not working
Go build related issues
Getting the robots into the mix
Opening this thing up
Contributors stuff
Our main website
Design thinking required
Let's write things together
This issue or pull request already exists
New feature
Democratic decision making
Money things
Anything related to grant funding
Easy start with development
Need some help
Installation related issues
Performance related
Large change which requires feedback & decisin making
More information is needed
Securing our shit
Unit or integration test suite
This won't be fixed
No labels
bug
Milestone
No items
No Milestone
Projects
Clear projects
No projects
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 (Trav Fryer)
val (val (he/him))
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: toolshed/organising#416
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.
Don't know how this happens, but I saw this already quite some times using abra app logs. Maybe another dead container that shows up here? Would be super helpful for debugging stuff to have this in order :)
(Also not sure if bug or feature request? :D)
An example:
edit: make example more clear
@yksflip
Righhht, so, for context, there was no "off the shelf" API for "give me all the logs", so I had to cook up a concurrent "stream everything you can from every service and merge them into a single stdout/stderr stream" which is
abra app logstoday 🙃Are we specifically speaking about out of order timestamps here? I think that is probably just a bug. I think I see out of order timestamps at least, in the millisecs?
Or are we talking about somehow stream all logs from all services but then "mixing" them in a less chaotic manner?
It could be that the logs from the services that appear to have out of order timestamps are just streaming in at weird times due to things like network or service latency...
ah okayy, I think I get it now ... I think what happened was:
still see the logs of the broken service mixed in (almost 1h difference)
but yeah maybe thats just good enough for now and better logging are part of the monitoring stack :D
Aha, I see. Perhaps we could make an improvement here. I see that there is a
Sinceoption we're not making use of but could? Maybe this could be configured from the CLI? See https://pkg.go.dev/github.com/docker/docker@v23.0.1+incompatible/api/types#ContainerLogsOptions for the options. Seeeec6469ba1/cli/app/logs.go (L22)for options we do set.yeah, that could be somehting! I gave it a try here: coop-cloud/abra#276
seems to just work!