Bug 1324514

Summary: copr createrepo error messages
Product: [Community] Copr Reporter: clime
Component: backendAssignee: clime
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: bloch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-05 13:06:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Example log with the error messages none

Description clime 2016-04-06 13:56:57 UTC
The repository metadata are being recreated but with large amount of error messages as a side product. There are two types:

1)
(appstream-builder:31529): As-DEBUG: Failed to add package /var/lib/copr/public_html/results/verdurin/slurm/epel-7-x86_64/00155449-slurm/build.info: No idea how to handle /var/lib/copr/public_html/results/verdurin/slurm/epel-7-x86_64/00155449-slurm/build.info
(appstream-builder:31529): As-DEBUG: Failed to add package /var/lib/copr/public_html/results/verdurin/slurm/epel-7-x86_64/00155449-slurm/mockchain.log.gz: No idea how to handle /var/lib/copr/public_html/results/verdurin/slurm/epel-7-x86_64/00155449-slurm/mockchain.log.gz
(appstream-builder:31529): As-DEBUG: Failed to add package /var/lib/copr/public_html/results/verdurin/slurm/epel-7-x86_64/00155449-slurm/build-00155449.rsync.log: No idea how to handle /var/lib/copr/public_html/results/verdurin/slurm/epel-7-x86_64/00155449-slurm/build-00155449.rsync.log
(appstream-builder:31529): As-DEBUG: Failed to add package /var/lib/copr/public_html/results/verdurin/slurm/epel-7-x86_64/00155449-slurm/success: No idea how to handle /var/lib
...

2)
[2016-04-06 05:58:26,956][ ERROR][PID:13339] Error making local repo: /var/lib/copr/public_html/results/verdurin/slurm/epel-7-x86_64
Traceback (most recent call last):
  File "/usr/share/copr/backend/mockremote/__init__.py", line 238, in do_createrepo
    projectname=self.job.project_name,
  File "/usr/share/copr/backend/createrepo.py", line 160, in createrepo
    out_ad = add_appdata(path, username, projectname)
  File "/usr/share/copr/backend/createrepo.py", line 131, in add_appdata
    .format(**kwargs), os.path.join(path, "createrepo.lock"))
  File "/usr/share/copr/backend/createrepo.py", line 34, in run_cmd_unsafe
    stdout=out, stderr=err)
CreateRepoError: exit code != 0
return code 1 after invocation of: chmod -R +rX /var/lib/copr/public_html/results/verdurin/slurm/epel-7-x86_64 
stderr: 
...


Mainly the second type needs fixing.

Comment 1 clime 2016-04-08 10:11:17 UTC
Created attachment 1145081 [details]
Example log with the error messages

Comment 2 clime 2016-04-08 11:41:32 UTC
Fixed by 991d0e58 & 6ab0fb55.

Comment 3 Miroslav Suchý 2016-05-05 13:06:38 UTC
Package including this fix has been deployed on production instance of Copr.