Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Getting "DeadReferenceError: Calling Stale Broker" after ipcontroller restart #9

Closed
ipython opened this Issue · 4 comments

2 participants

@ipython

Original Launchpad bug 308253: https://bugs.launchpad.net/ipython/+bug/308253
Reported by: vvatsa (Vishal Vatsa).

Not Sure that is a bug or an expected behavior.

I am starting the ipcontoller such that it reuses the ipcontroller-tc.furl between restarts.
After the restart, if I invoke a DeadReferenceError with the following traceback:
I am using the blocking TaskClient from an ipython shell.

In [8]: tc.spin()

DeadReferenceError Traceback (most recent call last)

/home/vishal/ in ()

/usr/lib/python2.5/site-packages/IPython/kernel/taskclient.pyc in spin(self)
119 scheduler is idle for some reason.
120 """
--> 121 return blockingCallFromThread(self.task_controller.spin)
122
123 def queue_status(self, verbose=False):

/usr/lib/python2.5/site-packages/IPython/kernel/twistedutil.pyc in blockingCallFromThread(f, a, *kw)
67 @raise: any error raised during the callback chain.
68 """
---> 69 return twisted.internet.threads.blockingCallFromThread(reactor, f, a, *kw)
70
71 else:

/usr/lib/python2.5/site-packages/twisted/internet/threads.pyc in blockingCallFromThread(reactor, f, a, *kw)
81 result = queue.get()
82 if isinstance(result, failure.Failure):
---> 83 result.raiseException()
84 return result
85

/usr/lib/python2.5/site-packages/twisted/python/failure.pyc in raiseException(self)
317 information if available.
318 """
--> 319 raise self.type, self.value, self.tb
320
321

DeadReferenceError: Calling Stale Broker

@ipython

[ LP comment 1 by: Brian Granger, on 2009-04-14 21:38:33.292246+00:00 ]

I have confirmed this. It also occurs for the MultiEngineClient when the controller stop and is restarted underneath a live client. The client should have reconnect logic that is triggered on a DeadReferenceError.

@ipython

[ LP comment 2 by: Vishal Vatsa, on 2009-04-24 18:22:23+00:00 ]

Hey Brian,

Totally forgot about this bug. Since I have had a look at this before,
feel free to assign it to me.

-vishal

2009/4/14 Brian Granger ellisonbg@gmail.com:

I have confirmed this.  It also occurs for the MultiEngineClient when
the controller stop and is restarted underneath a live client.  The
client should have reconnect logic that is triggered on a
DeadReferenceError.

** Changed in: ipython
  Importance: Undecided => Medium

** Changed in: ipython
      Status: New => Confirmed

** Changed in: ipython
    Assignee: (unassigned) => Brian Granger (ellisonbg)

Getting "DeadReferenceError: Calling Stale Broker" after ipcontroller restart
https://bugs.launchpad.net/bugs/308253
You received this bug notification because you are a direct subscriber
of the bug.

Status in IPython - Enhanced Interactive Python: Confirmed

Bug description:
Not Sure that is a bug or an expected behavior.

I am starting the ipcontoller such that it reuses the ipcontroller-tc.furl between restarts.
After the restart, if I invoke a DeadReferenceError with the following traceback:
I am using the blocking TaskClient from an ipython shell.

In [8]: tc.spin()

DeadReferenceError                        Traceback (most recent call last)

/home/vishal/ in ()

/usr/lib/python2.5/site-packages/IPython/kernel/taskclient.pyc in spin(self)
   119         scheduler is idle for some reason.
   120         """
--> 121         return blockingCallFromThread(self.task_controller.spin)
   122
   123     def queue_status(self, verbose=False):

/usr/lib/python2.5/site-packages/IPython/kernel/twistedutil.pyc in blockingCallFromThread(f, a, *kw)
    67         @raise: any error raised during the callback chain.
    68         """
---> 69         return twisted.internet.threads.blockingCallFromThread(reactor, f, a, *kw)
    70
    71 else:

/usr/lib/python2.5/site-packages/twisted/internet/threads.pyc in blockingCallFromThread(reactor, f, a, *kw)
    81     result = queue.get()
    82     if isinstance(result, failure.Failure):
---> 83         result.raiseException()
    84     return result
    85

/usr/lib/python2.5/site-packages/twisted/python/failure.pyc in raiseException(self)
   317         information if available.
   318         """
--> 319         raise self.type, self.value, self.tb
   320
   321

DeadReferenceError: Calling Stale Broker

@ipython

[ LP comment 3 by: Brian Granger, on 2009-04-27 21:13:32.675484+00:00 ]

Thanks for looking into this!

@ellisonbg
Owner

Won't fix this issue.

@ellisonbg ellisonbg closed this
@damianavila damianavila referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@dwrensha dwrensha referenced this issue from a commit
@thejoshwolfe thejoshwolfe directory urls download .zip files. #9
- no UI support yet
- unicode is broken
5a60afd
@dwrensha dwrensha referenced this issue from a commit
@andrewrk andrewrk downloading albums and artists as zip. #9
* refactor file utils
* download -> coco
* fix plugin framework thinking swap files are plugins
18c1743
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.