[Openstack-devel] Bug#719889: Exception: rebind.so not found, perhaps you need to run make

Timo Juhani Lindfors timo.lindfors at iki.fi
Fri Aug 16 14:27:00 UTC 2013


Package: websockify
Version: 0.3.0+dfsg1-6
Severity: important

Steps to reproduce:
1) websockify 2001 -- nc -l -p 1234

Expected results:
1) websockify runs nc in an environment where rebind.so is in LD_PRELOAD

Actual results:
1) websockify does not run nc at all but fails:

$ websockify 2001 -- nc -l -p 1234
Traceback (most recent call last):
  File "/usr/bin/websockify", line 9, in <module>
    load_entry_point('websockify==0.3.0', 'console_scripts', 'websockify')()
  File "/usr/lib/python2.7/dist-packages/websockify/websocketproxy.py", line 389, in websockify_init
    server = WebSocketProxy(**opts.__dict__)
  File "/usr/lib/python2.7/dist-packages/websockify/websocketproxy.py", line 68, in __init__
    raise Exception("rebind.so not found, perhaps you need to run make")
Exception: rebind.so not found, perhaps you need to run make

More info:
1) strace shows that websockify tries to locate rebind.so from two
wrong places:

23817 stat("./rebind.so", 0x7fff093d0690) = -1 ENOENT (No such file or directory)
23817 stat("/usr/bin/rebind.so", 0x7fff093d0690) = -1 ENOENT (No such file or directory)

2) copying /usr/lib/websockify/rebind.so to current directory makes websockify work.

3) this rebind stuff is pretty hacky, I couldn't get it to work with kvm using

env SPICE_DEBUG_ALLOW_MC=1 websockify -v 2001 -- kvm -drive file=debian_wheezy_amd64_desktop.qcow2,cache=none,index=0,if=virtio -snapshot -net nic,model=virtio -net user -m 2048 -cpu host -spice port=2000,password=foobar

so I'd actually much rather see websockify support unix sockets so
that I could tell both websockify and kvm to use the same unix socket
instead of having to play around with tcp ports that are accessible to
all users on the system. Do you think that upstream would accept
patches?


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-0.bpo.2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages websockify depends on:
ii  dpkg          1.17.1
ii  libc6         2.17-92
ii  python        2.7.5-4
ii  python-numpy  1:1.7.1-2+b1

websockify recommends no packages.

websockify suggests no packages.

-- no debconf information



More information about the Openstack-devel mailing list