Bug 54246 - "univention-repository-create" does not create "ucs-releases.json"
"univention-repository-create" does not create "ucs-releases.json"
Status: NEW
Product: UCS
Classification: Unclassified
Component: Update - Repository administration
UCS 5.0
Other Windows NT
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on: 55499
Blocks:
  Show dependency treegraph
 
Reported: 2021-12-14 11:40 CET by Michael Grandjean
Modified: 2022-12-16 12:18 CET (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.069
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 Michael Grandjean univentionstaff 2021-12-14 11:40:24 CET
Scenario: I have two local repository servers, one for UCS 4.x and one for UCS 5.x, as recommended in https://docs.software-univention.de/release-notes-5.0-0-en.html#relnotes:localrepo
I then want to upgrade my first UCS system from 4.4-8 to 5.0-0. After switching the Repo-Server via repository/online/server, univention-upgrade does not offer to upgrade to UCS 5.0:

> root@ucs001:~# univention-upgrade
> 
> Starting univention-upgrade. Current UCS version is 4.4-8 errata1123
> 
> Checking for local repository:                          none
> Checking for package updates:                           none
> Checking for app updates:                               none
> Checking for release updates:                           none
> root@ucs001:~#

I can see that the files underneath /etc/apt/sources.list.d/* are empty.

On the Repo-Server itself (which is already 5.0 and uses its local repo for its own updates by default), I can find some tracebacks in /etc/apt/sources.list.d/15_ucs-online-version.list, e.g.:

#   Traceback (most recent call last):
#     File "/usr/lib/python3/dist-packages/univention/updater/tools.py", line 1319, in _get_releases
#       _code, _size, data = self.server.access(None, 'ucs-releases.json', get=True)
#     File "/usr/lib/python3/dist-packages/univention/updater/tools.py", line 727, in access
#       raise DownloadError(uri, res.code)
#   univention.updater.errors.DownloadError: Error downloading http://ucs123.repo.example.org/univention-repository/ucs-releases.json: 404

ucs123 is my UCS-5.x-Repo-Server. And indeed, there is no "ucs-releases.json":

> root@ucs123:~# ls -la /var/lib/univention-repository/mirror/
> insgesamt 20
> drwxr-xr-x 5 root root 4096 Dez 10 14:37 .
> drwxr-xr-x 5 root root 4096 Dez 10 14:37 ..
> drwxr-xr-x 3 root root 4096 Dez 10 14:37 apt
> drwxr-xr-x 4 root root 4096 Dez 10 22:21 dists
> drwxr-xr-x 3 root root 4096 Dez 10 14:37 pool
> lrwxrwxrwx 1 root root    1 Dez 10 14:37 univention-repository -> .

Workaround (on the 5.x-Repo-Server): 
> wget https://update.software-univention.de/ucs-releases.json -O /var/lib/univention-repository/mirror/ucs-releases.json

This seems to do the trick:
> root@ucs001:~# univention-upgrade
> 
> Starting univention-upgrade. Current UCS version is 4.4-8 errata1123
> 
> Checking for local repository:                          none
> Checking for package updates:                           none
> Checking for app updates:                               none
> Checking for release updates:                           found: UCS 5.0-0
> Do you want to update to 5.0-0 [Y|n]?