[Spacewalk-list] Problem with config channels

Colin Coe colin.coe at gmail.com
Tue Nov 29 22:40:24 UTC 2011


On Tue, Nov 29, 2011 at 11:02 PM, Michael Mraka
<michael.mraka at redhat.com> wrote:
> Colin Coe wrote:
> % Sorry, spacewalk v1.5 (x86_64 and postgresql).
> %
> % > Lately I've noticed that files starting with a '#' (in particular
> % > scripts) error out when being pushed to config channels
> % >
> % > For example,
> % > ---
> % > rhncfg-manager add -c conchan /usr/local/sbin/forceGroupAffinity.pl
> % > Using server name 10.98.106.16
> % > Red Hat Network username: admin
> % > Password:
> % > Pushing to channel conchan:
> % > XML-RPC call error: <ProtocolError for 10.98.106.16
> % > /CONFIG-MANAGEMENT-TOOL: 500 Internal Server Error>
> % > ---
> % >
> % > Is this a known problem?
>
> Hi Colin,
>
> It isn't known problem moreover it works on nightly:
>
> # cat >> /usr/local/sbin/forceGroupAffinity.pl
> #!/usr/bin/perl
> print "asdfkasjdhfkasdf"
> ^D
>
> # rhncfg-manager add -c config1 /usr/local/sbin/forceGroupAffinity.pl
> Using server name test04-64
> Pushing to channel config1:
> Local file /usr/local/sbin/forceGroupAffinity.pl -> remote file
> /usr/local/sbin/forceGroupAffinity.pl
>
> # rpm -q rhncfg-management
> rhncfg-management-5.10.19-1.el5.noarch
>
> # rm /usr/local/sbin/forceGroupAffinity.pl
>
> # rhncfg-client get /usr/local/sbin/forceGroupAffinity.pl
> Using server name test04-64
> Deploying /usr/local/sbin/forceGroupAffinity.pl
>
> # more /usr/local/sbin/forceGroupAffinity.pl
> #!/usr/bin/perl
> print "asdfkasjdhfkasdf"
>
>
>
> What are actual error messages in /var/log/httpd/*error_log?
>
> Regards,
>
> --
> Michael Mráka
> Satellite Engineering, Red Hat
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list


Hi Michael

A truncated, sanitized error_log is attached.

CC


-- 
RHCE#805007969328369
-------------- next part --------------
[Wed Nov 30 06:34:11 2011] [error] Exception reported from spacewalk-server
[Wed Nov 30 06:34:11 2011] [error] Time: Wed Nov 30 06:34:11 2011
[Wed Nov 30 06:34:11 2011] [error] Exception type <class 'psycopg2.DataError'>
[Wed Nov 30 06:34:11 2011] [error] Exception while handling function config.management.put_file
[Wed Nov 30 06:34:11 2011] [error] Request object information:
[Wed Nov 30 06:34:11 2011] [error] URI: /CONFIG-MANAGEMENT-TOOL
[Wed Nov 30 06:34:11 2011] [error] Remote Host: client.example.com
[Wed Nov 30 06:34:11 2011] [error] Server Name: 10.98.106.16:443
[Wed Nov 30 06:34:11 2011] [error] Headers passed in:
[Wed Nov 30 06:34:11 2011] [error] \tAccept-Encoding: identity
[Wed Nov 30 06:34:11 2011] [error] \tCONTENT_LENGTH: 3527
[Wed Nov 30 06:34:11 2011] [error] \tCONTENT_TYPE: application/binary
[Wed Nov 30 06:34:11 2011] [error] \tContent-Encoding: x-gzip
[Wed Nov 30 06:34:11 2011] [error] \tContent-Transfer-Encoding: binary
[Wed Nov 30 06:34:11 2011] [error] \tDOCUMENT_ROOT: /var/www/html
[Wed Nov 30 06:34:11 2011] [error] \tGATEWAY_INTERFACE: CGI/1.1
[Wed Nov 30 06:34:11 2011] [error] \tHTTPS: 1
[Wed Nov 30 06:34:11 2011] [error] \tHTTP_ACCEPT_ENCODING: identity
[Wed Nov 30 06:34:11 2011] [error] \tHTTP_CONTENT_ENCODING: x-gzip
[Wed Nov 30 06:34:11 2011] [error] \tHTTP_CONTENT_TRANSFER_ENCODING: binary
[Wed Nov 30 06:34:11 2011] [error] \tHTTP_HOST: 10.98.106.16
[Wed Nov 30 06:34:11 2011] [error] \tHTTP_USER_AGENT: rhn.rpclib.py/$Revision$
[Wed Nov 30 06:34:11 2011] [error] \tHTTP_X_CLIENT_VERSION: 1
[Wed Nov 30 06:34:11 2011] [error] \tHTTP_X_INFO: RPC Processor (C) Red Hat, Inc (version $Revision$)
[Wed Nov 30 06:34:11 2011] [error] \tHTTP_X_RHN_CLIENT_CAPABILITY: rhncfg.dirs_enabled(1)=1,configfiles.base64_enc(1)=1
[Wed Nov 30 06:34:11 2011] [error] \tHTTP_X_RHN_TRANSPORT_CAPABILITY: follow-redirects=3
[Wed Nov 30 06:34:11 2011] [error] \tHTTP_X_TRANSPORT_INFO: Extended Capabilities Transport (C) Red Hat, Inc (version $Revision$)
[Wed Nov 30 06:34:11 2011] [error] \tHost: 10.98.106.16
[Wed Nov 30 06:34:11 2011] [error] \tPATH_INFO:
[Wed Nov 30 06:34:11 2011] [error] \tQUERY_STRING:
[Wed Nov 30 06:34:11 2011] [error] \tREMOTE_ADDR: 10.98.106.137
[Wed Nov 30 06:34:11 2011] [error] \tREMOTE_PORT: 49764
[Wed Nov 30 06:34:11 2011] [error] \tREQUEST_METHOD: POST
[Wed Nov 30 06:34:11 2011] [error] \tREQUEST_URI: /CONFIG-MANAGEMENT-TOOL
[Wed Nov 30 06:34:11 2011] [error] \tSCRIPT_FILENAME: /usr/share/rhn/wsgi/config_tool.py
[Wed Nov 30 06:34:11 2011] [error] \tSCRIPT_NAME: /CONFIG-MANAGEMENT-TOOL
[Wed Nov 30 06:34:11 2011] [error] \tSCRIPT_URI: https://10.98.106.16/CONFIG-MANAGEMENT-TOOL
[Wed Nov 30 06:34:11 2011] [error] \tSCRIPT_URL: /CONFIG-MANAGEMENT-TOOL
[Wed Nov 30 06:34:11 2011] [error] \tSERVER_ADDR: 10.98.106.16
[Wed Nov 30 06:34:11 2011] [error] \tSERVER_ADMIN: root at localhost
[Wed Nov 30 06:34:11 2011] [error] \tSERVER_NAME: 10.98.106.16
[Wed Nov 30 06:34:11 2011] [error] \tSERVER_PORT: 443
[Wed Nov 30 06:34:11 2011] [error] \tSERVER_PROTOCOL: HTTP/1.1
[Wed Nov 30 06:34:11 2011] [error] \tSERVER_SIGNATURE: <address>Apache Server at 10.98.106.16 Port 443</address>
[Wed Nov 30 06:34:11 2011] [error]
[Wed Nov 30 06:34:11 2011] [error] \tSERVER_SOFTWARE: Apache
[Wed Nov 30 06:34:11 2011] [error] \tUser-Agent: rhn.rpclib.py/$Revision$
[Wed Nov 30 06:34:11 2011] [error] \tX-Client-Version: 1
[Wed Nov 30 06:34:11 2011] [error] \tX-Info: RPC Processor (C) Red Hat, Inc (version $Revision$)
[Wed Nov 30 06:34:11 2011] [error] \tX-RHN-Client-Capability: rhncfg.dirs_enabled(1)=1,configfiles.base64_enc(1)=1
[Wed Nov 30 06:34:11 2011] [error] \tX-RHN-Transport-Capability: follow-redirects=3
[Wed Nov 30 06:34:11 2011] [error] \tX-Transport-Info: Extended Capabilities Transport (C) Red Hat, Inc (version $Revision$)
[Wed Nov 30 06:34:11 2011] [error] \tmod_wsgi.application_group: spacewalk-server.example.com|/config-management-tool
[Wed Nov 30 06:34:11 2011] [error] \tmod_wsgi.callable_object: application
[Wed Nov 30 06:34:11 2011] [error] \tmod_wsgi.handler_script:
[Wed Nov 30 06:34:11 2011] [error] \tmod_wsgi.input_chunked: 0
[Wed Nov 30 06:34:11 2011] [error] \tmod_wsgi.listener_host:
[Wed Nov 30 06:34:11 2011] [error] \tmod_wsgi.listener_port: 443
[Wed Nov 30 06:34:11 2011] [error] \tmod_wsgi.process_group:
[Wed Nov 30 06:34:11 2011] [error] \tmod_wsgi.request_handler: wsgi-script
[Wed Nov 30 06:34:11 2011] [error] \tmod_wsgi.script_reloading: 1
[Wed Nov 30 06:34:11 2011] [error] \tmod_wsgi.version: (3, 2)
[Wed Nov 30 06:34:11 2011] [error] \twsgi.errors: <mod_wsgi.Log object at 0x7f426d007d30>
[Wed Nov 30 06:34:11 2011] [error] \twsgi.file_wrapper: <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f426ce81300>
[Wed Nov 30 06:34:11 2011] [error] \twsgi.input: <mod_wsgi.Input object at 0x7f426d007c70>
[Wed Nov 30 06:34:11 2011] [error] \twsgi.multiprocess: True
[Wed Nov 30 06:34:11 2011] [error] \twsgi.multithread: False
[Wed Nov 30 06:34:11 2011] [error] \twsgi.run_once: False
[Wed Nov 30 06:34:11 2011] [error] \twsgi.url_scheme: https
[Wed Nov 30 06:34:11 2011] [error] \twsgi.version: (1, 1)
[Wed Nov 30 06:34:11 2011] [error]
[Wed Nov 30 06:34:11 2011] [error] Exception Handler Information
[Wed Nov 30 06:34:11 2011] [error] Traceback (most recent call last):
[Wed Nov 30 06:34:11 2011] [error]   File "/usr/lib/python2.6/site-packages/spacewalk/server/apacheRequest.py", line 123, in call_function
[Wed Nov 30 06:34:11 2011] [error]     response = apply(func, params)
[Wed Nov 30 06:34:11 2011] [error]   File "/usr/share/rhn/server/handlers/config_mgmt/rhn_config_management.py", line 373, in management_put_file
[Wed Nov 30 06:34:11 2011] [error]     result = self.push_file(conf_channel_id, dict)
[Wed Nov 30 06:34:11 2011] [error]   File "/usr/lib/python2.6/site-packages/spacewalk/server/configFilesHandler.py", line 232, in push_file
[Wed Nov 30 06:34:11 2011] [error]     result = self._push_file(config_channel_id, file)
[Wed Nov 30 06:34:11 2011] [error]   File "/usr/lib/python2.6/site-packages/spacewalk/server/configFilesHandler.py", line 203, in _push_file
[Wed Nov 30 06:34:11 2011] [error]     self._push_contents(file)
[Wed Nov 30 06:34:11 2011] [error]   File "/usr/lib/python2.6/site-packages/spacewalk/server/configFilesHandler.py", line 334, in _push_contents
[Wed Nov 30 06:34:11 2011] [error]     h.execute(**file)
[Wed Nov 30 06:34:11 2011] [error]   File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/sql_base.py", line 163, in execute
[Wed Nov 30 06:34:11 2011] [error]     return apply(self._execute_wrapper, (self._execute, ) + p, kw)
[Wed Nov 30 06:34:11 2011] [error]   File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py", line 264, in _execute_wrapper
[Wed Nov 30 06:34:11 2011] [error]     retval = apply(function, p, kw)
[Wed Nov 30 06:34:11 2011] [error]   File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/sql_base.py", line 217, in _execute
[Wed Nov 30 06:34:11 2011] [error]     return self._execute_(args, kwargs)
[Wed Nov 30 06:34:11 2011] [error]   File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py", line 277, in _execute_
[Wed Nov 30 06:34:11 2011] [error]     self._real_cursor.execute(self.sql, params)
[Wed Nov 30 06:34:11 2011] [error] DataError: invalid input syntax for type bytea
[Wed Nov 30 06:34:11 2011] [error] LINE 5:                 5066, E'#!/usr/bin/perl
[Wed Nov 30 06:34:11 2011] [error]                               ^
[Wed Nov 30 06:34:11 2011] [error]
[Wed Nov 30 06:34:11 2011] [error]


More information about the Spacewalk-list mailing list