Bug 72436 - Unable to rhnpush source rpms
Summary: Unable to rhnpush source rpms
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Server   
(Show other bugs)
Version: unspecified
Hardware: i386 Linux
Target Milestone: ---
Assignee: Mihai Ibanescu
QA Contact: Fanny Augustin
Depends On:
TreeView+ depends on / blocked
Reported: 2002-08-23 18:55 UTC by Matt Jamison
Modified: 2007-07-31 19:26 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-08-27 21:34:47 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Josef Komenda 2002-08-23 18:55:45 UTC
Description of Problem: Unable to rhnpush source rpms 

rhnpush -v --server=http://sat-inst.webdev-colo.redhat.com/APP -u sat-inst
 -c channel1 /etc/sysconfig/rhn/rhns-ca-cert-1.0-1.*

Channels: channel1
Red Hat Network password:
Connecting to http://sat-inst.webdev-colo.redhat.com/APP
Uploading package /etc/sysconfig/rhn/rhns-ca-cert-1.0-1.noarch.rpm

Error Message:
    Package upload failed: [Errno 13] Permission denied: '/var/satellite'
Error Class Code: 50
Error Class Info: Invalid information uploaded to the server
     An error has occurred while processing your request. If this problem
     persists please submit a bug report to rhn-help@redhat.com.
     If you choose to submit the bug report, please be sure to include
     details of what you were trying to do when this error occurred and
     details on how to reproduce this problem.

Version-Release number of selected component (if applicable): see bug 63780

The error message is much improved, but it does not allow the .src.rpm to be
uploaded. You can confirm on sat-inst.

Comment 1 Josef Komenda 2002-08-23 20:07:07 UTC
Trying to push for these to get closed asap, so bumping to high priority.

Comment 2 Mihai Ibanescu 2002-08-23 23:17:34 UTC
Permissions problem?
Can you give me a ls -l on /var/satellite please?

Comment 3 Josef Komenda 2002-08-26 14:59:12 UTC
There is no /var/satellite/ 
in fact, there is no /satellite directory: 

[root@sat-inst root]# locate /satellite

Comment 4 Mihai Ibanescu 2002-08-26 16:07:19 UTC
Again, who was supposed to create /var/satellite? Isn't the installer supposed
to do that?

This is the directory where the import AND rhnpush will put packages; somebody
has to create it first 'cause rhnpush can't (since it runs as apache). I know
satellite-sync does, but I thought we said the satellite installer is gonna
create it instead.

Comment 5 Josef Komenda 2002-08-26 20:02:08 UTC
[root@sat-inst root]# mkdir /var/satellite
[root@sat-inst root]# chown apache.apache /var/satellite/
[root@sat-inst root]# rhnpush -v
--server=http://sat-inst.webdev-colo.redhat.com/APP -u sat-inst -c channel1
Channels: channel1
Red Hat Network password:
Connecting to http://sat-inst.webdev-colo.redhat.com/APP
Uploading package /etc/sysconfig/rhn/rhns-ca-cert-1.0-1.noarch.rpm
Uploading package /etc/sysconfig/rhn/rhns-ca-cert-1.0-1.src.rpm
Internal Server Error

Despite the 'Internal Server Error', it works - I can upload the package.
perhaps rhnpush should make the /var/satellite directory...

Comment 6 Mihai Ibanescu 2002-08-26 20:07:46 UTC
rhnpush can't, because it talks to an Apache service, which runs (of course) as

Comment 7 Josef Komenda 2002-08-27 01:06:54 UTC
Ok, which package should handle this? Who should decide?

Comment 8 Josef Komenda 2002-08-28 17:19:47 UTC
Fixed - just make sure you load a channel first, or else:

  mkdir /var/satellite
  chown apache.apache /var/satellite

Note You need to log in before you can comment on or make changes to this bug.