service_setup.cmd auf WinXP funktioniert nicht

Antworten
Udo017
Beiträge: 12
Registriert: 08 Aug 2013, 13:50

service_setup.cmd auf WinXP funktioniert nicht

Beitrag von Udo017 »

Hallo,

ich versuche ein Client mit Hilfe der service_setup.cmd einzurichten. Nach dem Verbinden mit dem Netzlaufwerk und starten der Datei werden 328 Dateien und nochmal eine kopiert, dann folgt die Abfrage von Service-URL (die richtig vorgegeben ist), Benutzer und Passwort. Nach der Eingabe beendet sich das Programm mit "Installation abgeschlosen". Es wird kein Reboot ausgeführt und auch nach manuellem Reboot wird der client-agent nicht ausgeführt.

Im Configed ist der Client zu sehen.

opsi-client-agent-log:

Code: Alles auswählen

.
.
.     
[6] [Aug 15 16:36:35:513]     ~~~~~~~ Start Sub ~~~~~~~  sub_sub_create_client
[5] [Aug 15 16:36:35:523]     
[5] [Aug 15 16:36:35:523]     If
[5] [Aug 15 16:36:35:523]       $OCD_config_service.url$ = ""   <<< result false
[5] [Aug 15 16:36:35:523]       ($OCD_config_service.url$ = "")   <<< result false
[5] [Aug 15 16:36:35:523]     Then
[5] [Aug 15 16:36:35:523]     EndIf
[5] [Aug 15 16:36:35:523]     comment: Connect to service.....
[6] [Aug 15 16:36:35:523]     Marked error number 0
[5] [Aug 15 16:36:35:553]     
[5] [Aug 15 16:36:35:553]     Execution of opsiservicecall_authenticated
[6] [Aug 15 16:36:35:553]          "method": "authenticated"
[3] [Aug 15 16:36:35:553]       Error: service not initialized
[3] [Aug 15 16:36:35:553]       Error: no connection to service
[5] [Aug 15 16:36:35:553]     
[5] [Aug 15 16:36:35:553]     If
[5] [Aug 15 16:36:35:553]       errorsOccuredSinceMark > 0   <<< result true
[5] [Aug 15 16:36:35:553]     Then
[5] [Aug 15 16:36:35:553]       
[5] [Aug 15 16:36:35:553]       Set  $INST_error$ = "true"
[6] [Aug 15 16:36:35:553]         The value of the variable "$INST_error$" is now: "true"
[5] [Aug 15 16:36:35:553]       comment: was not authenticated -> retry scripted login by default user/password
[5] [Aug 15 16:36:35:553]     
[5] [Aug 15 16:36:35:553]     Else
[5] [Aug 15 16:36:35:553]     EndIf
[5] [Aug 15 16:36:35:553]     
[5] [Aug 15 16:36:35:553]     If
[6] [Aug 15 16:36:35:553]           retrieving strings from $INST_ServiceResult$ [switch to loglevel 7 for debugging]
[7] [Aug 15 16:36:35:553]               
[6] [Aug 15 16:36:35:553]       effective list index 0 not in bounds 0, -1
[5] [Aug 15 16:36:35:553]       takeString(0,$INST_ServiceResult$) = "false"   <<< result false
[5] [Aug 15 16:36:35:553]       $INST_error$ = "true"   <<< result true
[5] [Aug 15 16:36:35:553]       ($INST_error$ = "true")   <<< result true
[5] [Aug 15 16:36:35:553]       (takeString(0,$INST_ServiceResult$) = "false") or ($INST_error$ = "true")   <<< result true
[5] [Aug 15 16:36:35:553]     Then
[5] [Aug 15 16:36:35:553]       comment: was not authenticated as admin-> retry scripted login by default user/password
[6] [Aug 15 16:36:35:563]       Marked error number 2
[5] [Aug 15 16:36:35:563]       
[5] [Aug 15 16:36:35:563]       Set  $INST_error$ = "false"
[6] [Aug 15 16:36:35:563]         The value of the variable "$INST_error$" is now: "false"
[1] [Aug 15 16:36:35:563]       LogLevel was 7
[1] [Aug 15 16:36:35:563]       LogLevel set to 7
[5] [Aug 15 16:36:35:563]       
[5] [Aug 15 16:36:35:563]       Execution of opsiservicecall_authenticated
[6] [Aug 15 16:36:35:563]            "method": "authenticated"
[6] [Aug 15 16:36:37:776]         JSON Bench for backend_info "params":[],"id":1} Start: 16:36:35:563 Time: 00:00:02:213
[3] [Aug 15 16:36:37:776]         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"}
[6] [Aug 15 16:36:39:639]         JSON Bench for getOpsiInformation_hash "params":[],"id":1} Start: 16:36:37:776 Time: 00:00:01:863
[3] [Aug 15 16:36:39:639]         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"}
[5] [Aug 15 16:36:39:639]         opsi Server Version : 
[4] [Aug 15 16:36:39:639]         opsi service version could not retrieved, perhaps no connection
[3] [Aug 15 16:36:39:639]         Error: no connection to service
[1] [Aug 15 16:36:39:649]       LogLevel was 7
[1] [Aug 15 16:36:39:649]       LogLevel set to 7
[5] [Aug 15 16:36:39:649]       
[5] [Aug 15 16:36:39:649]       If
[5] [Aug 15 16:36:39:659]         errorsOccuredSinceMark > 0   <<< result true
[5] [Aug 15 16:36:39:659]       Then
[5] [Aug 15 16:36:39:659]         
[5] [Aug 15 16:36:39:659]         Set  $INST_error$ = "true"
[6] [Aug 15 16:36:39:659]           The value of the variable "$INST_error$" is now: "true"
[5] [Aug 15 16:36:39:659]         comment: scripted login by default user/password failed -> retry interactive
[5] [Aug 15 16:36:39:659]       
[5] [Aug 15 16:36:39:659]       Else
[5] [Aug 15 16:36:39:659]         
[5] [Aug 15 16:36:39:659]         If
[5] [Aug 15 16:36:39:659]         Then
[5] [Aug 15 16:36:39:659]         EndIf
[5] [Aug 15 16:36:39:659]       EndIf
[5] [Aug 15 16:36:39:659]       
[5] [Aug 15 16:36:39:659]       If
[6] [Aug 15 16:36:39:659]             retrieving strings from $INST_ServiceResult$ [switch to loglevel 7 for debugging]
[7] [Aug 15 16:36:39:659]                 
[6] [Aug 15 16:36:39:659]         effective list index 0 not in bounds 0, -1
[5] [Aug 15 16:36:39:659]         takeString(0,$INST_ServiceResult$) = "false"   <<< result false
[5] [Aug 15 16:36:39:659]         $INST_error$ = "true"   <<< result true
[5] [Aug 15 16:36:39:659]         ($INST_error$ = "true")   <<< result true
[5] [Aug 15 16:36:39:659]         (takeString(0,$INST_ServiceResult$) = "false") or ($INST_error$ = "true")   <<< result true
[5] [Aug 15 16:36:39:659]       Then
[5] [Aug 15 16:36:39:669]         
[5] [Aug 15 16:36:39:669]         Set  $INST_error$ = "false"
[6] [Aug 15 16:36:39:669]           The value of the variable "$INST_error$" is now: "false"
[1] [Aug 15 16:36:39:669]         LogLevel was 7
[1] [Aug 15 16:36:39:669]         LogLevel set to 7
[5] [Aug 15 16:36:39:689]         
[5] [Aug 15 16:36:39:689]         Execution of opsiservicecall_authenticated
[6] [Aug 15 16:36:39:689]              "method": "authenticated"
[6] [Aug 15 16:36:50:425]           JSON Bench for backend_info "params":[],"id":1} Start: 16:36:50:164 Time: 00:00:00:261
[5] [Aug 15 16:36:50:425]           opsi Server Version : 4.0.3.1
[6] [Aug 15 16:36:50:445]           JSON service request https://192.168.2.1:4447/rpc backend_info
[6] [Aug 15 16:36:50:675]           JSON Bench for backend_info "params":[],"id":1} Start: 16:36:50:445 Time: 00:00:00:230
[6] [Aug 15 16:36:50:675]           JSON service request https://192.168.2.1:4447/rpc authenticated
[6] [Aug 15 16:36:50:735]           JSON Bench for authenticated "params":[],"id":1} Start: 16:36:50:675 Time: 00:00:00:060
[6] [Aug 15 16:36:50:735]           JSON result: true
[1] [Aug 15 16:36:50:755]         LogLevel was 7
[1] [Aug 15 16:36:50:755]         LogLevel set to 7
[6] [Aug 15 16:36:50:765]         Marked error number 4
[5] [Aug 15 16:36:50:765]         
[5] [Aug 15 16:36:50:765]         Set  $INST_ServiceResult$ = getReturnListFromSection('opsiservicecall_UserIsAdmin')
[5] [Aug 15 16:36:50:785]         
[5] [Aug 15 16:36:50:785]         Execution of opsiservicecall_UserIsAdmin
[6] [Aug 15 16:36:50:785]              "method": "userIsAdmin"
[6] [Aug 15 16:36:50:785]           Calling opsi service at https://192.168.2.1:4447
[6] [Aug 15 16:36:50:785]           JSON service request https://192.168.2.1:4447/rpc userIsAdmin
[6] [Aug 15 16:36:50:865]           JSON Bench for userIsAdmin "params":[],"id":1} Start: 16:36:50:785 Time: 00:00:00:080
[6] [Aug 15 16:36:50:865]           JSON result: true
[6] [Aug 15 16:36:50:865]             retrieving strings from getReturnListFromSection [switch to loglevel 7 for debugging]
[7] [Aug 15 16:36:50:865]                 (string   0)true
[7] [Aug 15 16:36:50:865]                 
[5] [Aug 15 16:36:50:865]         
[5] [Aug 15 16:36:50:865]         Set  $INST_ServiceResult$ = createStringList("true")
[6] [Aug 15 16:36:50:865]             retrieving strings from createStringList [switch to loglevel 7 for debugging]
[7] [Aug 15 16:36:50:865]                 (string   0)true
[7] [Aug 15 16:36:50:865]                 
[5] [Aug 15 16:36:50:865]         
[5] [Aug 15 16:36:50:865]         If
[6] [Aug 15 16:36:50:865]               retrieving strings from $INST_ServiceResult$ [switch to loglevel 7 for debugging]
[7] [Aug 15 16:36:50:865]                   (string   0)true
[7] [Aug 15 16:36:50:865]                   
[5] [Aug 15 16:36:50:865]           takeString(0,$INST_ServiceResult$) = "false"   <<< result false
[5] [Aug 15 16:36:50:865]           $INST_error$ = "true"   <<< result false
[5] [Aug 15 16:36:50:865]           ($INST_error$ = "true")   <<< result false
[5] [Aug 15 16:36:50:865]           (takeString(0,$INST_ServiceResult$) = "false") or ($INST_error$ = "true")   <<< result false
[5] [Aug 15 16:36:50:865]         Then
[5] [Aug 15 16:36:50:865]         EndIf
[5] [Aug 15 16:36:50:865]       
[5] [Aug 15 16:36:50:865]       Else
[5] [Aug 15 16:36:50:865]       EndIf
[5] [Aug 15 16:36:50:865]     EndIf
[5] [Aug 15 16:36:50:865]     comment: logged in as admin
[5] [Aug 15 16:36:50:865]     comment: get MAC and IP for Service connection
[6] [Aug 15 16:36:50:875]     
[6] [Aug 15 16:36:50:875]     ~~~~~~~ Start Sub ~~~~~~~  sub_sub_try_to_get_my_mac
[5] [Aug 15 16:36:50:875]     
[5] [Aug 15 16:36:50:875]     Set  $INST_ShortServiceUrl$ = takestring(1, splitString($OCD_config_service.url$,"//"))
[6] [Aug 15 16:36:50:875]         retrieving strings from splitString [switch to loglevel 7 for debugging]
[7] [Aug 15 16:36:50:875]             (string   0)https:
[7] [Aug 15 16:36:50:875]             (string   1)192.168.2.1:4447
[7] [Aug 15 16:36:50:875]             
[6] [Aug 15 16:36:50:875]       The value of the variable "$INST_ShortServiceUrl$" is now: "192.168.2.1:4447"
[5] [Aug 15 16:36:50:875]     
[5] [Aug 15 16:36:50:875]     Set  $INST_ConfigServerIP$ = takestring(0, splitString($INST_ShortServiceUrl$,":"))
[6] [Aug 15 16:36:50:875]         retrieving strings from splitString [switch to loglevel 7 for debugging]
[7] [Aug 15 16:36:50:875]             (string   0)192.168.2.1
[7] [Aug 15 16:36:50:875]             (string   1)4447
[7] [Aug 15 16:36:50:875]             
[6] [Aug 15 16:36:50:875]       The value of the variable "$INST_ConfigServerIP$" is now: "192.168.2.1"
[5] [Aug 15 16:36:50:875]     
[5] [Aug 15 16:36:50:875]     Set  $INST_ConfigServerPort$ = takestring(1, splitString($INST_ShortServiceUrl$,":"))
[6] [Aug 15 16:36:50:875]         retrieving strings from splitString [switch to loglevel 7 for debugging]
[7] [Aug 15 16:36:50:875]             (string   0)192.168.2.1
[7] [Aug 15 16:36:50:875]             (string   1)4447
[7] [Aug 15 16:36:50:875]             
[6] [Aug 15 16:36:50:875]       The value of the variable "$INST_ConfigServerPort$" is now: "4447"
[5] [Aug 15 16:36:50:875]     comment: we need a IP-Number and at this time $INST_ConfigServerIP$ may also be a IP-Name
[5] [Aug 15 16:36:50:875]     
[5] [Aug 15 16:36:50:875]     If
[5] [Aug 15 16:36:50:875]       CompareDotSeparatedNumbers("4.11.3.6","4.11.3.2") >= "0"   <<< result true
[5] [Aug 15 16:36:50:875]     Then
[5] [Aug 15 16:36:50:875]       
[5] [Aug 15 16:36:50:875]       Set  $INST_ConfigServerIP$ = GetIpByName($INST_ConfigServerIP$)
[6] [Aug 15 16:36:50:875]         The value of the variable "$INST_ConfigServerIP$" is now: "192.168.2.1"
[5] [Aug 15 16:36:50:875]     
[5] [Aug 15 16:36:50:875]     Else
[5] [Aug 15 16:36:50:875]       
[5] [Aug 15 16:36:50:875]       If
[5] [Aug 15 16:36:50:875]       Then
[5] [Aug 15 16:36:50:875]       
[5] [Aug 15 16:36:50:875]       Else
[5] [Aug 15 16:36:50:875]       EndIf
[5] [Aug 15 16:36:50:875]     EndIf
[5] [Aug 15 16:36:50:875]     
[5] [Aug 15 16:36:50:875]     If
[5] [Aug 15 16:36:50:875]       $INST_ConfigServerIP$ = ""   <<< result false
[5] [Aug 15 16:36:50:875]       not ($INST_ConfigServerIP$ = "")   <<< result true
[5] [Aug 15 16:36:50:875]     Then
[5] [Aug 15 16:36:50:875]       
[5] [Aug 15 16:36:50:875]       Set  $INST_ShortServiceUrl$ = $INST_ConfigServerIP$+":"+$INST_ConfigServerPort$
[6] [Aug 15 16:36:50:875]         The value of the variable "$INST_ShortServiceUrl$" is now: "192.168.2.1:4447"
[5] [Aug 15 16:36:50:875]       comment: let us try to guess the ip number by getbestinterface windows api ...
[5] [Aug 15 16:36:50:875]       
[5] [Aug 15 16:36:50:875]       If
[5] [Aug 15 16:36:50:875]         CompareDotSeparatedNumbers("4.11.3.6","4.11.3.2") >= "0"   <<< result true
[5] [Aug 15 16:36:50:875]       Then
[5] [Aug 15 16:36:50:875]         
[5] [Aug 15 16:36:50:875]         Set  $INST_IPAddress$ = GetMyIpByTarget($INST_ConfigServerIP$)
[6] [Aug 15 16:36:50:875]           The value of the variable "$INST_IPAddress$" is now: "192.168.2.66"
[5] [Aug 15 16:36:50:875]       
[5] [Aug 15 16:36:50:875]       Else
[5] [Aug 15 16:36:50:875]       EndIf
[5] [Aug 15 16:36:50:875]       
[5] [Aug 15 16:36:50:875]       If
[5] [Aug 15 16:36:50:875]         $INST_IPAddress$ = ""   <<< result false
[5] [Aug 15 16:36:50:875]       Then
[5] [Aug 15 16:36:50:875]       
[5] [Aug 15 16:36:50:875]       Else
[5] [Aug 15 16:36:50:875]         
[5] [Aug 15 16:36:50:875]         Set  $INST_ServiceResult$ = getOutStreamFromSection('DosInAnIcon_WMI_running')
[5] [Aug 15 16:36:50:885]           
[5] [Aug 15 16:36:50:885]           3 DosInAnIcon_WMI_running
[6] [Aug 15 16:36:50:885]             c:\opsi.org\tmp\_winstbat_1.bat saved back
[6] [Aug 15 16:36:50:885]             Executing "cmd.exe" /C "c:\opsi.org\tmp\_winstbat_1.bat"
[6] [Aug 15 16:36:50:965]             ExitCode 0
[6] [Aug 15 16:36:50:965]                         
[6] [Aug 15 16:36:50:965]                         output:
[6] [Aug 15 16:36:50:965]                         --------------
[6] [Aug 15 16:36:50:965]                         
[6] [Aug 15 16:36:50:965]                         SERVICE_NAME: Winmgmt
[6] [Aug 15 16:36:50:965]                                 TYPE               : 20  WIN32_SHARE_PROCESS 
[6] [Aug 15 16:36:50:965]                                 STATE              : 4  RUNNING 
[6] [Aug 15 16:36:50:965]                                                         (STOPPABLE,PAUSABLE,ACCEPTS_SHUTDOWN)
[6] [Aug 15 16:36:50:965]                                 WIN32_EXIT_CODE    : 0	(0x0)
[6] [Aug 15 16:36:50:965]                                 SERVICE_EXIT_CODE  : 0	(0x0)
[6] [Aug 15 16:36:50:965]                                 CHECKPOINT         : 0x0
[6] [Aug 15 16:36:50:965]                                 WAIT_HINT          : 0x0
[6] [Aug 15 16:36:50:965]             
[6] [Aug 15 16:36:50:975]             Delete "c:\opsi.org\tmp\_winstbat_*"
[6] [Aug 15 16:36:50:975]               Search "c:\opsi.org\tmp\"
[6] [Aug 15 16:36:50:975]               File "c:\opsi.org\tmp\_winstbat_1.bat"
[6] [Aug 15 16:36:50:975]                 The file has been deleted
[6] [Aug 15 16:36:50:975]             retrieving strings from getOutStreamFromSection [switch to loglevel 7 for debugging]
[7] [Aug 15 16:36:50:975]                 (string   0)
[7] [Aug 15 16:36:50:975]                 (string   1)SERVICE_NAME: Winmgmt
[7] [Aug 15 16:36:50:975]                 (string   2)        TYPE               : 20  WIN32_SHARE_PROCESS 
[7] [Aug 15 16:36:50:975]                 (string   3)        STATE              : 4  RUNNING 
[7] [Aug 15 16:36:50:975]                 (string   4)                                (STOPPABLE,PAUSABLE,ACCEPTS_SHUTDOWN)
[7] [Aug 15 16:36:50:975]                 (string   5)        WIN32_EXIT_CODE    : 0	(0x0)
[7] [Aug 15 16:36:50:975]                 (string   6)        SERVICE_EXIT_CODE  : 0	(0x0)
[7] [Aug 15 16:36:50:975]                 (string   7)        CHECKPOINT         : 0x0
[7] [Aug 15 16:36:50:975]                 (string   8)        WAIT_HINT          : 0x0
[7] [Aug 15 16:36:50:975]                 
[5] [Aug 15 16:36:50:975]         
[5] [Aug 15 16:36:50:975]         If
[6] [Aug 15 16:36:50:985]               retrieving strings from $INST_ServiceResult$ [switch to loglevel 7 for debugging]
[7] [Aug 15 16:36:50:985]                   (string   0)
[7] [Aug 15 16:36:50:985]                   (string   1)SERVICE_NAME: Winmgmt
[7] [Aug 15 16:36:50:985]                   (string   2)        TYPE               : 20  WIN32_SHARE_PROCESS 
[7] [Aug 15 16:36:50:985]                   (string   3)        STATE              : 4  RUNNING 
[7] [Aug 15 16:36:50:985]                   (string   4)                                (STOPPABLE,PAUSABLE,ACCEPTS_SHUTDOWN)
[7] [Aug 15 16:36:50:985]                   (string   5)        WIN32_EXIT_CODE    : 0	(0x0)
[7] [Aug 15 16:36:50:985]                   (string   6)        SERVICE_EXIT_CODE  : 0	(0x0)
[7] [Aug 15 16:36:50:985]                   (string   7)        CHECKPOINT         : 0x0
[7] [Aug 15 16:36:50:985]                   (string   8)        WAIT_HINT          : 0x0
[7] [Aug 15 16:36:50:985]                   
[5] [Aug 15 16:36:50:985]           "" = takeFirstStringContaining($INST_ServiceResult$,"RUNNING")   <<< result false
[5] [Aug 15 16:36:50:985]           GetMsVersionInfo >= "5.1"   <<< result true
[5] [Aug 15 16:36:50:985]           (GetMsVersionInfo >= "5.1")   <<< result true
[5] [Aug 15 16:36:50:985]           ("" = takeFirstStringContaining($INST_ServiceResult$,"RUNNING")) and (GetMsVersionInfo >= "5.1")   <<< result false
[5] [Aug 15 16:36:50:985]         Then
[5] [Aug 15 16:36:50:985]         
[5] [Aug 15 16:36:50:985]         Else
[5] [Aug 15 16:36:50:985]           comment: WMI is running or we are at win2k and we only hope that it is running
[5] [Aug 15 16:36:50:985]           
[5] [Aug 15 16:36:50:985]           Set  $INST_ServiceResult$ = getOutStreamFromSection('DosInAnIcon_getMac_by_exe')
[5] [Aug 15 16:36:50:985]             
[5] [Aug 15 16:36:50:985]             3 DosInAnIcon_getMac_by_exe
[6] [Aug 15 16:36:50:985]               c:\opsi.org\tmp\_winstbat_2.bat saved back
[6] [Aug 15 16:36:50:985]               Executing "cmd.exe" /C "c:\opsi.org\tmp\_winstbat_2.bat"
[6] [Aug 15 16:36:51:436]               ExitCode 0
[6] [Aug 15 16:36:51:436]                           
[6] [Aug 15 16:36:51:436]                           output:
[6] [Aug 15 16:36:51:436]                           --------------
[6] [Aug 15 16:36:51:436]                           192.168.2.66 00:11:43:6C:B3:D7
[6] [Aug 15 16:36:51:436]                           0.0.0.0 00:16:6F:2A:F2:CE
[6] [Aug 15 16:36:51:436]               
[6] [Aug 15 16:36:51:436]               Delete "c:\opsi.org\tmp\_winstbat_*"
[6] [Aug 15 16:36:51:436]                 Search "c:\opsi.org\tmp\"
[6] [Aug 15 16:36:51:436]                 File "c:\opsi.org\tmp\_winstbat_2.bat"
[6] [Aug 15 16:36:51:436]                   The file has been deleted
[6] [Aug 15 16:36:51:436]               retrieving strings from getOutStreamFromSection [switch to loglevel 7 for debugging]
[7] [Aug 15 16:36:51:436]                   (string   0)192.168.2.66 00:11:43:6C:B3:D7
[7] [Aug 15 16:36:51:436]                   (string   1)0.0.0.0 00:16:6F:2A:F2:CE
[7] [Aug 15 16:36:51:436]                   
[5] [Aug 15 16:36:51:436]           
[5] [Aug 15 16:36:51:436]           Set  $INST_MAC$ = lower(takestring(1, splitStringOnWhiteSpace(takeFirstStringContaining($INST_ServiceResult$,$INST_IPAddress$))))
[6] [Aug 15 16:36:51:446]               retrieving strings from $INST_ServiceResult$ [switch to loglevel 7 for debugging]
[7] [Aug 15 16:36:51:446]                   (string   0)192.168.2.66 00:11:43:6C:B3:D7
[7] [Aug 15 16:36:51:446]                   (string   1)0.0.0.0 00:16:6F:2A:F2:CE
[7] [Aug 15 16:36:51:446]                   
[6] [Aug 15 16:36:51:446]               retrieving strings from splitStringOnWhiteSpace [switch to loglevel 7 for debugging]
[7] [Aug 15 16:36:51:446]                   (string   0)192.168.2.66
[7] [Aug 15 16:36:51:446]                   (string   1)00:11:43:6C:B3:D7
[7] [Aug 15 16:36:51:446]                   
[6] [Aug 15 16:36:51:446]             The value of the variable "$INST_MAC$" is now: "00:11:43:6c:b3:d7"
[5] [Aug 15 16:36:51:446]           
[5] [Aug 15 16:36:51:446]           If
[5] [Aug 15 16:36:51:446]             $INST_MAC$ = ""   <<< result false
[5] [Aug 15 16:36:51:446]           Then
[5] [Aug 15 16:36:51:446]           EndIf
[5] [Aug 15 16:36:51:446]         EndIf
[5] [Aug 15 16:36:51:446]       EndIf
[5] [Aug 15 16:36:51:446]     EndIf
[6] [Aug 15 16:36:51:446]     
[6] [Aug 15 16:36:51:446]     ~~~~~~~ End Sub   ~~~~~~~  sub_sub_try_to_get_my_mac
[6] [Aug 15 16:36:51:446]     
[5] [Aug 15 16:36:51:446]     
[5] [Aug 15 16:36:51:446]     If
[5] [Aug 15 16:36:51:446]       $INST_DnsDomainName$ = ""   <<< result false
[5] [Aug 15 16:36:51:446]       ($INST_DnsDomainName$ = "")   <<< result false
[5] [Aug 15 16:36:51:446]     Then
[5] [Aug 15 16:36:51:446]     EndIf
[5] [Aug 15 16:36:51:456]     comment: *** does the client exist? ***
[5] [Aug 15 16:36:51:466]     
[5] [Aug 15 16:36:51:466]     Set  $INST_pcname$ = lower($INST_pcname$)
[6] [Aug 15 16:36:51:466]       The value of the variable "$INST_pcname$" is now: "laptop"
[5] [Aug 15 16:36:51:476]     
[5] [Aug 15 16:36:51:476]     Set  $INST_ClientId$ = $INST_pcname$ + "." + $INST_DnsDomainName$
[6] [Aug 15 16:36:51:476]       The value of the variable "$INST_ClientId$" is now: "laptop.xxx.de"
[5] [Aug 15 16:36:51:476]     
[5] [Aug 15 16:36:51:476]     If
[5] [Aug 15 16:36:51:476]       $SHI_pckey$ = ""   <<< result false
[5] [Aug 15 16:36:51:476]       $SHI_pckey$ = "#@PCKEY#"   <<< result true
[5] [Aug 15 16:36:51:476]       ($SHI_pckey$ = "#@PCKEY#")   <<< result true
[5] [Aug 15 16:36:51:476]       ($SHI_pckey$ = "") or ($SHI_pckey$ = "#@PCKEY#")   <<< result true
[5] [Aug 15 16:36:51:476]       (($SHI_pckey$ = "") or ($SHI_pckey$ = "#@PCKEY#"))   <<< result true
[5] [Aug 15 16:36:51:476]     Then
[1] [Aug 15 16:36:51:496]       LogLevel was 7
[1] [Aug 15 16:36:51:496]       LogLevel set to 7
[5] [Aug 15 16:36:51:506]       
[5] [Aug 15 16:36:51:506]       Set  $SHI_pckey$ = createNewOpsiHostKey
[6] [Aug 15 16:36:51:506]         The value of the variable "$SHI_pckey$" is now: "349b8a9a271a87f97a50eee409d04dcc"
[1] [Aug 15 16:36:51:516]       LogLevel was 7
[1] [Aug 15 16:36:51:516]       LogLevel set to 7
[5] [Aug 15 16:36:51:516]     EndIf
[5] [Aug 15 16:36:51:516]     
[5] [Aug 15 16:36:51:516]     If
[5] [Aug 15 16:36:51:526]       
[5] [Aug 15 16:36:51:526]       Execution of opsiservicecall_host_getIdents_for_clientId
[6] [Aug 15 16:36:51:526]            "method": "host_getIdents"
[6] [Aug 15 16:36:51:526]         Calling opsi service at https://192.168.2.1:4447
[6] [Aug 15 16:36:51:526]         JSON service request https://192.168.2.1:4447/rpc host_getIdents
[6] [Aug 15 16:36:51:606]         JSON Bench for host_getIdents "params":["[]",{"id":"laptop.xxx.de"}],"id":1} Start: 16:36:51:526 Time: 00:00:00:080
[6] [Aug 15 16:36:51:606]         JSON result: []
[6] [Aug 15 16:36:51:606]           retrieving strings from getReturnListFromSection [switch to loglevel 7 for debugging]
[7] [Aug 15 16:36:51:606]               (string   0)[]
[7] [Aug 15 16:36:51:606]               
[5] [Aug 15 16:36:51:606]       "" = takeFirstStringContaining(getReturnListFromSection('opsiservicecall_host_getIdents_for_clientId'), $INST_ClientId$)   <<< result true
[5] [Aug 15 16:36:51:606]       ("" = takeFirstStringContaining(getReturnListFromSection('opsiservicecall_host_getIdents_for_clientId'), $INST_ClientId$))   <<< result true
[5] [Aug 15 16:36:51:606]     Then
[5] [Aug 15 16:36:51:616]       comment: *** Create client ***
[5] [Aug 15 16:36:51:626]       
[5] [Aug 15 16:36:51:626]       Set  $INST_ServiceResult$ = getReturnListFromSection('opsiservicecall_createClient')
[5] [Aug 15 16:36:51:636]       
[5] [Aug 15 16:36:51:636]       Execution of opsiservicecall_createClient
[6] [Aug 15 16:36:51:636]            "method": "host_createOpsiClient"
[6] [Aug 15 16:36:51:636]         Calling opsi service at https://192.168.2.1:4447
[6] [Aug 15 16:36:51:636]         JSON service request https://192.168.2.1:4447/rpc host_createOpsiClient
[6] [Aug 15 16:36:51:697]         JSON Bench for host_createOpsiClient "params":["laptop.xxx.de","349b8a9a271a87f97a5 Start: 16:36:51:636 Time: 00:00:00:061
[6] [Aug 15 16:36:51:697]         JSON result: []
[6] [Aug 15 16:36:51:697]           retrieving strings from getReturnListFromSection [switch to loglevel 7 for debugging]
[7] [Aug 15 16:36:51:697]               (string   0)[]
[7] [Aug 15 16:36:51:697]               
[5] [Aug 15 16:36:51:697]     
[5] [Aug 15 16:36:51:697]     Else
[5] [Aug 15 16:36:51:707]     EndIf
[5] [Aug 15 16:36:51:717]     
[5] [Aug 15 16:36:51:717]     Set  $INST_ServiceResult$ = getReturnListFromSection('opsiservicecall_getNetworkconfig_hash')
[5] [Aug 15 16:36:51:727]     
[5] [Aug 15 16:36:51:727]     Execution of opsiservicecall_getNetworkconfig_hash
[6] [Aug 15 16:36:51:727]          "method": "getNetworkConfig_hash"
[6] [Aug 15 16:36:51:727]       Calling opsi service at https://192.168.2.1:4447
[6] [Aug 15 16:36:51:727]       JSON service request https://192.168.2.1:4447/rpc getNetworkConfig_hash
[6] [Aug 15 16:36:51:877]       JSON Bench for getNetworkConfig_hash "params":["laptop.xxx.de"],"id":1} Start: 16:36:51:727 Time: 00:00:00:150
[6] [Aug 15 16:36:51:877]       JSON result: winDomain=xxx.DE, winDomain=xxx.DE, nextBootServerType=service, utilsUrl=smb://srv01.xxx.de/opsi_depot, opsiServer=srv01.xxx.de, utilsDrive=p:, depotDrive=p:, depotUrl=smb://srv01.xxx.de/opsi_depot, configUrl=smb://srv01.xxx.de/opsi_depot, depotId=srv01.xxx.de, configDrive=p:, nextBootServiceURL=https://192.168.2.1:4447/rpc
[6] [Aug 15 16:36:51:877]         retrieving strings from getReturnListFromSection [switch to loglevel 7 for debugging]
[7] [Aug 15 16:36:51:877]             (string   0)winDomain=xxx.DE
[7] [Aug 15 16:36:51:877]             (string   1)nextBootServerType=service
[7] [Aug 15 16:36:51:877]             (string   2)utilsUrl=smb://srv01.xxx.de/opsi_depot
[7] [Aug 15 16:36:51:877]             (string   3)opsiServer=srv01.xxx.de
[7] [Aug 15 16:36:51:877]             (string   4)utilsDrive=p:
[7] [Aug 15 16:36:51:877]             (string   5)depotDrive=p:
[7] [Aug 15 16:36:51:877]             (string   6)depotUrl=smb://srv01.xxx.de/opsi_depot
[7] [Aug 15 16:36:51:877]             (string   7)configUrl=smb://srv01.xxx.de/opsi_depot
[7] [Aug 15 16:36:51:877]             (string   8)depotId=srv01.xxx.de
[7] [Aug 15 16:36:51:877]             (string   9)configDrive=p:
[7] [Aug 15 16:36:51:877]             (string  10)nextBootServiceURL=https://192.168.2.1:4447/rpc
[7] [Aug 15 16:36:51:877]             
[5] [Aug 15 16:36:51:897]     
[5] [Aug 15 16:36:51:897]     Set  $OCD_config_service.url$ = takestring(1, splitString(takeFirstStringContaining($INST_ServiceResult$,"nextBootServiceURL"), '='))
[6] [Aug 15 16:36:51:897]         retrieving strings from $INST_ServiceResult$ [switch to loglevel 7 for debugging]
[7] [Aug 15 16:36:51:897]             (string   0)winDomain=xxx.DE
[7] [Aug 15 16:36:51:897]             (string   1)nextBootServerType=service
[7] [Aug 15 16:36:51:897]             (string   2)utilsUrl=smb://srv01.xxx.de/opsi_depot
[7] [Aug 15 16:36:51:897]             (string   3)opsiServer=srv01.xxx.de
[7] [Aug 15 16:36:51:897]             (string   4)utilsDrive=p:
[7] [Aug 15 16:36:51:897]             (string   5)depotDrive=p:
[7] [Aug 15 16:36:51:897]             (string   6)depotUrl=smb://srv01.xxx.de/opsi_depot
[7] [Aug 15 16:36:51:897]             (string   7)configUrl=smb://srv01.xxx.de/opsi_depot
[7] [Aug 15 16:36:51:897]             (string   8)depotId=srv01.xxx.de
[7] [Aug 15 16:36:51:897]             (string   9)configDrive=p:
[7] [Aug 15 16:36:51:897]             (string  10)nextBootServiceURL=https://192.168.2.1:4447/rpc
[7] [Aug 15 16:36:51:897]             
[6] [Aug 15 16:36:51:897]         retrieving strings from splitString [switch to loglevel 7 for debugging]
[7] [Aug 15 16:36:51:897]             (string   0)nextBootServiceURL
[7] [Aug 15 16:36:51:897]             (string   1)https://192.168.2.1:4447/rpc
[7] [Aug 15 16:36:51:897]             
[6] [Aug 15 16:36:51:897]       The value of the variable "$OCD_config_service.url$" is now: "https://192.168.2.1:4447/rpc"
[5] [Aug 15 16:36:51:897]     
[5] [Aug 15 16:36:51:897]     If
[5] [Aug 15 16:36:51:897]       $OCD_config_service.url$ = ""   <<< result false
[5] [Aug 15 16:36:51:897]     Then
[5] [Aug 15 16:36:51:907]     EndIf
[5] [Aug 15 16:36:51:917]     
[5] [Aug 15 16:36:51:917]     Set  $INST_ServiceResult$ = getReturnListFromSection('opsiservicecall_close_session')
[5] [Aug 15 16:36:51:927]     
[5] [Aug 15 16:36:51:927]     Execution of opsiservicecall_close_session
[6] [Aug 15 16:36:51:937]          "method": "backend_exit"
[6] [Aug 15 16:36:51:937]       Calling opsi service at https://192.168.2.1:4447
[6] [Aug 15 16:36:51:937]       JSON service request https://192.168.2.1:4447/rpc backend_exit
[6] [Aug 15 16:36:51:997]       JSON Bench for backend_exit "params":[],"id":1} Start: 16:36:51:937 Time: 00:00:00:060
[6] [Aug 15 16:36:51:997]       JSON result: 
[6] [Aug 15 16:36:51:997]         retrieving strings from getReturnListFromSection [switch to loglevel 7 for debugging]
[7] [Aug 15 16:36:51:997]             (string   0)
[7] [Aug 15 16:36:51:997]             
[5] [Aug 15 16:36:52:017]     comment: after creation use host/key autheticated service
[6] [Aug 15 16:36:52:037]     Marked error number 4
[1] [Aug 15 16:36:52:047]     LogLevel was 7
[1] [Aug 15 16:36:52:047]     LogLevel set to 7
[5] [Aug 15 16:36:52:057]     
[5] [Aug 15 16:36:52:057]     Execution of opsiservicecall_authenticated
[4] [Aug 15 16:36:52:057]       Warning: Existing service connection will be reopend. This may cause critical errors. Do not do this, if you are not really shure what you doing.
[6] [Aug 15 16:36:52:057]          "method": "authenticated"
[6] [Aug 15 16:36:52:277]       JSON Bench for backend_info "params":[],"id":1} Start: 16:36:52:057 Time: 00:00:00:220
[3] [Aug 15 16:36:52:277]       Error: retrieveJSONObject --- opsi service problem ----> unexpected Result from webservice in retrieveJSONObject, number of lines: 0
[6] [Aug 15 16:36:52:498]       JSON Bench for getOpsiInformation_hash "params":[],"id":1} Start: 16:36:52:277 Time: 00:00:00:221
[3] [Aug 15 16:36:52:498]       Error: retrieveJSONObject --- opsi service problem ----> unexpected Result from webservice in retrieveJSONObject, number of lines: 0
[5] [Aug 15 16:36:52:498]       opsi Server Version : 
[4] [Aug 15 16:36:52:498]       opsi service version could not retrieved, perhaps no connection
[6] [Aug 15 16:36:52:498]       JSON service request https://192.168.2.1:4447/rpc authenticated
[6] [Aug 15 16:36:52:718]       JSON Bench for authenticated "params":[],"id":1} Start: 16:36:52:498 Time: 00:00:00:220
[6] [Aug 15 16:36:52:718]       JSON result: true
[5] [Aug 15 16:36:52:728]     
[5] [Aug 15 16:36:52:728]     If
[5] [Aug 15 16:36:52:738]       errorsOccuredSinceMark > 0   <<< result true
[5] [Aug 15 16:36:52:738]     Then
[6] [Aug 15 16:36:52:738]       Marked error number 5
[5] [Aug 15 16:36:52:738]       comment: scripted login by client id / hostkey failed -> we don't retry 
[5] [Aug 15 16:36:52:738]       comment: giving up
[5] [Aug 15 16:36:52:748]       
[5] [Aug 15 16:36:52:748]       Set  $INST_Authenticated$ = "false"
[6] [Aug 15 16:36:52:748]         The value of the variable "$INST_Authenticated$" is now: "false"
[5] [Aug 15 16:36:52:748]       Error level set to fatal
[5] [Aug 15 16:36:52:748]       Process aborted
[6] [Aug 15 16:36:52:748]     
[6] [Aug 15 16:36:52:748]     ~~~~~~~ End Sub   ~~~~~~~  sub_sub_create_client
[6] [Aug 15 16:36:52:748]     
[5] [Aug 15 16:36:52:748]     Process aborted
[6] [Aug 15 16:36:52:748] 
[6] [Aug 15 16:36:52:748] ~~~~~~~ End Sub   ~~~~~~~  sub_read_configuration
[6] [Aug 15 16:36:52:748] 
[5] [Aug 15 16:36:52:748] Process aborted
[1] [Aug 15 16:36:52:748] ___________________
[1] [Aug 15 16:36:52:748] script finished
[1] [Aug 15 16:36:52:748] 5 errors
[1] [Aug 15 16:36:52:748] 3 warnings
[1] [Aug 15 16:36:52:748] 
[1] [Aug 15 16:36:52:748] 
[6] [Aug 15 16:36:52:748] Delete "c:\opsi.org\tmp\_winstbat_*"
[6] [Aug 15 16:36:52:748]   Search "c:\opsi.org\tmp\"
[1] [Aug 15 16:36:52:748] ============  opsi-winst Version 4.11.3.6 WIN32 is regularly exiting. Time 2013-08-15  16:36:52 .
Ich denke das Problem liegt in den Zeilen

Code: Alles auswählen

[3] [Aug 15 16:36:52:277]       Error: retrieveJSONObject --- opsi service problem ----> unexpected Result from webservice in retrieveJSONObject, number of lines: 0
[6] [Aug 15 16:36:52:498]       JSON Bench for getOpsiInformation_hash "params":[],"id":1} Start: 16:36:52:277 Time: 00:00:00:221
[3] [Aug 15 16:36:52:498]       Error: retrieveJSONObject --- opsi service problem ----> unexpected Result from webservice in retrieveJSONObject, number of lines: 0
aber die Fehlermeldung hilft mir nicht weiter.

Viele Grüße
Udo
Viele Grüße
Udo
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3327
Registriert: 04 Jun 2008, 14:27

Re: service_setup.cmd auf WinXP funktioniert nicht

Beitrag von d.oertel »

Hi,

was passiert. ist:
Der client wird über den webservice erzeugt.
Danach versucht sich dasscript mit den authentifizierungsdaten des neuen client beim server zu melden und das geht schief.
Warum kann ich aus dem stand auch nicht sagen.

Existiert der client danach in opsi ?

gruß
d.oertel


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


Udo017
Beiträge: 12
Registriert: 08 Aug 2013, 13:50

Re: service_setup.cmd auf WinXP funktioniert nicht

Beitrag von Udo017 »

Hallo Herr Oertel,

ja, wie gesagt im opsi-confd kann ich ihn sehen.
Viele Grüße
Udo
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3327
Registriert: 04 Jun 2008, 14:27

Re: service_setup.cmd auf WinXP funktioniert nicht

Beitrag von d.oertel »

Hi,

was steht den im log des opsiconfd zu diesem client ?
(configed / client auswählen / Logdateien / opsiconfd)

Was steht in der /etc/opsi/backendManager/dispatch.conf ?

gruß
d.oertel


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


Udo017
Beiträge: 12
Registriert: 08 Aug 2013, 13:50

Re: service_setup.cmd auf WinXP funktioniert nicht

Beitrag von Udo017 »

Hallo,

im Configurations Editor steht unter Logdateien -> opsiconfd gar nicht's. Das Feld ist komplett leer.

In der /var/log/opsi/opsiconfd/192.168.2.66.log steht:

Code: Alles auswählen

    [4] [Aug 15 16:36:37] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|371)
    [5] [Aug 15 16:36:37] Application 'opsi-winst 4.11.3.6' on client '192.168.2.66' did not send cookie (workers.py|161)
    [5] [Aug 15 16:36:37] New session created (session.py|75)
    [5] [Aug 15 16:36:37] Authorization request from adminuser@192.168.2.66 (application: opsi-winst 4.11.3.6) (workers.py|188)
    [5] [Aug 15 16:36:39] Session 'hkCVe8w7vHLxiH2fSG6DL3JqUvT0zkNJ' from ip '192.168.2.66', application 'opsi-winst 4.11.3.6' deleted (Session.py|211)
    [2] [Aug 15 16:36:39] Traceback: (Logger.py|742)
    [2] [Aug 15 16:36:39]      line 282 in '_errback' in file '/usr/lib/pymodules/python2.7/OPSI/Service/Worker.py' (Logger.py|742)
    [2] [Aug 15 16:36:39]      line 551 in '_runCallbacks' in file '/usr/lib/python2.7/dist-packages/twisted/internet/defer.py' (Logger.py|742)
    [2] [Aug 15 16:36:39]      line 253 in '_authenticate' in file '/usr/lib/pymodules/python2.7/opsiconfd/workers.py' (Logger.py|742)
    [2] [Aug 15 16:36:39]      ==>>> Opsi authentication error: Forbidden: Backend authentication error: Backend authentication error: PAM authentication failed$
    [4] [Aug 15 16:36:39] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|371)
    [5] [Aug 15 16:36:39] Application 'opsi-winst 4.11.3.6' on client '192.168.2.66' did not send cookie (workers.py|161)
    [5] [Aug 15 16:36:39] New session created (session.py|75)
    [5] [Aug 15 16:36:39] Authorization request from adminuser@192.168.2.66 (application: opsi-winst 4.11.3.6) (workers.py|188)
    [5] [Aug 15 16:36:41] Session 'PBNF7RZMzwaKaVqCboyERaBdsnj31WJF' from ip '192.168.2.66', application 'opsi-winst 4.11.3.6' deleted (Session.py|211)
    [2] [Aug 15 16:36:41] Traceback: (Logger.py|742)
    [2] [Aug 15 16:36:41]      line 282 in '_errback' in file '/usr/lib/pymodules/python2.7/OPSI/Service/Worker.py' (Logger.py|742)
    [2] [Aug 15 16:36:41]      line 551 in '_runCallbacks' in file '/usr/lib/python2.7/dist-packages/twisted/internet/defer.py' (Logger.py|742)
    [2] [Aug 15 16:36:41]      line 253 in '_authenticate' in file '/usr/lib/pymodules/python2.7/opsiconfd/workers.py' (Logger.py|742)
    [2] [Aug 15 16:36:41]      ==>>> Opsi authentication error: Forbidden: Backend authentication error: Backend authentication error: PAM authentication failed$
    [4] [Aug 15 16:36:52] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|371)
    [5] [Aug 15 16:36:52] Application 'opsi-winst 4.11.3.6' on client '192.168.2.66' did not send cookie (workers.py|161)
    [5] [Aug 15 16:36:52] New session created (session.py|75)
    [5] [Aug 15 16:36:52] Authorization request from opsiuser@192.168.2.66 (application: opsi-winst 4.11.3.6) (workers.py|188)
    [4] [Aug 15 16:36:52] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|371)
    [5] [Aug 15 16:36:52] -----> Executing: backend_info() (JsonRpc.py|123)
    [4] [Aug 15 16:36:52] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|371)
    [4] [Aug 15 16:36:52] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|371)
    [5] [Aug 15 16:36:52] Application 'opsi-winst 4.11.3.6' on client '192.168.2.66' did not send cookie (workers.py|161)
    [5] [Aug 15 16:36:52] New session created (session.py|75)
    [5] [Aug 15 16:36:52] Authorization request from opsiuser@192.168.2.66 (application: opsi-winst 4.11.3.6) (workers.py|188)
    [4] [Aug 15 16:36:52] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|371)
    [5] [Aug 15 16:36:52] -----> Executing: backend_info() (JsonRpc.py|123)
    [4] [Aug 15 16:36:52] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|371)
    [4] [Aug 15 16:36:52] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|371)
    [5] [Aug 15 16:36:52] -----> Executing: authenticated() (JsonRpc.py|123)
    [4] [Aug 15 16:36:52] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|371)
    [5] [Aug 15 16:36:52] -----> Executing: userIsAdmin() (JsonRpc.py|123)
    [4] [Aug 15 16:36:53] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|371)
    [5] [Aug 15 16:36:53] -----> Executing: host_getIdents(u'[]', {'id': u'laptop.meinedomain.de'}) (JsonRpc.py|123)
    [4] [Aug 15 16:36:53] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|371)
    [5] [Aug 15 16:36:53] -----> Executing: host_createOpsiClient(u'laptop.meinedomain.de', u'349b8a9a271a87f97a50eee409d04dcc', u'', u'', u'00:11:43:6c:b3:d7', u'1$
    [4] [Aug 15 16:36:53] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|371)
    [5] [Aug 15 16:36:53] -----> Executing: getNetworkConfig_hash(u'laptop.meinedomain.de') (JsonRpc.py|123)
    [4] [Aug 15 16:36:54] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|371)
    [5] [Aug 15 16:36:54] User 'opsiuser' asked to close the session (workers.py|434)
    [5] [Aug 15 16:36:54] Session 'o3ppiY10u2hRkxIo8j1cRZFgen07gwar' from ip '192.168.2.66', application 'opsi-winst 4.11.3.6' deleted (Session.py|211)
    [4] [Aug 15 16:36:54] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|371)
    [5] [Aug 15 16:36:54] Application 'opsi-winst 4.11.3.6' on client '192.168.2.66' did not send cookie (workers.py|161)
    [5] [Aug 15 16:36:54] New session created (session.py|75)
    [5] [Aug 15 16:36:54] Authorization request from host laptop.meinedomain.de@192.168.2.66 (application: opsi-winst 4.11.3.6) (workers.py|186)
    [4] [Aug 15 16:36:54] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|371)
    [3] [Aug 15 16:36:54] Traceback: (Logger.py|742)
    [3] [Aug 15 16:36:54]      line 282 in '_errback' in file '/usr/lib/pymodules/python2.7/OPSI/Service/Worker.py' (Logger.py|742)
    [3] [Aug 15 16:36:54]      line 370 in 'raiseException' in file '/usr/lib/python2.7/dist-packages/twisted/python/failure.py' (Logger.py|742)
    [3] [Aug 15 16:36:54]      ==>>> Host 'laptop.meinedomain.de' not found in backend (Worker.py|296)
    [3] [Aug 15 16:36:54] [Failure instance: Traceback: <type 'exceptions.Exception'>: Host 'laptop.meinedomain.de' not found in backend
    /usr/lib/python2.7/dist-packages/twisted/internet/defer.py:551:_runCallbacks
    /usr/lib/pymodules/python2.7/opsiconfd/workers.py:363:finish
    /usr/lib/python2.7/dist-packages/twisted/internet/defer.py:301:addCallback
    /usr/lib/python2.7/dist-packages/twisted/internet/defer.py:290:addCallbacks
    --- <exception caught here> ---
    /usr/lib/python2.7/dist-packages/twisted/internet/defer.py:551:_runCallbacks
    /usr/lib/pymodules/python2.7/opsiconfd/workers.py:363:<lambda>
    /usr/lib/pymodules/python2.7/opsiconfd/workers.py:352:f
    ] (Worker.py|297)
    [4] [Aug 15 16:36:54] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|371)
    [5] [Aug 15 16:36:54] Application 'opsi-winst 4.11.3.6' on client '192.168.2.66' did not send cookie (workers.py|161)
    [5] [Aug 15 16:36:54] New session created (session.py|75)
    [5] [Aug 15 16:36:54] Authorization request from host laptop.meinedomain.de@192.168.2.66 (application: opsi-winst 4.11.3.6) (workers.py|186)
    [4] [Aug 15 16:36:54] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|371)
    [3] [Aug 15 16:36:54] Traceback: (Logger.py|742)
    [3] [Aug 15 16:36:54]      line 282 in '_errback' in file '/usr/lib/pymodules/python2.7/OPSI/Service/Worker.py' (Logger.py|742)
    [3] [Aug 15 16:36:54]      line 370 in 'raiseException' in file '/usr/lib/python2.7/dist-packages/twisted/python/failure.py' (Logger.py|742)
    [3] [Aug 15 16:36:54]      ==>>> Host 'laptop.meinedomain.de' not found in backend (Worker.py|296)
    [3] [Aug 15 16:36:54] [Failure instance: Traceback: <type 'exceptions.Exception'>: Host 'laptop.meinedomain.de' not found in backend
    /usr/lib/python2.7/dist-packages/twisted/internet/defer.py:551:_runCallbacks
    /usr/lib/pymodules/python2.7/opsiconfd/workers.py:363:finish
    /usr/lib/python2.7/dist-packages/twisted/internet/defer.py:301:addCallback
    /usr/lib/python2.7/dist-packages/twisted/internet/defer.py:290:addCallbacks
    --- <exception caught here> ---
    /usr/lib/python2.7/dist-packages/twisted/internet/defer.py:551:_runCallbacks
    /usr/lib/pymodules/python2.7/opsiconfd/workers.py:363:<lambda>
    /usr/lib/pymodules/python2.7/opsiconfd/workers.py:352:f
    ] (Worker.py|297)
    [4] [Aug 15 16:36:54] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|371)
    [5] [Aug 15 16:36:54] New session created (session.py|75)
    [5] [Aug 15 16:36:54] Application 'opsi-winst 4.11.3.6' on client '192.168.2.66' supplied non existing session id: o3ppiY10u2hRkxIo8j1cRZFgen07gwar (Worker.$
    [5] [Aug 15 16:36:54] Authorization request from opsiuser@192.168.2.66 (application: opsi-winst 4.11.3.6) (workers.py|188)
    [4] [Aug 15 16:36:54] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|371)
    [5] [Aug 15 16:36:54] -----> Executing: authenticated() (JsonRpc.py|123)
    [5] [Aug 15 16:38:54] Session 'M030K6IdjpVHceSfWjw010KUGuwJ91Ru' from ip '192.168.2.66', application 'opsi-winst 4.11.3.6' expired after 120 seconds
    [5] [Aug 15 16:38:54] Session 'M030K6IdjpVHceSfWjw010KUGuwJ91Ru' from ip '192.168.2.66', application 'opsi-winst 4.11.3.6' deleted (Session.py|211)

Es gibt aber eine Datei /var/lib/opsi/conf/clients/laptop.meinedomain.de.ini:

Code: Alles auswählen

[info]
created = 2013-08-16 14:54:04
description =
hardwareaddress = 00:11:43:6c:b3:d7
inventorynumber =
ipaddress = 192.168.2.66
lastseen = 2013-08-16 14:54:04
notes =
In der dispatch.conf steht:

Code: Alles auswählen

# -*- coding: utf-8 -*-
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
# =      backend dispatch configuration                                                                         =
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
#
# This file configures which methods are dispatched to which backends.
# Entries has to follow the form:
# <regular expression to match method name(s)> : <comma separated list of backend name(s)>
#
# Backend names have to match a backend configuraton file basename <backend name>.conf beneath /etc/opsi/backends.
# For every method executed on backend dispatcher the first matching regular expression will be decisive.
#
# Typical configurations:
#    file, opsipxeconfd and dhcpd backend:
#       backend_.*         : file, opsipxeconfd, dhcpd
#       host_.*            : file, opsipxeconfd, dhcpd
#       productOnClient_.* : file, opsipxeconfd
#       configState_.*     : file, opsipxeconfd
#       .*                 : file
#
#    jsonrpc, opsipxeconfd and dhcpd backend:
#       backend_.*         : jsonrpc, opsipxeconfd, dhcpd
#       .*                 : jsonrpc
#
#    ldap as main backend, mysql as hw/sw invent and license management backend, opsipxeconfd and dhcpd backend:
#       backend_.*         : ldap, mysql, opsipxeconfd, dhcpd
#       host_.*            : ldap, opsipxeconfd, dhcpd
#       productOnClient_.* : ldap, opsipxeconfd
#       configState_.*     : ldap, opsipxeconfd
#       license.*          : mysql
#       softwareLicense.*  : mysql
#       audit.*            : mysql
#       .*                 : ldap
#
#backend_.*         : file, opsipxeconfd
#host_.*            : file, opsipxeconfd
#productOnClient_.* : file, opsipxeconfd
#configState_.*     : file, opsipxeconfd
#.*                 : file

# file as main backend, mysql as hw/sw invent
# and license management backend, opsipxeconfd and dhcpd backend:
backend_.*              :       file, opsipxeconfd
host_.*                 :       file, opsipxeconfd
productOnClient_.*      :       file, opsipxeconfd
configState_.*          :       file, opsipxeconfd
license.*             :       file
softwareLicense.*     :       file
audit.*                 :       file
.*                      :       file
Ursprünglich hatte ich bei audit.* mysql zu stehen, hab das aber wieder geändert um da nicht zusätzliche Schwierigkeiten einzubauen.
Viele Grüße
Udo
marcus_db
Beiträge: 1
Registriert: 23 Okt 2013, 14:07

Re: service_setup.cmd auf WinXP funktioniert nicht

Beitrag von marcus_db »

Hallo zusammen,

wir haben hier leider das gleiche Problem. Gibt es inzwischen evtl. eine Lösung dafür?
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: service_setup.cmd auf WinXP funktioniert nicht

Beitrag von n.wenselowski »

Hallo,

Mich lässt die folgende Zeile aus dem Log auf Auth-Probs tippen:
Backend authentication error: Backend authentication error: PAM authentication failed

der User adminuser hat entsprechende Rechte und ist in der OPSI-Administrator-Gruppe?
Wurde ein opsi-setup --set-rights ausgeführt und anschließend der Service neu gestartet?


Gruß

N. Wenselowski

Code: Alles auswählen

import OPSI
Antworten