Seite 1 von 1

Produkt deinstallieren - [Errno 111] Verbindungsaufbau abgelehnt

Verfasst: 06 Jun 2019, 11:13
von tklms
Moin,

Wenn ich versuche per

Code: Alles auswählen

opsi-package-manager -r <produktname>
ein Opsi Produkt aus dem Depot zu deinstallieren bekomme ich die fehlermeldung

Code: Alles auswählen

Fehler: [Errno 111] Verbindungsaufbau abgelehnt
wir haben nur ein Depot und das liegt mit auf dem Configserver.

Code: Alles auswählen

opsi-setup --set-rights
opsi-setup --auto-configure-samba 
opsi-setup --cleanup-backend
habe ich schon ausgeführt, bekomme aber immernoch den gleichen Fehler.
Wo kann ich noch ansetzen, um das zu beheben.

Gruß

Thore

Re: Produkt deinstallieren - [Errno 111] Verbindungsaufbau abgelehnt

Verfasst: 07 Jun 2019, 10:08
von SisterOfMercy
tklms hat geschrieben:

Code: Alles auswählen

opsi-package-manager -r <produktname>
Can you run this command again, but with increased verbosity?

Code: Alles auswählen

opsi-package-manager -vvv <produktname>

Re: Produkt deinstallieren - [Errno 111] Verbindungsaufbau abgelehnt

Verfasst: 13 Jun 2019, 11:22
von tklms
Ich habe das mal usgeführt und versuche mal den wichtigsten teil rauszusuchen, um nicht das anze log hier posten zu müssen. Ich glaube der Fehler liegt in folgender sektion:

Code: Alles auswählen

[7] [Jun 13 11:06:22] Parsing ini file '/var/lib/opsi/config/depots/opsi.hl.local.ini' (__init__.py|518)
[7] [Jun 13 11:06:22] Trying to lock file '/var/lib/opsi/config/depots/opsi.hl.local.ini' (0/2000) (__init__.py|216)
[7] [Jun 13 11:06:22] File '/var/lib/opsi/config/depots/opsi.hl.local.ini' locked after 0 millis (__init__.py|237)
[7] [Jun 13 11:06:22] Finished reading file after 0.041 seconds (__init__.py|595)
[7] [Jun 13 11:06:22] Testing match of filter u'opsi.hl.local' of attribute 'depotId' with value u'opsi.hl.local' (Backend.py|231)
[7] [Jun 13 11:06:22] Value u'opsi.hl.local' matched filter u'opsi.hl.local', attribute 'depotId' (Backend.py|280)
[7] [Jun 13 11:06:22] Testing match of filter ['7zip-v500'] of attribute 'productId' with value u'7zip-v500' (Backend.py|231)
[7] [Jun 13 11:06:22] Value u'7zip-v500' matched filter ['7zip-v500'], attribute 'productId' (Backend.py|280)
[6] [Jun 13 11:06:22] Starting task queue "Uninstall of package(s) 7zip-v500 on depot u'opsi.hl.local'" (opsi-package-manager|1405)
[7] [Jun 13 11:06:22] TaskQueue 'Uninstall of package(s) 7zip-v500 on depot u'opsi.hl.local'' started (opsi-package-manager|631)
[7] [Jun 13 11:06:22] Starting task 'Uninstall of package u'7zip-v500' on depot u'opsi.hl.local'' (opsi-package-manager|639)
[7] [Jun 13 11:06:22] Task start() (opsi-package-manager|90)
[5] [Jun 13 11:06:22] Uninstalling package u'7zip-v500' on depot u'opsi.hl.local' (opsi-package-manager|1415)
[7] [Jun 13 11:06:22] ExtendedBackend <BackendManager()>: executing 'host_getObjects' on backend <ExtendedConfigDataBackend(configDataBackend=<BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)>)> (Backend.py|486)
[7] [Jun 13 11:06:22] ExtendedBackend <ExtendedConfigDataBackend(configDataBackend=<BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)>)>: executing 'host_getObjects' on backend <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|486)
[7] [Jun 13 11:06:22] Dispatching method 'host_getObjects' to backends: [u'file', u'opsipxeconfd', u'dhcpd'] (BackendManager.py|482)
[7] [Jun 13 11:06:22] Getting hosts ... (File.py|1253)
[7] [Jun 13 11:06:22] Testing match of filter u'opsi.hl.local' of attribute 'id' with value u'opsi.hl.local' (Backend.py|231)
[7] [Jun 13 11:06:22] Value u'opsi.hl.local' matched filter u'opsi.hl.local', attribute 'id' (Backend.py|280)
[7] [Jun 13 11:06:22] Testing match of filter u'opsi.hl.local' of attribute 'id' with value u'opsi.hl.local' (Backend.py|231)
[7] [Jun 13 11:06:22] Value u'opsi.hl.local' matched filter u'opsi.hl.local', attribute 'id' (Backend.py|280)
[7] [Jun 13 11:06:22] Parsing ini file '/var/lib/opsi/config/depots/opsi.hl.local.ini' (__init__.py|518)
[7] [Jun 13 11:06:22] Trying to lock file '/var/lib/opsi/config/depots/opsi.hl.local.ini' (0/2000) (__init__.py|216)
[7] [Jun 13 11:06:22] File '/var/lib/opsi/config/depots/opsi.hl.local.ini' locked after 0 millis (__init__.py|237)
[7] [Jun 13 11:06:22] Finished reading file after 0.043 seconds (__init__.py|595)
[7] [Jun 13 11:06:22] Trying to lock file '/etc/opsi/pckeys' (0/2000) (__init__.py|216)
[7] [Jun 13 11:06:22] File '/etc/opsi/pckeys' locked after 0 millis (__init__.py|237)
[7] [Jun 13 11:06:22] Trying to lock file '/etc/opsi/pckeys' (0/2000) (__init__.py|216)
[7] [Jun 13 11:06:22] File '/etc/opsi/pckeys' locked after 0 millis (__init__.py|237)
[7] [Jun 13 11:06:22] Testing match of filter u'opsi.hl.local' of attribute 'id' with value u'opsi.hl.local' (Backend.py|231)
[7] [Jun 13 11:06:22] Value u'opsi.hl.local' matched filter u'opsi.hl.local', attribute 'id' (Backend.py|280)
[7] [Jun 13 11:06:22] Testing match of filter 'OpsiDepotserver' of attribute 'type' with value u'OpsiDepotserver' (Backend.py|231)
[7] [Jun 13 11:06:22] Value u'OpsiDepotserver' matched filter 'OpsiDepotserver', attribute 'type' (Backend.py|280)
[7] [Jun 13 11:06:22] Testing match of filter u'opsi.hl.local' of attribute 'id' with value u'opsi.hl.local' (Backend.py|231)
[7] [Jun 13 11:06:22] Value u'opsi.hl.local' matched filter u'opsi.hl.local', attribute 'id' (Backend.py|280)
[7] [Jun 13 11:06:22] Testing match of filter u'opsi.hl.local' of attribute 'id' with value u'opsi.hl.local' (Backend.py|231)
[7] [Jun 13 11:06:22] Value u'opsi.hl.local' matched filter u'opsi.hl.local', attribute 'id' (Backend.py|280)
[7] [Jun 13 11:06:22] Parsing ini file '/var/lib/opsi/config/depots/opsi.hl.local.ini' (__init__.py|518)
[7] [Jun 13 11:06:22] Trying to lock file '/var/lib/opsi/config/depots/opsi.hl.local.ini' (0/2000) (__init__.py|216)
[7] [Jun 13 11:06:22] File '/var/lib/opsi/config/depots/opsi.hl.local.ini' locked after 0 millis (__init__.py|237)
[7] [Jun 13 11:06:22] Finished reading file after 0.038 seconds (__init__.py|595)
[7] [Jun 13 11:06:22] Trying to lock file '/etc/opsi/pckeys' (0/2000) (__init__.py|216)
[7] [Jun 13 11:06:22] File '/etc/opsi/pckeys' locked after 0 millis (__init__.py|237)
[7] [Jun 13 11:06:22] Trying to lock file '/etc/opsi/pckeys' (0/2000) (__init__.py|216)
[7] [Jun 13 11:06:22] File '/etc/opsi/pckeys' locked after 0 millis (__init__.py|237)
[7] [Jun 13 11:06:22] Testing match of filter u'opsi.hl.local' of attribute 'id' with value u'opsi.hl.local' (Backend.py|231)
[7] [Jun 13 11:06:22] Value u'opsi.hl.local' matched filter u'opsi.hl.local', attribute 'id' (Backend.py|280)
[7] [Jun 13 11:06:22] Testing match of filter 'OpsiDepotserver' of attribute 'type' with value u'OpsiConfigserver' (Backend.py|231)
[7] [Jun 13 11:06:22] Value u'OpsiConfigserver' matched filter 'OpsiDepotserver', attribute 'type' (Backend.py|280)
[6] [Jun 13 11:06:22] Using u'webdavs://opsi.hl.local/repository' as repository url (opsi-package-manager|1419)
[7] [Jun 13 11:06:22] Starting new HTTPS connection (1) to opsi.hl.local:443 (HTTP.py|649)
[7] [Jun 13 11:06:22] Connection established to: opsi.hl.local (HTTP.py|651)
[7] [Jun 13 11:06:22] Traceback: (Logger.py|757)
[7] [Jun 13 11:06:22]   File "/usr/lib/python2.7/dist-packages/OPSI/Util/HTTP.py", line 529, in urlopen
    conn.request(method, url, body=body, headers=headers)
 (Logger.py|757)
[7] [Jun 13 11:06:22]   File "/usr/lib/python2.7/httplib.py", line 1057, in request
    self._send_request(method, url, body, headers)
 (Logger.py|757)
[7] [Jun 13 11:06:22]   File "/usr/lib/python2.7/httplib.py", line 1097, in _send_request
    self.endheaders(body)
 (Logger.py|757)
[7] [Jun 13 11:06:22]   File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders
    self._send_output(message_body)
 (Logger.py|757)
[7] [Jun 13 11:06:22]   File "/usr/lib/python2.7/httplib.py", line 897, in _send_output
    self.send(msg)
 (Logger.py|757)
[7] [Jun 13 11:06:22]   File "/usr/lib/python2.7/httplib.py", line 859, in send
    self.connect()
 (Logger.py|757)
[7] [Jun 13 11:06:22]   File "/usr/lib/python2.7/httplib.py", line 1270, in connect
    HTTPConnection.connect(self)
 (Logger.py|757)
[7] [Jun 13 11:06:22]   File "/usr/lib/python2.7/httplib.py", line 836, in connect
    self.timeout, self.source_address)
 (Logger.py|757)
[7] [Jun 13 11:06:22]   File "/usr/lib/python2.7/socket.py", line 575, in create_connection
    raise err
 (Logger.py|757)
[7] [Jun 13 11:06:22]      ==>>> [Errno 111] Connection refused (HTTP.py|573)
[7] [Jun 13 11:06:22] Request to host u'opsi.hl.local' failed, retry: True, firstTryTime: 1560416782.15, now: 1560416782.15, retryTime: 5, connectTimeout: 30, socketTimeout: 0 (error(111, 'Connection refused')) (HTTP.py|577)
[7] [Jun 13 11:06:22] Request to u'opsi.hl.local' failed: [Errno 111] Connection refused (HTTP.py|595)
[7] [Jun 13 11:06:22] Waiting before retry... (HTTP.py|596)

Danach wird der Verbindungsaufbau noch ein paar mal wiederholt, bevor mit ERRNO 111 abgebrochen wird.

Was mich verwundert ist, dass oft ein u vor den ' steht. z.B. bei

Code: Alles auswählen

Value u'OpsiConfigserver' matched filter 'OpsiDepotserver', attribute 'type' (Backend.py|280)

Re: Produkt deinstallieren - [Errno 111] Verbindungsaufbau abgelehnt

Verfasst: 17 Jun 2019, 11:30
von SisterOfMercy
Have you already tried to set the rights on the depot server?
Also, re-registering the depot server might also fix a couple of things.

Re: Produkt deinstallieren - [Errno 111] Verbindungsaufbau abgelehnt

Verfasst: 17 Jun 2019, 12:36
von n.wenselowski
Hi,

ist der opsiconfd auf opsi.hl.local erreichbar?
Klappt es, wenn der opsiconfd auf diesem Host neu gestartet wird?
tklms hat geschrieben:Was mich verwundert ist, dass oft ein u vor den ' steht. z.B. bei

Code: Alles auswählen

Value u'OpsiConfigserver' matched filter 'OpsiDepotserver', attribute 'type' (Backend.py|280)
u'Text' bzw. u"Text" ist in Python die Auszeichnung für einen Unicode-String - dabei wird ein u dem String vorangestellt. Das ist kein Bug, sondern wird in Python 2 so angezeigt. Beim Wechsel auf Python 3 wird dieses u verschwinden, weil dort per Default mit Unicode gearbeitet wird.


Gruß

Niko

Re: Produkt deinstallieren - [Errno 111] Verbindungsaufbau abgelehnt

Verfasst: 18 Jun 2019, 10:39
von tklms
Rechte neu setzen im Depot habe ich schon getan. Auch ein Neustart des opsiconfd hat leider nichts gebracht.
ich habe auch schon versucht, das Depot neu zu registrieren, aber dabei ist der Server eingefroren und ich musste ihn auf einen Snapshot zurücksetzen.

Re: Produkt deinstallieren - [Errno 111] Verbindungsaufbau abgelehnt

Verfasst: 18 Jun 2019, 15:34
von wolfbardo
Bitte

Code: Alles auswählen

getent hosts $(hostname -f)
auf beiden Servern pruefen sowie die wechselseitige Namensaufloesung.

Weiterhin kann es sein, dass in den Depoteigenschaften falsche Werte eingetragen sind, also bitte pruefen.

Gruss
Bardo Wolf

Re: Produkt deinstallieren - [Errno 111] Verbindungsaufbau abgelehnt

Verfasst: 19 Jun 2019, 12:43
von n.wenselowski
tklms hat geschrieben:Rechte neu setzen im Depot habe ich schon getan. Auch ein Neustart des opsiconfd hat leider nichts gebracht.
ich habe auch schon versucht, das Depot neu zu registrieren, aber dabei ist der Server eingefroren und ich musste ihn auf einen Snapshot zurücksetzen.
Das klingt ja nach einem gerenellen Problem.
Irgendwelche Netzwerkgeräte dazwischen, die Verbindungen blocken könnten (Firewalls).
Grundsätzlich geht die Verbindung von Depot zu Configserver?

Ansonsten könnte es auch helfen mal in die opsiconfd-Logs auf dem Configserver zu schauen, ob vom Depot überhaupt irgendwas ankommt.
Evtl. temporär hier das Loglevel auf Level 8 hochdrehen.

Re: Produkt deinstallieren - [Errno 111] Verbindungsaufbau abgelehnt

Verfasst: 11 Jul 2019, 09:49
von tklms
Moin und danke für die Hilfe erstmal.
Installieren von Paketen geht, deswegen gehe ich davon aus, dass die Verbindung an sich funktioniert. Nur beim Deinstallieren klappt es nicht.
Hostname habe ich schon überprüft, der ist richtig gesetzt. Netzwerkgeräte sind keine dazwischen, der Depotserver und der configserver liege auf der selben Maschine.
LG

Re: Produkt deinstallieren - [Errno 111] Verbindungsaufbau abgelehnt

Verfasst: 22 Jul 2019, 16:01
von n.wenselowski
Und was sagen die Logs?