I fixed my error!
It's stupid very stupid!
In file /etc/sysconfig/rhn/up2date set parametr 
serverURL=https://ip_address/XMLRPC and in certificate set hostname!
I fix serverURL to my hostname and it's all!


From: Inishev Oleg Vladimirovich
Sent: Tuesday, July 31, 2018 10:58 AM
To: 'spacewalk-list@redhat.com' <spacewalk-list@redhat.com>
Subject: Client execution returned "Invalid function call attempted" (code 6)

Hi guys!
I'm a new in Spacewalk so forgive my stupid!

Now i testing functions Spacewalk, and i want delete packet from test client 
(htop packet)
When in GUI Spacewalk i select htop packet and press "Remove Packeges" i have 
next error (Client execution returned "Invalid function call attempted" (code 
6))

On client i have

#-------------------------------------------------------------------------#
# rhn_check -vvv
D: opening  db environment /var/lib/rpm cdb:0x401
D: opening  db index       /var/lib/rpm/Packages 0x400 mode=0x0
D: locked   db index       /var/lib/rpm/Packages
D: opening  db index       /var/lib/rpm/Providename 0x400 mode=0x0
D: do_call packages.checkNeedUpdate('rhnsd=1',){}
D: opening  db environment /var/lib/rpm cdb:0x401
D: opening  db index       /var/lib/rpm/Packages 0x400 mode=0x0
D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key
D: couldn't find any keys in /var/lib/rpm/pubkeys/*.key
D: loading keyring from rpmdb
D: opening  db index       /var/lib/rpm/Name 0x400 mode=0x0
D: added key gpg-pubkey-f4a80eb5-53a7ff4b to keyring
D: added key gpg-pubkey-352c64e5-52ae6884 to keyring
D: added key gpg-pubkey-be4b0bc2-5abcfce5 to keyring
D: Using legacy gpg-pubkey(s) from rpmdb
D: opening  db index       /var/lib/rpm/Providename 0x400 mode=0x0
D: closed   db index       /var/lib/rpm/Providename
D: closed   db index       /var/lib/rpm/Name
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm
Loaded plugins: fastestmirror, rhnplugin
Config time: 0.075
D: login(forceUpdate=False) invoked
D: readCachedLogin invoked
D: Checking pickled loginInfo, currentTime=1533019231.43, 
createTime=1533016869.13, expire-offset=3600.0
D: readCachedLogin(): using pickled loginInfo set to expire at 1533020469.13
D: rpcServer: Calling XMLRPC up2date.listChannels
This system is receiving updates from RHN Classic or Red Hat Satellite.
rpmdb time: 0.000
Loading mirror speeds from cached hostfile
* base: mirror.corbina.net
* epel: www.fedora.is<http://www.fedora.is>
* extras: mirror.corbina.net
* updates: mirror.corbina.net
repo time: 3.208
Setting up Package Sacks
updateLoginInfo() login info
D: login(forceUpdate=True) invoked
logging into up2date server
D: rpcServer: Calling XMLRPC up2date.login
D: writeCachedLogin() invoked
D: Wrote pickled loginInfo at 1533019234.82 with expiration of 1533022834.82 
seconds.
successfully retrieved authentication token from up2date server
D: logininfo:{'X-RHN-Server-Id': 1000010000, 'X-RHN-Auth-Server-Time': 
'1533019267.37', 'X-RHN-Auth': 'drvpCfwMo1/h45eTb3nqURlndV3CD8k/gdbRmUZpeSw=', 
'X-RHN-Auth-Channels': [['testch', '20180730143427', '1', '1']], 
'X-RHN-Auth-User-Id': '', 'X-RHN-Auth-Expire-Offset': '3600.0'}
updateLoginInfo() login info
D: login(forceUpdate=True) invoked
logging into up2date server
D: rpcServer: Calling XMLRPC up2date.login
D: writeCachedLogin() invoked
D: Wrote pickled loginInfo at 1533019234.88 with expiration of 1533022834.88 
seconds.
successfully retrieved authentication token from up2date server
D: logininfo:{'X-RHN-Server-Id': 1000010000, 'X-RHN-Auth-Server-Time': 
'1533019267.43', 'X-RHN-Auth': 'wjC/O1W8CnFUZyirGkGzhHYtieFEpTMt2i9kfIsuBXM=', 
'X-RHN-Auth-Channels': [['testch', '20180730143427', '1', '1']], 
'X-RHN-Auth-User-Id': '', 'X-RHN-Auth-Expire-Offset': '3600.0'}
updateLoginInfo() login info
D: login(forceUpdate=True) invoked
logging into up2date server
D: rpcServer: Calling XMLRPC up2date.login
D: writeCachedLogin() invoked
D: Wrote pickled loginInfo at 1533019234.94 with expiration of 1533022834.94 
seconds.
successfully retrieved authentication token from up2date server
D: logininfo:{'X-RHN-Server-Id': 1000010000, 'X-RHN-Auth-Server-Time': 
'1533019267.49', 'X-RHN-Auth': 'xt28aILa1QLVkgEUly1Vnnv1wdKyYDJWeyprXbeSNZ0=', 
'X-RHN-Auth-Channels': [['testch', '20180730143427', '1', '1']], 
'X-RHN-Auth-User-Id': '', 'X-RHN-Auth-Expire-Offset': '3600.0'}
D: Attempt to call an unsupported action packages.checkNeedUpdate('rhnsd=1',)
D: local action status: (6, 'Invalid function call attempted', {})
D: rpcServer: Calling XMLRPC registration.welcome_message
D: closed   db index       /var/lib/rpm/Providename
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm
#-------------------------------------------------------------------------#

i was reading old mail lists about same errors, and in my case i'm no found 
actions folder in /usr/share/rhn/

#-------------------------------------------------------------------------#
# ll /usr/share/rhn/
total 20
-rw-r--r-- 1 root root 5083 Jul 30 14:10 RHN-ORG-TRUSTED-SSL-CERT
-rw-r--r-- 1 root root 8865 May  4 10:49 RHNS-CA-CERT
#-------------------------------------------------------------------------#


but i have

#-------------------------------------------------------------------------#
# ll /usr/lib/python2.7/site-packages/rhn/actions
total 328
-rw-rw-r-- 1 root root 18369 Mar 19 15:20 configfiles.py
-rw-r--r-- 2 root root 11350 Mar 19 15:20 configfiles.pyc
-rw-r--r-- 2 root root 11350 Mar 19 15:20 configfiles.pyo
-rw-r--r-- 1 root root  2441 Apr 18 19:02 errata.py
-rw-r--r-- 2 root root  2230 Apr 18 19:02 errata.pyc
-rw-r--r-- 2 root root  2230 Apr 18 19:02 errata.pyo
-rwxr-xr-x 1 root root  1096 May  4 11:05 hardware.py
-rw-r--r-- 2 root root  1215 May  4 11:05 hardware.pyc
-rw-r--r-- 2 root root  1215 May  4 11:05 hardware.pyo
-rwxr-xr-x 1 root root    18 May  4 11:05 __init__.py
-rw-r--r-- 2 root root   143 May  4 11:05 __init__.pyc
-rw-r--r-- 2 root root   143 May  4 11:05 __init__.pyo
-rw-rw-r-- 1 root root  2535 Mar 19 15:20 ModeControllerCreator.py
-rw-r--r-- 2 root root  2442 Mar 19 15:20 ModeControllerCreator.pyc
-rw-r--r-- 2 root root  2442 Mar 19 15:20 ModeControllerCreator.pyo
-rw-rw-r-- 1 root root  5270 Mar 19 15:20 ModeController.py
-rw-r--r-- 2 root root  5387 Mar 19 15:20 ModeController.pyc
-rw-r--r-- 2 root root  5387 Mar 19 15:20 ModeController.pyo
-rw-rw-r-- 1 root root  6074 Mar 19 15:20 Modes.py
-rw-r--r-- 2 root root 10758 Mar 19 15:20 Modes.pyc
-rw-r--r-- 2 root root 10758 Mar 19 15:20 Modes.pyo
-rw-r--r-- 1 root root 23329 Apr 18 19:02 packages.py
-rw-r--r-- 1 root root 18703 Apr 18 19:02 packages.pyc
-rw-r--r-- 1 root root 18621 Apr 18 19:02 packages.pyo
-rwxr-xr-x 1 root root  1357 May  4 11:05 reboot.py
-rw-r--r-- 2 root root  1564 May  4 11:05 reboot.pyc
-rw-r--r-- 2 root root  1564 May  4 11:05 reboot.pyo
-rwxr-xr-x 1 root root  4442 Mar 19 15:20 rhn-actions-control.py
-rw-r--r-- 2 root root  3355 Mar 19 15:20 rhn-actions-control.pyc
-rw-r--r-- 2 root root  3355 Mar 19 15:20 rhn-actions-control.pyo
-rwxr-xr-x 1 root root  1618 May  4 11:05 rhnsd.py
-rw-r--r-- 2 root root  1682 May  4 11:05 rhnsd.pyc
-rw-r--r-- 2 root root  1682 May  4 11:05 rhnsd.pyo
-rw-r--r-- 1 root root  6381 Mar 20 10:21 scap.py
-rw-r--r-- 2 root root  6714 Mar 20 10:21 scap.pyc
-rw-r--r-- 2 root root  6714 Mar 20 10:21 scap.pyo
-rw-rw-r-- 1 root root  8893 Mar 19 15:20 script.py
-rw-r--r-- 2 root root  6117 Mar 19 15:20 script.pyc
-rw-r--r-- 2 root root  6117 Mar 19 15:20 script.pyo
-rwxr-xr-x 1 root root   740 May  4 11:05 systemid.py
-rw-r--r-- 2 root root   806 May  4 11:05 systemid.pyc
-rw-r--r-- 2 root root   806 May  4 11:05 systemid.pyo
-rwxr-xr-x 1 root root  1871 May  4 11:05 up2date_config.py
-rw-r--r-- 2 root root  2081 May  4 11:05 up2date_config.pyc
-rw-r--r-- 2 root root  2081 May  4 11:05 up2date_config.pyo
#-------------------------------------------------------------------------#


I think that was the problem.
Please help me.

________________________________
Настоящее сообщение и любые приложения к нему (далее «сообщение») 
конфиденциальны, предназначены строго для адресата(ов), и могут содержать 
юридически защищенную информацию. Вы не должны копировать данное электронное 
письмо или использовать его для каких-либо целей, раскрывать его содержание 
любому другому лицу. Любое несанкционированное использование или 
распространение запрещены. Если Вы получили это сообщение ошибочно, пожалуйста, 
незамедлительно сообщите отправителю об этом и удалите его вместе со всеми 
вложениями. Электронные сообщения не защищены от изменений. Ни ООО «Русфинанс 
Банк», ни его дочерние и аффилированные лица не несут ответственности за 
сообщение, если оно было изменено или фальсифицировано.
This message and any attachments (the “message”) are confidential, intended 
solely for the addressee(s), and may contain legally privileged information. 
You should not copy this e-mail or use it for any purpose nor disclose its 
contents to any other person. Any unauthorized use or dissemination is 
prohibited. If this message is sent to you by mistake, please immediately 
notify the sender and delete this message and any attachments thereof. E-mails 
are susceptible to alteration. Neither LLC Rusfinance Bank nor any of its 
subsidiaries or affiliates shall be liable for the message if altered, changed 
or falsified.
________________________________
_______________________________________________
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to