<div dir="ltr"><div><div><div><div><div><div><br><br></div>Hi Tomas,<br><br></div>Even though i tried both of them (webui and rhncfg-manager ),they cannot work as properly.<br><br>Version:<br>rpm -qf /usr/bin/rhncfg-manager<br>rhncfg-management-5.10.73-1.el6.noarch<br><br></div>Actually i found something that can be help us to resolve this cause, so if a file has no set selinux context  it cannot upload to spacewalk server.<br><br></div>For example;<br><br></div>I created a file under the etc (like this /etc/file.txt )then try to upload sw server,but is returning the same error message.However when i set related selinux context to this file then everything works normally !<br><br></div><span style="color:rgb(39,78,19)">chcon -v unconfined_u:object_r:etc_t:s0 /etc/file.txt                           <br>changing security context of `/etc/file.txt'<br></span><div><span style="color:rgb(39,78,19)"><br>rhncfg-manager add -c filechannel /etc/file.txt <br>Using server name spacewalk.example.local<br>Pushing to channel filechannel:<br>Local file /etc/file.txt -> remote file /etc/file.txt</span><br><br><div><div><div><div><div>It seems that if there is no set selinux context on a file, it doesn't work properly.<br><br></div><div><span style="color:rgb(39,78,19)">example:<br>ll -Z /etc/resolv.conf <br>-rw-r--r-- root root ?                                /etc/resolv.conf</span><br></div><div><br>Thus some server has no selinux mechanism, so i need to upload all files without set to selinux context.<br></div><div><br></div>What do you think about that ?<br><br></div><div><div><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Tomas Lestach</b> <span dir="ltr"><<a href="mailto:tlestach@redhat.com">tlestach@redhat.com</a>></span><br>Date: Fri, Oct 17, 2014 at 2:24 PM<br>Subject: Re: spacewalk 2.2 importing config files are failed<br>To: Uğur Engin <<a href="mailto:mail@ugurengin.com">mail@ugurengin.com</a>><br><br><br><span class="">> Hi Tomas,<br>
</span><span class=""><br>
> As if wrote on mailing list when i try to import some config file<br>
> from client, so i am getting the following error message.<br>
<br>
</span>Ok, how did you try the import the config files? Using rhncfg-manager?<br>
How? What options did you use? What did the tool write?<br>
What version of the tool do you use? Does the upload work with another version?<br>
<br>
Does any other file upload work? What's special on that file? Can you attach the file (if it's special)?<br>
<br>
<br>
When I try to upload a config file to my Spacewalk server, it works nice:<br>
# rhncfg-manager add -c tml-config /etc/rc.d/rc<br>
Using server name <my-spacewalk-server><br>
Pushing to channel tml-config:<br>
Local file /etc/rc.d/rc -> remote file /etc/rc.d/rc<br>
<br>
The file has following permissions:<br>
# ll -Z /etc/rc.d/rc<br>
-rwxr-xr-x. root root system_u:object_r:initrc_exec_t:s0 /etc/rc.d/rc<br>
<br>
I'm using:<br>
# rpm -qf `which rhncfg-manager`<br>
rhncfg-management-5.10.55-11.el6sat.noarch<br>
<br>
So, something's different on your setup and we need to find out, what it is to fix it.<br>
So, please, reply to your original post on spacewalk-list with more information and we<br>
try to reproduce your problem on our machines.<br>
<br>
<br>
Regards,<br>
--<br>
Tomas Lestach<br>
Red Hat Satellite Engineering, Red Hat<br>
<div class=""><div class="h5"><br>
<br>
> XML-RPC error while talking to<br>
> <a href="https://spacewalk.magnetdigital.local/CONFIG-MANAGEMENT" target="_blank">https://spacewalk.magnetdigital.local/CONFIG-MANAGEMENT</a> : cannot<br>
> marshal None unless allow_none is enabled<br>
><br>
> This failing is occured when certain file was importing from client<br>
> side !<br>
><br>
> Error:<br>
> Fatal error in Python code occurred [[6]]<br>
><br>
> Log details:<br>
><br>
> Client Side: (with rhn_check)<br>
><br>
> D: rpcServer: Calling XMLRPC up2date.login<br>
> D: writeCachedLogin() invoked<br>
> D: Wrote pickled loginInfo at 1411740455.82 with expiration of<br>
> 1411744055.82 seconds.<br>
> successfully retrieved authentication token from up2date server<br>
> D: logininfo:{'X-RHN-Server-Id': 1000010070,<br>
> 'X-RHN-Auth-Server-Time': '1411740455.82', 'X-RHN-Auth':<br>
> 'FcuDYwtb6ExqolBbzQlV1kHDG/<br>
> ZKOK2SVFx/VEpUISA=', 'X-RHN-Auth-Channels':<br>
> [['centos6.5-x86_64-base', '20140926010000', '1', '1'],<br>
> ['centos6.5-x86_64-update', '20140926040229', '0', '1'],<br>
> ['centos6.5-x86_64-extras', '20140926013000', '0', '1'],<br>
> ['centos6-x86_64-epel', '20140926053000', '0', '1'],<br>
> ['centos6-x86_64-example-special', '20140918114511', '0', '1'],<br>
> ['centos6-x86_64-spacewalk', '20140926023000', '0', '1']],<br>
> 'X-RHN-Auth-User-Id': '', 'X-RHN-Auth-Expire-Offset': '3600.0'}<br>
> D: handle_action{'action': "<?xml<br>
> version='1.0'?>\n<methodCall>\n<methodName>configfiles.upload</methodName>\n<params>\n<param>\n<value><int>2707</int></value>\n</param>\n<param>\n<value><array><data>\n<value><string>/etc/enginx.txt</string></value>\n</data></array></value>\n</param>\n</params>\n</methodCall>\n",<br>
> 'version': 2, 'id': 2707}<br>
> D: handle_action actionid = 2707, version = 2<br>
> D: do_call configfiles.upload(2707,<br>
> ['/etc/enginx.txt']){'cache_only': None}<br>
> XML-RPC error while talking to<br>
> <a href="https://spacewalk.exampledigital.local/CONFIG-MANAGEMENT" target="_blank">https://spacewalk.exampledigital.local/CONFIG-MANAGEMENT</a> : cannot<br>
> marshal None unless allow_none is enabled<br>
> D: Sending back response((6,), 'Fatal error in Python code occurred',<br>
> {})<br>
><br>
><br>
> Server Side: (rhn_server_xmlrpc.log)<br>
><br>
> 2014/09/26 17:12:57 +03:00 62539 192.168.132.116 :<br>
> xmlrpc/queue.get(1000010179, 2, 'checkins enabled')<br>
> 2014/09/26 17:12:57 +03:00 63721 192.168.132.116 :<br>
> xmlrpc/up2date.login(1000010179,)<br>
> 2014/09/26 17:12:57 +03:00 62521 192.168.132.116 :<br>
> xmlrpc/up2date.listChannels(1000010179,)<br>
> 2014/09/26 17:13:07 +03:00 62527 192.168.132.116 :<br>
> xmlrpc/registration.welcome_message('lang: None',)<br>
> 2014/09/26 17:13:07 +03:00 62539 192.168.132.116 :<br>
> xmlrpc/registration.update_packages(1000010179, 'packages: 391')<br>
> 2014/09/26 17:13:08 +03:00 63721 192.168.132.116 :<br>
> xmlrpc/registration.welcome_message('lang: None',)<br>
><br>
><br>
> Is there any solution or patch to fix this problem !<br>
><br>
> Thanks in advance.<br>
><br>
><br>
</div></div></div><br></div></div></div></div></div></div></div>