Web service / API Methoden - No JSON object could be decoded

The place for development of / with / for opsi.
Post your API questions here!
isnoguter
Beiträge: 79
Registriert: 23 Jul 2014, 07:03

Web service / API Methoden - No JSON object could be decoded

Beitrag von isnoguter »

Hallo,

ich bin gerade dabei mich in die Web service / API Methoden einzuarbeiten: https://download.uib.de/opsi_stable/doc ... cture-opsi

Ich habe mir zum Start einfach ein paar im Handbuch angegebene Befehle kopiert und ausgeführt. Meine einzige Anpassung ist die Version von jedit. Ohne angabe der Version funktioniert es auch nicht. Leider bekomme ich folgenden Fehler.

Code: Alles auswählen

opsi@opsi01:~$ opsi-admin -d method productDependency_getObjects [] {"productId":"jedit","productVersion":"5.4.0"}
[2] Traceback: (Logger.py|798)
[2]   File "/usr/bin/opsi-admin", line 1697, in <module>
    main(sys.argv[1:])
 (Logger.py|798)
[2]   File "/usr/bin/opsi-admin", line 367, in main
    raise error
 (Logger.py|798)
[2]      ==>>> Failed to execute u'method productDependency_getObjects [] productId:jedit productVersion:5.4.0': No JSON object could be decoded (opsi-admin|1704)
[3] Error during execution: Failed to execute u'method productDependency_getObjects [] productId:jedit productVersion:5.4.0': No JSON object could be decoded (opsi-admin|1705)
Und hier nochmal mit Log-Level 7

Code: Alles auswählen

opsi@opsi01:~$ opsi-admin -d -l 7 method productDependency_getObjects [] {"productId":"jedit","productVersion":"5.4.0"}
[6] * BackendManager is creating BackendDispatcher (BackendManager.py|204)
[6] Backend context was set to <BackendManager()> (Backend.py|215)
[6] Loading dispatch config file '/etc/opsi/backendManager/dispatch.conf' (BackendManager.py|300)
[7] Trying to lock file '/etc/opsi/backendManager/dispatch.conf' (0/2000) (__init__.py|213)
[7] File '/etc/opsi/backendManager/dispatch.conf' locked after 0 millis (__init__.py|234)
[7] Trying to lock file '/etc/opsi/backendManager/dispatch.conf' (0/2000) (__init__.py|213)
[7] File '/etc/opsi/backendManager/dispatch.conf' locked after 0 millis (__init__.py|234)
[7] Read dispatch config from file u'/etc/opsi/backendManager/dispatch.conf': [(u'backend_.*', (u'mysql', u'opsipxeconfd')), (u'host_.*', (u'mysql', u'opsipxeconfd')), (u'productOnClient_.*', (u'mysql', u'opsipxeconfd')), (u'configState_.*', (u'mysql', u'opsipxeconfd')), (u'license.*', (u'mysql',)), (u'softwareLicense.*', (u'mysql',)), (u'audit.*', (u'mysql',)), (u'.*', (u'mysql',))] (BackendManager.py|337)
[6] Loading backend config '/etc/opsi/backends/opsipxeconfd.conf' (BackendManager.py|362)
[6] Backend context was set to <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|215)
[6] Loading backend config '/etc/opsi/backends/mysql.conf' (BackendManager.py|362)
[6] Backend context was set to <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|215)
[7] Trying to lock file '/etc/opsi/hwaudit/locales/en_US' (0/2000) (__init__.py|213)
[7] File '/etc/opsi/hwaudit/locales/en_US' locked after 0 millis (__init__.py|234)
[7] Found STRUCTURAL hardware class 'COMPUTER_SYSTEM' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'CHASSIS' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'BASE_BOARD' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'BIOS' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'SYSTEM_SLOT' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'PORT_CONNECTOR' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'PROCESSOR' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'MEMORY_BANK' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'MEMORY_MODULE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'CACHE_MEMORY' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'PCI_DEVICE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'NETWORK_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'AUDIO_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'HDAUDIO_DEVICE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'IDE_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'SCSI_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'FLOPPY_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'USB_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class '1394_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'PCMCIA_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'VIDEO_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'FLOPPY_DRIVE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'TAPE_DRIVE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'HARDDISK_DRIVE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'DISK_PARTITION' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'OPTICAL_DRIVE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'USB_DEVICE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'MONITOR' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'KEYBOARD' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'POINTING_DEVICE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'PRINTER' (Backend.py|1600)
[7] Creating ConnectionPool instance (MySQL.py|71)
[7] MySQL created: <MySQL(address=u'localhost')> (MySQL.py|149)
[6] Verifying modules file signature (MySQL.py|540)
[6] Modules file signature verified (customer: Landratsamt Saalfeld-Rudolstadt EDV) (MySQL.py|565)
[7] MySQLBackend created: <MySQLBackend()> (MySQL.py|573)
[7] BackendDispatcher is creating instance methods (BackendManager.py|378)
[7] u'audit.*' matches method 'auditHardwareOnHost_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditHardwareOnHost_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditHardwareOnHost_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditHardwareOnHost_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditHardwareOnHost_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditHardware_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditHardware_getConfig', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditHardware_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditHardware_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditHardware_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditHardware_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftwareOnClient_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftwareOnClient_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftwareOnClient_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftwareOnClient_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftwareOnClient_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftwareToLicensePool_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftwareToLicensePool_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftwareToLicensePool_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftwareToLicensePool_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftwareToLicensePool_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftware_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftware_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftware_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftware_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftware_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'backend_.*' matches method 'backend_createBase', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'backend_.*' matches method 'backend_deleteBase', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] BackendDispatcher: skipping already present method backend_exit (BackendManager.py|387)
[7] BackendDispatcher: skipping already present method backend_getInterface (BackendManager.py|387)
[7] BackendDispatcher: skipping already present method backend_getOptions (BackendManager.py|387)
[7] u'backend_.*' matches method 'backend_getSystemConfiguration', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] BackendDispatcher: skipping already present method backend_info (BackendManager.py|387)
[7] BackendDispatcher: skipping already present method backend_setOptions (BackendManager.py|387)
[7] u'configState_.*' matches method 'configState_deleteObjects', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'configState_.*' matches method 'configState_getHashes', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'configState_.*' matches method 'configState_getObjects', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'configState_.*' matches method 'configState_insertObject', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'configState_.*' matches method 'configState_updateObject', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'.*' matches method 'config_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'config_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'config_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'config_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'config_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'getData', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'getRawData', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'group_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'group_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'group_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'group_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'group_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'host_.*' matches method 'host_deleteObjects', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'host_.*' matches method 'host_getHashes', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'host_.*' matches method 'host_getObjects', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'host_.*' matches method 'host_insertObject', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'host_.*' matches method 'host_updateObject', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'license.*' matches method 'licenseContract_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'license.*' matches method 'licenseContract_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'license.*' matches method 'licenseContract_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'license.*' matches method 'licenseContract_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'license.*' matches method 'licenseContract_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'license.*' matches method 'licenseOnClient_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'license.*' matches method 'licenseOnClient_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'license.*' matches method 'licenseOnClient_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'license.*' matches method 'licenseOnClient_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'license.*' matches method 'licenseOnClient_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'license.*' matches method 'licensePool_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'license.*' matches method 'licensePool_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'license.*' matches method 'licensePool_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'license.*' matches method 'licensePool_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'license.*' matches method 'licensePool_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'log_read', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'log_write', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'objectToGroup_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'objectToGroup_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'objectToGroup_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'objectToGroup_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'objectToGroup_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productDependency_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productDependency_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productDependency_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productDependency_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productDependency_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'productOnClient_.*' matches method 'productOnClient_deleteObjects', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'productOnClient_.*' matches method 'productOnClient_getHashes', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'productOnClient_.*' matches method 'productOnClient_getObjects', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'productOnClient_.*' matches method 'productOnClient_insertObject', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'productOnClient_.*' matches method 'productOnClient_updateObject', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'.*' matches method 'productOnDepot_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productOnDepot_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productOnDepot_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productOnDepot_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productOnDepot_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productPropertyState_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productPropertyState_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productPropertyState_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productPropertyState_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productPropertyState_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productProperty_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productProperty_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productProperty_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productProperty_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productProperty_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'product_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'product_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'product_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'product_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'product_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'softwareLicense.*' matches method 'softwareLicenseToLicensePool_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'softwareLicense.*' matches method 'softwareLicenseToLicensePool_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'softwareLicense.*' matches method 'softwareLicenseToLicensePool_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'softwareLicense.*' matches method 'softwareLicenseToLicensePool_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'softwareLicense.*' matches method 'softwareLicenseToLicensePool_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'softwareLicense.*' matches method 'softwareLicense_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'softwareLicense.*' matches method 'softwareLicense_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'softwareLicense.*' matches method 'softwareLicense_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'softwareLicense.*' matches method 'softwareLicense_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'softwareLicense.*' matches method 'softwareLicense_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'user_getCredentials', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'user_setCredentials', dispatching to backends: mysql (BackendManager.py|400)
[6] * BackendManager is creating ExtendedConfigDataBackend (BackendManager.py|209)
[6] Setting context to backend <ExtendedConfigDataBackend(configDataBackend=<BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)>)> (Backend.py|482)
[7] ExtendedConfigDataBackend is creating instance methods (Backend.py|488)
[7] ExtendedConfigDataBackend: overwriting method auditHardwareOnHost_updateObject of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] ExtendedConfigDataBackend: overwriting method backend_exit of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] ExtendedConfigDataBackend: overwriting method backend_getInterface of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] ExtendedConfigDataBackend: overwriting method backend_getOptions of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] ExtendedConfigDataBackend: overwriting method backend_info of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] ExtendedConfigDataBackend: overwriting method backend_setOptions of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] ExtendedConfigDataBackend: overwriting method configState_getObjects of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] ExtendedConfigDataBackend: overwriting method configState_insertObject of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] ExtendedConfigDataBackend: overwriting method configState_updateObject of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] ExtendedConfigDataBackend: overwriting method productOnClient_getObjects of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] ExtendedConfigDataBackend: overwriting method productOnClient_insertObject of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] ExtendedConfigDataBackend: overwriting method productOnClient_updateObject of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] ExtendedConfigDataBackend: overwriting method productOnDepot_deleteObjects of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] ExtendedConfigDataBackend: overwriting method productOnDepot_insertObject of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] ExtendedConfigDataBackend: overwriting method productPropertyState_getObjects of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] Dispatching method 'auditHardware_getConfig' to backends: [u'mysql'] (BackendManager.py|412)
[7] Trying to lock file '/etc/opsi/hwaudit/locales/en_US' (0/2000) (__init__.py|213)
[7] File '/etc/opsi/hwaudit/locales/en_US' locked after 0 millis (__init__.py|234)
[7] Found STRUCTURAL hardware class 'COMPUTER_SYSTEM' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'CHASSIS' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'BASE_BOARD' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'BIOS' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'SYSTEM_SLOT' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'PORT_CONNECTOR' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'PROCESSOR' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'MEMORY_BANK' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'MEMORY_MODULE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'CACHE_MEMORY' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'PCI_DEVICE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'NETWORK_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'AUDIO_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'HDAUDIO_DEVICE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'IDE_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'SCSI_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'FLOPPY_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'USB_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class '1394_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'PCMCIA_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'VIDEO_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'FLOPPY_DRIVE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'TAPE_DRIVE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'HARDDISK_DRIVE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'DISK_PARTITION' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'OPTICAL_DRIVE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'USB_DEVICE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'MONITOR' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'KEYBOARD' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'POINTING_DEVICE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'PRINTER' (Backend.py|1600)
[6] * BackendManager is creating DepotserverBackend (BackendManager.py|215)
[6] Setting context to backend <DepotserverBackend()> (Backend.py|482)
[7] DepotserverBackend is creating instance methods (Backend.py|488)
[7] DepotserverBackend: overwriting method backend_exit of backend instance <ExtendedConfigDataBackend(configDataBackend=<BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)>)> (Backend.py|497)
[7] DepotserverBackend: overwriting method backend_getInterface of backend instance <ExtendedConfigDataBackend(configDataBackend=<BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)>)> (Backend.py|497)
[7] DepotserverBackend: overwriting method backend_getOptions of backend instance <ExtendedConfigDataBackend(configDataBackend=<BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)>)> (Backend.py|497)
[7] DepotserverBackend: overwriting method backend_info of backend instance <ExtendedConfigDataBackend(configDataBackend=<BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)>)> (Backend.py|497)
[7] DepotserverBackend: overwriting method backend_setOptions of backend instance <ExtendedConfigDataBackend(configDataBackend=<BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)>)> (Backend.py|497)
[7] ExtendedBackend <ExtendedConfigDataBackend(configDataBackend=<BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)>)>: executing 'host_getObjects' on backend <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|508)
[7] Dispatching method 'host_getObjects' to backends: [u'mysql', u'opsipxeconfd'] (BackendManager.py|412)
[7] Created query: select `hostId`,`type` from `HOST` where (`hostId` = 'opsi01.kreis-slf.de') (SQL.py|318)
[7] Now using log-file '/var/log/opsi/package.log' for object 0x7ffa928a5ad0 (Logger.py|489)
[6] * BackendManager is creating HostControlBackend (BackendManager.py|219)
[6] Setting context to backend <HostControlBackend()> (Backend.py|482)
[7] HostControlBackend is creating instance methods (Backend.py|488)
[7] HostControlBackend: overwriting method backend_exit of backend instance <DepotserverBackend()> (Backend.py|497)
[7] HostControlBackend: overwriting method backend_getInterface of backend instance <DepotserverBackend()> (Backend.py|497)
[7] HostControlBackend: overwriting method backend_getOptions of backend instance <DepotserverBackend()> (Backend.py|497)
[7] HostControlBackend: overwriting method backend_info of backend instance <DepotserverBackend()> (Backend.py|497)
[7] HostControlBackend: overwriting method backend_setOptions of backend instance <DepotserverBackend()> (Backend.py|497)
[6] * BackendManager is creating HostControlBackend (BackendManager.py|228)
[6] Setting context to backend <HostControlSafeBackend()> (Backend.py|482)
[7] HostControlSafeBackend is creating instance methods (Backend.py|488)
[7] HostControlSafeBackend: overwriting method backend_exit of backend instance <HostControlBackend(resolveHostAddress=False, maxConnections=50)> (Backend.py|497)
[7] HostControlSafeBackend: overwriting method backend_getInterface of backend instance <HostControlBackend(resolveHostAddress=False, maxConnections=50)> (Backend.py|497)
[7] HostControlSafeBackend: overwriting method backend_getOptions of backend instance <HostControlBackend(resolveHostAddress=False, maxConnections=50)> (Backend.py|497)
[7] HostControlSafeBackend: overwriting method backend_info of backend instance <HostControlBackend(resolveHostAddress=False, maxConnections=50)> (Backend.py|497)
[7] HostControlSafeBackend: overwriting method backend_setOptions of backend instance <HostControlBackend(resolveHostAddress=False, maxConnections=50)> (Backend.py|497)
[6] * BackendManager is creating BackendExtender (BackendManager.py|241)
[6] Setting context to backend <BackendExtender()> (Backend.py|482)
[7] BackendExtender is creating instance methods (Backend.py|488)
[7] BackendExtender: overwriting method backend_exit of backend instance <HostControlSafeBackend(resolveHostAddress=False, maxConnections=50)> (Backend.py|497)
[7] BackendExtender: overwriting method backend_getInterface of backend instance <HostControlSafeBackend(resolveHostAddress=False, maxConnections=50)> (Backend.py|497)
[7] BackendExtender: overwriting method backend_getOptions of backend instance <HostControlSafeBackend(resolveHostAddress=False, maxConnections=50)> (Backend.py|497)
[7] BackendExtender: overwriting method backend_info of backend instance <HostControlSafeBackend(resolveHostAddress=False, maxConnections=50)> (Backend.py|497)
[7] BackendExtender: overwriting method backend_setOptions of backend instance <HostControlSafeBackend(resolveHostAddress=False, maxConnections=50)> (Backend.py|497)
[6] Reading config file '/etc/opsi/backendManager/extend.d/10_opsi.conf' (BackendManager.py|500)
[6] Reading config file '/etc/opsi/backendManager/extend.d/10_wim.conf' (BackendManager.py|500)
[6] Reading config file '/etc/opsi/backendManager/extend.d/20_legacy.conf' (BackendManager.py|500)
[6] Reading config file '/etc/opsi/backendManager/extend.d/30_kiosk.conf' (BackendManager.py|500)
[6] Reading config file '/etc/opsi/backendManager/extend.d/30_sshcommands.conf' (BackendManager.py|500)
[6] Reading config file '/etc/opsi/backendManager/extend.d/40_admin_tasks.conf' (BackendManager.py|500)
[6] Reading config file '/etc/opsi/backendManager/extend.d/40_groupActions.conf' (BackendManager.py|500)
[6] Reading config file '/etc/opsi/backendManager/extend.d/45_deprecated.conf' (BackendManager.py|500)
[6] Reading config file '/etc/opsi/backendManager/extend.d/70_dynamic_depot.conf' (BackendManager.py|500)
[6] Reading config file '/etc/opsi/backendManager/extend.d/70_wan.conf' (BackendManager.py|500)
[7] BackendManager is creating instance methods (Backend.py|488)
[7] BackendManager: overwriting method backend_exit of backend instance <BackendExtender()> (Backend.py|497)
[7] BackendManager: overwriting method backend_getInterface of backend instance <BackendExtender()> (Backend.py|497)
[7] BackendManager: overwriting method backend_getOptions of backend instance <BackendExtender()> (Backend.py|497)
[7] BackendManager: overwriting method backend_info of backend instance <BackendExtender()> (Backend.py|497)
[7] BackendManager: overwriting method backend_setOptions of backend instance <BackendExtender()> (Backend.py|497)
[6] arg[0]: method (opsi-admin|298)
[6] arg[1]: productDependency_getObjects (opsi-admin|298)
[6] arg[2]: [] (opsi-admin|298)
[6] arg[3]: productId:jedit (opsi-admin|298)
[6] arg[4]: productVersion:5.4.0 (opsi-admin|298)
[7] cmdline: 'method productDependency_getObjects [] productId:jedit productVersion:5.4.0' (opsi-admin|313)
[6] Execute: u'method productDependency_getObjects [] productId:jedit productVersion:5.4.0' (opsi-admin|744)
[7] cmdline: method productDependency_getObjects [] productId:jedit productVersion:5.4.0 (opsi-admin|727)
[7] cmdline: method productDependency_getObjects [] productId:jedit productVersion:5.4.0 (opsi-admin|727)
[2] Traceback: (Logger.py|798)
[2]   File "/usr/bin/opsi-admin", line 754, in execute
    command.execute(self, self.getParams()[1:])
 (Logger.py|798)
[2]   File "/usr/bin/opsi-admin", line 1152, in execute
    params[-1] = fromJson(params[-1], preventObjectCreation=True)
 (Logger.py|798)
[2]   File "/usr/lib/python2.7/dist-packages/OPSI/Util/__init__.py", line 177, in fromJson
    obj = json.loads(obj)
 (Logger.py|798)
[2]   File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
 (Logger.py|798)
[2]   File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
 (Logger.py|798)
[2]   File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
 (Logger.py|798)
[2]      ==>>> No JSON object could be decoded (opsi-admin|756)
[3] Failed to execute u'method productDependency_getObjects [] productId:jedit productVersion:5.4.0': No JSON object could be decoded (opsi-admin|758)
[2] Traceback: (Logger.py|798)
[2]   File "/usr/bin/opsi-admin", line 354, in main
    shell.execute()
 (Logger.py|798)
[2]   File "/usr/bin/opsi-admin", line 759, in execute
    raise RuntimeError(message)
 (Logger.py|798)
[2]      ==>>> Failed to execute u'method productDependency_getObjects [] productId:jedit productVersion:5.4.0': No JSON object could be decoded (opsi-admin|366)
[7] Calling backend_exit() on backend <BackendExtender()> (Backend.py|540)
[7] Calling backend_exit() on backend <HostControlSafeBackend(resolveHostAddress=False, maxConnections=50)> (Backend.py|540)
[7] Calling backend_exit() on backend <HostControlBackend(resolveHostAddress=False, maxConnections=50)> (Backend.py|540)
[7] Calling backend_exit() on backend <DepotserverBackend()> (Backend.py|540)
[7] Calling backend_exit() on backend <ExtendedConfigDataBackend(configDataBackend=<BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)>)> (Backend.py|540)
[7] Calling backend_exit() on backend <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|540)
[2] Traceback: (Logger.py|798)
[2]   File "/usr/bin/opsi-admin", line 1697, in <module>
    main(sys.argv[1:])
 (Logger.py|798)
[2]   File "/usr/bin/opsi-admin", line 367, in main
    raise error
 (Logger.py|798)
[2]      ==>>> Failed to execute u'method productDependency_getObjects [] productId:jedit productVersion:5.4.0': No JSON object could be decoded (opsi-admin|1704)
[3] Error during execution: Failed to execute u'method productDependency_getObjects [] productId:jedit productVersion:5.4.0': No JSON object could be decoded (opsi-admin|1705)
Kann mir bitte jemand sagen, was ich falsch mache?

Viele Grüße
pandel
Beiträge: 830
Registriert: 25 Jan 2013, 16:47

Re: Web service / API Methoden - No JSON object could be decoded

Beitrag von pandel »

Hi!

Die Methode "productDependency_getObjects" liefert bei mir nur Produkte mit erfüllten Abhängigkeiten. Hast du evtl. javavm (ist ne setup Abhängigkeit von jedit) nicht als Paket drin?

Lieber Gruß
Holger
isnoguter
Beiträge: 79
Registriert: 23 Jul 2014, 07:03

Re: Web service / API Methoden - No JSON object could be decoded

Beitrag von isnoguter »

Hallo,

ich habe beide Pakete (javavm und jedit) im depot.

Viele Grüße
bernd670
Beiträge: 90
Registriert: 16 Mär 2018, 10:44

Re: Web service / API Methoden - No JSON object could be decoded

Beitrag von bernd670 »

Hallo,

probiers mal wenn der Filter in ' steht

Code: Alles auswählen

opsi-admin -d method productDependency_getObjects [] '{"productId":"jedit","productVersion":"5.4.0"}'
MfG
Bernd
isnoguter
Beiträge: 79
Registriert: 23 Jul 2014, 07:03

Re: Web service / API Methoden - No JSON object could be decoded

Beitrag von isnoguter »

Hallo,

vielen Dank, das war der Fehler.

Jetzt versuche ich eine productDependency zu ändern und komme wieder nicht weiter.

1. export der productDependency

Code: Alles auswählen

opsi-admin -d method productDependency_getObjects [] '{"productId":"dfn_freemind"}' > dfn_freemind.json
2. anpassen der productDependency ("requiredProductId": "lra_java8",)

Code: Alles auswählen

[
    {
        "ident": "dfn_freemind;1.0.1;014;setup;java",
        "productAction": "setup",
        "requiredPackageVersion": null,
        "requirementType": "before",
        "requiredInstallationStatus": null,
        "productVersion": "1.0.1",
        "requiredProductId": "lra_java8",
        "requiredAction": "setup",
        "requiredProductVersion": null,
        "type": "ProductDependency",
        "packageVersion": "014",
        "productId": "dfn_freemind"
    }
]
3. einlesen der productDependency

bringt keine Fehlermeldung, ändert aber meine Einstellung nicht

Code: Alles auswählen

opsi-admin -d method productDependency_updateObjects < dfn_freemind.json
Viele Grüße
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Web service / API Methoden - No JSON object could be decoded

Beitrag von n.wenselowski »

Was sagen die Logs?

PS: Ins passende Forum verschoben.

Code: Alles auswählen

import OPSI
isnoguter
Beiträge: 79
Registriert: 23 Jul 2014, 07:03

Re: Web service / API Methoden - No JSON object could be decoded

Beitrag von isnoguter »

Hallo,

hier ist das Log.

Code: Alles auswählen

opsi@opsi01:/var/lib/opsi/workbench/_tmp$ opsi-admin -d -l 7 method productDependency_updateObjects < dfn_freemind.json           
[6] * BackendManager is creating BackendDispatcher (BackendManager.py|204)
[6] Backend context was set to <BackendManager()> (Backend.py|215)
[6] Loading dispatch config file '/etc/opsi/backendManager/dispatch.conf' (BackendManager.py|300)
[7] Trying to lock file '/etc/opsi/backendManager/dispatch.conf' (0/2000) (__init__.py|213)
[7] File '/etc/opsi/backendManager/dispatch.conf' locked after 0 millis (__init__.py|234)
[7] Trying to lock file '/etc/opsi/backendManager/dispatch.conf' (0/2000) (__init__.py|213)
[7] File '/etc/opsi/backendManager/dispatch.conf' locked after 0 millis (__init__.py|234)
[7] Read dispatch config from file u'/etc/opsi/backendManager/dispatch.conf': [(u'backend_.*', (u'mysql', u'opsipxeconfd')), (u'host_.*', (u'mysql', u'opsipxeconfd')), (u'productOnClient_.*', (u'mysql', u'opsipxeconfd')), (u'configState_.*', (u'mysql', u'opsipxeconfd')), (u'license.*', (u'mysql',)), (u'softwareLicense.*', (u'mysql',)), (u'audit.*', (u'mysql',)), (u'.*', (u'mysql',))] (BackendManager.py|337)
[6] Loading backend config '/etc/opsi/backends/opsipxeconfd.conf' (BackendManager.py|362)
[6] Backend context was set to <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|215)
[6] Loading backend config '/etc/opsi/backends/mysql.conf' (BackendManager.py|362)
[6] Backend context was set to <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|215)
[7] Trying to lock file '/etc/opsi/hwaudit/locales/en_US' (0/2000) (__init__.py|213)
[7] File '/etc/opsi/hwaudit/locales/en_US' locked after 0 millis (__init__.py|234)
[7] Found STRUCTURAL hardware class 'COMPUTER_SYSTEM' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'CHASSIS' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'BASE_BOARD' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'BIOS' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'SYSTEM_SLOT' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'PORT_CONNECTOR' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'PROCESSOR' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'MEMORY_BANK' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'MEMORY_MODULE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'CACHE_MEMORY' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'PCI_DEVICE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'NETWORK_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'AUDIO_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'HDAUDIO_DEVICE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'IDE_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'SCSI_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'FLOPPY_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'USB_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class '1394_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'PCMCIA_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'VIDEO_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'FLOPPY_DRIVE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'TAPE_DRIVE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'HARDDISK_DRIVE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'DISK_PARTITION' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'OPTICAL_DRIVE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'USB_DEVICE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'MONITOR' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'KEYBOARD' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'POINTING_DEVICE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'PRINTER' (Backend.py|1600)
[7] Creating ConnectionPool instance (MySQL.py|71)
[7] MySQL created: <MySQL(address=u'localhost')> (MySQL.py|149)
[6] Verifying modules file signature (MySQL.py|540)
[6] Modules file signature verified (customer: Landratsamt Saalfeld-Rudolstadt EDV) (MySQL.py|565)
[7] MySQLBackend created: <MySQLBackend()> (MySQL.py|573)
[7] BackendDispatcher is creating instance methods (BackendManager.py|378)
[7] u'audit.*' matches method 'auditHardwareOnHost_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditHardwareOnHost_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditHardwareOnHost_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditHardwareOnHost_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditHardwareOnHost_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditHardware_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditHardware_getConfig', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditHardware_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditHardware_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditHardware_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditHardware_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftwareOnClient_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftwareOnClient_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftwareOnClient_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftwareOnClient_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftwareOnClient_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftwareToLicensePool_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftwareToLicensePool_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftwareToLicensePool_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftwareToLicensePool_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftwareToLicensePool_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftware_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftware_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftware_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftware_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'audit.*' matches method 'auditSoftware_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'backend_.*' matches method 'backend_createBase', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'backend_.*' matches method 'backend_deleteBase', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] BackendDispatcher: skipping already present method backend_exit (BackendManager.py|387)
[7] BackendDispatcher: skipping already present method backend_getInterface (BackendManager.py|387)
[7] BackendDispatcher: skipping already present method backend_getOptions (BackendManager.py|387)
[7] u'backend_.*' matches method 'backend_getSystemConfiguration', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] BackendDispatcher: skipping already present method backend_info (BackendManager.py|387)
[7] BackendDispatcher: skipping already present method backend_setOptions (BackendManager.py|387)
[7] u'configState_.*' matches method 'configState_deleteObjects', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'configState_.*' matches method 'configState_getHashes', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'configState_.*' matches method 'configState_getObjects', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'configState_.*' matches method 'configState_insertObject', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'configState_.*' matches method 'configState_updateObject', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'.*' matches method 'config_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'config_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'config_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'config_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'config_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'getData', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'getRawData', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'group_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'group_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'group_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'group_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'group_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'host_.*' matches method 'host_deleteObjects', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'host_.*' matches method 'host_getHashes', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'host_.*' matches method 'host_getObjects', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'host_.*' matches method 'host_insertObject', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'host_.*' matches method 'host_updateObject', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'license.*' matches method 'licenseContract_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'license.*' matches method 'licenseContract_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'license.*' matches method 'licenseContract_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'license.*' matches method 'licenseContract_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'license.*' matches method 'licenseContract_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'license.*' matches method 'licenseOnClient_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'license.*' matches method 'licenseOnClient_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'license.*' matches method 'licenseOnClient_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'license.*' matches method 'licenseOnClient_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'license.*' matches method 'licenseOnClient_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'license.*' matches method 'licensePool_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'license.*' matches method 'licensePool_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'license.*' matches method 'licensePool_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'license.*' matches method 'licensePool_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'license.*' matches method 'licensePool_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'log_read', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'log_write', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'objectToGroup_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'objectToGroup_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'objectToGroup_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'objectToGroup_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'objectToGroup_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productDependency_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productDependency_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productDependency_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productDependency_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productDependency_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'productOnClient_.*' matches method 'productOnClient_deleteObjects', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'productOnClient_.*' matches method 'productOnClient_getHashes', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'productOnClient_.*' matches method 'productOnClient_getObjects', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'productOnClient_.*' matches method 'productOnClient_insertObject', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'productOnClient_.*' matches method 'productOnClient_updateObject', dispatching to backends: mysql, opsipxeconfd (BackendManager.py|400)
[7] u'.*' matches method 'productOnDepot_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productOnDepot_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productOnDepot_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productOnDepot_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productOnDepot_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productPropertyState_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productPropertyState_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productPropertyState_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productPropertyState_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productPropertyState_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productProperty_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productProperty_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productProperty_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productProperty_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'productProperty_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'product_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'product_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'product_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'product_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'product_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'softwareLicense.*' matches method 'softwareLicenseToLicensePool_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'softwareLicense.*' matches method 'softwareLicenseToLicensePool_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'softwareLicense.*' matches method 'softwareLicenseToLicensePool_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'softwareLicense.*' matches method 'softwareLicenseToLicensePool_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'softwareLicense.*' matches method 'softwareLicenseToLicensePool_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'softwareLicense.*' matches method 'softwareLicense_deleteObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'softwareLicense.*' matches method 'softwareLicense_getHashes', dispatching to backends: mysql (BackendManager.py|400)
[7] u'softwareLicense.*' matches method 'softwareLicense_getObjects', dispatching to backends: mysql (BackendManager.py|400)
[7] u'softwareLicense.*' matches method 'softwareLicense_insertObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'softwareLicense.*' matches method 'softwareLicense_updateObject', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'user_getCredentials', dispatching to backends: mysql (BackendManager.py|400)
[7] u'.*' matches method 'user_setCredentials', dispatching to backends: mysql (BackendManager.py|400)
[6] * BackendManager is creating ExtendedConfigDataBackend (BackendManager.py|209)
[6] Setting context to backend <ExtendedConfigDataBackend(configDataBackend=<BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)>)> (Backend.py|482)
[7] ExtendedConfigDataBackend is creating instance methods (Backend.py|488)
[7] ExtendedConfigDataBackend: overwriting method auditHardwareOnHost_updateObject of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] ExtendedConfigDataBackend: overwriting method backend_exit of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] ExtendedConfigDataBackend: overwriting method backend_getInterface of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] ExtendedConfigDataBackend: overwriting method backend_getOptions of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] ExtendedConfigDataBackend: overwriting method backend_info of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] ExtendedConfigDataBackend: overwriting method backend_setOptions of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] ExtendedConfigDataBackend: overwriting method configState_getObjects of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] ExtendedConfigDataBackend: overwriting method configState_insertObject of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] ExtendedConfigDataBackend: overwriting method configState_updateObject of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] ExtendedConfigDataBackend: overwriting method productOnClient_getObjects of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] ExtendedConfigDataBackend: overwriting method productOnClient_insertObject of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] ExtendedConfigDataBackend: overwriting method productOnClient_updateObject of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] ExtendedConfigDataBackend: overwriting method productOnDepot_deleteObjects of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] ExtendedConfigDataBackend: overwriting method productOnDepot_insertObject of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] ExtendedConfigDataBackend: overwriting method productPropertyState_getObjects of backend instance <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|497)
[7] Dispatching method 'auditHardware_getConfig' to backends: [u'mysql'] (BackendManager.py|412)
[7] Trying to lock file '/etc/opsi/hwaudit/locales/en_US' (0/2000) (__init__.py|213)
[7] File '/etc/opsi/hwaudit/locales/en_US' locked after 0 millis (__init__.py|234)
[7] Found STRUCTURAL hardware class 'COMPUTER_SYSTEM' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'CHASSIS' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'BASE_BOARD' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'BIOS' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'SYSTEM_SLOT' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'PORT_CONNECTOR' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'PROCESSOR' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'MEMORY_BANK' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'MEMORY_MODULE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'CACHE_MEMORY' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'PCI_DEVICE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'NETWORK_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'AUDIO_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'HDAUDIO_DEVICE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'IDE_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'SCSI_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'FLOPPY_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'USB_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class '1394_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'PCMCIA_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'VIDEO_CONTROLLER' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'FLOPPY_DRIVE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'TAPE_DRIVE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'HARDDISK_DRIVE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'DISK_PARTITION' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'OPTICAL_DRIVE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'USB_DEVICE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'MONITOR' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'KEYBOARD' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'POINTING_DEVICE' (Backend.py|1600)
[7] Found STRUCTURAL hardware class 'PRINTER' (Backend.py|1600)
[6] * BackendManager is creating DepotserverBackend (BackendManager.py|215)
[6] Setting context to backend <DepotserverBackend()> (Backend.py|482)
[7] DepotserverBackend is creating instance methods (Backend.py|488)
[7] DepotserverBackend: overwriting method backend_exit of backend instance <ExtendedConfigDataBackend(configDataBackend=<BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)>)> (Backend.py|497)
[7] DepotserverBackend: overwriting method backend_getInterface of backend instance <ExtendedConfigDataBackend(configDataBackend=<BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)>)> (Backend.py|497)
[7] DepotserverBackend: overwriting method backend_getOptions of backend instance <ExtendedConfigDataBackend(configDataBackend=<BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)>)> (Backend.py|497)
[7] DepotserverBackend: overwriting method backend_info of backend instance <ExtendedConfigDataBackend(configDataBackend=<BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)>)> (Backend.py|497)
[7] DepotserverBackend: overwriting method backend_setOptions of backend instance <ExtendedConfigDataBackend(configDataBackend=<BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)>)> (Backend.py|497)
[7] ExtendedBackend <ExtendedConfigDataBackend(configDataBackend=<BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)>)>: executing 'host_getObjects' on backend <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|508)
[7] Dispatching method 'host_getObjects' to backends: [u'mysql', u'opsipxeconfd'] (BackendManager.py|412)
[7] Created query: select `hostId`,`type` from `HOST` where (`hostId` = 'opsi01.kreis-slf.de') (SQL.py|318)
[7] Now using log-file '/var/log/opsi/package.log' for object 0x7f29378e5ad0 (Logger.py|489)
[6] * BackendManager is creating HostControlBackend (BackendManager.py|219)
[6] Setting context to backend <HostControlBackend()> (Backend.py|482)
[7] HostControlBackend is creating instance methods (Backend.py|488)
[7] HostControlBackend: overwriting method backend_exit of backend instance <DepotserverBackend()> (Backend.py|497)
[7] HostControlBackend: overwriting method backend_getInterface of backend instance <DepotserverBackend()> (Backend.py|497)
[7] HostControlBackend: overwriting method backend_getOptions of backend instance <DepotserverBackend()> (Backend.py|497)
[7] HostControlBackend: overwriting method backend_info of backend instance <DepotserverBackend()> (Backend.py|497)
[7] HostControlBackend: overwriting method backend_setOptions of backend instance <DepotserverBackend()> (Backend.py|497)
[6] * BackendManager is creating HostControlBackend (BackendManager.py|228)
[6] Setting context to backend <HostControlSafeBackend()> (Backend.py|482)
[7] HostControlSafeBackend is creating instance methods (Backend.py|488)
[7] HostControlSafeBackend: overwriting method backend_exit of backend instance <HostControlBackend(resolveHostAddress=False, maxConnections=50)> (Backend.py|497)
[7] HostControlSafeBackend: overwriting method backend_getInterface of backend instance <HostControlBackend(resolveHostAddress=False, maxConnections=50)> (Backend.py|497)
[7] HostControlSafeBackend: overwriting method backend_getOptions of backend instance <HostControlBackend(resolveHostAddress=False, maxConnections=50)> (Backend.py|497)
[7] HostControlSafeBackend: overwriting method backend_info of backend instance <HostControlBackend(resolveHostAddress=False, maxConnections=50)> (Backend.py|497)
[7] HostControlSafeBackend: overwriting method backend_setOptions of backend instance <HostControlBackend(resolveHostAddress=False, maxConnections=50)> (Backend.py|497)
[6] * BackendManager is creating BackendExtender (BackendManager.py|241)
[6] Setting context to backend <BackendExtender()> (Backend.py|482)
[7] BackendExtender is creating instance methods (Backend.py|488)
[7] BackendExtender: overwriting method backend_exit of backend instance <HostControlSafeBackend(resolveHostAddress=False, maxConnections=50)> (Backend.py|497)
[7] BackendExtender: overwriting method backend_getInterface of backend instance <HostControlSafeBackend(resolveHostAddress=False, maxConnections=50)> (Backend.py|497)
[7] BackendExtender: overwriting method backend_getOptions of backend instance <HostControlSafeBackend(resolveHostAddress=False, maxConnections=50)> (Backend.py|497)
[7] BackendExtender: overwriting method backend_info of backend instance <HostControlSafeBackend(resolveHostAddress=False, maxConnections=50)> (Backend.py|497)
[7] BackendExtender: overwriting method backend_setOptions of backend instance <HostControlSafeBackend(resolveHostAddress=False, maxConnections=50)> (Backend.py|497)
[6] Reading config file '/etc/opsi/backendManager/extend.d/10_opsi.conf' (BackendManager.py|500)
[6] Reading config file '/etc/opsi/backendManager/extend.d/10_wim.conf' (BackendManager.py|500)
[6] Reading config file '/etc/opsi/backendManager/extend.d/20_legacy.conf' (BackendManager.py|500)
[6] Reading config file '/etc/opsi/backendManager/extend.d/30_kiosk.conf' (BackendManager.py|500)
[6] Reading config file '/etc/opsi/backendManager/extend.d/30_sshcommands.conf' (BackendManager.py|500)
[6] Reading config file '/etc/opsi/backendManager/extend.d/40_admin_tasks.conf' (BackendManager.py|500)
[6] Reading config file '/etc/opsi/backendManager/extend.d/40_groupActions.conf' (BackendManager.py|500)
[6] Reading config file '/etc/opsi/backendManager/extend.d/45_deprecated.conf' (BackendManager.py|500)
[6] Reading config file '/etc/opsi/backendManager/extend.d/70_dynamic_depot.conf' (BackendManager.py|500)
[6] Reading config file '/etc/opsi/backendManager/extend.d/70_wan.conf' (BackendManager.py|500)
[7] BackendManager is creating instance methods (Backend.py|488)
[7] BackendManager: overwriting method backend_exit of backend instance <BackendExtender()> (Backend.py|497)
[7] BackendManager: overwriting method backend_getInterface of backend instance <BackendExtender()> (Backend.py|497)
[7] BackendManager: overwriting method backend_getOptions of backend instance <BackendExtender()> (Backend.py|497)
[7] BackendManager: overwriting method backend_info of backend instance <BackendExtender()> (Backend.py|497)
[7] BackendManager: overwriting method backend_setOptions of backend instance <BackendExtender()> (Backend.py|497)
[6] arg[0]: method (opsi-admin|298)
[6] arg[1]: productDependency_updateObjects (opsi-admin|298)
[7] cmdline: method productDependency_updateObjects '[    {        "ident": "dfn_freemind;1.0.1;014;setup;java",        "productAction": "setup",        "requiredPackageVersion": null,        "requirementType": "before",        "requiredInstallationStatus": null,        "productVersion": "1.0.1",        "requiredProductId": "lra_java8",        "requiredAction": "setup",        "requiredProductVersion": null,        "type": "ProductDependency",        "packageVersion": "014",        "productId": "dfn_freemind"    }]' (opsi-admin|727)
[7] cmdline: method productDependency_updateObjects '[    {        "ident": "dfn_freemind;1.0.1;014;setup;java",        "productAction": "setup",        "requiredPackageVersion": null,        "requirementType": "before",        "requiredInstallationStatus": null,        "productVersion": "1.0.1",        "requiredProductId": "lra_java8",        "requiredAction": "setup",        "requiredProductVersion": null,        "type": "ProductDependency",        "packageVersion": "014",        "productId": "dfn_freemind"    }]' (opsi-admin|727)
[6] Executing:  productDependency_updateObjects([<ProductDependency(productId=u'dfn_freemind', productVersion=u'1.0.1', packageVersion=u'014', productAction=u'setup', requiredProductId=u'java'>]) (opsi-admin|1177)
[7] ExtendedBackend <BackendManager()>: executing 'productDependency_updateObjects' on backend <BackendExtender()> (Backend.py|508)
[7] ExtendedBackend <BackendExtender()>: executing 'productDependency_updateObjects' on backend <HostControlSafeBackend(resolveHostAddress=False, maxConnections=50)> (Backend.py|508)
[7] ExtendedBackend <HostControlSafeBackend(resolveHostAddress=False, maxConnections=50)>: executing 'productDependency_updateObjects' on backend <HostControlBackend(resolveHostAddress=False, maxConnections=50)> (Backend.py|508)
[7] ExtendedBackend <HostControlBackend(resolveHostAddress=False, maxConnections=50)>: executing 'productDependency_updateObjects' on backend <DepotserverBackend()> (Backend.py|508)
[7] ExtendedBackend <DepotserverBackend()>: executing 'productDependency_updateObjects' on backend <ExtendedConfigDataBackend(configDataBackend=<BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)>)> (Backend.py|508)
[6] Updating productDependency <ProductDependency(productId=u'dfn_freemind', productVersion=u'1.0.1', packageVersion=u'014', productAction=u'setup', requiredProductId=u'java'> (Backend.py|2947)
[7] ExtendedBackend <ExtendedConfigDataBackend(configDataBackend=<BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)>)>: executing 'productDependency_getObjects' on backend <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|508)
[7] Dispatching method 'productDependency_getObjects' to backends: [u'mysql'] (BackendManager.py|412)
[7] Created query: select `productId`,`productVersion`,`packageVersion`,`productAction`,`requiredProductId` from `PRODUCT_DEPENDENCY` where (`productAction` = 'setup') and (`packageVersion` = '014') and (`productVersion` = '1.0.1') and (`requiredProductId` = 'java') and (`productId` = 'dfn_freemind') (SQL.py|318)
[7] Dispatching method 'productDependency_updateObject' to backends: [u'mysql'] (BackendManager.py|412)
[7] Took 0.006 seconds to process: productDependency_updateObjects([<ProductDependency(productId=u'dfn_freemind', productVersion=u'1.0.1', packageVersion=u'014', productAction=u'setup', requiredProductId=u'java'>]) (opsi-admin|1187)
[]
[7] Calling backend_exit() on backend <BackendExtender()> (Backend.py|540)
[7] Calling backend_exit() on backend <HostControlSafeBackend(resolveHostAddress=False, maxConnections=50)> (Backend.py|540)
[7] Calling backend_exit() on backend <HostControlBackend(resolveHostAddress=False, maxConnections=50)> (Backend.py|540)
[7] Calling backend_exit() on backend <DepotserverBackend()> (Backend.py|540)
[7] Calling backend_exit() on backend <ExtendedConfigDataBackend(configDataBackend=<BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)>)> (Backend.py|540)
[7] Calling backend_exit() on backend <BackendDispatcher(dispatchConfigFile=u'/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)> (Backend.py|540)
Viele Grüße
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Web service / API Methoden - No JSON object could be decoded

Beitrag von n.wenselowski »

Hi,

das Problem ist hier:
isnoguter hat geschrieben:

Code: Alles auswählen

[6] arg[0]: method (opsi-admin|298)
[6] arg[1]: productDependency_updateObjects (opsi-admin|298)
[7] cmdline: method productDependency_updateObjects '[    {        "ident": "dfn_freemind;1.0.1;014;setup;java",        "productAction": "setup",        "requiredPackageVersion": null,        "requirementType": "before",        "requiredInstallationStatus": null,        "productVersion": "1.0.1",        "requiredProductId": "lra_java8",        "requiredAction": "setup",        "requiredProductVersion": null,        "type": "ProductDependency",        "packageVersion": "014",        "productId": "dfn_freemind"    }]' (opsi-admin|727)
[7] cmdline: method productDependency_updateObjects '[    {        "ident": "dfn_freemind;1.0.1;014;setup;java",        "productAction": "setup",        "requiredPackageVersion": null,        "requirementType": "before",        "requiredInstallationStatus": null,        "productVersion": "1.0.1",        "requiredProductId": "lra_java8",        "requiredAction": "setup",        "requiredProductVersion": null,        "type": "ProductDependency",        "packageVersion": "014",        "productId": "dfn_freemind"    }]' (opsi-admin|727)
[6] Executing:  productDependency_updateObjects([<ProductDependency(productId=u'dfn_freemind', productVersion=u'1.0.1', packageVersion=u'014', productAction=u'setup', requiredProductId=u'java'>]) (opsi-admin|1177)
Erst haben wir die Daten wie eingelesen, dann ändert sich aber aus noch unerklärlichen Gründen etwas:
  • [7] cmdline: method productDependency_updateObjects '[ { "ident": "dfn_freemind;1.0.1;014;setup;java", "productAction": "setup", "requiredPackageVersion": null, "requirementType": "before", "requiredInstallationStatus": null, "productVersion": "1.0.1", "requiredProductId": "lra_java8", "requiredAction": "setup", "requiredProductVersion": null, "type": "ProductDependency", "packageVersion": "014", "productId": "dfn_freemind" }]' (opsi-admin|727)
  • [6] Executing: productDependency_updateObjects([<ProductDependency(productId=u'dfn_freemind', productVersion=u'1.0.1', packageVersion=u'014', productAction=u'setup', requiredProductId=u'java'>]) (opsi-admin|1177)
Das System ist ein opsi 4.1?


Gruß

Niko

Code: Alles auswählen

import OPSI
isnoguter
Beiträge: 79
Registriert: 23 Jul 2014, 07:03

Re: Web service / API Methoden - No JSON object could be decoded

Beitrag von isnoguter »

ja, läuft bereits unter 4.1

Code: Alles auswählen

opsi@opsi01:/var/lib/opsi/workbench/_tmp$ dpkg -l | grep opsi-
ii  opsi-configed                 4.0.7.6.34-2                   all          OPSI config editor
ii  opsi-linux-bootimage          20180208-1                     amd64        opsi bootimage for netboot tasks.
ii  opsi-server                   4.1.1.4-10                     all          opsi server configuration package
ii  opsi-tftpd-hpa                5.2.8-47                       amd64        HPA's tftp server
ii  opsi-utils                    4.1.1.19-2                     all          utilites for working with opsi.
ii  opsi-windows-support          4.1.1-5                        all          Install utilities useful for deploying Windows with opsi.
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Web service / API Methoden - No JSON object could be decoded

Beitrag von n.wenselowski »

Hi,

ich kann das Problem (leider) bei mir Nachstellen und versuche gerade herauszubekommen warum es so ist.

Was war der Wert von requiredProductId vorher?


Gruß

Niko

Code: Alles auswählen

import OPSI
Antworten