Bug 54234 - "univention-repository-update net" aborts with "SSL: WRONG_VERSION_NUMBER" if repository/mirror/server is not yet set
"univention-repository-update net" aborts with "SSL: WRONG_VERSION_NUMBER" if...
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:
Blocks:
  Show dependency treegraph
 
Reported: 2021-12-10 09:05 CET by Michael Grandjean
Modified: 2022-03-23 07:25 CET (History)
1 user (show)

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?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.086
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-10 09:05:59 CET
When creating a local repository, the manual says that:

"To set up a repository, the univention-repository-create command must be run as the root user.

The packages in the repository can be updated using the univention-repository-update tool. with univention-repository-update net the repository is synchronized with another specified repository server. This is defined in the Univention Configuration Registry variable repository/mirror/server and typically points to updates.software-univention.de."

But when I run "univention-repository-create" and then "univention-repository-update net", the last command aborts with:

> Error: Configuration error: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1056)


This is because "repository/mirror/server" is empty (at least on an unjoined managed node server, as recommended in the 5.0 release notes) and has to be set manually to 'ucr set repository/mirror/server="updates.software-univention.de"'.

IMHO we should catch that error in "univention-repository-update net".
Comment 1 Philipp Hahn univentionstaff 2022-03-23 07:25:52 CET
This also happened in our VNC installation tests where $REPOSITORY_SERVER was not passed from Jenkins parameter into the Docker container by "test/utils/start-test.sh"

[5.0-1] fcd984d961 fix[test]: Pass through REPOSITORY_SERVER
 test/utils/start-test.sh | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)