#12632 Fedpack new source $source fail giving 403 on upload
Closed: Fixed by aeperezt. Opened by aeperezt.

Hello,

Try to upgrade some packages and got error when uploading new sources

fedpkg new-sources $SOURCE
Creating repo object from /home/alejandro/workspace/fedora/iptraf-ng
Uploading: ~/iptraf-ng/v1.2.2.tar.gz to https://src.fedoraproject.org/repo/pkgs/upload.cgi
Could not execute new_sources: Fail to upload files. Server returns status 403

If given -v it returns
ffedpkg -v new-sources $SOURCE
Creating repo object from /home/alejandro/workspace/fedora/iptraf-ng
Uploading: ~/iptraf-ng/v1.2.2.tar.gz to https://src.fedoraproject.org/repo/pkgs/upload.cgi
Could not execute new_sources: Fail to upload files. Server returns status 403
Traceback (most recent call last):
File "/usr/bin/fedpkg", line 33, in
sys.exit(load_entry_point('fedpkg==1.46', 'console_scripts', 'fedpkg')())
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/site-packages/fedpkg/main.py", line 84, in main
sys.exit(client.args.command())
~~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/site-packages/pyrpkg/cli.py", line 2864, in new_sources
self.cmd.upload(
~~~~~~~~~~~~~~~^
self.args.files,
^^^^^^^^^^^^^^^^
replace=self.args.replace,
^^^^^^^^^^^^^^^^^^^^^^^^^^
offline=self.args.offline,)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/pyrpkg/init.py", line 3260, in upload
self.lookasidecache.upload(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
self.ns_repo_name if self.lookaside_namespaced else self.repo_name,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
f, file_hash, offline=offline)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/pyrpkg/lookaside.py", line 323, in upload
if self.remote_file_exists(name, filename, hash):
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/pyrpkg/lookaside.py", line 280, in remote_file_exists
self.raise_upload_error(status)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "/usr/lib/python3.13/site-packages/pyrpkg/lookaside.py", line 136, in raise_upload_error
raise UploadError(message, http_status=http_status)
pyrpkg.errors.UploadError: Fail to upload files. Server returns status 403

Klist here
klist
Ticket cache: KCM:1000:43484
Default principal: AEPEREZT@FEDORAPROJECT.ORG

Valid starting Expires Service principal
05/07/25 18:17:16 06/07/25 18:14:39 HTTP/src.fedoraproject.org@
renew until 12/07/25 18:14:39
Ticket server: HTTP/src.fedoraproject.org@FEDORAPROJECT.ORG
05/07/25 18:14:39 06/07/25 18:14:39 krbtgt/FEDORAPROJECT.ORG@FEDORAPROJECT.ORG
renew until 12/07/25 18:14:39
05/07/25 18:40:35 06/07/25 18:14:39 HTTP/id.fedoraproject.org@
renew until 12/07/25 18:14:39
Ticket server: HTTP/id.fedoraproject.org@FEDORAPROJECT.ORG

Thanks, for the help


One oddity I see is that you have "AEPEREZT" instead of 'aeperezt'...

try:

kdestroy -A
fkinit

and retry the upload

Thanks,

Kevin it works with no issue now.

Metadata Update from @aeperezt:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

Metadata