Error: retrieveJSONObject --- opsi service problem

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

Error: retrieveJSONObject --- opsi service problem

Beitrag von SisterOfMercy »

After migration to a new server a few of my clients did not work any more. The opsi client started, and sent the log file to the server.

opsi-script.log

Code: Alles auswählen

[1] [Jun 21 23:41:51:408] opsi-script 4.11.6.12 started at >>
[1] [Jun 21 23:41:51:408] opsi-script log file with encoding utf8
[1] [Jun 21 23:41:51:408] startmessage opsi-script created at CentralForm.FormCreate: 21-06-2017 23:41:51
[1] [Jun 21 23:41:51:408] Loading skin from: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winstskin
[1] [Jun 21 23:41:51:408] Depot path from readconfig:  p:\ 21-06-2017 23:41:51
[1] [Jun 21 23:41:51:408] startmessage StartProgramModes and create log: 21-06-2017 23:41:51
[1] [Jun 21 23:41:51:408] pm: 5 21-06-2017 23:41:51
[1] [Jun 21 23:41:51:408] startmessage start opsi service connection: 21-06-2017 23:41:51
[1] [Jun 21 23:41:51:408] startmessage: opsidata initialized: 21-06-2017 23:41:51
[1] [Jun 21 23:41:51:408] startmessage create log: 21-06-2017 23:41:51
[6] [Jun 21 23:41:51:408] JSON Bench for getDepotId "params":["client.domain.local"],"id" Start: 23:41:51:408 Time: 00:00:00:000
[3] [Jun 21 23:41:51:409] Error: retrieveJSONObject --- opsi service problem ----> unexpected Result from webservice in retrieveJSONObject, number of lines: 0-> retrieveJSONObject:1: Stream read error
[6] [Jun 21 23:41:51:409] Starting sorting POC 
[6] [Jun 21 23:41:51:409] JSON Bench for getProductOrdering "params":["JSON connection not established"],"id": Start: 23:41:51:409 Time: 00:00:00:000
[3] [Jun 21 23:41:51:409] Error: retrieveJSONObject --- opsi service problem ----> unexpected Result from webservice in retrieveJSONObject, number of lines: 0-> retrieveJSONObject:1: Stream read error
[3] [Jun 21 23:41:51:409] Failed fetching sorted POC list !
[3] [Jun 21 23:41:51:409] No correct calculated installation sequence !
[6] [Jun 21 23:41:51:409] Starting fetching unsorted POC list
[6] [Jun 21 23:41:51:409] JSON Bench for backend_setOptions "params":[{"processProductOnClientSequence":true}] Start: 23:41:51:409 Time: 00:00:00:000
[3] [Jun 21 23:41:51:409] Error: retrieveJSONObject --- opsi service problem ----> unexpected Result from webservice in retrieveJSONObject, number of lines: 0-> retrieveJSONObject:1: Stream read error
[4] [Jun 21 23:41:51:409] Product sequence calculated by opsi-script
[5] [Jun 21 23:41:51:409] Computername:client.domain.local
[5] [Jun 21 23:41:51:409] Computername according to Environment Variable :CLIENT
[5] [Jun 21 23:41:51:409] opsi service URL opsi-config.domain.local
[6] [Jun 21 23:41:51:409] Depot path:  p:\
[6] [Jun 21 23:41:51:409] 
[5] [Jun 21 23:41:51:411] bootmode BKSTD
[6] [Jun 21 23:41:51:411] Registry key [HKLM\SOFTWARE\opsi.org\winst]  opened
[6] [Jun 21 23:41:51:411]                 Variable "RebootRequested"  is keeping its value "0"
[6] [Jun 21 23:41:51:411]                 Variable "LastLogFilename"  is keeping its value "c:\opsi.org\log\opsi-script.log"
[6] [Jun 21 23:41:51:411]                 Variable "ContinueLogFile"  is keeping its value "0"
[6] [Jun 21 23:41:51:411]                 Variable "NumberOfErrors"  is keeping its value "0"
[6] [Jun 21 23:41:51:425]                 Key flushed
[6] [Jun 21 23:41:51:426]                 Key closed
[5] [Jun 21 23:41:51:428] -------- submitted part of log file ends here, see the rest of log file on client ----------
[5] [Jun 21 23:41:51:428] read file created
[5] [Jun 21 23:41:51:428] read file opend
[5] [Jun 21 23:41:51:428] start reading read file ...
[5] [Jun 21 23:41:51:429] write line: >", "client.domain.local", "false"], "id": 1}<  to service...
[5] [Jun 21 23:41:51:429] start sending read file ...
[3] [Jun 21 23:41:51:429] Exception in retrieveJSONObjectByHttpPost: stream handling
[3] [Jun 21 23:41:51:429] Exception in retrieveJSONObjectByHttpPost: stream handling
[6] [Jun 21 23:41:51:429] JSON Bench for backend_exit "params":[],"id":1} Start: 23:41:51:429 Time: 00:00:00:000
[3] [Jun 21 23:41:51:429] Error: retrieveJSONObject --- opsi service problem ----> unexpected Result from webservice in retrieveJSONObject, number of lines: 0-> retrieveJSONObject:1: Stream read error
[3] [Jun 21 23:41:51:429] exception in finishOpsiConf: backend_exit List index (0) out of bounds
[1] [Jun 21 23:41:51:429] ============  opsi-script Version 4.11.6.12 is regularly exiting. Time 2017-06-21  23:41:51 .
opsiclientd.log

Code: Alles auswählen

[7] [Jun 21 23:04:02] [ event config gui_startup      ] Parsing ini file 'C:\Program Files (x86)\opsi.org\opsi-client-agent\opsiclientd\opsiclientd.conf'   (__init__.pyo|518)
[7] [Jun 21 23:04:02] [ event config gui_startup      ] Trying to lock file 'C:\Program Files (x86)\opsi.org\opsi-client-agent\opsiclientd\opsiclientd.conf' (0/2000)   (__init__.pyo|216)
[7] [Jun 21 23:04:02] [ event config gui_startup      ] File 'C:\Program Files (x86)\opsi.org\opsi-client-agent\opsiclientd\opsiclientd.conf' locked after 0 millis   (__init__.pyo|237)
[7] [Jun 21 23:04:02] [ event config gui_startup      ] Finished reading file after 0.000 seconds   (__init__.pyo|595)
[5] [Jun 21 23:04:02] [ event processing gui_startup{installation_pending}] No need to write config file 'C:\Program Files (x86)\opsi.org\opsi-client-agent\opsiclientd\opsiclientd.conf', config file is up to date   (Config.pyo|365)
[7] [Jun 21 23:04:02] [ event generator wait_for_gui  ] messageChanged: subject id 'message', message ''   (Message.pyo|488)
[7] [Jun 21 23:04:02] [ event generator wait_for_gui  ] sending notification 'messageChanged' to clients   (Message.pyo|543)
[5] [Jun 21 23:04:02] [ event processing gui_startup{installation_pending}] Writing log to service   (EventProcessing.pyo|257)
[7] [Jun 21 23:04:02] [ event generator wait_for_gui  ] messageChanged: subject id 'status', message 'Writing log to service'   (Message.pyo|488)
[7] [Jun 21 23:04:02] [ event generator wait_for_gui  ] sending notification 'messageChanged' to clients   (Message.pyo|543)
[7] [Jun 21 23:04:02] [ event config gui_startup      ] Executing jsonrpc method 'backend_exit' on host u'opsi-config.domain.local'   (JSONRPC.pyo|115)
[8] [Jun 21 23:04:02] [ event config gui_startup      ] jsonrpc: '{"params": [], "id": 18, "method": "backend_exit"}'   (JSONRPC.pyo|119)
[7] [Jun 21 23:04:02] [ event config gui_startup      ] Posting request...   (JSONRPC.pyo|713)
[7] [Jun 21 23:04:02] [ event config gui_startup      ] Starting new HTTPS connection (0) to opsi-config.domain.local:4447   (HTTP.pyo|649)
[7] [Jun 21 23:04:02] [ event config gui_startup      ] Connection established to: opsi-config.domain.local   (HTTP.pyo|651)
[8] [Jun 21 23:04:02] [ event config gui_startup      ] Trying to get peer cert...   (HTTP.pyo|189)
[8] [Jun 21 23:04:02] [ event config gui_startup      ] Failed to get peer cert: 'NoneType' object has no attribute 'getpeercert'   (HTTP.pyo|201)
[8] [Jun 21 23:04:02] [ event config gui_startup      ] Handing data to connection...   (HTTP.pyo|528)
[8] [Jun 21 23:04:02] [ event config gui_startup      ] Creating HTTPResponse from httplib...   (HTTP.pyo|273)
[7] [Jun 21 23:04:02] [ event config gui_startup      ] Closing connection: <httplib.HTTPSConnection instance at 0x02BFF328>   (HTTP.pyo|569)
[8] [Jun 21 23:04:02] [ event config gui_startup      ] Processing response...   (JSONRPC.pyo|719)
[7] [Jun 21 23:04:02] [ event config gui_startup      ] Content-Type: gzip-application/json;charset=utf-8, Content-Encoding: deflate   (JSONRPC.pyo|730)
[7] [Jun 21 23:04:02] [ event config gui_startup      ] Expecting deflated data from server (backwards compatible)   (JSONRPC.pyo|738)
[8] [Jun 21 23:04:02] [ event config gui_startup      ] Response is: {"id": 18, "result": null, "error": null}   (JSONRPC.pyo|750)
After this it just stopped, well, a few lines until the end.
I fixed it by removing all mysql entries from /etc/opsi/backendManager/dispatch.conf, and then the installation went through. Adding the mysql entries back again afterwards made all hardware information available again, and the client still worked. I'm not sure why this works.
Of course I tried everything I knew, --init-current-config, --cleanup-backend, --update-mysql, --set-rights, etc etc. I removed the client, and created a new one, copied the new PCkey to the client. I also reinstalled the opsi-client-agent, all to no avail.
Is the mysql database checked for inconsistencies during the --cleanup-backend phase?
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: Error: retrieveJSONObject --- opsi service problem

Beitrag von SisterOfMercy »

Crap, this doesn't work for the other clients, maybe I do have to recreate each non-working client. :( :(
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3319
Registriert: 04 Jun 2008, 14:27

Re: Error: retrieveJSONObject --- opsi service problem

Beitrag von d.oertel »

Hi,

you say that only 'a few' clients not work.
So what ever the problem causes, you should test if a reinstallation of the client-agent (via service-setup.cmd)
fixes the problem.
If this helps you may fix the rest using the opsi-deploy-client-agent command
(Details in the getting-started manual).

cheers
d.oertel
opsi support - uib gmbh

For productive opsi installations we recommend support contracts.
http://www.uib.de
http://www.opsi.org
Benutzeravatar
SisterOfMercy
Beiträge: 1522
Registriert: 22 Jun 2012, 19:18

Re: Error: retrieveJSONObject --- opsi service problem

Beitrag von SisterOfMercy »

Nope, reinstalling the opsi-client-agent does not solve it.

What does, somehow:
edit dispatch.conf, comment out mysql sections
edit client files in /var/lib/opsi/depot/config/clients/, the ones not working were missing a lot of info under the generalconfig section, such as clientconfig.configserver.url.
run opsi-setup --cleanup-backend (and all others, --set-rights, for instance, just for good measure)
reboot client, everything works again.
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: Error: retrieveJSONObject --- opsi service problem

Beitrag von n.wenselowski »

Hi,

does the error still persist?

The logs under /var/log/opsi/opsiconfd/ should give some more insight.
You might need to increase the loglevel to 7 or 8 but should then be able to see what calls create the problem.


Kind regards

Niko

Code: Alles auswählen

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

Re: Error: retrieveJSONObject --- opsi service problem

Beitrag von SisterOfMercy »

I thought I fixed it, but it also happens on new clients! :(

The logfiles don't show much, but previously I only looked at the logfile on the client. Let's leave that until later.
I built four new computers, and booted from the network in uefi mode. In the bootimage I filled in the hostname of the new client. After the installation of windows 7 the same thing happens. The opsi client is activated, asks the server for actions, but instead of starting actions it sends the log to the server. It encounters an error, right.

# cat /var/lib/opsi/config/clients/gce2012-044.gcecad-service.local.ini

Code: Alles auswählen

[info]
created = 2017-07-26 19:27:37
description = Supermicro X11SSQ
hardwareaddress = 0c:c4:7a:e2:e8:7b
inventorynumber = 
ipaddress = 10.23.28.73
lastseen = 2017-07-26 20:23:48
notes = Automatically created by linux bootimage

[generalconfig]
clientconfig.install_by_shutdown.active = [false]
clientconfig.uefinetbootlabel = ["UEFI: IP4 Intel(R) I210 Gigabit  Network Connection"]
user.{}.ssh.terminal.active = [false]

[localboot_product_states]
gce-settings = not_installed:setup
microsoft-vc-runtime-2008 = not_installed:setup
opsi-client-agent = installed:none
opsi-winst = installed:none
shexview = not_installed:setup
win7-postinstall = not_installed:setup
win7-settings = not_installed:setup

[netboot_product_states]
win7-x64 = installed:none

[gce-settings-state]
modificationtime = 2017-07-26 20:18:33
producttype = LocalbootProduct

[microsoft-vc-runtime-2008-state]
modificationtime = 2017-07-26 20:18:33
producttype = LocalbootProduct

[opsi-client-agent-state]
actionprogress = 
actionresult = successful
lastaction = setup
modificationtime = 2017-07-26 20:18:48
packageversion = 1
producttype = LocalbootProduct
productversion = 4.0.7.15
targetconfiguration = installed

[opsi-winst-state]
actionprogress = 
actionresult = successful
modificationtime = 2017-07-26 20:18:48
packageversion = 1
producttype = LocalbootProduct
productversion = 4.11.6.12

[shexview-state]
modificationtime = 2017-07-26 20:18:33
producttype = LocalbootProduct

[win7-postinstall-state]
modificationtime = 2017-07-26 20:18:32
producttype = LocalbootProduct

[win7-settings-state]
modificationtime = 2017-07-26 20:18:32
producttype = LocalbootProduct

[win7-x64-state]
actionprogress = 
actionresult = successful
modificationtime = 2017-07-26 20:16:33
packageversion = 6
producttype = NetbootProduct
productversion = 4.0.7.1
 
Under the generalconfig section there are not enough entries that are created. If I add these manually, and run opsi-setup --cleanup-backend I can get the thing to work.

# cat /var/log/opsi/opsiconfd/gce2012-044.gcecad-service.local.log

Code: Alles auswählen

[4] [Jul 26 19:27:33] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 19:27:33] Application 'opsi linux bootimage 20170508' on client '10.23.28.73' did not send cookie (workers.py|183)
[5] [Jul 26 19:27:33] New session created (session.py|77)
[5] [Jul 26 19:27:33] Authorization request from adminuser@10.23.28.73 (application: opsi linux bootimage 20170508) (workers.py|213)
[4] [Jul 26 19:27:33] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 19:27:33] -----> Executing: backend_getInterface() (JsonRpc.py|134)
[4] [Jul 26 19:27:34] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 19:27:34] -----> Executing: getClientIds_list(None, [], None, None, None, None, None, None, None) (JsonRpc.py|134)
[4] [Jul 26 19:27:36] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 19:27:37] -----> Executing: createClient(u'gce2012-044', u'gcecad-service.local', None, u'Automatically created by linux bootimage', None, u'0c:c4:7a:e2:e8:7b') (JsonRpc.py|134)
[4] [Jul 26 19:27:37] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 19:27:37] -----> Executing: getOpsiHostKey(u'gce2012-044.gcecad-service.local') (JsonRpc.py|134)
[4] [Jul 26 19:27:37] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 19:27:37] Application 'opsi linux bootimage 20170508' on client '10.23.28.73' did not send cookie (workers.py|183)
[5] [Jul 26 19:27:37] New session created (session.py|77)
[5] [Jul 26 19:27:37] Authorization request from host gce2012-044.gcecad-service.local@10.23.28.73 (application: opsi linux bootimage 20170508) (workers.py|211)
[4] [Jul 26 19:27:37] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 19:27:37] -----> Executing: backend_getInterface() (JsonRpc.py|134)
[4] [Jul 26 19:27:37] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 19:27:37] -----> Executing: configState_getClientToDepotserver([], u'gce2012-044.gcecad-service.local', True, []) (JsonRpc.py|134)
[4] [Jul 26 19:27:37] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[4] [Jul 26 19:27:37] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[4] [Jul 26 19:27:37] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[4] [Jul 26 19:27:42] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[4] [Jul 26 19:27:42] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[4] [Jul 26 19:27:43] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[4] [Jul 26 19:27:43] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[4] [Jul 26 19:27:43] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 19:27:43] -----> Executing: user_getCredentials(u'pcpatch', u'gce2012-044.gcecad-service.local') (JsonRpc.py|134)
[4] [Jul 26 19:27:43] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[4] [Jul 26 19:27:43] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 19:27:43] -----> Executing: productOnClient_updateObjects(<ProductOnClient(clientId=u'gce2012-044.gcecad-service.local', productId=u'win7-x64', installationStatus=u'unknown', actionRequest=None)>) (JsonRpc.py|134)
[4] [Jul 26 19:27:43] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 19:27:43] -----> Executing: auditHardware_getConfig(None) (JsonRpc.py|134)
[4] [Jul 26 19:27:45] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 19:27:45] -----> Executing: auditHardwareOnHost_setObsolete(u'gce2012-044.gcecad-service.local') (JsonRpc.py|134)
[4] [Jul 26 19:27:45] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 19:27:45] -----> Executing: auditHardwareOnHost_createObjects([<AuditHardwareOnHost(hostId=u'gce2012-044.gcecad-service.local', hardwareClass=u'SYSTEM_SLOT', name=u'PCH SLOT4 PCI-E 3.0 X4')>, <AuditHardwareOnHost(hostId=u'gce2012-044.gcecad-service.local', hardw...) (JsonRpc.py|134)
[5] [Jul 26 19:27:47] Creating unix socket '/var/run/opsipxeconfd/opsipxeconfd.socket' (OpsiPXEConfd.py|52)
[4] [Jul 26 19:27:58] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[4] [Jul 26 19:27:58] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[4] [Jul 26 19:27:58] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 19:27:58] -----> Executing: productOnClient_deleteObjects([]) (JsonRpc.py|134)
[4] [Jul 26 19:29:09] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 19:29:10] -----> Executing: getPcpatchPassword(u'gce2012-044.gcecad-service.local') (JsonRpc.py|134)
[4] [Jul 26 19:29:14] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 19:29:14] -----> Executing: setProductActionRequestWithDependencies(u'win7-postinstall', u'gce2012-044.gcecad-service.local', u'setup', None) (JsonRpc.py|134)
[4] [Jul 26 19:29:14] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 19:29:14] -----> Executing: setProductActionRequestWithDependencies(u'win7-settings', u'gce2012-044.gcecad-service.local', u'setup', None) (JsonRpc.py|134)
[4] [Jul 26 19:29:14] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 19:29:15] -----> Executing: config_createUnicode(u'clientConfig.uefiNetbootLabel', u'clientspecific uefi firmware netboot entry label', None, None, None, None) (JsonRpc.py|134)
[4] [Jul 26 19:29:15] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 19:29:15] -----> Executing: configState_create(u'clientConfig.uefiNetbootLabel', u'gce2012-044.gcecad-service.local', [u'UEFI: IP4 Intel(R) I210 Gigabit  Network Connection']) (JsonRpc.py|134)
[4] [Jul 26 19:29:15] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 19:29:15] -----> Executing: productOnClient_updateObjects(<ProductOnClient(clientId=u'gce2012-044.gcecad-service.local', productId=u'win7-x64', installationStatus=u'unknown', actionRequest=u'none')>) (JsonRpc.py|134)
[4] [Jul 26 19:29:15] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 19:29:15] -----> Executing: log_write(u'bootimage', u'Jul 26 10:14:13 [opsiinit] opsi init script started\nJul 26 10:14:13 [opsiinit] opsi linux bootimage version: 20170508\nJul 26 10:14:13 [opsiinit] \nJul 26 10:14:13 [opsiinit] \nJul 26...) (JsonRpc.py|134)
[5] [Jul 26 19:29:37] Session 'KP7kgVfqo2vizupGlOUzjcwnHWGPBQBQ' from ip '10.23.28.73', application 'opsi linux bootimage 20170508' expired after 120 seconds (Session.py|190)
[5] [Jul 26 19:29:37] Session 'KP7kgVfqo2vizupGlOUzjcwnHWGPBQBQ' from ip '10.23.28.73', application 'opsi linux bootimage 20170508' deleted (Session.py|225)
[5] [Jul 26 19:31:15] Session '9X7Mc6ndQWCbRiXRDmp5hJeCScEgG10H' from ip '10.23.28.73', application 'opsi linux bootimage 20170508' expired after 120 seconds (Session.py|190)
[5] [Jul 26 19:31:15] Session '9X7Mc6ndQWCbRiXRDmp5hJeCScEgG10H' from ip '10.23.28.73', application 'opsi linux bootimage 20170508' deleted (Session.py|225)
[4] [Jul 26 20:20:12] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 20:20:12] Application 'opsiclientd version 4.0.90' on client '10.23.28.73' did not send cookie (workers.py|183)
[5] [Jul 26 20:20:12] New session created (session.py|77)
[5] [Jul 26 20:20:12] Authorization request from host gce2012-044.gcecad-service.local@10.23.28.73 (application: opsiclientd version 4.0.90) (workers.py|211)
[4] [Jul 26 20:20:12] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 20:20:12] -----> Executing: backend_getInterface() (JsonRpc.py|134)
[4] [Jul 26 20:20:13] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 20:20:13] -----> Executing: backend_info() (JsonRpc.py|134)
[4] [Jul 26 20:20:13] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 20:20:13] -----> Executing: dispatcher_getConfig() (JsonRpc.py|134)
[4] [Jul 26 20:20:13] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 20:20:13] -----> Executing: accessControl_authenticated() (JsonRpc.py|134)
[4] [Jul 26 20:20:13] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[4] [Jul 26 20:20:13] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[4] [Jul 26 20:20:13] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[4] [Jul 26 20:20:13] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[4] [Jul 26 20:20:13] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[4] [Jul 26 20:20:13] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 20:20:13] -----> Executing: configState_getClientToDepotserver([], [u'gce2012-044.gcecad-service.local'], True, [u'gce-settings', u'microsoft-vc-runtime-2008', u'shexview', u'win7-postinstall', u'win7-settings']) (JsonRpc.py|134)
[4] [Jul 26 20:20:13] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[4] [Jul 26 20:20:17] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 20:20:17] -----> Executing: user_getCredentials(u'pcpatch', u'gce2012-044.gcecad-service.local') (JsonRpc.py|134)
[4] [Jul 26 20:20:18] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 20:20:18] -----> Executing: user_getCredentials(u'pcpatch', u'gce2012-044.gcecad-service.local') (JsonRpc.py|134)
[4] [Jul 26 20:20:25] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[4] [Jul 26 20:20:28] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[4] [Jul 26 20:20:28] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[4] [Jul 26 20:20:28] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 20:20:28] -----> Executing: log_write(u'clientconnect', u'[6] [Jul 26 11:08:58] [ opsiclientd                   ] Setting config value global.log_file   (Config.pyo|203)\r\n[6] [Jul 26 11:08:58] [ opsiclientd                   ] Setting c...) (JsonRpc.py|134)
[4] [Jul 26 20:20:28] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 20:20:28] User 'gce2012-044.gcecad-service.local' asked to close the session (workers.py|469)
[5] [Jul 26 20:20:28] Session 'fDvVnX2xV3kIOD7My7XsJd1uiJoKjnO0' from ip '10.23.28.73', application 'opsiclientd version 4.0.90' deleted (Session.py|225)
[4] [Jul 26 20:23:47] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 20:23:47] Application 'opsiclientd version 4.0.90' on client '10.23.28.73' did not send cookie (workers.py|183)
[5] [Jul 26 20:23:47] New session created (session.py|77)
[5] [Jul 26 20:23:47] Authorization request from host gce2012-044.gcecad-service.local@10.23.28.73 (application: opsiclientd version 4.0.90) (workers.py|211)
[4] [Jul 26 20:23:47] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 20:23:48] -----> Executing: backend_getInterface() (JsonRpc.py|134)
[4] [Jul 26 20:23:48] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 20:23:48] -----> Executing: backend_info() (JsonRpc.py|134)
[4] [Jul 26 20:23:48] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 20:23:48] -----> Executing: dispatcher_getConfig() (JsonRpc.py|134)
[4] [Jul 26 20:23:48] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 20:23:48] -----> Executing: accessControl_authenticated() (JsonRpc.py|134)
[4] [Jul 26 20:23:49] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[4] [Jul 26 20:23:49] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[4] [Jul 26 20:23:49] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[4] [Jul 26 20:23:49] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[4] [Jul 26 20:23:49] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[4] [Jul 26 20:23:49] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 20:23:49] -----> Executing: configState_getClientToDepotserver([], [u'gce2012-044.gcecad-service.local'], True, [u'gce-settings', u'microsoft-vc-runtime-2008', u'shexview', u'win7-postinstall', u'win7-settings']) (JsonRpc.py|134)
[4] [Jul 26 20:23:49] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[4] [Jul 26 20:23:53] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 20:23:53] -----> Executing: user_getCredentials(u'pcpatch', u'gce2012-044.gcecad-service.local') (JsonRpc.py|134)
[4] [Jul 26 20:23:53] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 20:23:53] -----> Executing: user_getCredentials(u'pcpatch', u'gce2012-044.gcecad-service.local') (JsonRpc.py|134)
[4] [Jul 26 20:24:00] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[4] [Jul 26 20:24:03] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[4] [Jul 26 20:24:04] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[4] [Jul 26 20:24:04] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 20:24:04] -----> Executing: log_write(u'clientconnect', u'[6] [Jul 26 11:12:40] [ opsiclientd                   ] Setting config value global.log_file   (Config.pyo|203)\r\n[6] [Jul 26 11:12:40] [ opsiclientd                   ] Setting c...) (JsonRpc.py|134)
[4] [Jul 26 20:24:04] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|421)
[5] [Jul 26 20:24:04] User 'gce2012-044.gcecad-service.local' asked to close the session (workers.py|469)
[5] [Jul 26 20:24:04] Session 'HxMyJnyaz3iNWjpF6rlqqZaSXdlTLB3c' from ip '10.23.28.73', application 'opsiclientd version 4.0.90' deleted (Session.py|225) 
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: Error: retrieveJSONObject --- opsi service problem

Beitrag von n.wenselowski »

Hi,

are you able to reproduce the problem?

Could you tell me what versions you are running?
There isn't paralell work regarding the client happening, i.e. someone else with a configed open editing the client, no?


Kind regards

Niko

Code: Alles auswählen

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

Re: Error: retrieveJSONObject --- opsi service problem

Beitrag von SisterOfMercy »

n.wenselowski hat geschrieben:are you able to reproduce the problem?
Yes. But I'm going to have to do a few checks. Maybe it only happens with UEFI clients.
n.wenselowski hat geschrieben:Could you tell me what versions you are running?
There isn't paralell work regarding the client happening, i.e. someone else with a configed open editing the client, no?
I'm the only one who uses OPSI, and at the hours I was messing around, I was the only one there.

Code: Alles auswählen

#yum list installed | grep opsi
opsi-atftp.x86_64                       0.7.dfsg-13.2                  @opsi4
opsi-configed.noarch                    4.0.7.5.22-2.1                 @opsi4
opsi-depotserver.noarch                 4.0.7.1-1.1                    @opsi4
opsi-linux-bootimage.noarch             20170508-1.1                   @opsi4
opsi-utils.noarch                       4.0.7.7-3.2                    @opsi4
opsiconfd.noarch                        4.0.7.9-1.1                    @opsi4
opsipxeconfd.noarch                     4.0.7.5-3.2                    @opsi4
python-Twisted.x86_64                   12.0.0-10.2                    @opsi4
python-ldaptor.x86_64                   0.0.43-16.4                    @opsi4
python-opsi.noarch                      4.0.7.40-1.1                   @opsi4
python-pam.x86_64                       0.5.0-4.3                      @opsi4
zsync.x86_64                            0.6.2-5.1                      @opsi4
It's on CentOS 7.
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: Error: retrieveJSONObject --- opsi service problem

Beitrag von n.wenselowski »

Hi,

would be nice if you could narrow it down!

I'd try setting the loglevel to 8 on server and client and then let them do whatever triggers that.
This should get some insight.

You are using current stable which is good. Is the opsi-client-agent and opsi-winst on your server that uptodate aswell?


Kind regards

Niko

Code: Alles auswählen

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

Re: Error: retrieveJSONObject --- opsi service problem

Beitrag von SisterOfMercy »

n.wenselowski hat geschrieben:You are using current stable which is good. Is the opsi-client-agent and opsi-winst on your server that uptodate aswell?
I think so:

Code: Alles auswählen

# opsi-package-manager --list | grep opsi
   opsi-client-agent                 4.0.7.15-1                opsi.org client agent
   opsi-configed                     4.0.7.5.22-2              opsi configed
   opsi-winst                        4.11.6.12-1               winst
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Antworten