I have been trying to get Opsi installed in my lab, but keep running into the same issue. I know I am missing something really basic so thank you for your patience.
I am installing on CentOS 7, running as user with administrator rights, and running all commands with sudo, and these are the commands leading up to the error:
Code: Alles auswählen
yum install epel-release
hostnamectl set-hostname opsi.dmz.mast
/etc/init.d/network restart
yum install xinetd
touch /etc/yum.repos.d/MariaDB.repo
Code: Alles auswählen
# MariaDB 10.0 CentOS repository list - created 2015-03-20 00:45 UTC
# http://mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.0/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
Code: Alles auswählen
yum install MariaDB-server
service mysql start
mysql_secure_installation
service smb start
service nmb start
service xinetd start
chkconfig smb on
chkconfig nmb on
chkconfig mysql on
chkconfig xinetd on
yum install python-pyasn1
yum -y install wget
cd /etc/yum.repos.d
wget http://download.opensuse.org/repositories/home:uibmz:opsi:opsi40/RHEL_7/home:uibmz:opsi:opsi40.repo
yum makecache
yum install p7zip p7zip-plugins cabextract
yum remove tftp-server
yum install opsi-depotserver opsi-configed
Code: Alles auswählen
Running transaction
chown: invalid group: \u2018opsiconfd:pcpatch\u2019
Starting opsi config service..su: warning: cannot change directory to /var/lib/opsi: Permission denied
-bash: /var/lib/opsi/.bash_profile: Permission denied
.......... (failed).
Installing : perl-Locale-Codes-3.26-2.el7.noarch 117/122
Installing : perl-Locale-Maketext-1.23-3.el7.noarch 118/122
Installing : redhat-lsb-languages-4.1-24.el7.x86_64 119/122
Installing : redhat-lsb-4.1-24.el7.x86_64 120/122
-> Adding group pcpatch
groupadd: GID '992' already exists
Installing : opsi-depotserver-4.0.5.11-1.2.noarch 121/122
[5] [Mar 20 13:17:33] Configuring samba (opsi-setup|192)
[5] [Mar 20 13:17:36] Adding share [opsi_depot] (opsi-setup|232)
[5] [Mar 20 13:17:36] Adding share [opsi_depot_rw] (opsi-setup|294)
[5] [Mar 20 13:17:36] Adding share [opsi_images] (opsi-setup|308)
[5] [Mar 20 13:17:36] Adding share [opsi_config] (opsi-setup|324)
[5] [Mar 20 13:17:36] Adding share [opsi_workbench] (opsi-setup|335)
[5] [Mar 20 13:17:36] Getting current system config (opsi-setup|123)
[5] [Mar 20 13:17:37] System information: (opsi-setup|176)
[5] [Mar 20 13:17:37] distributor : CentOS (opsi-setup|177)
[5] [Mar 20 13:17:37] distribution : CentOS Linux release 7.0.1406 (Core) (opsi-setup|178)
[5] [Mar 20 13:17:37] ip address : 198.105.244.64 (opsi-setup|179)
[5] [Mar 20 13:17:37] netmask : 255.255.255.0 (opsi-setup|180)
[5] [Mar 20 13:17:37] subnet : 198.105.244.0 (opsi-setup|181)
[5] [Mar 20 13:17:37] broadcast : 198.105.244.255 (opsi-setup|182)
[5] [Mar 20 13:17:37] fqdn : opsi.dmx.mast (opsi-setup|183)
[5] [Mar 20 13:17:37] hostname : opsi (opsi-setup|184)
[5] [Mar 20 13:17:37] domain : dmx.mast (opsi-setup|185)
[5] [Mar 20 13:17:37] win domain : MYGROUP (opsi-setup|186)
[5] [Mar 20 13:17:37] Creating backup of /etc/samba/smb.conf (opsi-setup|351)
[5] [Mar 20 13:17:37] Writing new smb.conf (opsi-setup|354)
[5] [Mar 20 13:17:37] Reloading samba (opsi-setup|359)
[5] [Mar 20 13:17:37] Configuring dhcpd (opsi-setup|367)
[4] [Mar 20 13:17:37] Can't find an dhcpd.conf. Aborting configuration. (opsi-setup|370)
[2] [Mar 20 13:17:38] Traceback: (Logger.py|767)
[2] [Mar 20 13:17:38] line 3054 in '<module>' in file '/usr/bin/opsi-setup' (Logger.py|767)
[2] [Mar 20 13:17:38] line 3002 in 'main' in file '/usr/bin/opsi-setup' (Logger.py|767)
[2] [Mar 20 13:17:38] line 2661 in 'initializeBackends' in file '/usr/bin/opsi-setup' (Logger.py|767)
[2] [Mar 20 13:17:38] line 209 in '__init__' in file '/usr/lib/python2.7/site-packages/OPSI/Backend/BackendManager.py' (Logger.py|767)
[2] [Mar 20 13:17:38] line 314 in '__init__' in file '/usr/lib/python2.7/site-packages/OPSI/Backend/BackendManager.py' (Logger.py|767)
[2] [Mar 20 13:17:38] line 364 in '__loadBackends' in file '/usr/lib/python2.7/site-packages/OPSI/Backend/BackendManager.py' (Logger.py|767)
[2] [Mar 20 13:17:38] line 100 in '__init__' in file '/usr/lib/python2.7/site-packages/OPSI/Backend/File.py' (Logger.py|767)
[2] [Mar 20 13:17:38] ==>>> 'getgrnam(): name not found: pcpatch' (opsi-setup|3058)
ERROR: 'getgrnam(): name not found: pcpatch'
[5] [Mar 20 13:17:42] Setting rights (opsi-setup|548)
[2] [Mar 20 13:17:42] Traceback: (Logger.py|767)
[2] [Mar 20 13:17:42] line 3054 in '<module>' in file '/usr/bin/opsi-setup' (Logger.py|767)
[2] [Mar 20 13:17:42] line 2999 in 'main' in file '/usr/bin/opsi-setup' (Logger.py|767)
[2] [Mar 20 13:17:42] line 556 in 'setRights' in file '/usr/bin/opsi-setup' (Logger.py|767)
[2] [Mar 20 13:17:42] ==>>> 'getgrnam(): name not found: pcpatch' (opsi-setup|3058)
ERROR: 'getgrnam(): name not found: pcpatch'