[Pulp-list] cli sync error
Mike McCune
mmccune at redhat.com
Tue Jun 22 00:27:16 UTC 2010
On 06/21/2010 05:14 PM, Mike McCune wrote:
> [mmccune at gibson pulptools{master}]$ sudo python pulpcli.py repo sync
> --label=test
> Sync Status:: error
> Sync Status:: error
> Sync Status:: error
> Sync Status:: error
> Sync Status:: error
> Sync Status:: error
> Sync Status:: error
> Sync Status:: error
> ^CTraceback (most recent call last):
> File "pulpcli.py", line 105, in<module>
> PulpCore().main()
> File "pulpcli.py", line 102, in main
> cmd.main()
> File "/home/mmccune/devel/pulp/src/pulptools/core/basecore.py", line
> 43, in main
> self._do_core()
> File "/home/mmccune/devel/pulp/src/pulptools/core/core_repo.py", line
> 131, in _do_core
> self._sync()
> File "/home/mmccune/devel/pulp/src/pulptools/core/core_repo.py", line
> 193, in _sync
> time.sleep(5)
> KeyboardInterrupt
>
> never seemed to exit. just looped on :: error
>
didn't find anything in juicer.error that was interesting:
[Mon Jun 21 17:16:50 2010] [info] [client ::1] mod_wsgi (pid=16345,
process='', application='gibson.pdx.redhat.com:8811|'): Loading WSGI
script '/srv/juicer/juicer.wsgi'.
and juicer.access had:
::1 - - [21/Jun/2010:17:16:23 -0700] "GET /repositories/test/sync/
HTTP/1.1" 202 350
::1 - - [21/Jun/2010:17:16:28 -0700] "GET
/repositories/test/sync/64050a2b-7d93-11df-8a3b-0019d1630404/ HTTP/1.1"
200 743
::1 - - [21/Jun/2010:17:16:34 -0700] "GET
/repositories/test/sync/64050a2b-7d93-11df-8a3b-0019d1630404/ HTTP/1.1"
200 743
::1 - - [21/Jun/2010:17:16:39 -0700] "GET
/repositories/test/sync/64050a2b-7d93-11df-8a3b-0019d1630404/ HTTP/1.1"
200 743
::1 - - [21/Jun/2010:17:16:45 -0700] "GET
/repositories/test/sync/64050a2b-7d93-11df-8a3b-0019d1630404/ HTTP/1.1"
200 743
Looks like the fifo_queue docs have:
SON([(u'next_time', datetime.datetime(2010, 6, 21, 17, 20, 40,
17000)), (u'exception', u"IOError('sys.stdout access restricted by
mod_wsgi',)"), (u'finish_time', datetime.datetime(2010, 6, 21, 17, 20,
40, 59000)), (u'_ns', u'fifo_tasks'), (u'start_time',
datetime.datetime(2010, 6, 21, 17, 20, 40, 58000)), (u'traceback',
[u'Traceback (most recent call last):\n', u' File
"/home/mmccune/devel/pulp/src/pulp/tasking/task.py", line 106, in run\n
result = self.callable(*self.args, **self.kwargs)\n', u' File
"/home/mmccune/devel/pulp/test/unit/../../src/pulp/api/repo.py", line
315, in sync\n print "sync.repo:: %s" % repo\n', u'IOError:
sys.stdout access restricted by mod_wsgi\n']), (u'method_name',
u'sync'), (u'state', u'error'), (u'result', None), (u'_id',
u'fcd965e1-7d93-11df-b3d1-0019d1630404'), (u'id',
u'fcd965e1-7d93-11df-b3d1-0019d1630404')])]
fixing the above mentioned print statement just showed me I had a bad
path in my feed URL:
SON([(u'next_time', datetime.datetime(2010, 6, 21, 17, 25, 40,
161000)), (u'exception', u"OSError(2, 'No such file or directory')
that said, digging into mongo's fifo_queue collection to find the error
wasn't exactly user friendly :)
Mike
--
Mike McCune
mmccune AT redhat.com
Red Hat Engineering | Portland, OR
Systems Management | 650.254.4248
More information about the Pulp-list
mailing list