[Spacewalk-list] Error while importing configuration file into local sandbox
Taco Scargo
Taco.Scargo at tomtom.com
Mon Sep 7 12:13:24 UTC 2009
Hi,
I just installed Spacewalk 0.6 and registered one system successfully.
I touched /etc/sysconfig/rhn/allowed-actions/configfiles/all to allow
the configuration manager to touch the system.
When trying to import /etc/mail/sendmail.cf
Permissions are:
-rw-r--r-- 1 root root 58211 Sep 7 13:21 /etc/mail/sendmail.cf
And running a manual rhn_check, the system generates an error
containing:
Extra information about this error:
SQL Error generated: (6553, "ORA-06553: PLS-306: wrong number or types
of arguments in call to 'LOOKUP_CONFIG_INFO'\n", 'select
lookup_config_info(:username, :groupname, :file_mode) id from dual')
Have I encountered a bug, or is there a modification to be done in the
oracle database ?
Regards,
Taco Scargo
This is the full traceback:
Exception reported from XXXXX
Time: Mon Sep 7 13:59:10 2009
Exception type server.rhnSQL.sql_base.SQLError
Exception while handling function config.client.upload_file
Request object information:
URI: /CONFIG-MANAGEMENT
Remote Host: X.X.X.X
Server Name: 127.0.0.1:0
Headers passed in:
Accept-Encoding: identity
Content-Length: 27966
Host: X.X.X.X
content-encoding: x-gzip
content-transfer-encoding: binary
content-type: application/binary
user-agent: rhn.rpclib.py/$Revision$
x-client-version: 1
x-info: RPC Processor (C) Red Hat, Inc (version $Revision$)
x-rhn-client-capability:
rhncfg.dirs_enabled(1)=1,configfiles.base64_enc(1)=1
x-rhn-transport-capability: follow-redirects=3
x-transport-info: Extended Capabilities Transport (C) Red Hat, Inc
(version $Revision$)
Extra information about this error:
SQL Error generated: (6553, "ORA-06553: PLS-306: wrong number or types
of arguments in call to 'LOOKUP_CONFIG_INFO'\n", 'select
lookup_config_info(:username, :groupname, :file_mode) id from dual')
Exception Handler Information
Traceback (most recent call last):
File "/usr/share/rhn/server/apacheRequest.py", line 120, in
call_function
response = apply(func, params)
File "/usr/share/rhn/server/handlers/config/rhn_config_management.py",
line 251, in client_upload_file
return self.push_file(config_channel_id, file)
File "/usr/share/rhn/server/configFilesHandler.py", line 192, in
push_file
result = self._push_file(config_channel_id, file)
File "/usr/share/rhn/server/configFilesHandler.py", line 176, in
_push_file
self._push_config_file(file)
File "/usr/share/rhn/server/configFilesHandler.py", line 338, in
_push_config_file
apply(h.execute, (), file)
File "/usr/share/rhn/server/rhnSQL/sql_base.py", line 168, in execute
return apply(self._execute_wrapper, (self._execute, ) + p, kw)
File "/usr/share/rhn/server/rhnSQL/driver_cx_Oracle.py", line 119, in
_execute_wrapper
raise apply(sql_base.SQLError, ret)
SQLError: (6553, "ORA-06553: PLS-306: wrong number or types of arguments
in call to 'LOOKUP_CONFIG_INFO'\n", 'select
lookup_config_info(:username, :groupname, :file_mode) id from dual')
Local variables by frame
Frame _execute_wrapper in
/usr/share/rhn/server/rhnSQL/driver_cx_Oracle.py at line 119
function = <type 'instancemethod'> <bound method
Cursor._execute of <__builtin__.OracleCursor on <cx_Oracle.Connection to
spacewalk at XE>>>
e = <type 'instance'> ORA-06553: PLS-306: wrong
number or types of arguments in call to 'LOOKUP_CONFIG_INFO'
errno = <type 'int'> 6553
self = <type 'instance'> <__builtin__.OracleCursor
on <cx_Oracle.Connection to spacewalk at XE>>
modified_params = <type 'list'> []
value = <type 'int'> 644
p = <type 'tuple'> ()
params = <type 'str'> username: root,md5sum:
3ec25557475b4c2cc0f9eeffe159a813,group: root,ctime:
1252322460,groupname: root,user: root,delim_start: {|,delim_end:
|},config_content_id: 5,config_file_type_id: 1,file_contents:
(deleted file contents)
, 'enc64': 1, 'file_size': 58211, 'user': 'root', 'file_mode': 644,
'mtime': 1252322460, 'config_content_id': 5, 'path':
'/etc/mail/sendmail.cf', 'is_binary': 'N', 'state_id': 2, 'size':
58211})
method = <type 'unicode'> config.client.upload_file
self = <type 'instance'>
<server.apacheRequest.apachePOST instance at 0x2b88924ec050>
Frame handler in /usr/share/rhn/server/apacheHandler.py at line 198
h = <type 'instance'> <__builtin__.OracleCursor
on <cx_Oracle.Connection to spacewalk at XE>>
self = <type 'instance'>
<server.apacheHandler.apacheHandler instance at 0x2b88924eccf8>
req = <type 'mp_request'> <mp_request object at
0x2b888e6e6050>
ret = <type 'int'> 0
templateStrings = <type 'dict'> {'email_account_info':
'\nAccount Information:\n Your Spacewalk login: <login />\n
Your Spacewalk email address: <email-address />', 'email_footer': '--the
Spacewalk Team', 'hostname': 'nl-tco-01'}
row = <type 'NoneType'> None
Frame __call__ in /usr/share/rhn/server/apacheServer.py at line 58
self = <type 'instance'>
<server.apacheServer.HandlerWrap instance at 0x2b88924e5488>
req = <type 'mp_request'> <mp_request object at
0x2b888e6e6050>
f = <type 'instancemethod'> <bound method
apacheHandler.handler of <server.apacheHandler.apacheHandler instance at
0x2b88924eccf8>>
Frame HandlerDispatch in
/usr/lib64/python2.4/site-packages/mod_python/apache.py at line 299
req = <type 'mp_request'> <mp_request object at
0x2b888e6e6050>
config = <type 'mp_table'> {'PythonInterpreter':
'rhn.server', 'PythonPath': 'sys.path+['/usr/share/rhn']'}
self = <type 'instance'>
<mod_python.apache.CallBack instance at 0x2b888e6dfbd8>
object = <type 'instance'>
<server.apacheServer.HandlerWrap instance at 0x2b88924e5488>
l = <type 'list'> ['server.apacheServer',
'Handler']
module = <type 'module'> <module
'server.apacheServer' from '/usr/share/rhn/server/apacheServer.pyc'>
hlist = <type 'mp_hlist'>
{'handler:'server.apacheServer::Handler','directory':'/CONFIG-MANAGEMENT
/','silent':0}
object_str = <type 'str'> Handler
debug = <type 'int'> 0
module_name = <type 'str'> server.apacheServer
pathstring = <type 'str'> sys.path+['/usr/share/rhn']
result = <type 'int'> 500
Environment for PID=2093 on exception:
CONSOLE = /dev/console
HOME = /
INIT_VERSION = sysvinit-2.86
LANG = C
NLS_LANG = english.AL32UTF8
ORACLE_HOME = /opt/oracle
PATH = /sbin:/usr/sbin:/bin:/usr/bin
PERL_BADFREE = 0
PREVLEVEL = N
PWD = /
RUNLEVEL = 3
SELINUX_INIT = YES
SHLVL = 3
TERM = linux
_ = /usr/sbin/httpd
previous = N
runlevel = 3
This e-mail message contains information which is confidential and may be privileged. It is intended for use by the addressee only. If you are not the intended addressee, we request that you notify the sender immediately and delete or destroy this e-mail message and any attachment(s), without copying, saving, forwarding, disclosing or using its contents in any other way. TomTom N.V., TomTom International BV or any other company belonging to the TomTom group of companies will not be liable for damage relating to the communication by e-mail of data, documents or any other information.
This e-mail message contains information which is confidential and may be privileged. It is intended for use by the addressee only. If you are not the intended addressee, we request that you notify the sender immediately and delete or destroy this e-mail message and any attachment(s), without copying, saving, forwarding, disclosing or using its contents in any other way. TomTom N.V., TomTom International BV or any other company belonging to the TomTom group of companies will not be liable for damage relating to the communication by e-mail of data, documents or any other information.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20090907/e8243c61/attachment.htm>
More information about the Spacewalk-list
mailing list