opsiclientd ohne GUI

slotty
Beiträge: 8
Registriert: 03 Nov 2015, 14:49

Re: opsiclientd ohne GUI

Beitrag von slotty »

Hallo miteinander,

wir haben hier ein ähnliches Problem. Der Rechner mit Win10 braucht eine gefühlte Ewigkeit bis der Anmeldebildschirm erscheint. Kontrolliert man anschließend die Dienste, so stellt man fest, dass der opsiclientd nicht läuft.

Dieses Phänomen haben wir auf zwei Rechnern der Firma Dell. Rechner von anderen Herstellern (bzw. virtuelle Rechner) stellen kein Problem dar.

Ist im Zusammenhang mit Dellhardware irgendetwas an Problemen in dieser Hinsicht bekannt ??

Gruß

Slotty
proland
Beiträge: 40
Registriert: 09 Dez 2013, 10:36

Re: opsiclientd ohne GUI

Beitrag von proland »

Also bei uns ist das eine HP Workstation. Aber selbes Fehlermuster, Anmeldung dauert ewig, opsi dienst nicht gestartet.

Aber ich werde die Installation demnächst nochmal testen (ich kann nicht genau sagen, wann das der Fall sein wird, sollte aber noch nächste Woche passieren).

Melde mich dann wieder
Vielen Dank erstmal

Gruß

Timo
slotty
Beiträge: 8
Registriert: 03 Nov 2015, 14:49

Re: opsiclientd ohne GUI

Beitrag von slotty »

Hallo,

nach ein wenig Stöbern im Forum habe ich festgestellt, dass das Problem in diversen Varianten genannt wird.
Bei uns hat nun folgende Lösung zunächst einmal weiter geholfen.
Der opsi-client wird ohne die Abhängigkeit vom dnscache installiert. Die dhcp Abhängigkeit bleibt bestehen.

Bisher konnte ich es noch nicht ausführlich testen, aber bislang ist zumindest das Startupverhalten deutlich besser und der opsidienst läuft auch.
Allerdings habe ich noch keine Verbindung zwischen Server und Client herstellen können. Wegen Zeitmangel habe ich das noch nicht weiter untersucht.

Vielleicht hilft das weiter.

Gruß

Slotty
slotty
Beiträge: 8
Registriert: 03 Nov 2015, 14:49

Re: opsiclientd ohne GUI

Beitrag von slotty »

Ich muss die frohe Botschaft meines vorangegangenen Posts leider wieder zurück ziehen.
Trotz entfernter DNSCACHE-Abhängigkeit startet der opsiclientd auf dem win10 Rechner nicht automatisch.
proland
Beiträge: 40
Registriert: 09 Dez 2013, 10:36

Re: opsiclientd ohne GUI

Beitrag von proland »

Wo genau hast du denn die DNSCache-Abhängigkeiten entfernt?

Okay also nur Zufall, dass es dann funktioniert hatte?!

Ich werde diese Woche wohl nochmal dazu kommen um einiges zu testen.
Melde mich dann wieder

Gruß
Timo
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: opsiclientd ohne GUI

Beitrag von n.wenselowski »

proland hat geschrieben:Wo genau hast du denn die DNSCache-Abhängigkeiten entfernt?
Geht mit dem aktuellen opsi-client-agent.

Um hier mal weiter zu kommen wäre für uns ein qualitativer Bugreport hilfreich, der es uns ermöglicht das ganze Verhalten auch mal bei uns nachzustellen.
Also welche Gegebenheiten / Schritte sind notwendig, damit der Fehler auftaucht?


Gruß

Niko

Code: Alles auswählen

import OPSI
proland
Beiträge: 40
Registriert: 09 Dez 2013, 10:36

Re: opsiclientd ohne GUI

Beitrag von proland »

Sorry für die verspätete Antwort. Ich konnte leider bisher nicht mehr an den Rechner.

Jetzt habe ich jedoch mal alle logs angeschaut und folgende Entdeckung gemacht...

In der opsi_loginblocker.txt steht folgendes wenn der Rechner hoch fährt:

Code: Alles auswählen

2016-02-24 16:34:00 [6] Registry value LoginBlockerLogLevel read, result 6

2016-02-24 16:34:00 [5] LoginBlockerLogLevel is: 6

2016-02-24 16:34:00 [6] Registry value LoginBlockerTimeoutConnect read, result 120

2016-02-24 16:34:00 [5] LoginBlockerTimeoutConnect is: 120

2016-02-24 16:34:00 [6] Check for ConnectionTimeoutPipe: \\.\pipe\opsitimeout

2016-02-24 16:34:00 [5] Trying to communicate with opsiclientd service through opsiclientd pipe

2016-02-24 16:34:00 [6] Opening communication pipe to opsiclientd: \\.\pipe\opsiclientd

2016-02-24 16:34:00 [3] Could not open opsiclientd pipe \\.\pipe\opsiclientd: 2

2016-02-24 16:34:10 [6] Opening communication pipe to opsiclientd: \\.\pipe\opsiclientd

2016-02-24 16:34:10 [3] Could not open opsiclientd pipe \\.\pipe\opsiclientd: 2

2016-02-24 16:34:20 [6] Opening communication pipe to opsiclientd: \\.\pipe\opsiclientd

2016-02-24 16:34:20 [6] Pipe to opsiclientd successfully opened

2016-02-24 16:34:20 [5] Writing '{"id": 1, "method": "getBlockLogin", "params": []}' to pipe

2016-02-24 16:34:20 [6] Reading from pipe

2016-02-24 16:34:20 [5] Read '{"error": null, "result": false, "id": 1}' from pipe

2016-02-24 16:34:20 [6] getJsonValue() value of 'error' is 'null'

2016-02-24 16:34:20 [6] getJsonValue() value of 'result' is 'false'

2016-02-24 16:34:20 [5] Not blocking!
Sieht sehr nach Rechteproblem aus (mMn).
Außerdem steht in der "opsi-client-agent.err" :

Code: Alles auswählen

V[1] [Jan 28 16:50:03:563] opsi-winst 4.11.3.11 started at >>28.01.2016 16:50:03
[1] [Jan 28 16:50:03:563] startmessage opsi-winst created at CentralForm.FormCreate: 28.01.2016 16:50:03
[1] [Jan 28 16:50:03:563] Loading skin from: c:\tmp\opsi\opsi-winst\winstskin
[1] [Jan 28 16:50:03:563] startmessage StartProgramModes and create log: 28.01.2016 16:50:03
[1] [Jan 28 16:50:03:569] 
[1] [Jan 28 16:50:03:569] ============ Version 4.11.3.11 WIN32 script "c:\tmp\opsi\setup.ins"
[1] [Jan 28 16:50:03:569]              start: 2016-01-28  16:50:03 
[1] [Jan 28 16:50:03:569]              on client named    "**************"
[1] [Jan 28 16:50:03:569]              loggedin user    "****"
[1] [Jan 28 16:50:03:570]              winst running as    "****"
[1] [Jan 28 16:50:03:570]              winst running with admin privileges
[1] [Jan 28 16:50:03:570]              winst running in standard script mode
[1] [Jan 28 16:50:03:570] executing: "c:\tmp\opsi\opsi-winst\winst32.exe"
[1] [Jan 28 16:50:03:570] system infos:
[1] [Jan 28 16:50:03:573] ***************  -  PC hardware address
[1] [Jan 28 16:50:03:573] *********  -  IP name 
[1] [Jan 28 16:50:03:573] 192.**********  -  IP address
[1] [Jan 28 16:50:03:573] DEU  -  System default locale 
[1] [Jan 28 16:50:03:573] MS Windowds 6.1 64 Bit
[1] [Jan 28 16:50:03:573] 
[1] [Jan 28 16:50:03:800] LogLevel was 6
[1] [Jan 28 16:50:03:800] LogLevel set to 7
[1] [Jan 28 16:50:03:836] LogLevel was 7
[1] [Jan 28 16:50:03:836] LogLevel set to 7
[1] [Jan 28 16:50:03:837] LogLevel was 7
[1] [Jan 28 16:50:03:837] LogLevel set to 7
[3] [Jan 28 16:50:03:860]       Error: service not initialized
[3] [Jan 28 16:50:03:860]       Error: no connection to service
[1] [Jan 28 16:50:03:863]       LogLevel was 7
[1] [Jan 28 16:50:03:863]       LogLevel set to 7
[3] [Jan 28 16:50:07:643]         Error: retrieveJSONObject --- opsi service problem ----> {"message":"Opsi authentication error: Forbidden: Backend authentication error: Backend authentication error: PAM authentication failed for user 'adminuser': ('Authentication failure', 7)","class":"OpsiAuthenticationError"}
[3] [Jan 28 16:50:09:282]         Error: retrieveJSONObject --- opsi service problem ----> {"message":"Opsi authentication error: Forbidden: Backend authentication error: Backend authentication error: PAM authentication failed for user 'adminuser': ('Authentication failure', 7)","class":"OpsiAuthenticationError"}
[4] [Jan 28 16:50:09:282]         opsi service version could not retrieved, perhaps no connection
[3] [Jan 28 16:50:09:283]         Error: no connection to service
[1] [Jan 28 16:50:09:286]       LogLevel was 7
[1] [Jan 28 16:50:09:286]       LogLevel set to 7
[1] [Jan 28 16:50:09:292]         LogLevel was 7
[1] [Jan 28 16:50:09:292]         LogLevel set to 7
[1] [Jan 28 16:50:15:429]         LogLevel was 7
[1] [Jan 28 16:50:15:429]         LogLevel set to 7
[1] [Jan 28 16:50:15:830]       LogLevel was 7
[1] [Jan 28 16:50:15:830]       LogLevel set to 7
[1] [Jan 28 16:50:15:842]       LogLevel was 7
[1] [Jan 28 16:50:15:842]       LogLevel set to 7
[1] [Jan 28 16:50:15:907]         LogLevel was 7
[1] [Jan 28 16:50:15:907]         LogLevel set to 7
[1] [Jan 28 16:50:15:982]         LogLevel was 7
[1] [Jan 28 16:50:15:982]         LogLevel set to 7
[1] [Jan 28 16:50:21:868]   LogLevel was 7
[1] [Jan 28 16:50:21:868]   LogLevel set to 7
[1] [Jan 28 16:50:21:883]   LogLevel was 7
[1] [Jan 28 16:50:21:883]   LogLevel set to 7
[4] [Jan 28 16:50:25:037]           Warning: Existing value has type ExpandString, we are about to write value of type String
[4] [Jan 28 16:50:27:871]     Warning: $OpsiClientdConf$ could not be saved back - will retry, error message: "Unable to create file "$OpsiClientdConf$""
[4] [Jan 28 16:50:27:971]     Warning: $OpsiClientdConf$ could not be saved back - will retry, error message: "Unable to create file "$OpsiClientdConf$""
[4] [Jan 28 16:50:28:071]     Warning: $OpsiClientdConf$ could not be saved back - will retry, error message: "Unable to create file "$OpsiClientdConf$""
[4] [Jan 28 16:50:28:171]     Warning: $OpsiClientdConf$ could not be saved back - will retry, error message: "Unable to create file "$OpsiClientdConf$""
[4] [Jan 28 16:50:28:271]     Error: $OpsiClientdConf$ could not be saved back - will not retry, error message: "Unable to create file "$OpsiClientdConf$""
[4] [Jan 28 16:50:28:744]           Warning: The file could not be deleted
[4] [Jan 28 16:50:28:745]           Warning: The file could not be deleted
[4] [Jan 28 16:50:28:745]           Warning: The file could not be deleted
[4] [Jan 28 16:50:28:745]           Warning: The file could not be deleted
[4] [Jan 28 16:50:28:745]         Warning: "Directory c:\tmp\opsi\opsi-winst" cannot be deleted, error 145 ("Das Verzeichnis ist nicht leer.<")
[4] [Jan 28 16:50:28:774]       Warning: "Directory c:\tmp\opsi" cannot be deleted, error 145 ("Das Verzeichnis ist nicht leer.<")
[1] [Jan 28 16:50:28:807] ___________________
[1] [Jan 28 16:50:28:807] script finished
[1] [Jan 28 16:50:28:807] 4 errors
[1] [Jan 28 16:50:28:807] 13 warnings
[1] [Jan 28 16:50:28:807] 
[1] [Jan 28 16:50:28:807] 
[1] [Jan 28 16:50:28:810] ============  opsi-winst Version 4.11.3.11 WIN32 is regularly exiting. Time 2016-01-28  16:50:28 .
So, dann habe ich noch vom deinstall eine .err datei:

Code: Alles auswählen

[1] [Jan 28 16:47:56:154] opsi-winst 4.11.3.11 started at >>28.01.2016 16:47:55
[1] [Jan 28 16:47:56:154] startmessage opsi-winst created at CentralForm.FormCreate: 28.01.2016 16:47:55
[1] [Jan 28 16:47:56:154] Loading skin from: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winstskin
[1] [Jan 28 16:47:56:154] startmessage StartProgramModes and create log: 28.01.2016 16:47:56
[1] [Jan 28 16:47:56:178] 
[1] [Jan 28 16:47:56:178] ============ Version 4.11.3.11 WIN32 script "C:\Program Files (x86)\opsi.org\opsi-client-agent\uninst\uninstall.ins"
[1] [Jan 28 16:47:56:178]              start: 2016-01-28  16:47:56 
[1] [Jan 28 16:47:56:178]              on client named    "***********"
[1] [Jan 28 16:47:56:178]              loggedin user    "***********"
[1] [Jan 28 16:47:56:179]              winst running as    "***********"
[1] [Jan 28 16:47:56:179]              winst running with admin privileges
[1] [Jan 28 16:47:56:179]              winst running in standard script mode
[1] [Jan 28 16:47:56:179] executing: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winst32.exe"
[1] [Jan 28 16:47:56:179] system infos:
[1] [Jan 28 16:47:56:182] ***********  -  PC hardware address
[1] [Jan 28 16:47:56:182] ***********  -  IP name 
[1] [Jan 28 16:47:56:182] 192.***********  -  IP address
[1] [Jan 28 16:47:56:182] DEU  -  System default locale 
[1] [Jan 28 16:47:56:182] MS Windowds 6.1 64 Bit
[1] [Jan 28 16:47:56:182] 
[4] [Jan 28 16:48:03:389]           Warning: The file could not be deleted
[4] [Jan 28 16:48:03:389]           Warning: The file could not be deleted
[4] [Jan 28 16:48:03:390]         Warning: "Directory C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst" cannot be deleted, error 145 ("Das Verzeichnis ist nicht leer.<")
[4] [Jan 28 16:48:03:625]       Warning: "Directory C:\Program Files (x86)\opsi.org\opsi-client-agent" cannot be deleted, error 145 ("Das Verzeichnis ist nicht leer.<")
[4] [Jan 28 16:48:03:626]           Warning: The file could not be deleted
[4] [Jan 28 16:48:03:627]         Warning: "Directory C:\opsi.org\log" cannot be deleted, error 145 ("Das Verzeichnis ist nicht leer.<")
[4] [Jan 28 16:48:03:631]       Warning: "Directory C:\opsi.org" cannot be deleted, error 145 ("Das Verzeichnis ist nicht leer.<")
[4] [Jan 28 16:48:03:652]         Warning: The file could not be deleted
[4] [Jan 28 16:48:03:652]         Warning: The file could not be deleted
[4] [Jan 28 16:48:03:653]       Warning: "Directory C:\tmp" cannot be deleted, error 145 ("Das Verzeichnis ist nicht leer.<")
[1] [Jan 28 16:48:03:660] ___________________
[1] [Jan 28 16:48:03:661] script finished
[1] [Jan 28 16:48:03:661] 0 errors
[1] [Jan 28 16:48:03:661] 10 warnings
[1] [Jan 28 16:48:03:661] 
[1] [Jan 28 16:48:03:661] 
[1] [Jan 28 16:48:03:662] ============  opsi-winst Version 4.11.3.11 WIN32 is regularly exiting. Time 2016-01-28  16:48:03 .
In diesem Ordner liegt außerdem noch eine "opsiclientd.cnf". Ich bin mir nicht sicher was die da sucht oder macht aber hier steht aufjedenfall folgendes drin:

Code: Alles auswählen

[req]
default_bits = 1024
encrypt_key = yes
distinguished_name = req_dn
x509_extensions = cert_type
prompt = no

[req_dn]
C = DE
ST = RP
L = Mainz
O = UIB
OU = -
CN = *********.procitec.de
emailAddress = info@uib.de

[cert_type]
nsCertType = server
Ich finde vorallem den deinstall.err ganz interessant. Bin aber noch zu keiner Schlussfolgerung gekommen.
Vielleicht hilft das ja auch slotty weiter ;)

Gruß
Timo
larsg
Beiträge: 283
Registriert: 16 Dez 2014, 18:06

Re: opsiclientd ohne GUI

Beitrag von larsg »

Wir hatten das Problem auf einem PC, wo der Dienst opsiclientd auf manuell gestellt war.
Nachdem der Dienst auf automatisch oder deaktiviert gestellt wurde, lief opsi wieder normal, oder der login wurde nicht mehr geblockt.

Dienst auf manuell stellen ist offenbar doch nicht ganz manuell.

Die Hintergründe haben wir nicht weiter erforscht.
Benutzeravatar
SisterOfMercy
Beiträge: 1522
Registriert: 22 Jun 2012, 19:18

Re: opsiclientd ohne GUI

Beitrag von SisterOfMercy »

Good call! There are also some windows services which fail to start even when set to manual.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: opsiclientd ohne GUI

Beitrag von n.wenselowski »

Hi,

was verbirgt sich hinter dem User?
[1] [Jan 28 16:50:03:570] winst running as "****"

Ich verweise nochmal hierauf:
n.wenselowski hat geschrieben:Um hier mal weiter zu kommen wäre für uns ein qualitativer Bugreport hilfreich, der es uns ermöglicht das ganze Verhalten auch mal bei uns nachzustellen.
Also welche Gegebenheiten / Schritte sind notwendig, damit der Fehler auftaucht?

Gruß

Niko

Code: Alles auswählen

import OPSI
Antworten