RE: "opsiconfd/opsipxeconfd cannot start"

Antworten
mauriston911
Beiträge: 3
Registriert: 13 Mär 2014, 05:47

RE: "opsiconfd/opsipxeconfd cannot start"

Beitrag von mauriston911 »

Hi everyone,

I am very new and trying to install OPSI server to a CentOS 6.5 x86 box. I have followed opsi-getting-started-stable.pdf and it seemed like it was all going well up to section 4.0.3 until I got these errors (Below) when trying to run the following commands.

# /etc/init.d/opsiconfd restart
Stopping opsi config service... (not running).
Starting opsi config service..Traceback (most recent call last):
File "/usr/bin/opsiconfd", line 12, in <module>
from opsiconfd.opsiconfd import main
File "/usr/lib/python2.6/site-packages/opsiconfd/opsiconfd.py", line 72, in <module>
from OPSI.Backend.BackendManager import BackendManager
File "/usr/lib/python2.6/site-packages/OPSI/Backend/BackendManager.py", line 55, in <module>
from OPSI.Backend.Backend import *
File "/usr/lib/python2.6/site-packages/OPSI/Backend/Backend.py", line 46, in <module>
from twisted.conch.ssh import keys
File "/usr/lib/python2.6/site-packages/twisted/conch/ssh/keys.py", line 20, in <module>
from pyasn1.type import univ
ImportError: No module named pyasn1.type
.......... (failed).

# /etc/init.d/opsipxeconfd restart
Stopping opsi pxe configuration service... . (not running).
Starting opsi pxe configuration service..Traceback (most recent call last):
File "/usr/bin/opsipxeconfd", line 46, in <module>
from OPSI.Backend.BackendManager import BackendManager
File "/usr/lib/python2.6/site-packages/OPSI/Backend/BackendManager.py", line 55, in <module>
from OPSI.Backend.Backend import *
File "/usr/lib/python2.6/site-packages/OPSI/Backend/Backend.py", line 46, in <module>
from twisted.conch.ssh import keys
File "/usr/lib/python2.6/site-packages/twisted/conch/ssh/keys.py", line 20, in <module>
from pyasn1.type import univ
ImportError: No module named pyasn1.type
.......... (failed).

# opsi-setup --auto-configure-samba
Traceback (most recent call last):
File "/usr/bin/opsi-setup", line 22, in <module>
from OPSI.Backend.Backend import ExtendedConfigDataBackend
File "/usr/lib/python2.6/site-packages/OPSI/Backend/Backend.py", line 46, in <module>
from twisted.conch.ssh import keys
File "/usr/lib/python2.6/site-packages/twisted/conch/ssh/keys.py", line 20, in <module>
from pyasn1.type import univ
ImportError: No module named pyasn1.type


I have tried finding solutions on the internet but no luck to find one so I decided to create a new topic about this. I hope that everyone will share their solutions if anyone have encountered this before and had it fixed. Thanks in advance.
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1411
Registriert: 01 Jul 2008, 12:10

Re: RE: "opsiconfd/opsipxeconfd cannot start"

Beitrag von wolfbardo »

Ok
mauriston911 hat geschrieben:Hi everyone,

I am very new and trying to install OPSI server to a CentOS 6.5 x86 box. I have followed opsi-getting-started-stable.pdf
Thanks for your hint. The dependency to
python-pyasn1
is missing in the opsi-getting-started respectively in the dependencys

Please install

Code: Alles auswählen

yum install python-pyasn1
regards,
bardo wolf


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


mauriston911
Beiträge: 3
Registriert: 13 Mär 2014, 05:47

Re: RE: "opsiconfd/opsipxeconfd cannot start"

Beitrag von mauriston911 »

Thank you for your reply Sir "Bardo Wolf". The command you've said actually fixed the errors but there's another error.

# yum install python-pyasn1
Loaded plugins: fastestmirror, refresh-packagekit, security
Repository 'google': Error parsing config: Error parsing "gpgcheck = '1 gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub'": invalid boolean value
Loading mirror speeds from cached hostfile
* base: mirror.pregi.net
* extras: mirror.pregi.net
* updates: mirror.smartmedia.net.id
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package python-pyasn1.noarch 0:0.0.12a-1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
python-pyasn1 noarch 0.0.12a-1.el6 base 70 k

Transaction Summary
================================================================================
Install 1 Package(s)

Total download size: 70 k
Installed size: 305 k
Is this ok [y/N]: y
Downloading Packages:
python-pyasn1-0.0.12a-1.el6.noarch.rpm | 70 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : python-pyasn1-0.0.12a-1.el6.noarch 1/1
Verifying : python-pyasn1-0.0.12a-1.el6.noarch 1/1

Installed:
python-pyasn1.noarch 0:0.0.12a-1.el6

Complete!


When tried to run these commands again...

# /etc/init.d/opsiconfd restart
Stopping opsi config service... (not running).
Starting opsi config service..Traceback (most recent call last):
File "/usr/bin/opsiconfd", line 15, in <module>
sys.exit(main())
NameError: name 'main' is not defined
.......... (failed).

]# /etc/init.d/opsipxeconfd restart
Stopping opsi pxe configuration service... . (not running).
Starting opsi pxe configuration service..... (done).

]# opsi-setup --auto-configure-samba
[5] [Mar 14 07:58:23] Configuring samba (opsi-setup|176)
[5] [Mar 14 07:58:23] Adding share [opsi_depot] (opsi-setup|213)
[5] [Mar 14 07:58:23] Adding share [opsi_depot_rw] (opsi-setup|236)
[5] [Mar 14 07:58:23] Adding share [opsi_images] (opsi-setup|250)
[5] [Mar 14 07:58:23] Adding share [opsi_config] (opsi-setup|266)
[5] [Mar 14 07:58:23] Adding share [opsi_workbench] (opsi-setup|277)
[5] [Mar 14 07:58:24] Getting current system config (opsi-setup|107)
[5] [Mar 14 07:58:24] System information: (opsi-setup|160)
[5] [Mar 14 07:58:24] distributor : CentOS (opsi-setup|161)
[5] [Mar 14 07:58:24] distribution : CentOS release 6.5 (Final) (opsi-setup|162)
[5] [Mar 14 07:58:24] ip address : 172.16.0.5 (opsi-setup|163)
[5] [Mar 14 07:58:24] netmask : 255.255.252.0 (opsi-setup|164)
[5] [Mar 14 07:58:24] subnet : 172.16.0.0 (opsi-setup|165)
[5] [Mar 14 07:58:24] broadcast : 172.16.3.255 (opsi-setup|166)
[5] [Mar 14 07:58:24] fqdn : clientmgr.pascoph.loc (opsi-setup|167)
[5] [Mar 14 07:58:24] hostname : clientmgr (opsi-setup|168)
[5] [Mar 14 07:58:24] domain : pascoph.loc (opsi-setup|169)
[5] [Mar 14 07:58:24] win domain : MYGROUP (opsi-setup|170)
[5] [Mar 14 07:58:24] Creating backup of /etc/samba/smb.conf (opsi-setup|293)
[5] [Mar 14 07:58:24] Writing new smb.conf (opsi-setup|296)
[5] [Mar 14 07:58:24] Reloading samba (opsi-setup|301)

What configuration should be in this line?

File "/usr/bin/opsiconfd", line 15, in <module>
sys.exit(main())
NameError: name 'main' is not defined
.......... (failed).

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

Re: RE: "opsiconfd/opsipxeconfd cannot start"

Beitrag von n.wenselowski »

Hello mauriston911,

I couldn't reproduce your problem on an Centos 6.5.
What version of the opsi-packages does your system have installed?

For a quick fix I'd try to refresh yums cache and then reinstall the opsiconfd-Package.


With kind regards

Niko

Code: Alles auswählen

import OPSI
Antworten