Unhandled error in Deferred

Bug #2058754 reported by maasuser1

This bug report will be marked for expiration in 37 days if no further activity occurs. (find out why)

6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Incomplete
Undecided
Unassigned

Bug Description

3.4.1-14343-g.a552d2522 from Snap.

rackd.log

```
2024-03-22 15:23:08 twisted.internet.defer: [critical] Unhandled error in Deferred: 2024-03-22 15:23:08 twisted.internet.defer: [critical] Traceback (most recent call last):
        --- <exception caught here> --- File "/snap/maas/34087/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 857, in _runCallbacks
            current.result = callback( # type: ignore[misc] File "/snap/maas/34087/lib/python3.10/site-packages/provisioningserver/rpc/common.py", line 149, in _global_intercept_errback failure.raiseException()
          File "/snap/maas/34087/usr/lib/python3/dist-packages/twisted/python/failure.py", line 475, in raiseException raise self.value.with_traceback(self.tb)
          File "/snap/maas/34087/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 857, in _runCallbacks
            current.result = callback( # type: ignore[misc]
          File "/snap/maas/34087/usr/lib/python3/dist-packages/twisted/protocols/amp.py", line 1946, in _massageError
            error.trap(RemoteAmpError)
          File "/snap/maas/34087/usr/lib/python3/dist-packages/twisted/python/failure.py", line 451, in trap
            self.raiseException()
          File "/snap/maas/34087/usr/lib/python3/dist-packages/twisted/python/failure.py", line 475, in raiseException raise self.value.with_traceback(self.tb)
        twisted.protocols.amp.UnhandledCommand: (b'UNHANDLED', 'Unknown Error [maas:pid=192123:cmd=ReportNeighbours:ask=45]')
2024-03-22 15:23:08 twisted.internet.defer: [critical] Unhandled error in Deferred:
2024-03-22 15:23:08 twisted.internet.defer: [critical]
        Traceback (most recent call last):
        --- <exception caught here> ---
          File "/snap/maas/34087/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 857, in _runCallbacks
            current.result = callback( # type: ignore[misc]
          File "/snap/maas/34087/lib/python3.10/site-packages/provisioningserver/rpc/common.py", line 149, in _global_intercept_errback failure.raiseException()
            error.trap(RemoteAmpError) [30/1924]
          File "/snap/maas/34087/usr/lib/python3/dist-packages/twisted/python/failure.py", line 451, in trap
            self.raiseException()
          File "/snap/maas/34087/usr/lib/python3/dist-packages/twisted/python/failure.py", line 475, in raiseException raise self.value.with_traceback(self.tb)
        twisted.protocols.amp.UnhandledCommand: (b'UNHANDLED', 'Unknown Error [maas:pid=192123:cmd=ReportNeighbours:ask=45]')
2024-03-22 15:23:08 twisted.internet.defer: [critical] Unhandled error in Deferred:
2024-03-22 15:23:08 twisted.internet.defer: [critical]
        Traceback (most recent call last):
        --- <exception caught here> ---
          File "/snap/maas/34087/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 857, in _runCallbacks
            current.result = callback( # type: ignore[misc]
          File "/snap/maas/34087/lib/python3.10/site-packages/provisioningserver/rpc/common.py", line 149, in _global_intercept_errback failure.raiseException()
          File "/snap/maas/34087/usr/lib/python3/dist-packages/twisted/python/failure.py", line 475, in raiseException raise self.value.with_traceback(self.tb)
          File "/snap/maas/34087/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 857, in _runCallbacks
            current.result = callback( # type: ignore[misc]
          File "/snap/maas/34087/usr/lib/python3/dist-packages/twisted/protocols/amp.py", line 1946, in _massageError
            error.trap(RemoteAmpError)
          File "/snap/maas/34087/usr/lib/python3/dist-packages/twisted/python/failure.py", line 451, in trap
            self.raiseException()
          File "/snap/maas/34087/usr/lib/python3/dist-packages/twisted/python/failure.py", line 475, in raiseException raise self.value.with_traceback(self.tb)
        twisted.protocols.amp.UnhandledCommand: (b'UNHANDLED', 'Unknown Error [maas:pid=192121:cmd=ReportNeighbours:ask=35]')
```

Revision history for this message
Jacopo Rota (r00ta) wrote :

twisted.protocols.amp.UnhandledCommand: (b'UNHANDLED',) is usually raised when there is an uncatched exception in the rpc responder. We need to double check if we can statically reproduce this, otherwise we need more information about the reporter's setup

Revision history for this message
maasuser1 (maasuser1) wrote :

Thanks r00ta for the explanation!

Revision history for this message
Christian Grabowski (cgrabowski) wrote :

Hi there, can you please provide a sos-report from when this happens?

Changed in maas:
status: New → Incomplete
Revision history for this message
maasuser1 (maasuser1) wrote :

Hi Christian, I can't. The log was not triggered by a specific user behaviour. I will try if it occurs again.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.