Univention Bugzilla – Bug 54234
"univention-repository-update net" aborts with "SSL: WRONG_VERSION_NUMBER" if repository/mirror/server is not yet set
Last modified: 2022-03-23 07:25:52 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".
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(-)