opsiclientd on_demand: No JSON object could be decoded

danielc
Beiträge: 12
Registriert: 18 Jun 2016, 10:37

Re: opsiclientd on_demand: No JSON object could be decoded

Beitrag von danielc »

OK i did this.

As i don't know how to restart the service i restarted the machine :)

Now the timeout problem has disapeared, but the JSON one is still there. Even after having saved again and again, all reloaded all, restarting opsi-server...
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: opsiclientd on_demand: No JSON object could be decoded

Beitrag von n.wenselowski »

Hi,

if the service is not stopped it may override the changed config.
Use service.msc for stopping the opsiclientd and then try again, please!


-Niko

Code: Alles auswählen

import OPSI
danielc
Beiträge: 12
Registriert: 18 Jun 2016, 10:37

Re: opsiclientd on_demand: No JSON object could be decoded

Beitrag von danielc »

Hi,
n.wenselowski hat geschrieben: Use service.msc for stopping the opsiclientd and then try again, please!
OK I did it, reloaded opsi config editor, just in case, but still the same problem. Really sorry to make you spend so much time for helping me...
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: opsiclientd on_demand: No JSON object could be decoded

Beitrag von n.wenselowski »

Hi,

just to be sure: do the keys now match?

If you don't want to debug you could try to just redeploy the client.


Kind regards

Niko

Code: Alles auswählen

import OPSI
danielc
Beiträge: 12
Registriert: 18 Jun 2016, 10:37

Re: opsiclientd on_demand: No JSON object could be decoded

Beitrag von danielc »

Yes they match.

About redeploying, i was thinking to do this, but because maybe the problem is that i tried several time to deploy it with the opsi-deploy-client-agent method that obviously doesn't work (i would like to find something that will work all the time, on all machines, without compiling some code).

Then i tried service_setup.cmd and it worked, but maybe some information were still on the client and it wreckled the mess.

So can you tell me the correct way to uninstall and reinstall the client (or the part of the doc where it is explained). I don't find anything about this on the web...
Benutzeravatar
ueluekmen
uib-Team
Beiträge: 1940
Registriert: 28 Mai 2008, 10:53

Re: opsiclientd on_demand: No JSON object could be decoded

Beitrag von ueluekmen »

Hi,

there is no clean way to uninstall the client, thats why we recommend to deactivate the agent. If you only want to redeploy it, the easiest way is to call service_setup.cmd again on the client without uninstall or deactivating the agent.


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


Antworten