[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Pulp-list] A little help with error while syncing RHEL 6.2 repo



Katello's delayed jobs log:

2012-02-08T15:06:09-0500: [Worker(delayed_job host:qetello01.usersys.redhat.com pid:11668)] Starting job worker
2012-02-08T18:27:10-0500: [Worker(delayed_job host:qetello01.usersys.redhat.com pid:11668)] Repository#index_after_sync failed with NoMethodError: undefined method `[]' for nil:NilClass - 0 failed attempts
2012-02-08T18:27:10-0500: [Worker(delayed_job host:qetello01.usersys.redhat.com pid:11668)] PERMANENTLY removing Repository#index_after_sync because of 1 consecutive failures.
undefined method `[]' for nil:NilClass
/usr/share/katello/app/models/pulp_task_status.rb:53:in `error'
/usr/share/katello/app/models/pulp_task_status.rb:77:in `any_task_running'
/usr/share/katello/app/models/pulp_task_status.rb:71:in `each'
/usr/share/katello/app/models/pulp_task_status.rb:71:in `any_task_running'
/usr/share/katello/app/models/pulp_task_status.rb:22:in `wait_for_tasks'
/usr/share/katello/app/models/glue/pulp/repo.rb:367:in `index_after_sync'
/usr/share/katello/app/models/async_operation.rb:41:in `send'
/usr/share/katello/app/models/async_operation.rb:41:in `perform'
/usr/lib/ruby/gems/1.8/gems/delayed_job-2.1.4/lib/delayed/backend/base.rb:87:in `invoke_job'
/usr/lib/ruby/gems/1.8/gems/delayed_job-2.1.4/lib/delayed/worker.rb:120:in `run'
/usr/lib/ruby/1.8/timeout.rb:67:in `timeout'
/usr/lib/ruby/gems/1.8/gems/delayed_job-2.1.4/lib/delayed/worker.rb:120:in `run'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/lib/ruby/gems/1.8/gems/delayed_job-2.1.4/lib/delayed/worker.rb:119:in `run'
/usr/lib/ruby/gems/1.8/gems/delayed_job-2.1.4/lib/delayed/worker.rb:177:in `reserve_and_run_one_job'
/usr/lib/ruby/gems/1.8/gems/delayed_job-2.1.4/lib/delayed/worker.rb:104:in `work_off'
/usr/lib/ruby/gems/1.8/gems/delayed_job-2.1.4/lib/delayed/worker.rb:103:in `times'
/usr/lib/ruby/gems/1.8/gems/delayed_job-2.1.4/lib/delayed/worker.rb:103:in `work_off'
/usr/lib/ruby/gems/1.8/gems/delayed_job-2.1.4/lib/delayed/worker.rb:78:in `start'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/lib/ruby/gems/1.8/gems/delayed_job-2.1.4/lib/delayed/worker.rb:77:in `start'
/usr/lib/ruby/gems/1.8/gems/delayed_job-2.1.4/lib/delayed/worker.rb:74:in `loop'
/usr/lib/ruby/gems/1.8/gems/delayed_job-2.1.4/lib/delayed/worker.rb:74:in `start'
/usr/lib/ruby/gems/1.8/gems/delayed_job-2.1.4/lib/delayed/command.rb:104:in `run'
/usr/lib/ruby/gems/1.8/gems/delayed_job-2.1.4/lib/delayed/command.rb:83:in `run_process'
/usr/lib/ruby/gems/1.8/gems/daemons-1.1.4/lib/daemons/application.rb:249:in `call'
/usr/lib/ruby/gems/1.8/gems/daemons-1.1.4/lib/daemons/application.rb:249:in `start_proc'
/usr/lib/ruby/gems/1.8/gems/daemons-1.1.4/lib/daemons/daemonize.rb:197:in `call'
/usr/lib/ruby/gems/1.8/gems/daemons-1.1.4/lib/daemons/daemonize.rb:197:in `call_as_daemon'
/usr/lib/ruby/gems/1.8/gems/daemons-1.1.4/lib/daemons/application.rb:253:in `start_proc'
/usr/lib/ruby/gems/1.8/gems/daemons-1.1.4/lib/daemons/application.rb:293:in `start'
/usr/lib/ruby/gems/1.8/gems/daemons-1.1.4/lib/daemons/controller.rb:70:in `run'
/usr/lib/ruby/gems/1.8/gems/daemons-1.1.4/lib/daemons.rb:195:in `run_proc'
/usr/lib/ruby/gems/1.8/gems/daemons-1.1.4/lib/daemons/cmdline.rb:109:in `call'
/usr/lib/ruby/gems/1.8/gems/daemons-1.1.4/lib/daemons/cmdline.rb:109:in `catch_exceptions'
/usr/lib/ruby/gems/1.8/gems/daemons-1.1.4/lib/daemons.rb:194:in `run_proc'
/usr/lib/ruby/gems/1.8/gems/delayed_job-2.1.4/lib/delayed/command.rb:81:in `run_process'
/usr/lib/ruby/gems/1.8/gems/delayed_job-2.1.4/lib/delayed/command.rb:75:in `daemonize'
/usr/lib/ruby/gems/1.8/gems/delayed_job-2.1.4/lib/delayed/command.rb:73:in `times'
/usr/lib/ruby/gems/1.8/gems/delayed_job-2.1.4/lib/delayed/command.rb:73:in `daemonize'
script/delayed_job:5

# rpm -q katello pulp candlepin
katello-0.1.222-2.el6.noarch
pulp-0.0.265-1.el6.noarch
candlepin-0.5.16-1.el6.noarch


----- Original Message -----
> From: "Og Maciel" <omaciel redhat com>
> To: pulp-list redhat com
> Sent: Wednesday, February 8, 2012 8:58:24 PM
> Subject: [Pulp-list] A little help with error while syncing RHEL 6.2 repo
> 
> Was attempting to sync a RHEL 6.2 repo and left it running around
> 17:00 today (8.79GB of content) and decided to check back tonight.
> The web ui tells me there was an error, so I looked at pulp.log and
> found this:
> 
> 2012-02-08 16:38:39,258 11695:139634749179648:
> pulp.server.api.synchronizers:INFO: synchronizers:775 Fetching repo
> to </var/lib/pulp//repos/NY Data
> Center/Library/content/dist/rhel/server/6/6.2/x86_64/os> with
> verify_options <{'checksum': True, 'size': True}>
> 2012-02-08 18:27:07,870 11695:139634749179648:
> pulp.server.api.synchronizers:INFO: synchronizers:783
> YumSynchronizer reported 6812 successes, 6812 downloads, 0 errors
> 2012-02-08 18:27:08,477 11695:139634749179648:
> pulp.server.tasking.task:ERROR: task:474 Task failed: Task
> 435bf6cf-529d-11e1-ab96-525400770a0f:
> _sync(NY_Data_Center-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6_2,
> synchronizer=<pulp.server.api.synchronizers.YumSynchronizer object
> at 0x7eff308c43d0>, skip={}, max_speed=None, threads=4,
> progress_callback=<bound method RepoSyncTask.progress_callback of
> <pulp.server.api.repo_sync_task.RepoSyncTask object at
> 0x7eff308c4190>>)
> Traceback (most recent call last):
>   File
>   "/usr/lib/python2.6/site-packages/pulp/server/tasking/task.py",
>   line 420, in run
>     result = self.callable(*self.args, **self.kwargs)
>   File
>   "/usr/lib/python2.6/site-packages/pulp/server/api/repo_sync.py",
>   line 272, in _sync
>     progress_callback, synchronizer, max_speed, threads)
>   File
>   "/usr/lib/python2.6/site-packages/pulp/server/api/repo_sync.py",
>   line 360, in fetch_content
>     added_packages =
>     synchronizer.process_packages_from_source(repo_dir, repo_id,
>     skip_dict, progress_callback)
>   File
>   "/usr/lib/python2.6/site-packages/pulp/server/api/synchronizers.py",
>   line 214, in process_packages_from_source
>     added_packages = self.add_packages_from_dir(dir, repo_id,
>     skip_dict)
>   File
>   "/usr/lib/python2.6/site-packages/pulp/server/api/synchronizers.py",
>   line 234, in add_packages_from_dir
>     unfiltered_pkglist = pulp.server.util.get_repo_packages(dir)
>   File "/usr/lib/python2.6/site-packages/pulp/server/util.py", line
>   337, in get_repo_packages
>     r = _get_yum_repomd(path, temp_path=temp_path)
>   File "/usr/lib/python2.6/site-packages/pulp/server/util.py", line
>   291, in _get_yum_repomd
>     r.baseurl = "file://%s" % (path.encode("ascii", "ignore"))
>   File "/usr/lib/python2.6/site-packages/yum/config.py", line 99, in
>   __set__
>     value, str(e)))
> ValueError: Error parsing "baseurl = 'file:///var/lib/pulp//repos/NY
> Data Center/Library/content/dist/rhel/server/6/6.2/x86_64/os'": URL
> must be http, ftp, file or https not ""
> 
> mmccune took a quick look at the system and found this:
> 
>   {
>     "package_count": 0,
>     "distributionid": [
> 
>     ],
>     "consumer_cert": null,
>     "consumer_ca": null,
>     "filters": [
> 
>     ],
>     "id":
>     "NY_Data_Center-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6_2",
>     "files_count": 0,
>     "preserve_metadata": true,
>     "publish": true,
>     "source": {
>       "url":
>       "https://cdn.redhat.com/content/dist/rhel/server/6/6.2/x86_64/os";,
>       "type": "remote"
>     },
>     "groupid": [
>       "product:69",
>       "env:2",
>       "org:2",
>       "content:168"
>     ],
>     "files":
>     "/pulp/api/repositories/NY_Data_Center-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6_2/files/",
>     "packagegroups":
>     "/pulp/api/repositories/NY_Data_Center-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6_2/packagegroups/",
>     "keys":
>     "/pulp/api/repositories/NY_Data_Center-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6_2/keys/",
>     "relative_path": "NY Data
>     Center/Library/content/dist/rhel/server/6/6.2/x86_64/os",
>     "comps":
>     "/pulp/api/repositories/NY_Data_Center-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6_2/comps/",
>     "sync_schedule": null,
>     "packages":
>     "/pulp/api/repositories/NY_Data_Center-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6_2/packages/",
>     "arch": "x86_64",
>     "distribution":
>     "/pulp/api/repositories/NY_Data_Center-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6_2/distribution/",
>     "feed_cert":
>     "/etc/pki/pulp/content/NY_Data_Center-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6_2/feed-NY_Data_Center-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6_2.cert",
>     "name": "Red Hat Enterprise Linux 6 Server RPMs x86_64 6.2",
>     "uri_ref":
>     "/pulp/api/repositories/NY_Data_Center-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6_2/",
>     "feed_ca":
>     "/etc/pki/pulp/content/NY_Data_Center-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6_2/feed-NY_Data_Center-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6_2.ca",
>     "notes": {
> 
>     },
>     "uri": "https://qetello01.usersys.redhat.com/pulp/repos/NY Data
>     Center/Library/content/dist/rhel/server/6/6.2/x86_64/os/",
>     "last_sync": null,
>     "content_types": "yum",
>     "clone_ids": [
> 
>     ],
>     "packagegroupcategories":
>     "/pulp/api/repositories/NY_Data_Center-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6_2/packagegroupcategories/",
>     "checksum_type": "sha256",
>     "sync_options": {
> 
>     },
>     "_id":
>     "NY_Data_Center-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6_2",
>     "errata":
>     "/pulp/api/repositories/NY_Data_Center-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6_2/errata/"
>   },
> 
> He suggested I asked here to see if anyone had an idea as to what may
> be wrong, so here it goes.
> 
> Thanks in advance,
> --
> Og Maciel
> 
> Senior QE Engineer
> Red Hat, Inc.
> +1.919.754.4782
> Freenode: OgMaciel
> 
> _______________________________________________
> Pulp-list mailing list
> Pulp-list redhat com
> https://www.redhat.com/mailman/listinfo/pulp-list
> 

-- 
Og Maciel

Senior QE Engineer
Red Hat, Inc.
+1.919.754.4782
Freenode: OgMaciel


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]