Solved HAST: Unable to receive request header: Socket is not connected.

Hey all,

I'm attempting to test HAST on two Raspberry Pis and am hitting an issue. (FWIW I've attempted on two x86_64s with the same results. Locally and with a VPS provider.) I'm hoping someone can point me in the right direction. The primary Pi, hotel, has an IP of 192.168.0.179. The secondary Pi, juliet, has an IP of 192.168.0.171. I believe I've followed the handbook to a tee. Here's the /etc/hast.conf I'm using:

Code:
resource test {
        on hotel {
                local /dev/da0
                remote 192.168.0.171
        }
        on juliet {
                local /dev/da0
                remote 192.168.0.179
        }
}

Both Pis have a USB attached, /dev/da0. When the hastd daemon is started and the nodes declare their roles I soon see the primary node's hastd report:

Code:
[DEBUG][2] Checking hooks.
[DEBUG][2] [test] (primary) remote_send: Taking request.
[DEBUG][2] [test] (primary) remote_guard: Checking connections.
[DEBUG][2] [test] (primary) remote_guard: Reconnecting to 192.168.0.171.
[DEBUG][2] Checking hooks.
[DEBUG][1] [test] (primary) Negotiated protocol version 2.
[DEBUG][2] [test] (primary) remote_guard: Reconnect to 192.168.0.171 failed.
[DEBUG][2] Checking hooks.

While the secondary node's hastd reports:

Code:
[INFO] Connection from tcp://192.168.0.179:46874 to tcp://192.168.0.171:8457.
[DEBUG][2] tcp://192.168.0.179:46874: resource=test
[DEBUG][2] tcp://192.168.0.179:46874: version=0
[DEBUG][1] [test] (secondary) Outgoing connection to tcp://192.168.0.179:46874 configured.
[DEBUG][1] [test] (secondary) Obtained info about /dev/da0.
[DEBUG][1] [test] (secondary) Locked /dev/da0.
[DEBUG][1] [test] (secondary) Privileges successfully dropped using capsicum+jail+setgid+setuid.
[INFO] [test] (secondary) Privileges successfully dropped.
[DEBUG][2] [test] (secondary) recv: Taking free request.[DEBUG][2] [test] (secondary)
send: Taking request.
[DEBUG][2] [test] (secondary) disk: Taking request.
[DEBUG][2] [test] (secondary) recv: (0x40c5afb0) Got request.
[DEBUG][1] Unable to receive event header: Socket is not connected.
[DEBUG][2] Checking hooks.

At this point, juliet's status is:

Code:
Name    Status   Role           Components
test    -        secondary      /dev/da0        192.168.0.179

While hotel's status is degraded:

Code:
Name    Status   Role           Components
test    degraded primary        /dev/da0        192.168.0.171

Anyone know what gives? If any more information would help diagnose the issue: please ask. Thank you in advance.
 
Unfortunately, my original post did not include the primary node's relevant output. This issue: the USBs, /dev/da0, had slightly different sizes. What I did to continue testing HAST: create a zpool on the USBs, create a dataset with a specific size. The resulting hast.conf:

Code:
resource test {
        on hotel {
                local /dev/zvol/ztest/data
                remote 192.168.0.171
        }
        on juliet {
                local /dev/zvol/ztest/data
                remote 192.168.0.179
        }
}
 
Back
Top