Error: Unable to connect to websocket

Bug #2054460 reported by Alexandru Darie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MicroStack
New
Undecided
Unassigned

Bug Description

Hello,

I am trying to install sunbeam cluster and I have this error :

sunbeam cluster bootstrap --accept-defaults

           DEBUG Unable to connect to websocket utils.py:276
                    Traceback (most recent call last):
                      File "/snap/openstack/324/lib/python3.10/site-packages/sunbeam/utils.py", line 274, in __call__
                        return self.main(*args, **kwargs)
                      File "/snap/openstack/324/lib/python3.10/site-packages/click/core.py", line 1055, in main
                        rv = self.invoke(ctx)
                      File "/snap/openstack/324/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
                        return _process_result(sub_ctx.command.invoke(sub_ctx))
                      File "/snap/openstack/324/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
                        return _process_result(sub_ctx.command.invoke(sub_ctx))
                      File "/snap/openstack/324/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
                        return ctx.invoke(self.callback, **ctx.params)
                      File "/snap/openstack/324/lib/python3.10/site-packages/click/core.py", line 760, in invoke
                        return __callback(*args, **kwargs)
                      File "/snap/openstack/324/lib/python3.10/site-packages/sunbeam/commands/bootstrap.py", line 275, in bootstrap
                        run_plan(plan4, console)
                      File "/snap/openstack/324/lib/python3.10/site-packages/sunbeam/jobs/common.py", line 248, in run_plan
                        skip_result = step.is_skip(status)
                      File "/snap/openstack/324/lib/python3.10/site-packages/sunbeam/commands/sunbeam_machine.py", line 65, in is_skip
                        run_sync(self.jhelper.get_application(APPLICATION, MODEL))
                      File "/snap/openstack/324/lib/python3.10/site-packages/sunbeam/jobs/juju.py", line 57, in run_sync
                        result = asyncio.get_event_loop().run_until_complete(coro)
                      File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
                        return future.result()
                      File "/snap/openstack/324/lib/python3.10/site-packages/sunbeam/jobs/juju.py", line 190, in wrapper
                        await self.controller.connect(
                      File "/snap/openstack/324/lib/python3.10/site-packages/juju/controller.py", line 138, in connect
                        await self._connector.connect(**kwargs)
                      File "/snap/openstack/324/lib/python3.10/site-packages/juju/client/connector.py", line 78, in connect
                        self._connection = await Connection.connect(**kwargs)
                      File "/snap/openstack/324/lib/python3.10/site-packages/juju/client/connection.py", line 366, in connect
                        raise Exception("Unable to connect to websocket")
                    Exception: Unable to connect to websocket
           WARNING An unexpected error has occurred. Please run 'sunbeam inspect' to generate an inspection report. utils.py:281
           ERROR Error: Unable to connect to websocket utils.py:282
alexd@ubuntuserver:~$ ^C
alexd@ubuntuserver:~$ sunbeam inspect
An unexpected error has occurred. Please run 'sunbeam inspect' to generate an inspection report.
Error: Unable to connect to websocket

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.