Repository Problem Suma 3.1

Hi,
i have a new rpm pakage and i create a repo on my folder. The Suse Manager 3.1 giv me this error:

sumaserver:/srv/www/htdocs/pub/repositories/ptf # /usr/bin/spacewalk-repo-sync --channel stable-sles12-sp2-kernel-ptf-x86_64 --type yum --non-interactive
07:12:51 ======================================
07:12:51 | Channel: stable-sles12-sp2-kernel-ptf-x86_64
07:12:51 ======================================
07:12:51 Sync of channel started.
07:12:51 RepoError: Cannot retrieve repository metadata (repomd.xml) for repository: ptf. Please verify its path and try again
07:12:51 Total time: 0:00:00

Config Repo in Suma

Repository URL: http://sumaserver/pub/customrepo/ptf

Config Sumaserver:

sumaserver:/srv/www/htdocs/pub/repositories/stable-sles12-sp2-kernel-ptf-x86_64 # createrepo .
Spawning worker 0 with 1 pkgs
Workers Finished
Saving Primary metadata
Saving file lists metadata
Saving other metadata
sumaserver:/srv/www/htdocs/pub/repositories/stable-sles12-sp2-kernel-ptf-x86_64 # ls -l
total 36672
-rw-r–r-- 1 root root 37549573 Oct 4 08:43 kernel-default-4.4.74-92.35.1.13607.0.PTF.1030850.x86_64.rpm
drwxr-xr-x 1 root root 494 Oct 6 07:15 repodata

Now, when i sync in sumaserver the new Channel i have this error:

2017/10/05 15:38:38 +02:00 Command: [’/usr/bin/spacewalk-repo-sync’, ‘–channel’, ‘stable-sles12-sp2-kernel-ptf-x86_64’, ‘–type’, ‘yum’, ‘–non-interactive’]
2017/10/05 15:38:38 +02:00 Sync of channel started.
2017/10/05 15:38:38 +02:00 RepoError: Cannot retrieve repository metadata (repomd.xml) for repository: ptf. Please verify its path and try again

When i control with curl on the sumaserver i have this error:

curl -Sks http://sumaserver/pub/customrepo/ptf

Error Messages:
Your system policy has denied access to the requested URL

Can someone help? Maybe a problem with rhn.conf?

Thanks

Murat

Hi and welcome to the forum :slight_smile:
Your location(s) are pub/repositories/stable-sles12-sp2-kernel-ptf-x86_64, pub/customrepo/ptf or pub/repositories/ptf you seem to be looking at three different places? You used createrepo in stable-sles12-sp2-kernel-ptf-x86_64.

The Problem was the /etc/rhn/rhn.conf file.
I put this on the file:

server.satellite.no_proxy = susemanager

then it works