2019-06-21 21:06:44 regiond: [info] 192.168.1.203 GET /MAAS/ws HTTP/1.1 --> 500 INTERNAL_SERVER_ERROR (referrer: -; agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36)
2019-06-21 21:06:49 _GenericHTTPChannelProtocol,11,::ffff:192.168.1.203: [critical] Unhandled Error
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/twisted/web/http.py", line 2013, in lineReceived
self.allContentReceived()
File "/usr/lib/python3/dist-packages/twisted/web/http.py", line 2104, in allContentReceived
req.requestReceived(command, path, version)
File "/usr/lib/python3/dist-packages/maasserver/webapp.py", line 63, in requestReceived
command, path, version)
File "/usr/lib/python3/dist-packages/twisted/web/http.py", line 866, in requestReceived
self.process()
--- <exception caught here> ---
File "/usr/lib/python3/dist-packages/twisted/web/server.py", line 195, in process
self.render(resrc)
File "/usr/lib/python3/dist-packages/twisted/web/server.py", line 255, in render
body = resrc.render(self)
File "/usr/lib/python3/dist-packages/maasserver/webapp.py", line 92, in wrap_render
return orig_render(request)
File "/usr/lib/python3/dist-packages/maasserver/websockets/websockets.py", line 738, in render
protocol.makeConnection(transport)
File "/usr/lib/python3/dist-packages/maasserver/websockets/websockets.py", line 526, in makeConnection
self.wrappedProtocol.makeConnection(self)
File "/usr/lib/python3/dist-packages/twisted/internet/protocol.py", line 510, in makeConnection
self.connectionMade()
File "/usr/lib/python3/dist-packages/maasserver/websockets/protocol.py", line 112, in connectionMade
cookies = self.transport.cookies.decode("ascii")
builtins.AttributeError: 'NoneType' object has no attribute 'decode'
Please note that I was using chrome
Since I could no longer use Chrome Version 74.0.3729.169 (Official Build) (64-bit), I opened the MaaS UI up in Firefox, which worked fine.
Some potentially good context here, too:
We're developing a Kubernetes operator that uses maas heavily. I've had a tab open in Chrome to our maas lab for weeks. The k8s operator we're developing instantiates and destroys maas machines regularly due to our testing. Today, I was running our operator bringing up and down maas nodes, however the UI was not updating in realtime the creation and release of the nodes I was working with unless I refreshed the browser tab manually. So, I cleared the cookies in an effort to "clean the pipes" as it were. Everything was hosed after that, and the error above ensued.