Description of Problem: running rhnpush on sat 1.1 results in a traceback: [root@sat-inst rhn]# rhnpush -v --server=http://sat-inst.test.redhat.com/APP -u jkomenda -c channel1 /etc/sysconfig/rhn/rhns-ca-cert-1.0-1.* Channels: channel1 Red Hat Network password: Connecting to http://sat-inst.test.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/rhn' Error Class Code: 50 Error Class Info: Invalid information uploaded to the server Explanation: An error has occurred while processing your request. If this problem persists please submit a bug report to rhn-help. 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.
Fixed in CVS.
Not fixed: [root@sat-inst root]# rhnpush -v --server=http://sat-inst.test.redhat.com/APP -u jkomenda -c channel1 /etc/sysconfig/rhn/rhns-ca-cert-1.0-1.* Channels: channel1 Red Hat Network password: Connecting to http://sat-inst.test.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 Explanation: An error has occurred while processing your request. If this problem persists please submit a bug report to rhn-help. 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.
This works when you create the directory specified in the Installer, then chown it to apache: mkdir /var/satellite chown apache.apache /var/satellite Over to Adrian to have the installer handle this.
Correction - over to Greg to update the docs - this is best handled post-install.
The correct dir to create would be /var/satellite/redhat
Due to the chicken-n-egg problem of mountpoints not existing during the install process, the installer cannot create the directory and then chown it. Therefore the documentation _must_ describe what to do. However, if satellite-{sync,import} is to be used prior to ever using rhnpush, no manual intervention is needed. Either tool will create and properly set the permissions of that directory. By the way, I vote to change the default mountpoint to /var/spool/rhn-satellite.
Docs should read like so: - mkdir /var/satellite - chown apache.apache /var/satellite
Will close this in the docs by requiring a channel to be imported or synched before a custom channel may be created.