opsiclientkiosk not working [solved]

Antworten
Benutzeravatar
SisterOfMercy
Beiträge: 1522
Registriert: 22 Jun 2012, 19:18

opsiclientkiosk not working [solved]

Beitrag von SisterOfMercy »

I'm trying out the new opsiclientkiosk, but this is not working for me.

Client is updated to 4.0.7, along with the server, of course. I ran the obvious fix-all:

Code: Alles auswählen

opsi-setup --init-current-config
opsi-setup --set-rights
service opsiconfd restart
service opsipxeconfd restart
opsiclientd.log on the client:

Code: Alles auswählen

[6] [Jan 26 16:01:10] [ software on demand            ] Worker <ocdlib.SoftwareOnDemand.WorkerKioskJsonRpc object at 0x02FFE8B0> started processing   (Worker.pyo|251)
[5] [Jan 26 16:01:10] [ software on demand            ] New session created   (Session.pyo|184)
[6] [Jan 26 16:01:10] [ software on demand            ] Starting ServiceConnectionThread, timeout is 30 seconds   (OpsiService.pyo|160)
[5] [Jan 26 16:01:10] [ service connection            ] Connecting to config server 'https://opsi.gcecad-service.nl:4447' #1   (OpsiService.pyo|321)
[3] [Jan 26 16:01:10] [ service connection            ] Failed to read version info from file u'/etc/opsi/version': [Errno 2] No such file or directory: u'/etc/opsi/version'   (Backend.pyo|206)
[5] [Jan 26 16:01:11] [ service connection            ] Disabling mysql backend and license management module: no customer in modules file   (JSONRPC.pyo|572)
[6] [Jan 26 16:01:11] [ service connection            ] <JSONRPCBackend(host=u'opsi.gcecad-service.nl', deflate=False)>: Connected to service   (JSONRPC.pyo|497)
[3] [Jan 26 16:01:11] [ service connection            ] Refusing to set deflate because opsi service answers with wrong HTTP header contents.   (JSONRPC.pyo|424)
[5] [Jan 26 16:01:11] [ service connection            ] Connected to config server 'https://opsi.gcecad-service.nl:4447'   (OpsiService.pyo|348)
[5] [Jan 26 16:01:15] [ opsiclientd                   ] -----> Executing: getDepotId(u'')   (JsonRpc.pyo|134)
[2] [Jan 26 16:01:15] [ opsiclientd                   ] Traceback:   (Logger.pyo|753)
[2] [Jan 26 16:01:15] [ opsiclientd                   ]   File "OPSI\Backend\JSONRPC.pyo", line 103, in processResult
   (Logger.pyo|753)
[2] [Jan 26 16:01:15] [ opsiclientd                   ]      ==>>> 'none' (error on server)   (JSONRPC.pyo|111)
[6] [Jan 26 16:01:15] [ opsiclientd                   ] Traceback:   (Logger.pyo|753)
[6] [Jan 26 16:01:15] [ opsiclientd                   ]   File "OPSI\Service\JsonRpc.pyo", line 140, in execute
   (Logger.pyo|753)
[6] [Jan 26 16:01:15] [ opsiclientd                   ]   File "<string>", line 1, in <module>
   (Logger.pyo|753)
[6] [Jan 26 16:01:15] [ opsiclientd                   ]   File "<string>", line 1, in getDepotId
   (Logger.pyo|753)
[6] [Jan 26 16:01:15] [ opsiclientd                   ]   File "OPSI\Backend\JSONRPC.pyo", line 679, in _jsonRPC
   (Logger.pyo|753)
[6] [Jan 26 16:01:15] [ opsiclientd                   ]   File "OPSI\Backend\JSONRPC.pyo", line 148, in execute
   (Logger.pyo|753)
[6] [Jan 26 16:01:15] [ opsiclientd                   ]   File "OPSI\Backend\Backend.pyo", line 148, in waitForResult
   (Logger.pyo|753)
[6] [Jan 26 16:01:15] [ opsiclientd                   ]      ==>>> 'none' (error on server)   (JsonRpc.pyo|145)
[3] [Jan 26 16:01:15] [ opsiclientd                   ] Execution error: 'none' (error on server)   (JsonRpc.pyo|146)
[6] [Jan 26 16:01:16] [ software on demand            ] Worker <ocdlib.SoftwareOnDemand.WorkerKioskJsonRpc object at 0x031112B0> started processing   (Worker.pyo|251)
[6] [Jan 26 16:01:16] [ software on demand            ] Reusing session for client '127.0.0.1', application 'opsiclientkiosk.exe'   (Worker.pyo|397)
[6] [Jan 26 16:01:16] [ software on demand            ] Starting ServiceConnectionThread, timeout is 30 seconds   (OpsiService.pyo|160)
[5] [Jan 26 16:01:16] [ service connection            ] Connecting to config server 'https://opsi.gcecad-service.nl:4447' #1   (OpsiService.pyo|321)
[3] [Jan 26 16:01:16] [ service connection            ] Failed to read version info from file u'/etc/opsi/version': [Errno 2] No such file or directory: u'/etc/opsi/version'   (Backend.pyo|206)
[5] [Jan 26 16:01:16] [ service connection            ] Disabling mysql backend and license management module: no customer in modules file   (JSONRPC.pyo|572)
[6] [Jan 26 16:01:17] [ service connection            ] <JSONRPCBackend(host=u'opsi.gcecad-service.nl', deflate=False)>: Connected to service   (JSONRPC.pyo|497)
[3] [Jan 26 16:01:17] [ service connection            ] Refusing to set deflate because opsi service answers with wrong HTTP header contents.   (JSONRPC.pyo|424)
[5] [Jan 26 16:01:17] [ service connection            ] Connected to config server 'https://opsi.gcecad-service.nl:4447'   (OpsiService.pyo|348)
[5] [Jan 26 16:01:21] [ opsiclientd                   ] -----> Executing: getGeneralConfigValue(u'software-on-demand.product-group-ids', u'')   (JsonRpc.pyo|134)
[6] [Jan 26 16:01:21] [ opsiclientd                   ] Got result   (JsonRpc.pyo|142)
[6] [Jan 26 16:01:21] [ software on demand            ] Worker <ocdlib.SoftwareOnDemand.WorkerKioskJsonRpc object at 0x0452B250> started processing   (Worker.pyo|251)
[6] [Jan 26 16:01:21] [ software on demand            ] Reusing session for client '127.0.0.1', application 'opsiclientkiosk.exe'   (Worker.pyo|397)
[6] [Jan 26 16:01:21] [ software on demand            ] Starting ServiceConnectionThread, timeout is 30 seconds   (OpsiService.pyo|160)
[5] [Jan 26 16:01:21] [ service connection            ] Connecting to config server 'https://opsi.gcecad-service.nl:4447' #1   (OpsiService.pyo|321)
[3] [Jan 26 16:01:21] [ service connection            ] Failed to read version info from file u'/etc/opsi/version': [Errno 2] No such file or directory: u'/etc/opsi/version'   (Backend.pyo|206)
[5] [Jan 26 16:01:22] [ service connection            ] Disabling mysql backend and license management module: no customer in modules file   (JSONRPC.pyo|572)
[6] [Jan 26 16:01:22] [ service connection            ] <JSONRPCBackend(host=u'opsi.gcecad-service.nl', deflate=False)>: Connected to service   (JSONRPC.pyo|497)
[3] [Jan 26 16:01:22] [ service connection            ] Refusing to set deflate because opsi service answers with wrong HTTP header contents.   (JSONRPC.pyo|424)
[5] [Jan 26 16:01:22] [ service connection            ] Connected to config server 'https://opsi.gcecad-service.nl:4447'   (OpsiService.pyo|348)
[6] [Jan 26 16:01:27] [ opsiclientd                   ] Got result   (JsonRpc.pyo|142)
[6] [Jan 26 16:01:27] [ software on demand            ] Worker <ocdlib.SoftwareOnDemand.WorkerKioskJsonRpc object at 0x0462B2F0> started processing   (Worker.pyo|251)
[6] [Jan 26 16:01:27] [ software on demand            ] Reusing session for client '127.0.0.1', application 'opsiclientkiosk.exe'   (Worker.pyo|397)
[6] [Jan 26 16:01:27] [ software on demand            ] Starting ServiceConnectionThread, timeout is 30 seconds   (OpsiService.pyo|160)
[5] [Jan 26 16:01:27] [ service connection            ] Connecting to config server 'https://opsi.gcecad-service.nl:4447' #1   (OpsiService.pyo|321)
[3] [Jan 26 16:01:27] [ service connection            ] Failed to read version info from file u'/etc/opsi/version': [Errno 2] No such file or directory: u'/etc/opsi/version'   (Backend.pyo|206)
[5] [Jan 26 16:01:28] [ service connection            ] Disabling mysql backend and license management module: no customer in modules file   (JSONRPC.pyo|572)
[6] [Jan 26 16:01:28] [ service connection            ] <JSONRPCBackend(host=u'opsi.gcecad-service.nl', deflate=False)>: Connected to service   (JSONRPC.pyo|497)
[3] [Jan 26 16:01:28] [ service connection            ] Refusing to set deflate because opsi service answers with wrong HTTP header contents.   (JSONRPC.pyo|424)
[5] [Jan 26 16:01:28] [ service connection            ] Connected to config server 'https://opsi.gcecad-service.nl:4447'   (OpsiService.pyo|348)
[5] [Jan 26 16:01:32] [ opsiclientd                   ] -----> Executing: getDepotId(u'')   (JsonRpc.pyo|134)
[2] [Jan 26 16:01:32] [ opsiclientd                   ] Traceback:   (Logger.pyo|753)
[2] [Jan 26 16:01:32] [ opsiclientd                   ]   File "OPSI\Backend\JSONRPC.pyo", line 103, in processResult
   (Logger.pyo|753)
[2] [Jan 26 16:01:32] [ opsiclientd                   ]      ==>>> 'none' (error on server)   (JSONRPC.pyo|111)
[6] [Jan 26 16:01:32] [ opsiclientd                   ] Traceback:   (Logger.pyo|753)
[6] [Jan 26 16:01:32] [ opsiclientd                   ]   File "OPSI\Service\JsonRpc.pyo", line 140, in execute
   (Logger.pyo|753)
[6] [Jan 26 16:01:32] [ opsiclientd                   ]   File "<string>", line 1, in <module>
   (Logger.pyo|753)
[6] [Jan 26 16:01:32] [ opsiclientd                   ]   File "<string>", line 1, in getDepotId
   (Logger.pyo|753)
[6] [Jan 26 16:01:32] [ opsiclientd                   ]   File "OPSI\Backend\JSONRPC.pyo", line 679, in _jsonRPC
   (Logger.pyo|753)
[6] [Jan 26 16:01:32] [ opsiclientd                   ]   File "OPSI\Backend\JSONRPC.pyo", line 148, in execute
   (Logger.pyo|753)
[6] [Jan 26 16:01:32] [ opsiclientd                   ]   File "OPSI\Backend\Backend.pyo", line 148, in waitForResult
   (Logger.pyo|753)
[6] [Jan 26 16:01:32] [ opsiclientd                   ]      ==>>> 'none' (error on server)   (JsonRpc.pyo|145)
[3] [Jan 26 16:01:32] [ opsiclientd                   ] Execution error: 'none' (error on server)   (JsonRpc.pyo|146)
Uhhhm, does anybody have an idea what to check next?
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Benutzeravatar
SisterOfMercy
Beiträge: 1522
Registriert: 22 Jun 2012, 19:18

Re: opsiclientkiosk not working [solved]

Beitrag von SisterOfMercy »

Oh, so that is what happens when you just execute the opsiclientkiosk.exe file, without the --fqdn parameter. With the fqdn of the client it works.

Shouldn't the default behaviour be to use the fqdn of the localhost?

And uhhh, was the old solution not quicker to display the results? If you click something wrong you have to load everything again. :-(
For nt5 the webpage is still available, can't we choose this in a product property? So there is a choice to also make the software-on-demand web client available.
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: opsiclientkiosk not working [solved]

Beitrag von n.wenselowski »

Hi,

do you run it manually or through the shortcut created by opsi?
A problem you may hit is that the local host may have a different FQDN then what is stored in opsi and there I think it is not always the correct solution.

We have some updates planned for the new kiosk but there unfortunately this may take some more time because of other projects.

If you want to use the old page feel free to do so but we do not support it anymore.
Or build your own ;)


Kind regards

Niko

Code: Alles auswählen

import OPSI
Benutzeravatar
SisterOfMercy
Beiträge: 1522
Registriert: 22 Jun 2012, 19:18

Re: opsiclientkiosk not working [solved]

Beitrag von SisterOfMercy »

n.wenselowski hat geschrieben:do you run it manually or through the shortcut created by opsi?
I was running it manually. The script that runs here after opsi-client-agent deleted those shortcuts. After creating this topic I thought about the shortcut, and yes, I needed a parameter.
n.wenselowski hat geschrieben:If you want to use the old page feel free to do so but we do not support it anymore.
Or build your own ;)
How? https://localhost:4441/swondemand gives a 404 error.
https://localhost:4441/ gave three options with the older client, now it only gives two. Software-on-demand is enabled on the client, because opsiclientkiosk is working.
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: opsiclientkiosk not working [solved]

Beitrag von n.wenselowski »

Hi SisterOfMerfy,
SisterOfMercy hat geschrieben:
n.wenselowski hat geschrieben:If you want to use the old page feel free to do so but we do not support it anymore.
Or build your own ;)
How? https://localhost:4441/swondemand gives a 404 error.
https://localhost:4441/ gave three options with the older client, now it only gives two. Software-on-demand is enabled on the client, because opsiclientkiosk is working.
Sorry, I thought you were running nt5. There still is an old opsiclientd that supports the old page.
The new builds lack the interface previously used by the webpage for the kiosk.
But you can still build your own interface if you want to - everything is there on the client side as this is used by the new kiosk.


Kind regards

Niko

Code: Alles auswählen

import OPSI
Benutzeravatar
SisterOfMercy
Beiträge: 1522
Registriert: 22 Jun 2012, 19:18

Re: opsiclientkiosk not working [solved]

Beitrag von SisterOfMercy »

n.wenselowski hat geschrieben:Sorry, I thought you were running nt5. There still is an old opsiclientd that supports the old page.
The new builds lack the interface previously used by the webpage for the kiosk.
But you can still build your own interface if you want to - everything is there on the client side as this is used by the new kiosk.
Thanks, that was probably why I couldn't find the option to turn it back on :-)
All of my clients are running nt6, I still have XP x64 running on two of my own computers.

I think I'll learn how to use the new interface then ;)
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Antworten