Self Service Installation bei UCS 5.0.6 nicht möglich

Moin,

ich habe eine frische Installation der neuesten UCS Version eingerichte, habe die Domäne eingerichtet und die Lizenz importiert und wollte nun über das App Center den Self Service installieren, was jedoch nicht funktioniert da ich immer dieselbe Fehlermeldung bekomme, dass die Aktion zu nicht behebbaren Problemen führen würde.

grafik

Ist dieses Problem bekannt? Wie kann man das beheben? Der Self Service ist schon nicht unwichtig, deshalb würde ich den sehr gerne installieren können.

MfG,
Simon

Moin,

interessant wäre, was sich hinter dem Weitere Informationen... verbirgt, mit der generischen Fehlermeldung kann man noch nicht viel sagen. :slight_smile:

Gruß
Jan-Luca

Moin,

siehe gif.
ucs
Das ist nämlich leider etwas das Problem, wegen dem ich sehr schnell hier her gekommen bin :slight_smile:

Aktuell installierte Version:
grafik

MfG,
Simon

Ah, das ist natürlich nicht optimal. Ich bin leider kein Appcenter Experte, was ist denn die Ausgabe, wenn die App per univention-app install selfservice auf der Kommandozeile installiert wird?
Ansonsten müssen wir mal schauen, welches Log hier relevant ist.

Gruß
Jan-Luca

Hier der Befehlslog (in der App list univention-app list war es als self-service gelistet - mit Bindestrich):

Administrator@vm-ucs-1:~$ sudo univention-app install self-service

Resolving dependencies for self-service
Adding self-service-backend to the list of Apps
Going to install Self Service Backend (5.0)
Going to install Self Service (5.0)
Showing License agreement for self-service-backend=5.0
Showing README for self-service-backend=5.0
Showing License agreement for self-service=5.0
Showing README for self-service=5.0
Configuring self-service-backend=5.0
Creating data directories for self-service-backend...
Registering UCR for self-service-backend
Marking self-service-backend=5.0 as installed
File: /etc/univention/service.info/services/univention-appcenter.cfg
Adding localhost to LDAP object
Reloading apache2 configuration (via systemctl): apache2.service.
No repository to register
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package univention-self-service-master
Failed to install the App
Aborting...
Resolving dependencies for self-service-backend
Going to remove Self Service Backend (5.0)
Showing README for self-service-backend=5.0
Configuring self-service-backend=5.0
No hostdn for self-service-backend found. Nothing to remove
Configuring self-service-backend=5.0
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package univention-self-service-master
Failed to uninstall the App
Aborting...
Failure will leave these apps untouched: self-service

Das führt uns schon einmal ein Stück weiter, danke! Was sagen denn univention-app info, apt show univention-self-service-master und univention-upgrade --check && apt-get download univention-self-service-master?

Gruß
Jan-Luca

info:

root@vm-ucs-1:/home/Administrator# univention-app info
UCS: 5.0-6 errata713
Installed:
Upgradable:

apt show:

root@vm-ucs-1:/home/Administrator# apt update && apt show univention-self-service-master
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
N: Unable to locate package univention-self-service-master
N: Unable to locate package univention-self-service-master
E: No packages found

upgrade check:

root@vm-ucs-1:/home/Administrator# univention-upgrade --check && apt-get download univention-self-service-master

Starting univention-upgrade. Current UCS version is 5.0-6 errata713

Checking for package updates:                           none
Checking for app updates:                               none
Checking for release updates:                           none
No update available.

root@vm-ucs-1:/home/Administrator# apt-get download univention-self-service-master
E: Unable to locate package univention-self-service-master

Ah, that does not sound right, erratum 713 is 6 months old - It seems that you cannot connect to the package server at all, therefore no packages can be installed and that’s why the Self-Service fails. What’s the output of dig updates.software-univention.de, ping updates.software-univention.de and probably wget https://updates.software-univention.de/download/scripts/univention-support-info?

dig updates.software-univention.de

root@vm-ucs-1:/home/Administrator# dig updates.software-univention.de

; <<>> DiG 9.11.5-P4-5.1+deb10u9A~5.0.4.202307241136-Univention <<>> updates.software-univention.de
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 22179
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 8e05ae10cb50f5ff348faf6f65a97254d9c52b42a955494b (good)
;; QUESTION SECTION:
;updates.software-univention.de.        IN      A

;; Query time: 1 msec
;; SERVER: 192.168.10.1#53(192.168.10.1)
;; WHEN: Thu Jan 18 19:47:48 CET 2024
;; MSG SIZE  rcvd: 87

ping updates.software-univention.de

root@vm-ucs-1:/home/Administrator# ping updates.software-univention.de
PING updates.software-univention.de (176.9.110.24) 56(84) bytes of data.
64 bytes from download2.software-univention.de (176.9.110.24): icmp_seq=1 ttl=57 time=20.3 ms
64 bytes from download2.software-univention.de (176.9.110.24): icmp_seq=2 ttl=57 time=19.3 ms
64 bytes from download2.software-univention.de (176.9.110.24): icmp_seq=3 ttl=57 time=19.8 ms
^C
--- updates.software-univention.de ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 5ms
rtt min/avg/max/mdev = 19.287/19.810/20.332/0.456 ms

wget https://updates.software-univention.de/download/scripts/univention-support-info

root@vm-ucs-1:/home/Administrator# wget https://updates.software-univention.de/download/scripts/univention-support-info
--2024-01-18 19:47:58--  https://updates.software-univention.de/download/scripts/univention-support-info
Resolving updates.software-univention.de (updates.software-univention.de)... 176.9.110.24, 2a01:4f8:151:6019::2
Connecting to updates.software-univention.de (updates.software-univention.de)|176.9.110.24|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104694 (102K)
Saving to: ‘univention-support-info.1’

univention-support-info.1                                  100%[=====================================================================================================================================>] 102.24K  --.-KB/s    in 0.05s

2024-01-18 19:47:58 (1.99 MB/s) - ‘univention-support-info.1’ saved [104694/104694]

Connectivity was not the issue. This conversation made me check the enabled repositories and i saw that no repositories worked or were configured. Shouldn’t this happen during or after the installation?

root@vm-ucs-1:/home/Administrator# apt-cache policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
Pinned packages:
root@vm-ucs-1:/home/Administrator# cat /etc/apt/sources.list
# This file is not maintained via Univention Configuration Registry
# and can be used to add further package repositories manually
root@vm-ucs-1:/home/Administrator# cat /etc/apt/sources.list.d/*
#Warning: This file is auto-generated and might be overwritten by
#         univention-config-registry.
#         Please edit the following file(s) instead:
#Warnung: Diese Datei wurde automatisch generiert und kann durch
#         univention-config-registry ueberschrieben werden.
#         Bitte bearbeiten Sie an Stelle dessen die folgende(n) Datei(en):
#
#       /etc/univention/templates/files/etc/apt/sources.list.d/15_ucs-online-version.list
#

# An error occurred during the repository check. The error message:
#   Traceback (most recent call last):
#     File "/usr/lib/python3.7/urllib/request.py", line 1324, in do_open
#       encode_chunked=req.has_header('Transfer-encoding'))
#     File "/usr/lib/python3.7/http/client.py", line 1264, in request
#       self._send_request(method, url, body, headers, encode_chunked)
#     File "/usr/lib/python3.7/http/client.py", line 1310, in _send_request
#       self.endheaders(body, encode_chunked=encode_chunked)
#     File "/usr/lib/python3.7/http/client.py", line 1259, in endheaders
#       self._send_output(message_body, encode_chunked=encode_chunked)
#     File "/usr/lib/python3.7/http/client.py", line 1034, in _send_output
#       self.send(msg)
#     File "/usr/lib/python3.7/http/client.py", line 974, in send
#       self.connect()
#     File "/usr/lib/python3.7/http/client.py", line 1419, in connect
#       super().connect()
#     File "/usr/lib/python3.7/http/client.py", line 946, in connect
#       (self.host,self.port), self.timeout, self.source_address)
#     File "/usr/lib/python3.7/socket.py", line 707, in create_connection
#       for res in getaddrinfo(host, port, 0, SOCK_STREAM):
#     File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
#       for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
#   socket.gaierror: [Errno -3] Temporary failure in name resolution
#
#   During handling of the above exception, another exception occurred:
#
#   Traceback (most recent call last):
#     File "/usr/lib/python3/dist-packages/univention/updater/tools.py", line 659, in access
#       res = UCSHttpServer.opener.open(req, timeout=self.timeout)
#     File "/usr/lib/python3.7/urllib/request.py", line 525, in open
#       response = self._open(req, data)
#     File "/usr/lib/python3.7/urllib/request.py", line 543, in _open
#       '_open', req)
#     File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
#       result = func(*args)
#     File "/usr/lib/python3.7/urllib/request.py", line 1367, in https_open
#       context=self._context, check_hostname=self._check_hostname)
#     File "/usr/lib/python3.7/urllib/request.py", line 1326, in do_open
#       raise URLError(err)
#   urllib.error.URLError: <urlopen error [Errno -3] Temporary failure in name resolution>
#
#   During handling of the above exception, another exception occurred:
#
#   Traceback (most recent call last):
#     File "<stdin>", line 12, in <module>
#     File "/usr/lib/python3/dist-packages/univention/updater/tools.py", line 1208, in __init__
#       self.ucr_reinit()
#     File "/usr/lib/python3/dist-packages/univention/updater/tools.py", line 1263, in ucr_reinit
#       self._get_releases()
#     File "/usr/lib/python3/dist-packages/univention/updater/tools.py", line 1280, 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 ConfigurationError(uri, reason)
#   univention.updater.errors.ConfigurationError: Configuration error: Temporary failure in name resolution
#

# After fixing this issue, you should rewrite this file with the following command:
#   univention-config-registry commit /etc/apt/sources.list.d/15_ucs-online-version.list
#


#Warning: This file is auto-generated and might be overwritten by
#         univention-config-registry.
#         Please edit the following file(s) instead:
#Warnung: Diese Datei wurde automatisch generiert und kann durch
#         univention-config-registry ueberschrieben werden.
#         Bitte bearbeiten Sie an Stelle dessen die folgende(n) Datei(en):
#
#       /etc/univention/templates/files/etc/apt/sources.list.d/15_ucs-online-version.list
#

# The online repository is disabled and can be enabled with:
#   univention-config-registry set repository/online=true


#Warning: This file is auto-generated and might be overwritten by
#         univention-config-registry.
#         Please edit the following file(s) instead:
#Warnung: Diese Datei wurde automatisch generiert und kann durch
#         univention-config-registry ueberschrieben werden.
#         Bitte bearbeiten Sie an Stelle dessen die folgende(n) Datei(en):
#
#       /etc/univention/templates/files/etc/apt/sources.list.d/20_ucs-online-component.list
#


#Warning: This file is auto-generated and might be overwritten by
#         univention-config-registry.
#         Please edit the following file(s) instead:
#Warnung: Diese Datei wurde automatisch generiert und kann durch
#         univention-config-registry ueberschrieben werden.
#         Bitte bearbeiten Sie an Stelle dessen die folgende(n) Datei(en):
#
#       /etc/univention/templates/files/etc/apt/sources.list.d/20_ucs-online-component.list
#

# The online repository is disabled and can be enabled with:
#   univention-config-registry set repository/online=true

Anyway i ran univention-config-registry set repository/online=true and univention-config-registry set repository/online=true like the source files suggested and now the repos are working, as well as the installation.

I thank you very much for supporting me in troubleshooting the problem :smiley:

1 Like
Mastodon