Re: [Spacewalk-list] Client execution returned "Invalid function call attempted" (code 6)

2018-08-05 Thread Inishev Oleg Vladimirovich
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' 
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': 11, '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': 11, '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': 11, '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
-

[Spacewalk-list] Client execution returned "Invalid function call attempted" (code 6)

2018-07-31 Thread Inishev Oleg Vladimirovich
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
* 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': 11, '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': 11, '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': 11, '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