rixed / ramen

A stream processing language and compiler for small-scale monitoring
Other
14 stars 4 forks source link

ramen failed to start if the secure interface doesn't exist yet #1249

Closed darlentar closed 4 years ago

darlentar commented 4 years ago
-- Logs begin at Thu 2020-08-13 02:25:26 CEST, end at Thu 2020-08-13 14:07:31 CEST. --
août 13 02:26:17 aa systemd[1]: Started Configuration Synchronisation Service.
août 13 02:26:18 aa ramen[4016]: 02h26m18: Starting confserver v4.4.19
août 13 02:26:18 aa ramen[4016]: 02h26m18: Create zockets...
août 13 02:26:18 aa ramen[4016]: 02h26m18: Listening to tcp://lo:29340...
août 13 02:26:18 aa ramen[4016]: 02h26m18: Listening securely to tcp://eth0:29341...
août 13 02:26:18 aa ramen[4016]: 02h26m18:(E) Exception: Unix.Unix_error(Unix.ENODEV, "zmq_bind", "")
août 13 02:26:18 aa ramen[4016]: 02h26m18:(E) Creating zockets: Unix.Unix_error(Unix.ENODEV, "zmq_bind", "")
août 13 02:26:18 aa ramen[4016]: 02h26m18: Terminating ZMQ

ramen should wait that the interlace is available.

rixed commented 4 years ago

Failling to start when an invalid interface is specified LGTM. Actually the problem seems to be that it fails to fails:

$ src/ramen confserver -P 'doesnotexist:1234' --debug --stdout
10h56m47: Starting ramen-confserver v4.6.0
10h56m47: Create zockets...
10h56m47: Listening securely to tcp://doesnotexist:1234...
10h56m47:(E) Binding zocket: Unix.Unix_error(Unix.ENODEV, "zmq_bind", "")
Raised by primitive operation at file "zmq/src/zmq.ml" (inlined), line 115, characters 2-58
Called from file "src/RamenSyncZMQServer.ml", line 679, characters 6-34
Called from file "src/RamenHelpers.ml", line 58, characters 6-10

10h56m47:(E) Creating zockets: Unix.Unix_error(Unix.ENODEV, "zmq_bind", "")
Raised by primitive operation at file "zmq/src/zmq.ml" (inlined), line 115, characters 2-58
Called from file "src/RamenSyncZMQServer.ml", line 679, characters 6-34
Called from file "src/RamenHelpers.ml", line 58, characters 6-10
Re-raised at file "src/RamenHelpers.ml", line 62, characters 4-38
Called from file "src/RamenSyncZMQServer.ml", line 678, characters 4-88
Called from file "src/batEnum.ml", line 206, characters 13-23
Called from file "src/batArray.mlv", line 357, characters 12-25
Called from file "array.ml", line 49, characters 22-27
Called from file "src/RamenHelpers.ml", line 58, characters 6-10

10h56m47: Terminating ZMQ