Dialog Service Password

Antworten
sankaraja
Beiträge: 7
Registriert: 24 Feb 2015, 07:55

Dialog Service Password

Beitrag von sankaraja »

Dear All,

when we execute service_setup.cmd from opsi-client-agent, Its prompting for dialog service username & password.
We have tried with root,adminuser,pcpatch, none works.
Kindly suggest me
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Dialog Service Password

Beitrag von n.wenselowski »

Hello,

please use the username of the user you created during the setup of the opsi-server.
The process of setting up users is described under here.

If this does not help, please let us know.


With kind regards

Niko

Code: Alles auswählen

import OPSI
sankaraja
Beiträge: 7
Registriert: 24 Feb 2015, 07:55

Re: Dialog Service Password

Beitrag von sankaraja »

Niko,

I have gone through the getting started manual mentioned below.
But still Its prompting for dialog service password.

Thanks & Regards,
Sankar
sankaraja
Beiträge: 7
Registriert: 24 Feb 2015, 07:55

Re: Dialog Service Password

Beitrag von sankaraja »

Dear Niko,

I have attached what looks like the install logs from the temp directory and I see some errors but cant figure out how to fix this.

[5] [Feb 26 13:49:10:617] Set $INST_Service_User$ = GetValueFromInifile($INST_cfgini$, "installation", "service_user", $INST_Service_User$)
[6] [Feb 26 13:49:10:617] reading the value to the key "service_user" in section "installation" from inifile "c:\tmp\opsi\cfg\config.ini", default value "pcpatch"
[6] [Feb 26 13:49:10:617] The value of the variable "$INST_Service_User$" is now: "adminuser"
[5] [Feb 26 13:49:10:617] Set $INST_Service_Password$ = GetValueFromInifile($INST_cfgini$, "installation", "service_password", $INST_Service_Password$)
[6] [Feb 26 13:49:10:617] reading the value to the key "service_password" in section "installation" from inifile "c:\tmp\opsi\cfg\config.ini", default value "pcpatch"
[6] [Feb 26 13:49:10:617] The value of the variable "$INST_Service_Password$" is now: "none"
[5] [Feb 26 13:49:10:617] Set $INST_service_hidden_password$ = GetValueFromInifile($INST_cfgini$, "installation", "service_hidden_password", $INST_service_hidden_password$)
[6] [Feb 26 13:49:10:618] reading the value to the key "service_hidden_password" in section "installation" from inifile "c:\tmp\opsi\cfg\config.ini", default value ""
[6] [Feb 26 13:49:10:618] The value of the variable "$INST_service_hidden_password$" is now: ""
[5] [Feb 26 13:49:10:618] comment: Getting values (overwrite)from from custom config file
[5] [Feb 26 13:49:10:618] Set $INST_Service_User$ = GetValueFromInifile($INST_custom_Cfgini$, "installation", "service_user", $INST_Service_User$)
[6] [Feb 26 13:49:10:618] reading the value to the key "service_user" in section "installation" from inifile "c:\tmp\opsi\custom\config.ini", default value "adminuser"
[6] [Feb 26 13:49:10:618] The value of the variable "$INST_Service_User$" is now: "adminuser"
[5] [Feb 26 13:49:10:618] Set $INST_Service_Password$ = GetValueFromInifile($INST_custom_Cfgini$, "installation", "service_password", $INST_Service_Password$)
[6] [Feb 26 13:49:10:618] reading the value to the key "service_password" in section "installation" from inifile "c:\tmp\opsi\custom\config.ini", default value "none"
[6] [Feb 26 13:49:10:618] The value of the variable "$INST_Service_Password$" is now: "none"
[5] [Feb 26 13:49:10:618] Set $INST_service_hidden_password$ = GetValueFromInifile($INST_custom_Cfgini$, "installation", "service_hidden_password", $INST_service_hidden_password$)
[6] [Feb 26 13:49:10:619] reading the value to the key "service_hidden_password" in section "installation" from inifile "c:\tmp\opsi\custom\config.ini", default value ""
[6] [Feb 26 13:49:10:619] The value of the variable "$INST_service_hidden_password$" is now: ""
[6] [Feb 26 13:49:10:619] If
[5] [Feb 26 13:49:10:619] $INST_service_hidden_password$ = "" <<< result true
[5] [Feb 26 13:49:10:619] not ($INST_service_hidden_password$ = "") <<< result false
[6] [Feb 26 13:49:10:619] Then
[6] [Feb 26 13:49:10:619] EndIf
[6] [Feb 26 13:49:10:619] If
[6] [Feb 26 13:49:10:619] Starting query if file exist ...
[5] [Feb 26 13:49:10:619] "c:\tmp\opsi\cfg\sysconf.ini":
[5] [Feb 26 13:49:10:619] FileExists ($INST_sysconfini$) <<< result false
[5] [Feb 26 13:49:10:619] (FileExists ($INST_sysconfini$)) <<< result false
[6] [Feb 26 13:49:10:619] Then
[6] [Feb 26 13:49:10:619] EndIf
[6] [Feb 26 13:49:10:619] If
[5] [Feb 26 13:49:10:619] $INST_pcname$ = "" <<< result false
[6] [Feb 26 13:49:10:619] Then
[6] [Feb 26 13:49:10:619] EndIf
[5] [Feb 26 13:49:10:619] Set $INST_pcname$ = lower($INST_pcname$)
[6] [Feb 26 13:49:10:619] The value of the variable "$INST_pcname$" is now: "prdcdt352"
[5] [Feb 26 13:49:10:619] Set $INST_pcname$ = stringReplace($INST_pcname$,"_","-")
[6] [Feb 26 13:49:10:619] The value of the variable "$INST_pcname$" is now: "prdcdt352"
[6] [Feb 26 13:49:10:619] If
[5] [Feb 26 13:49:10:619] $INST_DnsDomainName$ = "" <<< result false
[5] [Feb 26 13:49:10:619] not ($INST_DnsDomainName$ = "") <<< result true
[6] [Feb 26 13:49:10:619] Then
[5] [Feb 26 13:49:10:619] Set $INST_ClientId$ = $INST_pcname$ + "." + $INST_DnsDomainName$
[6] [Feb 26 13:49:10:620] The value of the variable "$INST_ClientId$" is now: "prdcdt352.uib.local"
[6] [Feb 26 13:49:10:620] EndIf
[6] [Feb 26 13:49:10:620] If
[5] [Feb 26 13:49:10:620] $GEN_bootmode$ = "" <<< result false
[6] [Feb 26 13:49:10:620] Then
[6] [Feb 26 13:49:10:620] EndIf
[6] [Feb 26 13:49:10:620] If
[5] [Feb 26 13:49:10:620] $INST_Modus$ = "INSTALL" <<< result true
[6] [Feb 26 13:49:10:620] Then
[6] [Feb 26 13:49:10:620] If
[5] [Feb 26 13:49:10:620] $INST_SubModus$ = "BOOTIMAGE" <<< result false
[6] [Feb 26 13:49:10:620] Then
[6] [Feb 26 13:49:10:620] EndIf
[6] [Feb 26 13:49:10:620] If
[5] [Feb 26 13:49:10:620] $INST_SubModus$ = "CREATE_CLIENT" <<< result true
[6] [Feb 26 13:49:10:620] Then
[6] [Feb 26 13:49:10:621]
[6] [Feb 26 13:49:10:621] ~~~~~~~ Start Sub ~~~~~~~ sub_sub_create_client
[6] [Feb 26 13:49:10:625] If
[5] [Feb 26 13:49:10:625] $OCD_config_service.url$ = "" <<< result false
[5] [Feb 26 13:49:10:625] ($OCD_config_service.url$ = "") <<< result false
[6] [Feb 26 13:49:10:625] Then
[6] [Feb 26 13:49:10:625] EndIf
[5] [Feb 26 13:49:10:625] comment: Connect to service.....
[5] [Feb 26 13:49:10:625] Set $INST_userIsAdmin$ = "false"
[6] [Feb 26 13:49:10:626] The value of the variable "$INST_userIsAdmin$" is now: "false"
[6] [Feb 26 13:49:10:626] Marked error number 0
[5] [Feb 26 13:49:10:628]
[5] [Feb 26 13:49:10:628] Execution of opsiservicecall_authenticated
[6] [Feb 26 13:49:10:628] "method": "authenticated"
[3] [Feb 26 13:49:10:628] Error: service not initialized
[3] [Feb 26 13:49:10:628] Error: no connection to service
[6] [Feb 26 13:49:10:628] If
[5] [Feb 26 13:49:10:628] errorsOccuredSinceMark > 0 <<< result true
[6] [Feb 26 13:49:10:628] Then
[5] [Feb 26 13:49:10:629] Set $INST_error$ = "true"
[6] [Feb 26 13:49:10:629] The value of the variable "$INST_error$" is now: "true"
[5] [Feb 26 13:49:10:629] comment: was not authenticated -> retry scripted login by default user/password
[6] [Feb 26 13:49:10:629] Else
[6] [Feb 26 13:49:10:629] EndIf
[6] [Feb 26 13:49:10:629] If
[6] [Feb 26 13:49:10:629] retrieving strings from $INST_ServiceResult$ [switch to loglevel 7 for debugging]
[7] [Feb 26 13:49:10:629]
[4] [Feb 26 13:49:10:629] Stringlist $INST_ServiceResult$) = "false") or ($INST_error$ = "true") is empty in takeString function ! Use count() before takestring() to avoid this problem.
[5] [Feb 26 13:49:10:629] takeString(0,$INST_ServiceResult$) = "false" <<< result false
[5] [Feb 26 13:49:10:629] $INST_error$ = "true" <<< result true
[5] [Feb 26 13:49:10:629] ($INST_error$ = "true") <<< result true
[5] [Feb 26 13:49:10:630] (takeString(0,$INST_ServiceResult$) = "false") or ($INST_error$ = "true") <<< result true
[6] [Feb 26 13:49:10:630] Then
[5] [Feb 26 13:49:10:630] comment: was not authenticated as admin-> retry scripted login by default user/password
[6] [Feb 26 13:49:10:630] Marked error number 2
[5] [Feb 26 13:49:10:630] Set $INST_error$ = "false"
[6] [Feb 26 13:49:10:631] The value of the variable "$INST_error$" is now: "false"
[6] [Feb 26 13:49:10:631] LogLevel was 7
[6] [Feb 26 13:49:10:631] LogLevel set to 7
[5] [Feb 26 13:49:10:633]
[5] [Feb 26 13:49:10:633] Execution of opsiservicecall_authenticated
[6] [Feb 26 13:49:10:634] "method": "authenticated"
[6] [Feb 26 13:49:31:645] JSON Bench for backend_info "params":[],"id":1} Start: 13:49:10:634 Time: 00:00:21:011
[3] [Feb 26 13:49:31:645] Error: retrieveJSONObject --- opsi service problem ----> unexpected Result from webservice in retrieveJSONObject, number of lines: 0
[5] [Feb 26 13:49:31:645] opsi Server Version :
[6] [Feb 26 13:49:52:646] JSON Bench for backend_info "params":[],"id":1} Start: 13:49:31:645 Time: 00:00:21:001
[3] [Feb 26 13:49:52:646] Error: retrieveJSONObject --- opsi service problem ----> unexpected Result from webservice in retrieveJSONObject, number of lines: 0
[3] [Feb 26 13:49:52:646] Error: -> unexpected Result from webservice in retrieveJSONObject, number of lines: 0
[3] [Feb 26 13:49:52:646] Error: no connection to service
[6] [Feb 26 13:49:52:650] LogLevel was 7
[6] [Feb 26 13:49:52:651] LogLevel set to 7
[6] [Feb 26 13:49:52:651] If
[5] [Feb 26 13:49:52:654] errorsOccuredSinceMark > 0 <<< result true
[6] [Feb 26 13:49:52:654] Then
[5] [Feb 26 13:49:52:654] Set $INST_error$ = "true"
[6] [Feb 26 13:49:52:654] The value of the variable "$INST_error$" is now: "true"
[5] [Feb 26 13:49:52:655] comment: scripted login by default user/password failed -> retry interactive
[6] [Feb 26 13:49:52:655] Else
[6] [Feb 26 13:49:52:655] If
[6] [Feb 26 13:49:52:655] Then
[6] [Feb 26 13:49:52:655] Else
[6] [Feb 26 13:49:52:655] EndIf
[6] [Feb 26 13:49:52:655] EndIf
[6] [Feb 26 13:49:52:656] If
[6] [Feb 26 13:49:52:656] retrieving strings from $INST_ServiceResult$ [switch to loglevel 7 for debugging]
[7] [Feb 26 13:49:52:656]
[4] [Feb 26 13:49:52:656] Stringlist $INST_ServiceResult$) = "false") or ($INST_error$ = "true") is empty in takeString function ! Use count() before takestring() to avoid this problem.
[5] [Feb 26 13:49:52:656] takeString(0,$INST_ServiceResult$) = "false" <<< result false
[5] [Feb 26 13:49:52:656] $INST_error$ = "true" <<< result true
[5] [Feb 26 13:49:52:656] ($INST_error$ = "true") <<< result true
[5] [Feb 26 13:49:52:656] (takeString(0,$INST_ServiceResult$) = "false") or ($INST_error$ = "true") <<< result true
[6] [Feb 26 13:49:52:656] Then
[5] [Feb 26 13:49:52:657] Set $INST_error$ = "false"
[6] [Feb 26 13:49:52:657] The value of the variable "$INST_error$" is now: "false"
[6] [Feb 26 13:49:52:658] LogLevel was 7
[6] [Feb 26 13:49:52:658] LogLevel set to 7
[5] [Feb 26 13:49:52:663]
[5] [Feb 26 13:49:52:663] Execution of opsiservicecall_authenticated
[6] [Feb 26 13:49:52:663] "method": "authenticated"
[6] [Feb 26 13:50:36:071] JSON Bench for backend_info "params":[],"id":1} Start: 13:50:15:070 Time: 00:00:21:001
[3] [Feb 26 13:50:36:071] Error: retrieveJSONObject --- opsi service problem ----> unexpected Result from webservice in retrieveJSONObject, number of lines: 0
[5] [Feb 26 13:50:36:071] opsi Server Version :
[6] [Feb 26 13:50:57:072] JSON Bench for backend_info "params":[],"id":1} Start: 13:50:36:071 Time: 00:00:21:001
[3] [Feb 26 13:50:57:072] Error: retrieveJSONObject --- opsi service problem ----> unexpected Result from webservice in retrieveJSONObject, number of lines: 0
[6] [Feb 26 13:51:58:163] JSON Bench for backend_info "params":[],"id":1} Start: 13:51:37:163 Time: 00:00:21:000
[3] [Feb 26 13:51:58:163] Error: retrieveJSONObject --- opsi service problem ----> unexpected Result from webservice in retrieveJSONObject, number of lines: 0
[5] [Feb 26 13:51:58:163] opsi Server Version :

Thanks & Regards,
Sankar
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1411
Registriert: 01 Jul 2008, 12:10

Re: Dialog Service Password

Beitrag von wolfbardo »

Dear Sankar,

Code: Alles auswählen

3] [Feb 26 13:49:52:646] Error: no connection to service
seems as if the client cant get connected to the opsi service.

Please check in

Code: Alles auswählen

/var/lib/opsi/depot/opsi-client-agent/files/opsi/cfg/config.ini 
the

Code: Alles auswählen

config_service.url = 
If there is an wrong entry so

Code: Alles auswählen

opsi-package-manager -i /va/lib/opsi/repository/opsi-client-agent*opsi
should fix that issue.

If the problem further exists, so please post the full log-file

Code: Alles auswählen

c:\tmp\opsi-client-agent.log
( or sent it to info<at>uib.de )

regards,
bardo wolf


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


Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1411
Registriert: 01 Jul 2008, 12:10

Re: Dialog Service Password

Beitrag von wolfbardo »

Dear sankaraja,
sankaraja hat geschrieben: We have tried with root,adminuser,pcpatch, none works.
Kindly suggest me
As Nico mentioned, the user has to be member of the opsiadmin group
( see http://download.uib.de/opsi_stable/doc/ ... and-groups )

regards,
bardo wolf


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


sankaraja
Beiträge: 7
Registriert: 24 Feb 2015, 07:55

Re: Dialog Service Password

Beitrag von sankaraja »

Dear Bardo,

Thanks, Its updating the client setup.
I have found out the issue in user settings.

Thanks & Regards,
Sankar Raja
Antworten