Project

Profile

Help

Issue #7995

Updated by fao89 almost 4 years ago

pulp 2.21.4 unable to sync Amazon 2 core repo. getting following error: 

 "local variable 'result' referenced before assignment" 


 {"pulp_tasks"=> 
   [{"pulp_href"=>"/pulp/api/v3/tasks/0bbaa197-efcd-41e2-b897-33e89487e966/", 
     "pulp_created"=>"2020-12-11T20:30:14.878+00:00", 
     "state"=>"failed", 
     "name"=>"pulp_rpm.app.tasks.synchronizing.synchronize", 
     "started_at"=>"2020-12-11T20:30:14.983+00:00", 
     "finished_at"=>"2020-12-11T20:30:15.128+00:00", 
     "error"=> 
      {"traceback"=> 
        "    File \"/usr/lib/python3.6/site-packages/rq/worker.py\", line 936, in perform_job\n" + 
        "      rv = job.perform()\n" + 
        "    File \"/usr/lib/python3.6/site-packages/rq/job.py\", line 684, in perform\n" + 
        "      self._result = self._execute()\n" + 
        "    File \"/usr/lib/python3.6/site-packages/rq/job.py\", line 690, in _execute\n" + 
        "      return self.func(*self.args, **self.kwargs)\n" + 
        "    File \"/usr/lib/python3.6/site-packages/pulp_rpm/app/tasks/synchronizing.py\", line 213, in synchronize\n" + 
        "      remote_url = fetch_remote_url(remote)\n" + 
        "    File \"/usr/lib/python3.6/site-packages/pulp_rpm/app/tasks/synchronizing.py\", line 140, in fetch_remote_url\n" + 
        "      return fetch_mirror(remote)\n" + 
        "    File \"/usr/lib/python3.6/site-packages/pulp_rpm/app/tasks/synchronizing.py\", line 126, in fetch_mirror\n" + 
        "      repodata_exists = get_repomd_file(remote, match.group(2))\n" + 
        "    File \"/usr/lib/python3.6/site-packages/pulp_rpm/app/tasks/synchronizing.py\", line 109, in get_repomd_file\n" + 
        "      return result\n", 
       "description"=>"local variable 'result' referenced before assignment"}, 
     "worker"=>"/pulp/api/v3/workers/bea91eb8-e0a6-4b9c-ad7d-19ff490e31f8/", 
     "child_tasks"=>[], 
     "progress_reports"=>[], 
     "created_resources"=>[]}], 
  "create_version"=>true, 
  "task_groups"=>[], 
  "poll_attempts"=>{"total"=>1, "failed"=>1}}

Back