Skip to content

gns3server.ubridge.ubridge_error.UbridgeError: could not complete netlink transaction #2522

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ChenFryd opened this issue Apr 7, 2025 · 0 comments

Comments

@ChenFryd
Copy link

ChenFryd commented Apr 7, 2025

Hello everyone.
When starting a docker container in GNS3 I get an error:

Internal server error http://127.0.0.1:3080/v2/compute/projects/208df4cd-8e1f-4b12-b6fd-8f3bf3c2d72f/docker/nodes/97a6d47b-3121-414b-bf06-deab6d3e8cd4/start

In the GNS3 server I get:

{'message': 'Traceback (most recent call last):\n File "/home/chenfryd/.local/lib/python3.12/site-packages/gns3server/compute/base_node.py", line 676, in _ubridge_send\n await self._ubridge_hypervisor.send(command)\n File "/home/chenfryd/.local/lib/python3.12/site-packages/gns3server/utils/asyncio/init.py", line 164, in wrapper\n return await f(oself, *args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/home/chenfryd/.local/lib/python3.12/site-packages/gns3server/ubridge/ubridge_hypervisor.py", line 259, in send\n raise UbridgeError(data[-1][4:])\ngns3server.ubridge.ubridge_error.UbridgeError: could not complete netlink transaction\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/home/chenfryd/.local/lib/python3.12/site-packages/gns3server/compute/docker/docker_vm.py", line 973, in _add_ubridge_connection\n await self._ubridge_send('docker move_to_ns {ifc} {ns} eth{adapter}'.format(\n File "/home/chenfryd/.local/lib/python3.12/site-packages/gns3server/utils/asyncio/init.py", line 164, in wrapper\n return await f(oself, *args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/home/chenfryd/.local/lib/python3.12/site-packages/gns3server/compute/base_node.py", line 678, in _ubridge_send\n raise UbridgeError("Error while sending command '{}': {}: {}".format(command, e, self._ubridge_hypervisor.read_stdout()))\ngns3server.ubridge.ubridge_error.UbridgeError: Error while sending command 'docker move_to_ns tap-gns3-e0 461 eth0': could not complete netlink transaction: uBridge version 0.9.19 running with libpcap version 1.10.4 (with TPACKET_V3)\nHypervisor TCP control server started (IP 0.0.0.0 port 33365).\n\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/home/chenfryd/.local/lib/python3.12/site-packages/gns3server/compute/docker/docker_vm.py", line 533, in start\n await self._add_ubridge_connection(nio, adapter_number)\n File "/home/chenfryd/.local/lib/python3.12/site-packages/gns3server/compute/docker/docker_vm.py", line 979, in _add_ubridge_connection\n raise UbridgeNamespaceError(e)\ngns3server.ubridge.ubridge_error.UbridgeNamespaceError: Error while sending command 'docker move_to_ns tap-gns3-e0 461 eth0': could not complete netlink transaction: uBridge version 0.9.19 running with libpcap version 1.10.4 (with TPACKET_V3)\nHypervisor TCP control server started (IP 0.0.0.0 port 33365).\n\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/home/chenfryd/.local/lib/python3.12/site-packages/gns3server/web/route.py", line 200, in control_schema\n await func(request, response)\n File "/home/chenfryd/.local/lib/python3.12/site-packages/gns3server/handlers/api/compute/docker_handler.py", line 89, in start\n await container.start()\n File "/home/chenfryd/.local/lib/python3.12/site-packages/gns3server/compute/docker/docker_vm.py", line 540, in start\n for line in logdata.split('\n'):\n ^^^^^^^^^^^^^^^^^^^\nTypeError: a bytes-like object is required, not 'str'\n', 'status': 500}

ubridge:

chenfryd@MININT-MVU0MP8:~/gns3-server/gns3server$ ubridge
uBridge version 0.9.19 running with libpcap version 1.10.4 (with TPACKET_V3)
iniparser: cannot open ubridge.ini
chenfryd@MININT-MVU0MP8:~/gns3-server/gns3server$ getcap /usr/local/bin/ubridge
/usr/local/bin/ubridge cap_net_admin,cap_net_raw=ep

Troubleshooting steps done:

  • restarting gns3 server does not help
  • restarting docker does not help
  • restarting wsl does not help
  • restarting computer help
@grossmj grossmj moved this from Triage to Todo in GNS3 tracking Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant