Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 672796 - emerge --sync -q output makes server failure hard to debug
Summary: emerge --sync -q output makes server failure hard to debug
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-09 08:16 UTC by Patrick Lauer
Modified: 2018-12-09 08:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2018-12-09 08:16:31 UTC
Running `emerge --sync` in a cronjob:

emerge --sync -q 2 > /dev/null || echo "Failed to emerge --sync"

This prints on failure:

rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(642) [Receiver=3.1.3]
timed out
>>> Retrying...

Well now we'll never know which mirror it tried to connect to ...
I wonder if there's a reasonable way to make it quiet by default, but able to print the failed sync server's hostname/IP on stderr so that one can fix the issue.