When trying to import, dist-git is failing:
[15:12:20][DEBUG][dist_git.dist_git_importer][dist_git_importer:392] 1. Try to get task data [15:12:20][INFO][dist_git.dist_git_importer][dist_git_importer:484] 2. Task: 9-epel7, importing the package: http://copr02.casalogic.lan/tmp/tmpuxT8L3/copr-mocks-1.5-1.el7.src.rpm [15:12:20][DEBUG][dist_git.dist_git_importer][dist_git_importer:361] downloading package http://copr02.casalogic.lan/tmp/tmpuxT8L3/copr-mocks-1.5-1.el7.src.rpm [15:12:20][DEBUG][dist_git.dist_git_importer][dist_git_importer:428] Verifying packagage, getting name and version. [15:12:20][DEBUG][dist_git.dist_git_importer][dist_git_importer:457] make sure repos exist: mrmeee/Fisk/copr-mocks [15:12:20][DEBUG][dist_git.dist_git_importer][dist_git_importer:415] importing srpm into the dist-git [15:12:20][DEBUG][dist_git.srpm_import][srpm_import:57] repo_dir: /tmp/tmpFpUmZy/copr-mocks [15:12:20][DEBUG][dist_git.srpm_import][srpm_import:77] clone the pkg repository into tmp directory [15:12:20][DEBUG][pyrpkg][__init__:1279] Checking out a specific branch ssh://copr-dist-git@localhost/mrmeee/Fisk/copr-mocks [15:12:20][DEBUG][pyrpkg][__init__:952] Running git clone -b epel7 ssh://copr-dist-git@localhost/mrmeee/Fisk/copr-mocks --origin origin and logging output [15:12:20][INFO][pyrpkg][__init__:973] Cloning into 'copr-mocks'...
[15:12:20][DEBUG][dist_git.srpm_import][srpm_import:79] import the source rpm into git and save filenames of sources [15:12:20][DEBUG][pyrpkg][__init__:680] Creating repo object from /tmp/tmpFpUmZy/copr-mocks [15:12:21][DEBUG][pyrpkg][__init__:1105] Running: rpm -qp --nosignature --qf %{NAME} /tmp/tmphDba9m/package.src.rpm [15:12:21][DEBUG][pyrpkg][__init__:1120] Running: rpm -qpl /tmp/tmphDba9m/package.src.rpm [15:12:21][INFO][dist_git.srpm_import][srpm_import:86] save the source files into lookaside cache [15:12:21][ERROR][dist_git.dist_git_importer][dist_git_importer:500] Exception raised during srpm import: Traceback (most recent call last): File "/usr/share/copr/dist_git/dist_git_importer.py", line 493, in do_import task.git_hash = self.git_import_srpm(task, fetched_srpm_path) File "/usr/share/copr/dist_git/dist_git_importer.py", line 419, in git_import_srpm return do_git_srpm_import(self.opts, filepath, task, tmp) File "/usr/share/copr/dist_git/srpm_import.py", line 112, in do_git_srpm_import raise PackageImportException("Failed to import the source rpm: {}".format(src_filepath)) PackageImportException: Failed to import the source rpm: /tmp/tmphDba9m/package.src.rpm [15:12:21][DEBUG][dist_git.dist_git_importer][dist_git_importer:465] Sending back: {"task_id": "9-epel7", "error": "srpm_import_failed"} [15:12:21][DEBUG][dist_git.dist_git_importer][dist_git_importer:392] 1. Try to get task data [15:12:21][DEBUG][dist_git.dist_git_importer][dist_git_importer:399] No new tasks to process
Any way to get the importer to throw some more info????
Or anyone who recognize this error...
When running the script defined in the installation (https://pagure.io/fork/mrmeee/copr/copr/blob/master/f/dist-git)... I get:
[root@copr02 new]# /usr/share/copr/dist_git/dist_git_importer.py Traceback (most recent call last): File "/usr/share/copr/dist_git/dist_git_importer.py", line 13, in <module> from .exceptions import CoprDistGitException, PackageImportException, PackageDownloadException, SrpmBuilderException, \ ValueError: Attempted relative import in non-package
On Mon, Dec 5, 2016 at 4:46 PM, Martin Juhl mj@casalogic.dk wrote:
When trying to import, dist-git is failing:
[15:12:20][DEBUG][dist_git.dist_git_importer][dist_git_importer:392] 1. Try to get task data [15:12:20][INFO][dist_git.dist_git_importer][dist_git_importer:484] 2. Task: 9-epel7, importing the package: http://copr02.casalogic.lan/ tmp/tmpuxT8L3/copr-mocks-1.5-1.el7.src.rpm [15:12:20][DEBUG][dist_git.dist_git_importer][dist_git_importer:361] downloading package http://copr02.casalogic.lan/ tmp/tmpuxT8L3/copr-mocks-1.5-1.el7.src.rpm [15:12:20][DEBUG][dist_git.dist_git_importer][dist_git_importer:428] Verifying packagage, getting name and version. [15:12:20][DEBUG][dist_git.dist_git_importer][dist_git_importer:457] make sure repos exist: mrmeee/Fisk/copr-mocks [15:12:20][DEBUG][dist_git.dist_git_importer][dist_git_importer:415] importing srpm into the dist-git [15:12:20][DEBUG][dist_git.srpm_import][srpm_import:57] repo_dir: /tmp/tmpFpUmZy/copr-mocks [15:12:20][DEBUG][dist_git.srpm_import][srpm_import:77] clone the pkg repository into tmp directory [15:12:20][DEBUG][pyrpkg][__init__:1279] Checking out a specific branch ssh://copr-dist-git@localhost/mrmeee/Fisk/copr-mocks [15:12:20][DEBUG][pyrpkg][__init__:952] Running git clone -b epel7 ssh://copr-dist-git@localhost/mrmeee/Fisk/copr-mocks --origin origin and logging output [15:12:20][INFO][pyrpkg][__init__:973] Cloning into 'copr-mocks'...
[15:12:20][DEBUG][dist_git.srpm_import][srpm_import:79] import the source rpm into git and save filenames of sources [15:12:20][DEBUG][pyrpkg][__init__:680] Creating repo object from /tmp/tmpFpUmZy/copr-mocks [15:12:21][DEBUG][pyrpkg][__init__:1105] Running: rpm -qp --nosignature --qf %{NAME} /tmp/tmphDba9m/package.src.rpm [15:12:21][DEBUG][pyrpkg][__init__:1120] Running: rpm -qpl /tmp/tmphDba9m/package.src.rpm [15:12:21][INFO][dist_git.srpm_import][srpm_import:86] save the source files into lookaside cache [15:12:21][ERROR][dist_git.dist_git_importer][dist_git_importer:500] Exception raised during srpm import: Traceback (most recent call last): File "/usr/share/copr/dist_git/dist_git_importer.py", line 493, in do_import task.git_hash = self.git_import_srpm(task, fetched_srpm_path) File "/usr/share/copr/dist_git/dist_git_importer.py", line 419, in git_import_srpm return do_git_srpm_import(self.opts, filepath, task, tmp) File "/usr/share/copr/dist_git/srpm_import.py", line 112, in do_git_srpm_import raise PackageImportException("Failed to import the source rpm: {}".format(src_filepath)) PackageImportException: Failed to import the source rpm: /tmp/tmphDba9m/package.src.rpm [15:12:21][DEBUG][dist_git.dist_git_importer][dist_git_importer:465] Sending back: {"task_id": "9-epel7", "error": "srpm_import_failed"} [15:12:21][DEBUG][dist_git.dist_git_importer][dist_git_importer:392] 1. Try to get task data [15:12:21][DEBUG][dist_git.dist_git_importer][dist_git_importer:399] No new tasks to process
Any way to get the importer to throw some more info????
Or anyone who recognize this error...
What is the version of pyrpkg package on your machine? This is also one of the trickier errors. To debug that, you need to look into actual_do_git_srpm_import in dist-git/srpm_import.py.
When running the script defined in the installation ( https://pagure.io/fork/mrmeee/copr/copr/blob/master/f/dist-git)... I get:
[root@copr02 new]# /usr/share/copr/dist_git/dist_git_importer.py Traceback (most recent call last): File "/usr/share/copr/dist_git/dist_git_importer.py", line 13, in
<module> from .exceptions import CoprDistGitException, PackageImportException, PackageDownloadException, SrpmBuilderException, \ ValueError: Attempted relative import in non-package _______________________________________________ copr-devel mailing list -- copr-devel@lists.fedorahosted.org To unsubscribe send an email to copr-devel-leave@lists.fedorahosted.org
Hi
[root@copr02 new]# rpm -aq |grep pyrpkg pyrpkg-1.46-5.el7.noarch - It's from EPEL...
What's your version...
Seems to be here it fails:
log.info("save the source files into lookaside cache") commands.upload(upload_files, replace=True) <------ FAILS log.debug("git push")
So is probably the pyrpkg library... what version do you use??
/Martin
----- Original meddelelse ----- Fra: "Michal Novotny" clime@redhat.com Til: "copr-devel" copr-devel@lists.fedorahosted.org Sendt: mandag, 5. december 2016 17:05:12 Emne: Re: dist-git is failing to import
On Mon, Dec 5, 2016 at 4:46 PM, Martin Juhl < mj@casalogic.dk > wrote:
When trying to import, dist-git is failing:
[15:12:20][DEBUG][dist_git.dist_git_importer][dist_git_importer:392] 1. Try to get task data [15:12:20][INFO][dist_git.dist_git_importer][dist_git_importer:484] 2. Task: 9-epel7, importing the package: http://copr02.casalogic.lan/tmp/tmpuxT8L3/copr-mocks-1.5-1.el7.src.rpm [15:12:20][DEBUG][dist_git.dist_git_importer][dist_git_importer:361] downloading package http://copr02.casalogic.lan/tmp/tmpuxT8L3/copr-mocks-1.5-1.el7.src.rpm [15:12:20][DEBUG][dist_git.dist_git_importer][dist_git_importer:428] Verifying packagage, getting name and version. [15:12:20][DEBUG][dist_git.dist_git_importer][dist_git_importer:457] make sure repos exist: mrmeee/Fisk/copr-mocks [15:12:20][DEBUG][dist_git.dist_git_importer][dist_git_importer:415] importing srpm into the dist-git [15:12:20][DEBUG][dist_git.srpm_import][srpm_import:57] repo_dir: /tmp/tmpFpUmZy/copr-mocks [15:12:20][DEBUG][dist_git.srpm_import][srpm_import:77] clone the pkg repository into tmp directory [15:12:20][DEBUG][pyrpkg][__init__:1279] Checking out a specific branch ssh://copr-dist-git@localhost/mrmeee/Fisk/copr-mocks [15:12:20][DEBUG][pyrpkg][__init__:952] Running git clone -b epel7 ssh://copr-dist-git@localhost/mrmeee/Fisk/copr-mocks --origin origin and logging output [15:12:20][INFO][pyrpkg][__init__:973] Cloning into 'copr-mocks'...
[15:12:20][DEBUG][dist_git.srpm_import][srpm_import:79] import the source rpm into git and save filenames of sources [15:12:20][DEBUG][pyrpkg][__init__:680] Creating repo object from /tmp/tmpFpUmZy/copr-mocks [15:12:21][DEBUG][pyrpkg][__init__:1105] Running: rpm -qp --nosignature --qf %{NAME} /tmp/tmphDba9m/package.src.rpm [15:12:21][DEBUG][pyrpkg][__init__:1120] Running: rpm -qpl /tmp/tmphDba9m/package.src.rpm [15:12:21][INFO][dist_git.srpm_import][srpm_import:86] save the source files into lookaside cache [15:12:21][ERROR][dist_git.dist_git_importer][dist_git_importer:500] Exception raised during srpm import: Traceback (most recent call last): File "/usr/share/copr/dist_git/dist_git_importer.py", line 493, in do_import task.git_hash = self.git_import_srpm(task, fetched_srpm_path) File "/usr/share/copr/dist_git/dist_git_importer.py", line 419, in git_import_srpm return do_git_srpm_import(self.opts, filepath, task, tmp) File "/usr/share/copr/dist_git/srpm_import.py", line 112, in do_git_srpm_import raise PackageImportException("Failed to import the source rpm: {}".format(src_filepath)) PackageImportException: Failed to import the source rpm: /tmp/tmphDba9m/package.src.rpm [15:12:21][DEBUG][dist_git.dist_git_importer][dist_git_importer:465] Sending back: {"task_id": "9-epel7", "error": "srpm_import_failed"} [15:12:21][DEBUG][dist_git.dist_git_importer][dist_git_importer:392] 1. Try to get task data [15:12:21][DEBUG][dist_git.dist_git_importer][dist_git_importer:399] No new tasks to process
Any way to get the importer to throw some more info????
Or anyone who recognize this error...
What is the version of pyrpkg package on your machine? This is also one of the trickier errors. To debug that, you need to look into actual_do_git_srpm_import in dist-git/srpm_import.py.
BQ_BEGIN
When running the script defined in the installation ( https://pagure.io/fork/mrmeee/copr/copr/blob/master/f/dist-git). .. I get:
[root@copr02 new]# /usr/share/copr/dist_git/dist_git_importer.py Traceback (most recent call last): File "/usr/share/copr/dist_git/dist_git_importer.py", line 13, in <module> from .exceptions import CoprDistGitException, PackageImportException, PackageDownloadException, SrpmBuilderException, \ ValueError: Attempted relative import in non-package _______________________________________________ copr-devel mailing list -- copr-devel@lists.fedorahosted.org To unsubscribe send an email to copr-devel-leave@lists.fedorahosted.org
BQ_END
_______________________________________________ copr-devel mailing list -- copr-devel@lists.fedorahosted.org To unsubscribe send an email to copr-devel-leave@lists.fedorahosted.org
copr-devel@lists.fedorahosted.org