Skip to content
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

[ 2.0.0dev4] ubridge issue after upgrading the system #796

Closed
AJNOURI opened this issue Nov 24, 2016 · 6 comments
Closed

[ 2.0.0dev4] ubridge issue after upgrading the system #796

AJNOURI opened this issue Nov 24, 2016 · 6 comments
Labels
Milestone

Comments

@AJNOURI
Copy link
Contributor

AJNOURI commented Nov 24, 2016

Environment: GNS3 installed inside VMWare Workstation

Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial

Linux ubuntu 4.4.0-45-generic #66-Ubuntu SMP Wed Oct 19 14:12:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

GNS3 version is 2.0.0dev4
Python version is 3.5.2 (64-bit) with utf-8 encoding
Qt version is 5.5.1
PyQt version is 5.5.1
SIP version is 4.17


Following #795 .
I upgraded the system:
apt-get upgrade

ubridge was among the packages to upgrade.

Now GNS3 doesn't recognize ubridge:

2016-11-24 01:57:40 ERROR http_client.py:568 uBridge is not available or path doesn't exist

Though the file is there, but produces error:
sudo /usr/bin/ubridge -version

ubridge version 0.9.7

sudo /usr/bin/ubridge

[sudo] password for ajn:
iniparser: cannot open ubridge.ini


I removed and reinstalled the package

sudo apt-get remove ubridge
sudo apt-get install ubridge

After this operation, 88.1 kB of additional disk space will be used.
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
Preconfiguring packages ...
sh: 0: getcwd() failed: No such file or directory
Selecting previously unselected package ubridge.
(Reading database ... 298688 files and directories currently installed.)
Preparing to unpack .../ubridge_0.9.7-2~xenial_amd64.deb ...
Unpacking ubridge (0.9.7-2~xenial) ...
Setting up ubridge (0.9.7-2~xenial) ...

$ sudo /usr/bin/ubridge

iniparser: cannot open ubridge.ini


Tried to clone the source and compile it:

~$ git clone https://github.com/GNS3/ubridge

~/ubridge$ make

gcc -O3 -Wall -DLINUX_RAW -c -o ubridge.o ubridge.c
In file included from ubridge.c:28:0:
ubridge.h:33:18: fatal error: pcap.h: No such file or directory
compilation terminated.
: recipe for target 'ubridge.o' failed
make: *** [ubridge.o] Error 1

@julien-duponchelle
Copy link
Contributor

iniparser: cannot open ubridge.ini is normal

The make is not working because libpcap-dev

During the upgrade you didn't get a dialog explaining you the permission for ubridge has changed? And that by default only user from sudo and admin group have access to ubridge to limit security issues (it's the case for the default ubuntu user)?

@julien-duponchelle
Copy link
Contributor

If you install GNS3 from package it could be require to login / logout to refresh your user permission.

@AJNOURI
Copy link
Contributor Author

AJNOURI commented Nov 24, 2016

Yes, I got that dialog & answered "yes".
After rebooting, I still get ubridge issue when trying to start the project:

selection_567

Here is the debug file:

debug-2411-161.zip

@julien-duponchelle julien-duponchelle added this to the 2.0 milestone Nov 25, 2016
@julien-duponchelle
Copy link
Contributor

The error seem different ubridge has crashed and perhaps not related I see crash in the logs coming from the last yarl version (we are not using it in the package):

    yield from self.manager.query("DELETE", "containers/{}".format(self._cid), params={"force": 1, "v": 1})
  File "/usr/local/lib/python3.5/dist-packages/gns3_server-2.0.0.dev4-py3.5.egg/gns3server/compute/docker/__init__.py", line 85, in query
    response = yield from self.http_query(method, path, data=data, params=params)
  File "/usr/local/lib/python3.5/dist-packages/gns3_server-2.0.0.dev4-py3.5.egg/gns3server/compute/docker/__init__.py", line 115, in http_query
    headers={"content-type": "application/json", },
  File "/usr/local/lib/python3.5/dist-packages/aiohttp-1.1.5-py3.5-linux-x86_64.egg/aiohttp/client.py", line 569, in __iter__
    return (yield from self._coro)
  File "/usr/local/lib/python3.5/dist-packages/aiohttp-1.1.5-py3.5-linux-x86_64.egg/aiohttp/client.py", line 162, in _request
    proxy=proxy, proxy_auth=proxy_auth, timeout=timeout)
  File "/usr/local/lib/python3.5/dist-packages/aiohttp-1.1.5-py3.5-linux-x86_64.egg/aiohttp/client_reqrep.py", line 79, in __init__
    url2 = url.with_query(params)
  File "/usr/local/lib/python3.5/dist-packages/yarl-0.5.3-py3.5-linux-x86_64.egg/yarl/__init__.py", line 607, in with_query
    for k, v in query.items())
  File "/usr/local/lib/python3.5/dist-packages/yarl-0.5.3-py3.5-linux-x86_64.egg/yarl/__init__.py", line 607, in <genexpr>
    for k, v in query.items())
  File "yarl/_quoting.pyx", line 46, in yarl._quoting._quote (yarl/_quoting.c:1384)
TypeError: Argument should be str

julien-duponchelle added a commit that referenced this issue Nov 25, 2016
@julien-duponchelle
Copy link
Contributor

The yarl version installed on your system has a bug you need to install the last version.

pip3 install -U yarl

@AJNOURI
Copy link
Contributor Author

AJNOURI commented Nov 25, 2016

Now it starts normally, thanks Julien!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants