Bug 48144 - Progress/verbose output for univention-repository-update net
Progress/verbose output for univention-repository-update net
Status: RESOLVED DUPLICATE of bug 46444
Product: UCS
Classification: Unclassified
Component: Update - Repository administration
UCS 4.3
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-11-13 15:32 CET by Valentin Heidelberger
Modified: 2021-01-25 05:41 CET (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.011
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Valentin Heidelberger univentionstaff 2018-11-13 15:32:13 CET
univention-repository-update net can take a long time (even several hours) depending on the network bandwidth, especially when it's executed for the first time. Most of that time apt-mirror is just busy downloading files. Atm univention-repository-update net does not output any indicator of progress and finishes silently. 

It would be nice to at least have the output that's currently written to  /var/log/univention/repository.log as an indicator of progress written to stdout as well. Hiding it behind a --verbose or --progress switch would be fine by me
Comment 1 Philipp Hahn univentionstaff 2018-11-13 17:19:05 CET
"univention-repository-update" uses "apt-mirror" internally, which does not have a good progress report, so u-r-u cannot pass any information through. But you can invoke "apt-mirror" directly by hand to get at least that minimal progress report.

A better option is to
  tail -f /var/lib/univention-repository/var/archive-log.?
Even better is "multitail" to monitor those 10 files in parallel; if your terminal supports that.

The files in that directory have the following meaning:

"ALL" contains the URLs of all Debian packages.
"NEW" contains the subset of URLs missing in the archive, which need to be downloaded.
That list is split into X equal parts names "archive-urls.?"
Then X "wget" processes are forked to download those URLS; they log to "archive-log.?"
If none of these X files show any progress, the download is finished.

There also exists the "index-urls.?" and "index-log.?" files, which are used to download the "Packages" and "Sources" files respectively. That happens before the packages are downloaded themselves.
Comment 2 Philipp Hahn univentionstaff 2021-01-25 05:41:53 CET

*** This bug has been marked as a duplicate of bug 46444 ***