[Spacewalk-list] Why cannot install rpm from spacewalk server ?

tommy sz_cuitao at 163.com
Mon Feb 1 13:31:38 UTC 2021


The user apache can caacess the file:

 

 

[root at olms1 ~]# ls -l /var/satellite/redhat/1/56b/python2-osad/5.11.110-1.el7/noarch/56b67101a58dbd01318b3a6baf5e1d578d0960cba3aaf6fbd4d24add1eed60d8/python2-osad-5.11.110-1.el7.noarch.rpm

-rw-r--r--. 1 root root 31896 Mar 17  2020 /var/satellite/redhat/1/56b/python2-osad/5.11.110-1.el7/noarch/56b67101a58dbd01318b3a6baf5e1d578d0960cba3aaf6fbd4d24add1eed60d8/python2-osad-5.11.110-1.el7.noarch.rpm

[root at olms1 ~]#

[root at olms1 ~]#

[root at olms1 ~]#

[root at olms1 ~]# su - apache

Last login: Mon Feb  1 21:13:50 CST 2021 on pts/0

-bash-4.2$

-bash-4.2$

-bash-4.2$

-bash-4.2$ cd /var/satellite/redhat/1/56b/python2-osad/5.11.110-1.el7/noarch/56b67101a58dbd01318b3a6baf5e1d578d0960cba3aaf6fbd4d24add1eed60d8

-bash-4.2$

-bash-4.2$

-bash-4.2$

-bash-4.2$ ls -l

total 36

-rw-r--r--. 1 root root 31896 Mar 17  2020 python2-osad-5.11.110-1.el7.noarch.rpm

-bash-4.2$

-bash-4.2$

 

 

The ssl_access_log is:

 

 

192.168.10.135 - - [01/Feb/2021:21:22:17 +0800] "POST /XMLRPC HTTP/1.1" 200 163

192.168.10.135 - - [01/Feb/2021:21:22:18 +0800] "POST /XMLRPC HTTP/1.1" 200 768

192.168.10.135 - - [01/Feb/2021:21:22:18 +0800] "POST /XMLRPC HTTP/1.1" 200 127

192.168.10.135 - - [01/Feb/2021:21:22:19 +0800] "POST /XMLRPC HTTP/1.1" 200 126

192.168.10.135 - - [01/Feb/2021:21:22:19 +0800] "POST /XMLRPC HTTP/1.1" 200 163

192.168.10.135 - - [01/Feb/2021:21:22:19 +0800] "POST /XMLRPC HTTP/1.1" 200 138

192.168.10.135 - - [01/Feb/2021:21:22:48 +0800] "POST /XMLRPC HTTP/1.1" 200 2065

192.168.10.113 - - [01/Feb/2021:21:23:16 +0800] "POST /XMLRPC HTTP/1.1" 200 1149

192.168.10.113 - - [01/Feb/2021:21:23:16 +0800] "POST /XMLRPC HTTP/1.1" 200 2065

192.168.10.113 - - [01/Feb/2021:21:23:16 +0800] "GET /XMLRPC/GET-REQ/oraclelinux7-x86_64/repodata/repomd.xml HTTP/1.1" 200 1545

192.168.10.113 - - [01/Feb/2021:21:23:16 +0800] "GET /XMLRPC/GET-REQ/oraclelinux7-x86_64/repodata/comps.xml HTTP/1.1" 500 -

192.168.10.113 - - [01/Feb/2021:21:23:17 +0800] "POST /XMLRPC HTTP/1.1" 200 1149

192.168.10.113 - - [01/Feb/2021:21:23:17 +0800] "GET /XMLRPC/GET-REQ/oraclelinux7-x86_64/repodata/comps.xml HTTP/1.1" 500 -

192.168.10.113 - - [01/Feb/2021:21:23:26 +0800] "GET /XMLRPC/GET-REQ/ol7_oracle-linux-manager210_client/getPackage/osad-5.11.110-1.el7.noarch.rpm HTTP/1.1" 404 -

192.168.10.113 - - [01/Feb/2021:21:23:26 +0800] "POST /XMLRPC HTTP/1.1" 200 1149

192.168.10.113 - - [01/Feb/2021:21:23:26 +0800] "GET /XMLRPC/GET-REQ/ol7_oracle-linux-manager210_client/getPackage/osad-5.11.110-1.el7.noarch.rpm HTTP/1.1" 404 -

192.168.10.113 - - [01/Feb/2021:21:23:26 +0800] "GET /XMLRPC/GET-REQ/ol7_oracle-linux-manager210_client/getPackage/python2-osad-5.11.110-1.el7.noarch.rpm HTTP/1.1" 404 -

192.168.10.113 - - [01/Feb/2021:21:23:26 +0800] "POST /XMLRPC HTTP/1.1" 200 1149

192.168.10.113 - - [01/Feb/2021:21:23:26 +0800] "GET /XMLRPC/GET-REQ/ol7_oracle-linux-manager210_client/getPackage/python2-osad-5.11.110-1.el7.noarch.rpm HTTP/1.1" 404 –

 

 

 

I run the wget:

 

[root at testol7 ~]# wget https://olms1.tltd.com/XMLRPC/GET-REQ/ol7_oracle-linux-manager210_client/getPackage/osad-5.11.110-1.el7.noarch.rpm

--2021-02-01 21:27:22--  https://olms1.tltd.com/XMLRPC/GET-REQ/ol7_oracle-linux-manager210_client/getPackage/osad-5.11.110-1.el7.noarch.rpm

Resolving olms1.tltd.com (olms1.tltd.com)... 192.168.10.113

Connecting to olms1.tltd.com (olms1.tltd.com)|192.168.10.113|:443... connected.

ERROR: cannot verify olms1.tltd.com's certificate, issued by ‘/C=CN/ST=gd/L=sz/O=tltd/OU=olms1.tltd.com/CN=olms1.tltd.com’:

  Unable to locally verify the issuer's authority.

To connect to olms1.tltd.com insecurely, use `--no-check-certificate'.

[root at testol7 ~]#

[root at testol7 ~]#

 

[root at testol7 ~]# wget https://olms1.tltd.com/XMLRPC/GET-REQ/ol7_oracle-linux-manager210_client/getPackage/osad-5.11.110-1.el7.noarch.rpm --no-check-certificate

--2021-02-01 21:30:53--  https://olms1.tltd.com/XMLRPC/GET-REQ/ol7_oracle-linux-manager210_client/getPackage/osad-5.11.110-1.el7.noarch.rpm

Resolving olms1.tltd.com (olms1.tltd.com)... 192.168.10.113

Connecting to olms1.tltd.com (olms1.tltd.com)|192.168.10.113|:443... connected.

WARNING: cannot verify olms1.tltd.com's certificate, issued by ‘/C=CN/ST=gd/L=sz/O=tltd/OU=olms1.tltd.com/CN=olms1.tltd.com’:

  Unable to locally verify the issuer's authority.

HTTP request sent, awaiting response... 405 Method Not Allowed

2021-02-01 21:30:53 ERROR 405: Method Not Allowed.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

From: spacewalk-list-bounces at redhat.com <spacewalk-list-bounces at redhat.com> On Behalf Of Andreas Dijkman
Sent: Monday, February 1, 2021 6:46 PM
To: spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] Why cannot install rpm from spacewalk server ?

 

Have you looked in the webserver access-logging and error-logging? How about AVC-errors in audit-log?

The error points in the direction that the webserver cannot read the file or the file isn’t available. Have a look in /var/satellite/redhat/1/56b/python2-osad/5.11.110-1.el7/noarch/56b67101a58dbd01318b3a6baf5e1d578d0960cba3aaf6fbd4d24add1eed60d8/python2-osad-5.11.110-1.el7.noarch.rpm to check if the file exists and the user apache can access the file.

Regards,


Andreas Dijkman





On 1 Feb 2021, at 11:39, tommy <sz_cuitao at 163.com <mailto:sz_cuitao at 163.com> > wrote:

 

And the download button of any package is disabled:

 

<image001.jpg>

 

From:  <mailto:spacewalk-list-bounces at redhat.com> spacewalk-list-bounces at redhat.com < <mailto:spacewalk-list-bounces at redhat.com> spacewalk-list-bounces at redhat.com> On Behalf Of tommy
Sent: Monday, February 1, 2021 4:49 PM
To: Spacewalk-list at redhat.com <mailto:Spacewalk-list at redhat.com> 
Subject: [Spacewalk-list] Why cannot install rpm from spacewalk server ?

 

1.     I have installed the spacewalk server and created the channel and synced the local with the internet.

 

2.     I have create the channel and registerd the channel from the client. Then I install some software using yum:

 

[root at olms1 ~]# yum repolist

Loaded plugins: rhnplugin

This system is receiving updates from Spacewalk server.

repo id                                                                        repo name                                                                      status

ol7_oracle-linux-manager210_client                                             ol7_oracle-linux-manager210_client                                                 58

oraclelinux7-x86_64                                                            Oracle_Linux_7                                                                 30,595

repolist: 30,653

[root at olms1 ~]#

[root at olms1 ~]#

[root at olms1 ~]# yum search osad

Loaded plugins: rhnplugin

This system is receiving updates from Spacewalk server.

======================================================================== N/S matched: osad =========================================================================

osad.noarch : Open Source Architecture Daemon

python2-osad.noarch : Open Source Architecture Daemon

 

  Name and summary matches only, use "search all" for everything.

[root at olms1 ~]#

[root at olms1 ~]# yum install osad

Loaded plugins: rhnplugin

This system is receiving updates from Spacewalk server.

Resolving Dependencies

--> Running transaction check

---> Package osad.noarch 0:5.11.110-1.el7 will be installed

--> Processing Dependency: python2-osad = 5.11.110-1.el7 for package: osad-5.11.110-1.el7.noarch

--> Running transaction check

---> Package python2-osad.noarch 0:5.11.110-1.el7 will be installed

--> Finished Dependency Resolution

 

Dependencies Resolved

 

====================================================================================================================================================================

Package                           Arch                        Version                                Repository                                               Size

====================================================================================================================================================================

Installing:

osad                              noarch                      5.11.110-1.el7                         ol7_oracle-linux-manager210_client                       23 k

Installing for dependencies:

python2-osad                      noarch                      5.11.110-1.el7                         ol7_oracle-linux-manager210_client                       31 k

 

Transaction Summary

====================================================================================================================================================================

Install  1 Package (+1 Dependent package)

 

Total download size: 54 k

Installed size: 97 k

Is this ok [y/d/N]: y

Downloading packages:

No Presto metadata available for ol7_oracle-linux-manager210_client

 

 

Error downloading packages:

  python2-osad-5.11.110-1.el7.noarch: failed to retrieve getPackage/python2-osad-5.11.110-1.el7.noarch.rpm from ol7_oracle-linux-manager210_client

error was [Errno 14] HTTPS Error 404 - Not Found

  osad-5.11.110-1.el7.noarch: failed to retrieve getPackage/osad-5.11.110-1.el7.noarch.rpm from ol7_oracle-linux-manager210_client

error was [Errno 14] HTTPS Error 404 - Not Found

 

 

3.     But the files are all on the server:

 


Details


Description:

Python 2 specific files for osad

Package Architecture:

noarch

Available Architectures:

noarch

Available From:

 <https://192.168.10.113/rhn/channels/ChannelDetail.do?cid=142> ol7_oracle-linux-manager210_client

Vendor:

Oracle America

Signing Key:

72f97b74ec551f03

SHA256sum:

56b67101a58dbd01318b3a6baf5e1d578d0960cba3aaf6fbd4d24add1eed60d8

File System Path:

redhat/1/56b/python2-osad/5.11.110-1.el7/noarch/56b67101a58dbd01318b3a6baf5e1d578d0960cba3aaf6fbd4d24add1eed60d8/python2-osad-5.11.110-1.el7.noarch.rpm

Package Size:

31.1 KB

 


Details


Description:

OSAD agent receives commands over jabber protocol from Spacewalk Server and
commands are instantly executed.

This package effectively replaces the behavior of rhnsd/rhn_check that
only poll the Spacewalk Server from time to time.

Package Architecture:

noarch

Available Architectures:

noarch

Available From:

 <https://192.168.10.113/rhn/channels/ChannelDetail.do?cid=142> ol7_oracle-linux-manager210_client

Vendor:

Oracle America

Signing Key:

72f97b74ec551f03

SHA256sum:

b6e5f866dee1af1143d9c58f0fd5a0e84c5e4d271c849765b794442fb6d7bb9f

File System Path:

redhat/1/b6e/osad/5.11.110-1.el7/noarch/b6e5f866dee1af1143d9c58f0fd5a0e84c5e4d271c849765b794442fb6d7bb9f/osad-5.11.110-1.el7.noarch.rpm

Package Size:

22.9 KB

 

 

Why cannot download ????????

 

 

 

_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com <mailto:Spacewalk-list at redhat.com> 
https://www.redhat.com/mailman/listinfo/spacewalk-list

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20210201/6c8066cf/attachment.htm>


More information about the Spacewalk-list mailing list