[NICHT GELOEST]No JSON object could be decoded nach update auf 4.0.6

brainy84
Beiträge: 167
Registriert: 24 Mär 2011, 22:58

[NICHT GELOEST]No JSON object could be decoded nach update auf 4.0.6

Beitrag von brainy84 »

Hi,

ich habe den Client-Agent auf einigen Windows 7 Clients aktualisiert bevor ich per apt-get upgrade die Server-opsi pakete aktualisiert habe. Ich hatte noch das 10.04. Repo eingebunden. Dieses habe ich nun aktualisiert und 14.04 eingebunden. Es scheint so als wäre auf diese Clients kein Verbindungsaufbau mehr möglich. Der Client startet opsi bei "on demand" ausführen, aber es wird kein Paket installiert, sondern er beendet ohne, da er womöglich denkt es gibt kein zu installierendes Paket. Ich habe aber eines bzw. mehrere gesetzt.

Ich nutze Ubuntu 14.04.3 LTS. Leider ist was mit meinem Snapshot schief gelaufen, daher kann ich nicht mehr zurück auf die alte Version.

Anbei das Logfile unter /var/log/opsi/clientconnect für den entsprechenden Client:

Code: Alles auswählen

[5] [Oct 09 16:29:38] [ event processing on_demand{user_logged_in}] Config read   (Config.pyo|321)
[5] [Oct 09 16:29:38] [ event processing on_demand{user_logged_in}] Getting config from service   (EventProcessing.pyo|242)
[5] [Oct 09 16:29:38] [ event processing on_demand{user_logged_in}] Getting config from service   (Config.pyo|531)
[2] [Oct 09 16:29:38] [ opsiclientd                   ] Traceback:   (Logger.pyo|767)
[2] [Oct 09 16:29:38] [ opsiclientd                   ]      line 101 in 'processResult' in file 'OPSI\Backend\JSONRPC.pyo'   (Logger.pyo|767)
[2] [Oct 09 16:29:38] [ opsiclientd                   ]      ==>>> No JSON object could be decoded (error on server)   (JSONRPC.pyo|105)
[3] [Oct 09 16:29:38] [ event processing on_demand{user_logged_in}] Failed to get config from service: No JSON object could be decoded (error on server)   (EventProcessin$
[5] [Oct 09 16:29:38] [ event processing on_demand{user_logged_in}] Writing log to service   (EventProcessing.pyo|257)
-------------------- submitted part of log file ends here, see the rest of log file on client --------------------
Wenn ich im opsi config editor auf aktualisieren drücke, kommte folgender Fehler:

Code: Alles auswählen

Okt 09  16:32:32.213  2015 -- Opsi service error:  [ValueError] No JSON object could be decoded
Okt 09  16:32:32.244  2015 -- JSONReMapper: Exception on reproducing  null, java.lang.NullPointerException
Im Client unter C:\Users\<username>\.configed ist lediglich eine veraltete Logdatei von vor 2 Stunden.

Den Client-Agent neu installieren hat nicht geholfen. Software on Demand bringt auch keine weiteren Erkenntnisse.

Grüße und Danke

Brainy84
Zuletzt geändert von brainy84 am 28 Okt 2015, 09:53, insgesamt 1-mal geändert.
brainy84
Beiträge: 167
Registriert: 24 Mär 2011, 22:58

Re: No JSON object could be decoded nach update auf 4.0.6

Beitrag von brainy84 »

Hallo,

ich kann momentan diese Clients welche die Clientversion 4.0.6. vor dem Server hatten nicht verwalten. Wie kann ich das beheben? Hat niemand eine Idee bzw. einen Vorschlag?

Freundliche Grüße

brainy84
brainy84
Beiträge: 167
Registriert: 24 Mär 2011, 22:58

Re: No JSON object could be decoded nach update auf 4.0.6

Beitrag von brainy84 »

Hallo,

ich war zwar schon lang nicht mehr hier, aber ich meine das Feedback war schonmal besser...

Grüße

brainy84
brainy84
Beiträge: 167
Registriert: 24 Mär 2011, 22:58

Re: No JSON object could be decoded nach update auf 4.0.6

Beitrag von brainy84 »

Hallo,

anbei noch die opsi Versionen:

Code: Alles auswählen

ii  opsi-atftpd                           0.7.dfsg-5                                      amd64        advanced TFTP server - opsi version with pcre, fifo and max-blksize patches
ii  opsi-configed                         4.0.6.3.5.1-2                                   all          OPSI config editor
ii  opsi-depotserver                      4.0.6.4-1                                       all          opsi depotserver configuration package
ii  opsi-linux-bootimage                  20150916-2                                      amd64        opsi bootimage for netboot tasks.
ii  opsi-utils                            4.0.6.8-1                                       all          utilites for working with opsi.
ii  opsiconfd                             4.0.6.10-7                                      all          opsi configuration service
ii  opsipxeconfd                          4.0.5.5-2                                       all          opsi pxe configuration daemon
ii  python-opsi                           4.0.6.25-1                                      all          opsi python library
Ich hoffe ein Feedback kommt zeitnah.
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1412
Registriert: 01 Jul 2008, 12:10

Re: No JSON object could be decoded nach update auf 4.0.6

Beitrag von wolfbardo »

Hallo,
brainy84 hat geschrieben: Ich hoffe ein Feedback kommt zeitnah.
dies ist ein freies (und kostenloses) Forum.

Vielleicht hilft ein Update auf die aktuelle opsi-Version.

Gruss
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


brainy84
Beiträge: 167
Registriert: 24 Mär 2011, 22:58

Re: No JSON object could be decoded nach update auf 4.0.6

Beitrag von brainy84 »

Hallo wolfbardo,

und danke für das Feedback. Ich habe die aktuellste opsi-Versionen eingespielt, leider ohne Verbesserung/Veränderung der Situation.

Für weitere Tipps wäre ich dankbar.

Grüße

brainy84

Hier nochmal der Auszug:

Code: Alles auswählen

ii  opsi-atftpd                           0.7.dfsg-5                                      amd64        advanced TFTP server - opsi version with pcre, fifo and max-blksize patches
ii  opsi-configed                         4.0.6.3.5.1-2                                   all          OPSI config editor
ii  opsi-depotserver                      4.0.6.4-1                                       all          opsi depotserver configuration package
ii  opsi-linux-bootimage                  20150916-3                                      amd64        opsi bootimage for netboot tasks.
ii  opsi-utils                            4.0.6.9-1                                       all          utilites for working with opsi.
ii  opsiconfd                             4.0.6.10-7                                      all          opsi configuration service
ii  opsipxeconfd                          4.0.5.5-2                                       all          opsi pxe configuration daemon
ii  python-opsi                           4.0.6.28-1                                      all          opsi python library
brainy84
Beiträge: 167
Registriert: 24 Mär 2011, 22:58

Re: No JSON object could be decoded nach update auf 4.0.6

Beitrag von brainy84 »

Hallo,

habe nun noch weitere Events (vor der eigentlichen Fehlermeldung) in clientconnect gefunden, die vielleicht wichtig sein könnten:

Code: Alles auswählen

(1751)    [4] [Oct 19 12:58:12] [ event processing on_demand{user_logged_in}] Refusing to set empty value for config value 'url' of section 'depot_server'   (Config.pyo|204)
(1752)    [6] [Oct 19 12:58:12] [ event processing on_demand{user_logged_in}] Setting config value depot_server.username   (Config.pyo|200)
(1753)    [6] [Oct 19 12:58:13] [ event processing on_demand{user_logged_in}] Setting config value depot_server.drive   (Config.pyo|200)
(1754)    [4] [Oct 19 12:58:13] [ event processing on_demand{user_logged_in}] Refusing to set empty value for config value 'drive' of section 'depot_server'   (Config.pyo|204)
(1755)    [6] [Oct 19 12:58:13] [ event processing on_demand{user_logged_in}] Setting config value depot_server.depot_id   (Config.pyo|200)
(1756)    [4] [Oct 19 12:58:13] [ event processing on_demand{user_logged_in}] Refusing to set empty value for config value 'depot_id' of section 'depot_server'   (Config.pyo|204)
(1757)    [6] [Oct 19 12:58:13] [ event processing on_demand{user_logged_in}] Setting config value event_timer_silentinstall.active   (Config.pyo|200)
(1758)    [6] [Oct 19 12:58:13] [ event processing on_demand{user_logged_in}] Setting config value event_timer_silentinstall.interval   (Config.pyo|200)
(1759)    [6] [Oct 19 12:58:13] [ event processing on_demand{user_logged_in}] Setting config value event_timer_silentinstall.super   (Config.pyo|200)
(1760)    [6] [Oct 19 12:58:13] [ event processing on_demand{user_logged_in}] Setting config value event_timer_silentinstall.type   (Config.pyo|200)
(1761)    [6] [Oct 19 12:58:13] [ event processing on_demand{user_logged_in}] Setting config value event_timer.active   (Config.pyo|200)
(1762)    [6] [Oct 19 12:58:13] [ event processing on_demand{user_logged_in}] Setting config value event_timer.interval   (Config.pyo|200)
(1763)    [6] [Oct 19 12:58:13] [ event processing on_demand{user_logged_in}] Setting config value event_timer.super   (Config.pyo|200)
(1764)    [6] [Oct 19 12:58:13] [ event processing on_demand{user_logged_in}] Setting config value event_timer.type   (Config.pyo|200)
(1765)    [6] [Oct 19 12:58:13] [ event processing on_demand{user_logged_in}] Setting config value precondition_cache_ready_user_logged_in.user_logged_in   (Config.pyo|200)
(1766)    [6] [Oct 19 12:58:13] [ event processing on_demand{user_logged_in}] Setting config value precondition_cache_ready_user_logged_in.products_cached   (Config.pyo|200)
(1767)    [6] [Oct 19 12:58:13] [ event processing on_demand{user_logged_in}] Setting config value precondition_cache_ready_user_logged_in.config_cached   (Config.pyo|200)
(1768)    [6] [Oct 19 12:58:13] [ event generator gui_startup   ] Searching pids of process name LogonUI.exe (session id: None)   (Windows.pyo|1400)
(1769)    [5] [Oct 19 12:58:13] [ event processing on_demand{user_logged_in}] Config read   (Config.pyo|321)
(1770)    [5] [Oct 19 12:58:13] [ event processing on_demand{user_logged_in}] Getting config from service   (EventProcessing.pyo|242)
(1771)    [5] [Oct 19 12:58:13] [ event processing on_demand{user_logged_in}] Getting config from service   (Config.pyo|531)
(1772)    [2] [Oct 19 12:58:13] [ opsiclientd                   ] Traceback:   (Logger.pyo|767)
(1773)    [2] [Oct 19 12:58:13] [ opsiclientd                   ]      line 101 in 'processResult' in file 'OPSI\Backend\JSONRPC.pyo'   (Logger.pyo|767)
(1774)    [6] [Oct 19 12:58:13] [ event generator wait_for_gui  ] Searching pids of process name LogonUI.exe (session id: None)   (Windows.pyo|1400)
(1775)    [2] [Oct 19 12:58:13] [ opsiclientd                   ]      ==>>> No JSON object could be decoded (error on server)   (JSONRPC.pyo|105)
(1776)    [3] [Oct 19 12:58:14] [ event processing on_demand{user_logged_in}] Failed to get config from service: No JSON object could be decoded (error on server)   (EventProcessing.pyo|253)
(1777)    [5] [Oct 19 12:58:14] [ event processing on_demand{user_logged_in}] Writing log to service   (EventProcessing.pyo|257)
(1778)    -------------------- submitted part of log file ends here, see the rest of log file on client --------------------
P.S. die Konfigurationsdateien /etc/opsi/opsi-product-updater.conf und /etc/opsi/opsi.conf habe ich beim Update beibehalten.

Freundliche Grüße

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

Re: No JSON object could be decoded nach update auf 4.0.6

Beitrag von n.wenselowski »

Hi,

die Meldung lässt darauf schließen, dass der Hostkey zwischen Server und Client unterschiedlich sind.
Diesen bitte mal checken und gegebenenfalls korrigieren!


Gruß

Niko

Code: Alles auswählen

import OPSI
brainy84
Beiträge: 167
Registriert: 24 Mär 2011, 22:58

Re: No JSON object could be decoded nach update auf 4.0.6

Beitrag von brainy84 »

Hallo Herr Wenselowski,

danke für das Feedback. Also der Host-Key unter den Pfaden:
C:\Program Files (x86)\opsi.org\opsi-client-agent\opsiclientd\opsiclientd.conf
/etc/opsi/pckeys
stimmt überein. Ich habe testweise opsi-setup --register-depot durchgeführt. Dabei bleibt der Prozess hängen (siehe unten)

Code: Alles auswählen

root@domain:/etc/opsi/backendManager# opsi-setup --register-depot
[5] [Oct 23 13:52:44] Getting current system config (opsi-setup|113)
[5] [Oct 23 13:52:44] System information: (opsi-setup|166)
[5] [Oct 23 13:52:44]    distributor  : Ubuntu (opsi-setup|167)
[5] [Oct 23 13:52:44]    distribution : Ubuntu 14.04.3 LTS (opsi-setup|168)
[5] [Oct 23 13:52:44]    ip address   : 192.XXX.X.110 (opsi-setup|169)
[5] [Oct 23 13:52:44]    netmask      : 255.255.255.0 (opsi-setup|170)
[5] [Oct 23 13:52:44]    subnet       : 192.XXX.X.0 (opsi-setup|171)
[5] [Oct 23 13:52:44]    broadcast    : 192.XXX.4.255 (opsi-setup|172)
[5] [Oct 23 13:52:44]    fqdn         : xxx.domain.local (opsi-setup|173)
[5] [Oct 23 13:52:44]    hostname     : xxx (opsi-setup|174)
[5] [Oct 23 13:52:44]    domain       : domain.local (opsi-setup|175)
[5] [Oct 23 13:52:44]    win domain   : WORKGROUP (opsi-setup|176)
[5] [Okt 23 13:53:24] Creating depot 'xxx.domain.local' (opsi-setup|1742)
[5] [Okt 23 13:53:24] Getting depot 'xxx.domain.local' (opsi-setup|1745)
[5] [Okt 23 13:53:25] Testing connection to config server as user 'xxx.domain.local' (opsi-setup|1754)
[5] [Okt 23 13:53:25] Successfully connected to config server as user 'xxx.domain.local' (opsi-setup|1759)
[5] [Okt 23 13:53:25] Updating backend config '/etc/opsi/backends/jsonrpc.conf' (__init__.py|85)
[5] [Okt 23 13:53:25] Backend config '/etc/opsi/backends/jsonrpc.conf' updated (__init__.py|99)
[5] [Okt 23 13:53:25] Updating dispatch config '/etc/opsi/backendManager/dispatch.conf' (opsi-setup|1763)
[5] [Okt 23 13:53:25] Dispatch config '/etc/opsi/backendManager/dispatch.conf' updated (opsi-setup|1776)
Die dispatch.conf ist anschließend nur halb bearbeitet und opsi nicht mehr administrierbar:

Code: Alles auswählen

backend_.* : jsonrpc, opsipxeconfd, dhcpd
.*         : jsonrpc
Wenn ich dann die typische dispatch.conf wiederherstelle und die Befehle:

Code: Alles auswählen

opsi-setup --init-current-config
opsi-setup --set-rights
/etc/init.d/opsiconfd restart
/etc/init.d/opsipxeconfd restart
ausführe bin ich wieder bei meinem alten Problem. Danke für die Unterstützung, gibt es zufällig weitere Vorschläge?

MfG

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

Re: No JSON object could be decoded nach update auf 4.0.6

Beitrag von n.wenselowski »

Hi,

warum das --register-depot?


-N

Code: Alles auswählen

import OPSI
Antworten