My Oracle Support Banner

Spacewalk: Client Registration Failed with 'rhn-plugin: Error communicating with server. The message was: Internal Server Error' (Doc ID 2656943.1)

Last updated on APRIL 09, 2020

Applies to:

Linux OS - Version Oracle Linux 6.0 and later
Linux x86-64

Symptoms

Below errors reported while trying to register a client to Spacewalk Server:

# rhnreg_ks --sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT --serverUrl=https://swksvr_FQDN/XMLRPC --activationkey=activation_key
An error has occurred:
rhn-plugin: Error communicating with server. The message was: Internal Server Error
See /var/log/up2date for more information

up2date A protocol error occurred: Internal Server Error , attempt #1,
up2date 
Traceback (most recent call last):
  File "/usr/sbin/rhnreg_ks", line 217, in cli.run()
  File "/usr/share/rhn/up2date_client/rhncli.py", line 96, in run sys.exit(self.main() or 0)
  File "/usr/sbin/rhnreg_ks", line 152, in main rhnreg.sendPackages(systemId, packageList)
  File "/usr/share/rhn/up2date_client/rhnreg.py", line 488, in sendPackages s.registration.add_packages(systemId, packageList)
  File "/usr/share/rhn/up2date_client/rhnserver.py", line 67, in __call__ return rpcServer.doCall(method, *args, **kwargs)
  File "/usr/share/rhn/up2date_client/rpcServer.py", line 290, in doCall raise_with_tb(up2dateErrors.CommunicationError(e.errmsg))
  File "/usr/share/rhn/up2date_client/rpcServer.py", line 214, in doCall ret = method(*args, **kwargs)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__ return self.__send(self.__name, args)
  File "/usr/share/rhn/up2date_client/rpcServer.py", line 48, in _request1 ret = self._request(methodname, params)
  File "/usr/lib/python2.6/site-packages/rhn/rpclib.py", line 394, in _request self._handler, request, verbose=self._verbose)
  File "/usr/lib/python2.6/site-packages/rhn/transports.py", line 177, in request headers, fd = req.send_http(host, handler)
  File "/usr/lib/python2.6/site-packages/rhn/transports.py", line 740, in send_http response.status, response.reason, response.msg)
<class 'up2date_client.up2dateErrors.CommunicationError'>: rhn-plugin: Error communicating with server. The message was: Internal Server Error
-- /var/log/up2date (Client)
up2date A protocol error occurred: Internal Server Error , attempt #1,
up2date
Traceback (most recent call last):
File "/usr/sbin/rhnreg_ks", line 217, in <module> cli.run()
File "/usr/share/rhn/up2date_client/rhncli.py", line 96, in run sys.exit(self.main() or 0)
File "/usr/sbin/rhnreg_ks", line 152, in main rhnreg.sendPackages(systemId, packageList)
File "/usr/share/rhn/up2date_client/rhnreg.py", line 488, in sendPackages s.registration.add_packages(systemId, packageList)
File "/usr/share/rhn/up2date_client/rhnserver.py", line 67, in __call__ return rpcServer.doCall(method, *args, **kwargs)
File "/usr/share/rhn/up2date_client/rpcServer.py", line 290, in doCall raise_with_tb(up2dateErrors.CommunicationError(e.errmsg))
File "/usr/share/rhn/up2date_client/rpcServer.py", line 214, in doCall ret = method(*args, **kwargs)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__return self.__send(self.__name, args)
File "/usr/share/rhn/up2date_client/rpcServer.py", line 48, in _request1 ret = self._request(methodname, params)
File "/usr/lib/python2.6/site-packages/rhn/rpclib.py", line 394, in _request self._handler, request, verbose=self._verbose)
File "/usr/lib/python2.6/site-packages/rhn/transports.py", line 177, in request headers, fd = req.send_http(host, handler)
File "/usr/lib/python2.6/site-packages/rhn/transports.py", line 740, in send_http response.status, response.reason, response.msg)
<class 'up2date_client.up2dateErrors.CommunicationError'>: rhn-plugin: Error communicating with server. The message was: Internal Server Error
-- /var/log/httpd/error_log (Spacewalk Server)
[:error] [pid XXXXX] SQL Error generated: (1400, 'ORA-01400: cannot insert NULL into ("SPACEWALK"."RHNPACKAGEEVR"."RELEASE")\\nORA-06512: at "SPACEWALK.INSERT_EVR", line 7\\nORA-06512: at "SPACEWALK.LOOKUP_EVR", line 17\\nORA-01403: no data found\\nORA-06512: at "SPACEWALK.LOOKUP_EVR", line 7\\n', "insert into rhnServerPackage (server_id, name_id, evr_id, package_arch_id, installtime) values (:sysid, LOOKUP_PACKAGE_NAME(:n), LOOKUP_EVR(:e, :v, :r), LOOKUP_PACKAGE_ARCH(:a), TO_TIMESTAMP(:instime, 'YYYY-MM-DD HH24:MI:SS') )")
[:error] [pid XXXXX]
[:error] [pid XXXXX] Exception Handler Information
[:error] [pid XXXXX] Traceback (most recent call last):
[:error] [pid XXXXX] File "/usr/lib/python2.7/site-packages/spacewalk/server/apacheRequest.py", line 135, in call_function
[:error] [pid XXXXX] response = func(*params)
[:error] [pid XXXXX] File "/usr/share/rhn/server/handlers/xmlrpc/registration.py", line 815, in add_packages
[:error] [pid XXXXX] server.save_packages()
[:error] [pid XXXXX] File "/usr/lib/python2.7/site-packages/spacewalk/server/rhnServer/server_wrapper.py", line 72, in save_packages
[:error] [pid XXXXX] ret = self.save_packages_byid(self.server["id"], schedule=schedule)
[:error] [pid XXXXX] File "/usr/lib/python2.7/site-packages/spacewalk/server/rhnServer/server_packages.py", line 238, in save_packages_byid
[:error] [pid XXXXX] h.execute_bulk(package_data)
[:error] [pid XXXXX] File "/usr/lib/python2.7/site-packages/spacewalk/server/rhnSQL/sql_base.py", line 185, in execute_bulk
[:error] [pid XXXXX] ret = ret + self.executemany(**subdict)
[:error] [pid XXXXX] File "/usr/lib/python2.7/site-packages/spacewalk/server/rhnSQL/sql_base.py", line 160, in executemany
[:error] [pid XXXXX] return self._execute_wrapper(self._executemany, *p, **kw)
[:error] [pid XXXXX] File "/usr/lib/python2.7/site-packages/spacewalk/server/rhnSQL/driver_cx_Oracle.py", line 133, in _execute_wrapper
[:error] [pid XXXXX] raise_with_tb(sql_base.SQLError(*ret), sys.exc_info()[2])
[:error] [pid XXXXX] File "/usr/lib/python2.7/site-packages/spacewalk/server/rhnSQL/driver_cx_Oracle.py", line 113, in _execute_wrapper
[:error] [pid XXXXX] retval = function(*p, **kw)
[:error] [pid XXXXX] File "/usr/lib/python2.7/site-packages/spacewalk/server/rhnSQL/driver_cx_Oracle.py", line 214, in _executemany
[:error] [pid XXXXX] self._real_cursor.executemany(None, arr)
[:error] [pid XXXXX] SQLError: (1400, 'ORA-01400: cannot insert NULL into ("SPACEWALK"."RHNPACKAGEEVR"."RELEASE")\\nORA-06512: at "SPACEWALK.INSERT_EVR", line 7\\nORA-06512: at "SPACEWALK.LOOKUP_EVR", line 17\\nORA-01403: no data found\\nORA-06512: at "SPACEWALK.LOOKUP_EVR", line 7\\n', "insert into rhnServerPackage (server_id, name_id, evr_id, package_arch_id, installtime) values (:sysid, LOOKUP_PACKAGE_NAME(:n), LOOKUP_EVR(:e, :v, :r), LOOKUP_PACKAGE_ARCH(:a), TO_TIMESTAMP(:instime, 'YYYY-MM-DD HH24:MI:SS') )")
[:error] [pid XXXXX]

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.