#1394 builds with non-existing external build-time repository never finishes
Closed: Fixed 4 years ago by praiskup. Opened 4 years ago by praiskup.

[Wed Jun 10 13:35:27.493303 2020] [wsgi:error] [pid 3750167:tid 139699884635904] [remote 34.227.76.72:54012] ERROR:flask.app:Project loise/kde-plasma5-qt5-5.15.0 does not exist.
[Wed Jun 10 13:35:27.493456 2020] [wsgi:error] [pid 3750167:tid 139699884635904] [remote 34.227.76.72:54012] Traceback (most recent call last):
[Wed Jun 10 13:35:27.493515 2020] [wsgi:error] [pid 3750167:tid 139699884635904] [remote 34.227.76.72:54012]   File "/usr/share/copr/coprs_frontend/coprs/logic/complex_logic.py", line 141, in get_copr_safe
[Wed Jun 10 13:35:27.493575 2020] [wsgi:error] [pid 3750167:tid 139699884635904] [remote 34.227.76.72:54012]     return CoprsLogic.get(user_name, copr_name, **kwargs).filter(Copr.group_id.is_(None)).one()
[Wed Jun 10 13:35:27.493644 2020] [wsgi:error] [pid 3750167:tid 139699884635904] [remote 34.227.76.72:54012]   File "/usr/lib64/python3.7/site-packages/sqlalchemy/orm/query.py", line 3354, in one
[Wed Jun 10 13:35:27.493702 2020] [wsgi:error] [pid 3750167:tid 139699884635904] [remote 34.227.76.72:54012]     raise orm_exc.NoResultFound("No row was found for one()")
[Wed Jun 10 13:35:27.493761 2020] [wsgi:error] [pid 3750167:tid 139699884635904] [remote 34.227.76.72:54012] sqlalchemy.orm.exc.NoResultFound: No row was found for one()
[Wed Jun 10 13:35:27.493842 2020] [wsgi:error] [pid 3750167:tid 139699884635904] [remote 34.227.76.72:54012] 
[Wed Jun 10 13:35:27.493899 2020] [wsgi:error] [pid 3750167:tid 139699884635904] [remote 34.227.76.72:54012] During handling of the above exception, another exception occurred:
[Wed Jun 10 13:35:27.493959 2020] [wsgi:error] [pid 3750167:tid 139699884635904] [remote 34.227.76.72:54012] 
[Wed Jun 10 13:35:27.494015 2020] [wsgi:error] [pid 3750167:tid 139699884635904] [remote 34.227.76.72:54012] Traceback (most recent call last):
[Wed Jun 10 13:35:27.494063 2020] [wsgi:error] [pid 3750167:tid 139699884635904] [remote 34.227.76.72:54012]   File "/usr/share/copr/coprs_frontend/coprs/views/backend_ns/backend_general.py", line 130, in get_build_record
[Wed Jun 10 13:35:27.494108 2020] [wsgi:error] [pid 3750167:tid 139699884635904] [remote 34.227.76.72:54012]     build_config = BuildConfigLogic.generate_build_config(task.build.copr, task.mock_chroot.name)
[Wed Jun 10 13:35:27.494152 2020] [wsgi:error] [pid 3750167:tid 139699884635904] [remote 34.227.76.72:54012]   File "/usr/share/copr/coprs_frontend/coprs/logic/complex_logic.py", line 398, in generate_build_config
[Wed Jun 10 13:35:27.494197 2020] [wsgi:error] [pid 3750167:tid 139699884635904] [remote 34.227.76.72:54012]     repos.extend(cls.get_additional_repo_views(copr.repos_list, chroot_id))
[Wed Jun 10 13:35:27.494244 2020] [wsgi:error] [pid 3750167:tid 139699884635904] [remote 34.227.76.72:54012]   File "/usr/share/copr/coprs_frontend/coprs/logic/complex_logic.py", line 422, in get_additional_repo_views
[Wed Jun 10 13:35:27.494293 2020] [wsgi:error] [pid 3750167:tid 139699884635904] [remote 34.227.76.72:54012]     copr = ComplexLogic.get_copr_by_repo_safe(repo)
[Wed Jun 10 13:35:27.494340 2020] [wsgi:error] [pid 3750167:tid 139699884635904] [remote 34.227.76.72:54012]   File "/usr/share/copr/coprs_frontend/coprs/logic/complex_logic.py", line 163, in get_copr_by_repo_safe
[Wed Jun 10 13:35:27.494388 2020] [wsgi:error] [pid 3750167:tid 139699884635904] [remote 34.227.76.72:54012]     return ComplexLogic.get_copr_by_owner_safe(owner, copr)
[Wed Jun 10 13:35:27.494433 2020] [wsgi:error] [pid 3750167:tid 139699884635904] [remote 34.227.76.72:54012]   File "/usr/share/copr/coprs_frontend/coprs/logic/complex_logic.py", line 151, in get_copr_by_owner_safe
[Wed Jun 10 13:35:27.494479 2020] [wsgi:error] [pid 3750167:tid 139699884635904] [remote 34.227.76.72:54012]     return ComplexLogic.get_copr_safe(owner_name, copr_name, **kwargs)
[Wed Jun 10 13:35:27.494526 2020] [wsgi:error] [pid 3750167:tid 139699884635904] [remote 34.227.76.72:54012]   File "/usr/share/copr/coprs_frontend/coprs/logic/complex_logic.py", line 145, in get_copr_safe
[Wed Jun 10 13:35:27.494574 2020] [wsgi:error] [pid 3750167:tid 139699884635904] [remote 34.227.76.72:54012]     .format(user_name, copr_name))
[Wed Jun 10 13:35:27.494619 2020] [wsgi:error] [pid 3750167:tid 139699884635904] [remote 34.227.76.72:54012] coprs.exceptions.ObjectNotFound: Project loise/kde-plasma5-qt5-5.15.0 does not exist.

Backend keeps requesting that task, and frontend keeps returning "null".


Metadata Update from @praiskup:
- Issue tagged with: bug

4 years ago

I applied hotfix

--- /usr/share/copr/coprs_frontend/coprs/logic/complex_logic.py 2020-06-09 13:03:22.000000000 +0000
+++ /usr/share/copr/coprs_frontend/coprs/logic/complex_logic.py 2020-06-10 14:02:12.110498515 +0000
@@ -419,7 +419,10 @@
                 "name": "Additional repo " + helpers.generate_repo_name(repo),
             }

-            copr = ComplexLogic.get_copr_by_repo_safe(repo)
+            try:
+                copr = ComplexLogic.get_copr_by_repo_safe(repo)
+            except ObjectNotFound:
+                copr = None
             if copr and copr.module_hotfixes:
                 params["module_hotfixes"] = True

Metadata Update from @praiskup:
- Issue tagged with: release-blocker

4 years ago

Metadata Update from @praiskup:
- Issue assigned to praiskup

4 years ago

Log in to comment on this ticket.

Metadata
Related Pull Requests
  • #1402 Merged 4 years ago