I have been trying to set up an Opsi-Server on a Cent-OS 6 Server. When I tried to install the basic packages using the command "opsi-product-updater -i -vv" I encountered the following error during the package installation:
Code: Alles auswählen
Installing package '/var/lib/opsi/repository/config-win-base_4.0.1-1.opsi'
=================================================================================================
Installing package file '/var/lib/opsi/repository/config-win-base_4.0.1-1.opsi' on depot 'opsi04.*******.de'
Getting meta data from package '/var/lib/opsi/repository/config-win-base_4.0.1-1.opsi'
Creating product in backend
Locking product 'config-win-base' on depot 'opsi04.*******.de'
Checking package dependencies
Running preinst script
Running package script 'preinst'
Unpacking package files
Extracting data from package '/var/lib/opsi/repository/config-win-base_4.0.1-1.opsi'
Setting product property states in backend
Running postinst script
Running package script 'postinst'
Creating package content file
Setting access rights of client-data files
Unlocking product 'config-win-base_4.0.1-1' on depot 'opsi04.*******.de'
Traceback:
line 1073 in '<module>' in file '/usr/bin/opsi-product-updater'
line 1067 in 'main' in file '/usr/bin/opsi-product-updater'
line 574 in 'processUpdates' in file '/usr/bin/opsi-product-updater'
==>>> Product 'config-win-base' not found on depot 'dhcp06.*******.de' after installation
ERROR: Product 'config-win-base' not found on depot 'dhcp06.*******.de' after installation
As I did not set up our dhcp as depot I am somewhat stupified why it appeared here. Checking /var/lib/opsi/config/depots/ I found an .ini for the dhcp-server as well and after reading in the forum, that I can remove the depot by just deleting that file, I backed it up and removed it. After a setting the config/rights and a reboot Opsi was working again, however, the error persisted.
I find especially the mix up of the Opsi-server and the DHCP peculiar. From the log I conclude that the in file.py the depot.id is set to dhcp06.*******.de. Nevertheless the package is extracted and run on the Opsi-server and finally the program tries to check on the DHCP whether the package was installed.
I guess that the DHCP-server has to be mentioned somewhere in the settings, however I am unable to find any mention of it in the config files. In /var/lib/opsi/config/config.ini the Opsi-server is set as the only depot.
I have no idea left what to change to fix this, or to pervent the error from happening again should I choose to reinstall the server and would be very thankful for advice.
Kind regards,
Florian
Command Log:
Code: Alles auswählen
service network restart
getent hosts $(hostname -f)
yum install mysql-server
yum install samba
yum install xinetd
/etc/init.d/mysqld start
mysql_secure_installation
/etc/init.d/smb start
/etc/init.d/nmb start
/etc/init.d/xinetd start
chkconfig smb on
chkconfig nmb on
chkconfig mysqld on
chkconfig xinetd on
vi /etc/yum.repos.d/opsi§0.repo
yum makecache
yum install p§zip p§zip-plugins cabextract
yum install opsi-depotserver opsi-configed
/etc/init.d/opsiconfd restart
/etc/init.d/opsipxeconfd restart
opsi-setup --auto-configure-samba
chkconfig opsiconfd on
chkconfig opsipxeconfd on
/etc/init.d/smb restart
/etc/init.d/nmb restart
opsi-setup --configure-mysql
opsi-admin -d task setPcpatchPassword
yum install java
vi /etc/opsi/backends/hostcontrol.conf
vi /etc/opsi/opsiconfd.conf
opsi-product-updater -i -vv
Code: Alles auswählen
[clientconfig.configserver.url]
defaultvalues = ["https://***.******.103:4447/rpc"]
description = URL(s) of opsi config service(s) to use
editable = true
multivalue = true
possiblevalues = ["https://***.***.***.103:4447/rpc"]
type = UnicodeConfig
[clientconfig.depot.drive]
defaultvalues = ["p:"]
description = Drive letter for depot share
editable = false
multivalue = false
possiblevalues = ["c:", "d:", "e:", "f:", "g:", "h:", "i:", "j:", "k:", "l:", "m:", "n:", "o:", "p:", "q:", "r:", "s:", "t:", "u:", "v:", "w:", "x:", "y:", "z:"]
type = UnicodeConfig
[clientconfig.depot.dynamic]
defaultvalues = [false]
description = Use dynamic depot selection
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig
[clientconfig.depot.id]
defaultvalues = ["opsi04.********.de"]
description = ID of the opsi depot to use
editable = true
multivalue = false
possiblevalues = ["opsi04.********.de"]
type = UnicodeConfig
[clientconfig.depot.protocol]
defaultvalues = ["cifs"]
description = Protocol for file transfer
editable = false
multivalue = false
possiblevalues = ["cifs", "webdav"]
type = UnicodeConfig
[clientconfig.windows.domain]
defaultvalues = ["MYGROUP"]
description = Windows domain
editable = true
multivalue = false
possiblevalues = ["MYGROUP"]
type = UnicodeConfig
[configed.host_displayfields]
defaultvalues = ["clientConnected", "clientDescription", "clientIPAddress", "clientLastSeen", "clientName"]
description =
editable = false
multivalue = true
possiblevalues = ["clientConnected", "clientCreated", "clientDescription", "clientHardwareAddress", "clientIPAddress", "clientInventoryNumber", "clientLastSeen", "clientName", "clientSessionInfo"]
type = UnicodeConfig
[configed.license_inventory_extradisplayfields]
defaultvalues = []
description = Zusatzspalten zur Host-Beschreibung\nin der Tabelle "Abgleich mit Inventarisierung"\nBitte nach Änderungen configed neu starten
editable = false
multivalue = true
possiblevalues = ["description", "inventoryNumber", "ipAddress", "lastSeen", "notes"]
type = UnicodeConfig
[configed.productonclient_displayfields_localboot]
defaultvalues = ["actionRequest", "installationInfo", "installationStatus", "productId", "versionInfo"]
description =
editable = false
multivalue = true
possiblevalues = ["actionRequest", "installationInfo", "installationStatus", "position", "priority", "productId", "productName", "stateChange", "targetConfiguration", "versionInfo"]
type = UnicodeConfig
[configed.productonclient_displayfields_netboot]
defaultvalues = ["actionRequest", "installationInfo", "installationStatus", "productId", "versionInfo"]
description =
editable = false
multivalue = true
possiblevalues = ["actionRequest", "installationInfo", "installationStatus", "position", "priority", "productId", "productName", "stateChange", "targetConfiguration", "versionInfo"]
type = UnicodeConfig
[configed.remote_control.ping_linux]
defaultvalues = ["xterm +hold -e ping %host%"]
description = ping, started in a Linux environment
editable = true
multivalue = false
possiblevalues = ["xterm +hold -e ping %host%"]
type = UnicodeConfig
[configed.remote_control.ping_linux.description]
defaultvalues = ["ping, started in a Linux environment"]
description =
editable = true
multivalue = false
possiblevalues = ["ping, started in a Linux environment"]
type = UnicodeConfig
[configed.remote_control.ping_linux.editable]
defaultvalues = [true]
description = (command may be edited)
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig
[configed.remote_control.ping_windows]
defaultvalues = ["cmd.exe /c start ping %host%"]
description = ping, started in a Windows terminal
editable = true
multivalue = false
possiblevalues = ["cmd.exe /c start ping %host%"]
type = UnicodeConfig
[configed.remote_control.ping_windows.description]
defaultvalues = ["ping, started in a Windows terminal"]
description =
editable = true
multivalue = false
possiblevalues = ["ping, started in a Windows terminal"]
type = UnicodeConfig
[configed.remote_control.ping_windows.editable]
defaultvalues = [true]
description = (command may be edited)
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig
[license-management.use]
defaultvalues = [false]
description = Activate license management
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig
[opsi-linux-bootimage.append]
defaultvalues = []
description = Extra options to append to kernel command line
editable = true
multivalue = true
possiblevalues = ["acpi=off", "irqpoll", "noapic", "pci=nomsi", "reboot=b", "vga=normal"]
type = UnicodeConfig
[product_sort_algorithm]
defaultvalues = ["algorithm1"]
description =
editable = false
multivalue = false
possiblevalues = ["algorithm1", "algorithm2"]
type = UnicodeConfig
[software-on-demand.active]
defaultvalues = [false]
description = Activate software-on-demand
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig
[software-on-demand.product-group-ids]
defaultvalues = ["software-on-demand"]
description = Product group ids containing products which are allowed to be installed on demand
editable = true
multivalue = true
possiblevalues = ["software-on-demand"]
type = UnicodeConfig
[software-on-demand.show-details]
defaultvalues = [false]
description = Show more details for software-on-demand
editable = false
multivalue = false
possiblevalues = [false, true]
type = BoolConfig