qamran-itware / audioscout

Automatically exported from code.google.com/p/audioscout
GNU General Public License v3.0
0 stars 0 forks source link

Can not run metadatadb and shows up "unable to bin to inproc://result0" #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
I followed the steps in README.txt
1. Create sqlite database for the audio file metadata storage
   sqlite3 audio.db
   .read audiodb.sql
2. ./metadatadb -d /path/to/database/file/audio.db
3. ./auscoutd -d tcp://localhost:4000

What is the expected output? What do you see instead?
I just want to test it in one computer, but it always failed to create lisener. 
I checked syslog
Mar 28 19:07:55 soleo-desktop auscoutd[2454]: RESULTLISTENER ERR: unable to bin 
to inproc://result0
Mar 28 19:07:55 soleo-desktop auscoutd[2454]: MAIN ERROR: result listener fail

What version of the product are you using? On what operating system?
I am using it in Ubuntu 10.04 and the latest version of audioscout which is 
1.0.1

Original issue reported on code.google.com by shaoxinj...@gmail.com on 28 Mar 2011 at 11:13

GoogleCodeExporter commented 8 years ago
Did you check what is running on  your ports ? (You can use netstat to do this.)

It looks like zmq is unable to process that address.  What zeromq version are 
you using ? 

Original comment by starkd88@gmail.com on 28 Mar 2011 at 2:26

GoogleCodeExporter commented 8 years ago
The auscoutd doesnt give the zmq library enough time to bind inproc sockets 
before connecting them.  This can be fixed by putting sleep(1) in the code in 
the auscout.c code.  Just do this:

auscout.c: 754  sleep(1)
auscout.c: 766  sleep(1)

this should allow zeromq time to bind the previous sockets before connecting 
them.  

I will update the source and download.

(It worked previously on debian sid, but I have not run this code since 
upgrading to squeeze.)

Original comment by starkd88@gmail.com on 28 Mar 2011 at 3:31

GoogleCodeExporter commented 8 years ago
Thank you, I will try later. BTW, I used zeromq 2.1.3.

Original comment by shaoxinj...@gmail.com on 28 Mar 2011 at 3:43

GoogleCodeExporter commented 8 years ago

Original comment by eklin...@gmail.com on 28 Mar 2011 at 4:12

GoogleCodeExporter commented 8 years ago
It works. Thank you.

Original comment by shaoxinj...@gmail.com on 29 Mar 2011 at 1:59

GoogleCodeExporter commented 8 years ago

Original comment by eklin...@gmail.com on 4 May 2011 at 3:05