Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload fails with python trace whilst uploading mg srpm #557

Closed
hboetes opened this issue Apr 6, 2023 · 2 comments · Fixed by #573
Closed

Upload fails with python trace whilst uploading mg srpm #557

hboetes opened this issue Apr 6, 2023 · 2 comments · Fixed by #573
Assignees
Labels

Comments

@hboetes
Copy link

hboetes commented Apr 6, 2023

For reference: https://bugzilla.redhat.com/show_bug.cgi?id=1941656#c21

Scratch build failed. Details below:

GenericError: File upload failed: cli-build/1680794132.2614074.DUsbvvro/mg-20230406-1.fc36.src.rpm
Traceback:
  File "/usr/local/lib/python3.10/site-packages/hotness/use_cases/package_scratch_build_use_case.py", line 56, in build
    result = self.builder.build(request.package, request.opts)
  File "/usr/local/lib/python3.10/site-packages/hotness/builders/koji.py", line 198, in build
    output["build_id"] = self._scratch_build(session, package.name, srpm)
  File "/usr/local/lib/python3.10/site-packages/hotness/builders/koji.py", line 451, in _scratch_build
    session.uploadWrapper(source, serverdir)
  File "/usr/lib/python3.10/site-packages/koji/__init__.py", line 3110, in uploadWrapper
    self.fastUpload(localfile, path, name, callback, blocksize, overwrite, volume=volume)
  File "/usr/lib/python3.10/site-packages/koji/__init__.py", line 3034, in fastUpload
    raise GenericError("File upload failed: %s/%s" % (path, name))

If you think this issue is caused by some bug in the-new-hotness, please report it on the-new-hotness issue tracker: https://github.com/fedora-infra/the-new-hotness/issues
@Zlopez
Copy link
Contributor

Zlopez commented Apr 13, 2023

This is a duplicate of #541 and I can't do much about it. It just means that the koji library wasn't able to upload the file. I will leave this ticket open, because I would need to add some way to handle this error more gracefully in hotness.

@hboetes
Copy link
Author

hboetes commented Apr 13, 2023

OK, thanks.

Zlopez added a commit to Zlopez/the-new-hotness that referenced this issue May 23, 2023
The koji uploadWrapper sometimes fails with GenericError, let's retry the upload
if this happens.

Fixes fedora-infra#557

Signed-off-by: Michal Konečný <mkonecny@redhat.com>
@Zlopez Zlopez self-assigned this May 23, 2023
Zlopez added a commit that referenced this issue May 23, 2023
The koji uploadWrapper sometimes fails with GenericError, let's retry the upload
if this happens.

Fixes #557

Signed-off-by: Michal Konečný <mkonecny@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants