:: Re: [Libbitcoin] trying offline obe…
Forside
Slet denne besked
Besvar denne besked
Skribent: Thomas Hartman
Dato:  
Til: Grazcoin
CC: libbitcoin
Emne: Re: [Libbitcoin] trying offline obelisk
shot in the dark, but

$ make clean

and then run install-sx again?

Sounds like some library component still might have old code.

On Wed, Mar 19, 2014 at 11:12 AM, Grazcoin <grazcoin@???> wrote:
> I was using the install-sx.sh script cloned today which updates anyway
> all sources, so I am in HEAD on all components (libbitcoin, libwallet,
> obelisk, sx, czmqpp, czmq, etc).
> If you give me some hints or debug instructions, I could try to fix it
> myself.
> I am working with ubuntu 13.10
>
> On 2014-03-19 18:25, Amir Taaki wrote:
>> czmqpp-gitUpdate Obelisk and libczmq++
>> I fixed this a few days ago but should work now.
>>
>> On 19/03/14 17:22, Grazcoin wrote:
>>> I decided to give the latest obelisk a try on ubuntu with offline usage.
>>> It works already partially.
>>>
>>> Starting from a normal setup with network - everything works fine.
>>>
>>> Turning off networking.
>>> # service networking stop
>>>
>>> Start worker
>>> ubuntu@bitcoin:~/worker1$ obworker
>>> Using config file: /etc/obelisk/worker.cfg
>>> Press CTRL-C to shut down.
>>> DEBUG [worker]: Listening: tcp://*:9091
>>> INFO [worker]: worker ready
>>> DEBUG [worker]: Heartbeat: tcp://*:9092
>>> ERROR [protocol]: Failed to start handshake service: Bad stream
>>> Node started.
>>>
>>> Then send a request
>>> ubuntu@bitcoin:~/worker1$ sx fetch-last-height
>>> 291345
>>>
>>> great! it works!
>>>
>>> Then a second request
>>> ubuntu@bitcoin:~/worker1$ sx fetch-last-height
>>> oh ...
>>>
>>> I get:
>>>
>>> obworker: worker/worker.cpp:29: void
>>> obelisk::send_worker::queue_send(const obelisk::outgoing_message&):
>>> Assertion `socket.self()' failed.
>>> Aborted (core dumped)
>>>
>>> I use the master HEAD.
>>> This behavior is repeatable.
>>>
>>> Quick fix?
>>>
>>>
>>> On 2014-01-31 20:35, Grazcoin wrote:
>>>> I tried it on the latest ubuntu...
>>>>
>>>> On 2014-01-31 20:34, Thomas Hartman wrote:
>>>>> I don't know the answer to your question, but what distro are you running?
>>>>>
>>>>> It ran out of the box for me on debian 7.1 but not on latest ubuntu.
>>>>> On Jan 31, 2014, at 6:05 AM, Grazcoin wrote:
>>>>>
>>>>>> I was trying to test the functioning of obelisk offline:
>>>>>>
>>>>>> 1. started with a normal working online updated setup.
>>>>>> 2. stopped the obworker and obbalancer.
>>>>>> 3. updated /usr/local/etc/obelisk/worker.cfg with outgoing-connections = 0 and listener_enabled = false
>>>>>> 4. tried to start obworker, and got a crash. No extra info on the error.log
>>>>>>
>>>>>> What is the correct config to make this work?
>>>>>>
>>>>>> git is in sync.
>>>>>>
>>>>>> [jan-31 14:57:29] dev@dev-laptop:~/worker1$ obworker
>>>>>> Using config file: /usr/local/etc/obelisk/worker.cfg
>>>>>> Press CTRL-C to shut down.
>>>>>> DEBUG [worker]: Connecting: tcp://localhost:9092
>>>>>> INFO [worker]: worker ready
>>>>>> ERROR [protocol]: Failed to start handshake service: Bad stream
>>>>>> ERROR: Unable to start session: Bad stream
>>>>>> terminate called without an active exception
>>>>>> Aborted (core dumped)
>>>>>> [jan-31 14:57:39] dev@dev-laptop:~/worker1$ cat /usr/local/etc/obelisk/worker.cfg
>>>>>> # Debug messages output file.
>>>>>> output-file = "debug.log"
>>>>>> # Error messages output file.
>>>>>> error-file = "error.log"
>>>>>> # Path to blockchain directory.
>>>>>> blockchain-path = "./blockchain/"
>>>>>> # List of hosts (loaded on startup, saved on exit).
>>>>>> # If non-existant or empty then Obelisk/libbitcoin will
>>>>>> # fall back to trying seed nodes instead.
>>>>>> hosts-file = "hosts"
>>>>>> # Next 2 values ignored if publisher is disabled
>>>>>> publisher_enabled = false
>>>>>> block-publish = "tcp://*:9093"
>>>>>> tx-publish = "tcp://*:9094"
>>>>>> # Connection to the balancer.
>>>>>> # Which port to connect to the load balancer on.
>>>>>> service = "tcp://localhost:9092"
>>>>>>
>>>>>> # Advanced features:
>>>>>> # Uncomment to give this worker a named UUID. Must be unique.
>>>>>> #name = "ada"
>>>>>> # Number of outgoing network connections to p2p network.
>>>>>> outgoing-connections = 0
>>>>>> # Listening for incoming connections.
>>>>>> listener_enabled = false
>>>>>> # Add manual outgoing nodes below.
>>>>>> #nodes = (
>>>>>> # ("localhost", 8333)
>>>>>> #)
>>>>>> # Show Obelisk requests in the log file for debugging or security.
>>>>>> # Slows down Obelisk speed. Disabled by default.
>>>>>> #log_requests = true
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Libbitcoin mailing list
>>>>>> Libbitcoin@???
>>>>>> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/libbitcoin
>>>> _______________________________________________
>>>> Libbitcoin mailing list
>>>> Libbitcoin@???
>>>> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/libbitcoin
>>> _______________________________________________
>>> Libbitcoin mailing list
>>> Libbitcoin@???
>>> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/libbitcoin
>>>
>>
>>
>> _______________________________________________
>> Libbitcoin mailing list
>> Libbitcoin@???
>> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/libbitcoin
>
> _______________________________________________
> Libbitcoin mailing list
> Libbitcoin@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/libbitcoin