LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Problem to start MMc-agent (https://www.linuxquestions.org/questions/linux-server-73/problem-to-start-mmc-agent-792741/)

deco5003 03-02-2010 08:43 PM

Problem to start MMc-agent
 
Using the code:
Code:

mmc-agent -f start
I got the error...
File "/usr/sbin/mmc-agent", line 10, in <module>

import mmc.agent

File "/usr/lib/python2.5/site-packages/mmc/agent.py", line 34, in <module>

from mmc.client import makeSSLContext

File "/usr/lib/python2.5/site-packages/mmc/client.py", line 40, in <module>

from twisted.web.xmlrpc import Proxy, QueryProtocol?, QueryFactory?, payloadTemplate

ImportError?: cannot import name QueryFactory? Does anybody have an Idea how to solve that! Thanks
My be I need to upgrade to Python release 2.6.4

klabacita 03-04-2010 02:06 PM

mmm u are one of the 2-4 guys that seen to use mandrica mds.

I have some how-to for mds on Centos 5.x, I need this packages to be setup first:

apache+php
redhat-lsb
python-twisted
python-ldap
python-libacl
python-psycopg
postgresql-python
mx
python-twisted-web
PyXML
python-fpconst
python-soap
php-xml
php-xmlrpc

Your ldap must be already running without any issue.
disable samba+mail+network+proxy plugins, just test the base plugin first.

I don't know about the -f flag, u can run the service manually,

/usr/local/sbin/mmc-agent -d

See u latter!!!

deco5003 03-25-2010 01:13 AM

MMc-wont start on debian lenny
 
After a few changes and reconfiguring some files I finally got mmc-agent to load the modules, but I canít login to the mmc web page. Here is the mmc-agent.log it shows a program exception error and some INFO about ; Selecting provisioners: None and Selecting computer manager: none. Does anybody has try to install and configure MMC-Agent on Debian lenny 5.04 . I really donít know where to look for a solution any ideas. Thanks.

INFO mmc-agent 2.3.2 starting...
INFO Using Python 2.5.2 (r252:60911, Jan 24 2010, 14:53:14)
INFO Using Python Twisted 8.1.0
DEBUG Running as euid = 0, egid = 0
INFO Importing available MMC plugins
DEBUG Registering authenticator baseldap /
base.BaseLdapAuthenticator
DEBUG Registering authenticator externalldap / mmc.plugins.base.externalldap.ExternalLdapAuthenticator
DEBUG Registering provisioner externalldap / mmc.plugins.base.externalldap.ExternalLdapProvisioner
INFO Plugin base loaded, API version: 7:0:3 build(743)
INFO Plugin mail loaded, API version: 6:1:4 build(743)
INFO Plugin network loaded, API version: 2:0:0 build(743)
WARNING Looks like NSCD is installed on your system. You should not run NSCD on a SAMBA server.
INFO Plugin samba loaded, API version: 5:2:4 build(748)
INFO Plugin proxy loaded, API version: 1:0:0 build(743)
INFO MMC plugins activation stage 2
INFO Selecting authenticator baseldap / base.BaseLdapAuthenticator
INFO Authenticator baseldap successfully validated
DEBUG Selecting provisioners: None
INFO Selecting computer manager: none
ERROR Program exception:
Traceback (most recent call last):
File "/var/lib/python-support/python2.5/mmc/agent.py", line 373, in agentService
startService(config, logger, pm.plugins)
File "/var/lib/python-support/python2.5/mmc/agent.py", line 424, in startService
sslContext = makeSSLContext(config.verifypeer, config.cacert, config.localcert)
File "/var/lib/python-support/python2.5/mmc/client.py", line 60, in makeSSLContext
localCertificate = ssl.PrivateCertificate.loadPEM(fd.read())
File "/usr/lib/python2.5/site-packages/twisted/internet/_sslverify.py", line 584, in loadPEM
crypto.FILETYPE_PEM)

File "/usr/lib/python2.5/site-packages/twisted/internet/_sslverify.py", line 561, in load
return Class._load(data, format)._setPrivateKey(privateKey)
File "/usr/lib/python2.5/site-packages/twisted/internet/_sslverify.py", line 395, in load
return Class(crypto.load_certificate(format, requestData), *args)
Error: [('PEM routines', 'PEM_read_bio', 'no start line')]


All times are GMT -5. The time now is 11:31 AM.